Skip to main content
Lukasz Przenioslo
Associate III
October 18, 2015
Question

DMA events like functionality

  • October 18, 2015
  • 1 reply
  • 662 views
Posted on October 18, 2015 at 19:57

Hello there,

I know that dma can be used to transfer data from/to peripherals to memory and etc. I was wondering though would it be possible to use the dma for registering certain events instead of interrupts?

For example, lets say I would like to reset a timers counter each time there is an external interrupt on a pin (falling edge). Normally in the interrupt routine I would just reset the counter of the timer. But can DMA do that automatically? Maybe some register is equal 0 at the time of a falling edge on some pin and it can be copied to the timers counter register?

I would apreciate all help!
    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    October 18, 2015
    Posted on October 18, 2015 at 21:21

    Yeah, the DMA doesn't really have the external connectivity required, you'd be better off looking at an External Reset of the timer.

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