This application note provides a short description of the demonstration firmware Discover which is preprogrammed in the Flash memory of the STM8S003K3T6 microcontroller
The document details a demonstration firmware preprogrammed into the Flash memory of the STM8SO003K3T6 microcontroller within the STM8SVLDISCOVERY evaluation board. This software utilizes the basic 8-bit timer TIM4 as a time-base generator to control the blinking frequency of LED LD1.
| Master clock source at power-on | HSI clock with prescaler division factor equal to 8 |
|---|---|
| Master clock frequency | 2 MHz |
| TIM4 time base | 4 ms |
| TIM4 counting frequency | 62.5 KHz |
Each time the push button event is detected, the delay between LED toggles is adjusted to change the blinking frequency.
The first press sets a 200 ms period, the second press sets a 100 ms period, and the third press switches the LED off.
At application start-up, the blinking period is configured to 1 second.