cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 discovery fast Interrupt

mahdi_noname
Associate II
Posted on October 08, 2012 at 17:56

Hello 

here is any example for fast interrupt for stm32f4 ? 

thnx for adv...

8 REPLIES 8
Posted on October 08, 2012 at 18:33

here is any example for fast interrupt for stm32f4 ? 

 

Not so much, there is no FIQ, you simply configure and prioritize your interrupts via the NVIC. Suggest Cortex-Mx documentation on ARM's site, or Joseph Yiu's fine books on the cores.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
mahdi_noname
Associate II
Posted on October 08, 2012 at 19:56

thnx for replay

i have a 5mhz clk pin for read parallel on rasing edge 

is this possible to read with IRQ ? 

Posted on October 08, 2012 at 20:28

I'd say no, the processor would do nothing else as those rates, and would likely saturate.

You might be able to use DMA on the FSMC, bus, via a timer pin or something, or perhaps the DCMI.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
mahdi_noname
Associate II
Posted on October 10, 2012 at 06:42

can u tell me how config a timer pin for read clk pin ? 

mahdi_noname
Associate II
Posted on October 10, 2012 at 07:36

here we have 100mhz gpio speed why not read easy a 5mhz clk ? 

mahdi_noname
Associate II
Posted on October 11, 2012 at 08:16

No any help ?

i test some way from dma and timer but not work :(

some data is lost.

Posted on October 11, 2012 at 18:08

No any help ?

Look, I'm not on your project staff. I've made some suggestions/observations, but I'm not coding solutions.

The 100MHz GPIO relates to the slew-control of the OUTPUT pin circuitry. I could also count cycles at a high rate, however you are trying to associate the latching of some data wrt the clock edge, and I'm saying you can't do it in software at the kind of rate you're proposing.

You might be able to use one of the timer input channels as a trigger, but it would depend a lot on the signalling/latching expectations on the data presented.

I don't think the STM32 parts are generally well suited to this type of data input, as you really need some DMAREQ, DMAACK type configuration.

Look at the DCMI and FSMC, and ponder if you can work with those, and perhaps a CPLD or FPGA.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
mahdi_noname
Associate II
Posted on October 12, 2012 at 15:42

thnx for replay 

last q

uestion

how much is STM32F4 DMA max speed ?