Software › USART Counter

USART Counter

demo Open · freely redistributable

An original CC0 bare-metal CH32V003 program. It brings up USART1 (as USART Hello does) and prints an incrementing four-digit decimal counter ("Count 0000", "Count 0001", …) using a hand-written decimal increment with carry (no libc, no division), toggling the on-board LED on PD0 once per count. On-board only: USART1 and PD0.

Download ↓

Format: CH32V003 flash image (bare-metal, compiled C)  ·  By: emulators.org  ·  Licence: Public domain (CC0)

Runs on