Output modes There are two different output modes: Open drain output: GPIO_Mode_Out_OD Push-pull output: GPIO_Mode_Out_PP Input modes There are four different input modes: Floating input: GPIO_Mode_IN_FLOATING Pull-up input: GPIO_Mode_IPU Pull-down input: GPIO_Mode_IPD Analog input: GPIO_Mode_AIN Alternate functions The GPIO can also be configured as an “alternate function”. Used for specific hardware functions like pulse widthContinue reading “CH32V003 GPIO/Pin modes”
Tag Archives: programming
Programming CH32V003
To program the CH32V003 microcontroller, you will need a programming device that utilizes the proprietary single-wire serial debug interface (SDI). The WCH-LinkE (pay attention to the “E” in the name) is a suitable device for this purpose and can be purchased commercially. This debugging tool is compatible with the CH32V003 and other WCH RISC-V andContinue reading “Programming CH32V003”
Serial Plotter
My first try to make useful GUI application a Arduino Serial Plotter Simple serial plotter for Arduino and other devices to quickly visualize generated data. GUI is made in Python3 + Qt5 . Much work remains to be done. But this is a good start. https://github.com/taunoe/tauno-serial-plotter
C vs. C++: Bubble sort
I have identical bubble sort algorithm in C and C++. Same data and same computer. Experiment shows that C is twice as slow as C ++. In C it takes 124 processor clicks or 0.000124 sec. In C++ it takes 66 processor clicks or 0.000066 sec. C Bubble sort code: C++ Bubble sort code: https://github.com/taunoe/cpp-examples/tree/master/Sorting-algorithms/Bubble-sort