cancel
Showing results for 
Search instead for 
Did you mean: 

Implementation of DMA in TIMER0&1

nanuradha
Associate II
Posted on December 05, 2006 at 06:45

Implementation of DMA in TIMER0&1

4 REPLIES 4
nanuradha
Associate II
Posted on May 17, 2011 at 09:34

hai,

i want to use the DMA feature for Timer0,1.

how can we use this DMA in TImers.

for DMA there is DMAS[1:0] bits in TIM_CR1 and DMAE bit in TIM_CR2.

is it sufficient for implementing DMA in Timers?

Please help me regarding this.

regards

-=raj=-

kais
Associate II
Posted on May 17, 2011 at 09:34

Hello anuradha,

Due to FIFO absence in TIM peripheral, there are some precautions to take it, depending on the data path you want to accomplish, so what is the other part involved in the transfer and the transfer direction you want.

Regards,

Eris.

nanuradha
Associate II
Posted on May 17, 2011 at 09:34

hai eris,

here i want to use the timers in Capture mode.

since timers 0,1 have the DMA facility.

so how can i use this DMA feature for my purpose.

kais
Associate II
Posted on May 17, 2011 at 09:34

Hi anuradha,

please find attached an example shows how to use the TIM0 peripheral to measure the frequency of an external signal.

TIM0 is configured in PWM input mode, each Input Capture1 event we are going to transfer Registers ICR1 to TIM_Buffer1 (please see it through watch tool).

And then Period = (IC1R x tPRESC/ fPCLK ).

Best regards,

Eris.