cancel
Showing results for 
Search instead for 
Did you mean: 

Generation of an event at 40 Mhz

sauge.1
Associate

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.

5 REPLIES 5
Ozone
Lead

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 ?

Not an MCU task

Perhaps a FIFO memory, or serdes

Could you clock a bit stream out the SPI?

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..

What is "event"?

JW

sauge.1
Associate

Event = interrupt 

It​ would be interrupting every 5 machine cycles, how is that going to be viable?

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..