2019-01-23 06:30 AM
2019-01-23 07:16 AM
No.
And even if it could generate interrupts at that rate, it couldn't process it.
2019-01-23 07:16 AM
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).
2019-01-23 07:22 AM
Use HW peripheral to time detress and consider power consumption aspect.
2019-01-23 10:31 PM
2 ns correspond to 500 MHz. And a Cortex M interrupt usually take 12 clock cycles for entry and exit each.
2019-01-24 04:08 AM
thank you very much
2019-01-24 04:12 AM
I think this HW peripheral maybe can do it STM32 send 16 bit to mux (16-1)