2018-07-05 07:12 AM
How often a peripheral can interrupt the 168MHz STM32F4 series MCU in general? In our senario ADS1282 need to transmit data to MCU on different speed from 4ms interval to 1/4ms interval, and maybe even faster. That means 1000 to 4000 interrupts generated each second. Whether STM32F4 will get a very low efficiency in this case because of too frequently interrupt?
2018-07-05 07:28 AM
Beyond 100 KHz you should ask yourself if there is a better way to do something.
Doing things at 1 or 4 KHz should be fine, if hardware allows for automation or decimation, consider applying that. You should also consider priorities/pre-emption levels, and time spent in interrupts.
2018-07-05 07:46 AM
'
How often a peripheral can interrupt the 168MHz STM32F4 series MCU in general?'
as often as you want: the worst would be to not clear the flag so the execution jumps right back to the isr upon its exit. obviously in that case, the mcu can do nothing else.
a meaningful question would be how fast such ISR can be executed. If you google isr overhead, you will find that the mcu takes some steps before going into the isr, from 20-30 ticks to next to none.
so if you take that into account, a 168Mhz mcu can go as fast as 168Mhz / 30 = 6Mhz max.
as more ticks are added to the isr, that speed goes down further.
2018-07-05 09:33 AM
thanks for the quick reply
2018-07-05 07:06 PM
Hi, dhenry
Many thanks to you, it help me a lot.