Skip to main content
mahdi_noname
Associate
October 8, 2012
Question

STM32F4 discovery fast Interrupt

Posted on October 08, 2012 at 17:56

Hello 

here is any example for fast interrupt for stm32f4 ? 

thnx for adv...

    This topic has been closed for replies.

    8 replies

    Tesla DeLorean
    Guru
    October 8, 2012
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    mahdi_noname
    Associate
    October 8, 2012
    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 ? 

    Tesla DeLorean
    Guru
    October 8, 2012
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    mahdi_noname
    Associate
    October 10, 2012
    Posted on October 10, 2012 at 06:42

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

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

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

    mahdi_noname
    Associate
    October 11, 2012
    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.

    Tesla DeLorean
    Guru
    October 11, 2012
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    mahdi_noname
    Associate
    October 12, 2012
    Posted on October 12, 2012 at 15:42

    thnx for replay 

    last q

    uestion

    how much is STM32F4 DMA max speed ?