Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 1 month ago.
Frequency limitations on Nucleo F767zi
Greetings , I wanted to know if anyone knows the frequency limitations on the GPIO External Interrupt. I want to sample a 20 MHZ pulse train using the Nucleo F767zi and wanted to know if anyone has tried something like this . I basically want to implement a 20Mhz Pulse counter. Thanks
1 Answer
7 years, 1 month ago.
You're probably not going to get a 20MHz pulse via interrupt. However, use TIM1 or TIM8 in capture mode with APB1 at 108MHz and you should get a reasonable measure especially if you can use averaging. A single snapshot will have a slight variance each reading due to the 5:1 ratio of APB clock to external pulse (20MHz). ST has app notes on how to measure an external pulse. As well there have been several projects submitted by users showing how to do this with ST. You'll need to look at the HAL setup for capture timer.
You could always experiment with using interrupts but start your pulse rate at something <1MHz and validate the code. Then turn up the pulse speed slowly until you can't keep up anymore - then you'll have found the limit of external ints for measurement.