Skip to main content
Visitor II
December 9, 2023
Solved

input capture on STM32F030

  • December 9, 2023
  • 1 reply
  • 829 views

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?

 

    This topic has been closed for replies.
    Best answer by waclawek.jan

    > 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

    1 reply

    Super User
    December 9, 2023

    > 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