- Application: This example code uses TIMER0 to count the number of pulses, and uses RTC to wake up the microcontroller (MCU) and output the number of pulses.
- BSP Version: M251_M252_M254_M256_M258_Series_BSP_CMSIS_V3.02.006
- Hardware: NuMaker_M251KG_V1.1
This example code starts by setting up the RTC and TIMER0, then switches the microcontroller (MCU) to Power-down mode. TIMER0 will count the pulses on PB5 until the RTC wakes up the MCU, at which point the counting will stop and the number of pulses will be printed.
You can download the sample code at https://www.nuvoton.com/resource-download.jsp?tp_GUID=EC012024091006190337
|