Skip to main content
nguen nguyen
Associate III
January 23, 2019
Question

Can stm32f7 generate interrupt with period ns ?

  • January 23, 2019
  • 5 replies
  • 1479 views

example generate pulse period 2ns

This topic has been closed for replies.

5 replies

AvaTar
Senior III
January 23, 2019

No.

And even if it could generate interrupts at that rate, it couldn't process it.

After Forever
Senior III
January 23, 2019

In most cases it's not really necessary to have nanosecond (or even microsecond) interrupts. STM32 has robust timers and other periphery which can do many tasks without your manual I/O pin-switching from an interrupt.

But even for the 216MHz clocks of STM32F7 timer 2ns is too much. 216MHz will give you ~4.63ns if my calculations are precise. There is also the GPIO speed limit to take into account, for STM32F7 it's 180MHz (I/O compensation cell should be enabled).

S.Ma
Principal
January 23, 2019

Use HW peripheral to time detress and consider power consumption aspect.

nguen nguyen
Associate III
January 24, 2019

I think this HW peripheral maybe can do it STM32 send 16 bit to mux (16-1) 0690X000006DDziQAG.png

AvaTar
Senior III
January 24, 2019

2 ns correspond to 500 MHz. And a Cortex M interrupt usually take 12 clock cycles for entry and exit each.

nguen nguyen
Associate III
January 24, 2019

thank you very much