2006-12-04 09:45 PM
Implementation of DMA in TIMER0&1
2011-05-17 12:34 AM
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=-2011-05-17 12:34 AM
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.2011-05-17 12:34 AM
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.2011-05-17 12:34 AM
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.