2021-02-15 02:51 AM
Hello, I would like to generate an event at 40 Mhz or every 25 ns. I have an algorithm that generates a very particular square wave shape. That's why I can't use PWM or DMA transfer. I use a STM32F769. Thank you for your answers.
2021-02-15 05:20 AM
Generating an interrupt at 40MHz seems not a good idea to me.
Not sure if there would be enough performance left outside the interrupt handler, if at all.
I would consider external hardware, probably based on shift registers. An ASIC ?
2021-02-15 05:28 AM
Not an MCU task
Perhaps a FIFO memory, or serdes
Could you clock a bit stream out the SPI?
2021-02-15 05:58 AM
What is "event"?
JW
2021-02-18 02:02 AM
Event = interrupt
2021-02-18 05:32 AM
It would be interrupting every 5 machine cycles, how is that going to be viable?