CH32V003 GPIO/Pin modes

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”

CH32V003 Analog Reading

ADC (Analog-to-Digital Converter): Converts an analog signal (such as a voltage) into a digital value that can be processed by a microcontroller. The conversion process typically involves sampling the analog signal at a specific rate and quantizing the signal to produce a digital representation. CH32V003 ADC has a 10-bit resolution. Values 0-1023. DMA (Direct MemoryContinue reading “CH32V003 Analog Reading”