cancel
Showing results for 
Search instead for 
Did you mean: 

DMA events like functionality

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!
1 REPLY 1
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
Up vote any posts that you find helpful, it shows what's working..