cancel
Showing results for 
Search instead for 
Did you mean: 

input capture on STM32F030

massimo73
Associate

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?

 

1 ACCEPTED SOLUTION

Accepted Solutions

> 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

View solution in original post

1 REPLY 1

> 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