2023-12-09 04:22 AM
i want use TIM1 CH1 in input capture using DMA.
The DMA is set to peripheral to memory and store the data in a buffer of 100 elements.
When the transfer of the 100 data is completed i want generate a TIM1 interrupt. Wich kind of interrupt of TIM1 i have to see and enable?:
1) TIM1_BRK_UP_TRG_COM_IRQHandler
2) TIM1_CC_IRQHandler
i saw in AN that if DMA is enabled the CC1IF is set, so i have to see TIM1_CC_IRQHandler?
Solved! Go to Solution.
2023-12-09 05:21 AM
> When the transfer of the 100 data is completed i want generate a TIM1 interrupt.
When transfer of number of data set in DMA_CNDTR register is completed, it's the DMA which throws a Transfer Complete interrupt, so you don't need to think about TIM1 to do that.
JW
2023-12-09 05:21 AM
> When the transfer of the 100 data is completed i want generate a TIM1 interrupt.
When transfer of number of data set in DMA_CNDTR register is completed, it's the DMA which throws a Transfer Complete interrupt, so you don't need to think about TIM1 to do that.
JW