I'd need to implement on my BRD4184A (EFR32BG22) a simple periodic timer (i.e. TIMER0) to toggle one LED through ISR every 1ms? I was digging into many examples but I'm not able to find it.
Could anyone give me a hint?
Thank you but actually I haven't much time to learn handler timers with ISR as you suggested.
I prefer to expect some support from Silabs as it is a type of sample / demo widely provided by SDKs of other companies. At least with other SDKs that I usually work with (NXP, ST, TI ...)
Oh yes, I've already explored Silabs github site (in my case for series 2). There I've found lot of timer examples (using DMA, to measure period, PWM timer, input capture and so on...) but no one with a simple periodic timer & ISR implementation.
You could made minor change on the example here:
It should be very easy to get a periodic 1mS interrupt. You could enable the OF/UF interrupt.
You could evaluate the LETIMER and BURTC peripheral also. And the ustimer emdrv is also a option for you to consider.
If pwm a led is the final intention, hardware timmering toggling the pin, not a isr.
1ms will not be visible to the human eye (too fast) and will just make the led look dimmer.
In this case LED toggling trough ISR is just an example to check the TIMER0 timings easily and only for debugging purposes.