Software › Blink PD0 (user LED)

Blink PD0 (user LED)

demo Open · freely redistributable

An original CC0 bare-metal WCH CH32V003 program written for emulators.org and compiled with clang for rv32ec (QingKe RV32EC). It enables the GPIOD clock in RCC (APB2PCENR), configures PD0 as a push-pull output in CFGLR, and toggles the on-board LED with the atomic BSHR/BCR set/reset registers in a busy-wait loop. The LED is active-high. Real CH32V003 register path, no runtime.

Download ↓

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

Runs on