2018-07-30 12:54 AM
In a project, want to generate few control signals at a frequency of 5 - 10MHz. with proper synchronization. So i thought of connecting a dedicated crystal at external interrupt pin.
Am using STM32F756. Is this controller capable enough to accept the interrupts at a frequency of 10MHz.
Jagdish
2018-07-30 02:32 AM
Yes. Look at the Pulse width of external signals detected by the EXTI controller parameter in the datasheet.
JW
2018-07-30 04:10 AM
Hi, Tx for reply.
i referred datasheet, Couldn't found the details in it.
pls guide. As i have a routine for external interrupt iSR. Wan to know frequency at which it will fail.
2018-07-30 04:31 AM
The EXTI will catch pulses shorter than the value under that parameter, i.e. 10ns
However, as far as *frequency* is concerned, it's more about the execution time of your interrupt routine, and that's your code, I can't tell how long it takes. Measure it (either using the debug timer, or using the classical "toggle-pin, then measure on oscilloscope/logic analyzer" method).
JW
2018-07-30 04:33 AM
2018-07-30 05:29 AM
It means that if I have an ISR takes 0.1 usec to execute, i can provide the frequency more than 10 MHz. Do i need to configure GPIO to achieve this?
2018-07-30 05:38 AM
Most rational people don't interrupt the processor in the MHz range. Use the TIM to capture/count pulses, use prescale settings to decimate interrupt loading, or DMA to capture values.
The saturation point of the processor is determined by the cost of stacking and unstacking context, and how much code you run to perform the task and clear the source.