AnsweredAssumed Answered

Trigger interrupts for ETR

Question asked by Alexey G. on May 18, 2014
Latest reply on May 19, 2014 by waclawek.jan
Hi!

(Using the STM32F103RBT6 chip)

I've configured TIM2 timer as a prescaler for TIM3 (RM0008 page 386).
Timer TIM2 is configured for ETR (RM0008 page 365).

So what I've got is a 32bit timer counting pulses on PA0 (successfully working).

Now I want to get an interrupt on the rising edge of the pulses that fed to ETR
pin while I count them (TGI interrupt as shown on RM0008 page 352 figure 100).

When I configure TIM2 for trigger interrupt:

TIM_ITConfig(TIM2, TIM_IT_Trigger, ENABLE);

 
Nothing happens, but if I configure it for Update interrupt as:

TIM_ITConfig(TIM2, TIM_IT_Update, ENABLE);

I'm actually getting the Update interrupt as it should.

Am I missing something?

Thanks,
 Alexey

Outcomes