2015-10-18 10:57 AM
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!2015-10-18 12:21 PM
Yeah, the DMA doesn't really have the external connectivity required, you'd be better off looking at an External Reset of the timer.