2022-02-15 10:09 AM
2022-02-15 02:02 PM
If it has a 1ms (1 KHz) ticker, count those off for the desire period. Perhaps use a TIM to count off minutes? Perhaps an RTC with an ALARM?
Which STM8? I think they make more than one, and they often have slightly different feature mixes.