cancel
Showing results for 
Search instead for 
Did you mean: 

Cascading timers and capture on external event

andywild
Associate II
Posted on January 17, 2008 at 15:18

Cascading timers and capture on external event

4 REPLIES 4
andywild
Associate II
Posted on May 17, 2011 at 12:21

Hi all,

I need to have the TIM1 triggered by 72MHz and TIM2 will be slave and triggered by TIM1 Overflow. So this will create a 32bit timer with 72Mhz clocking rate.

In order to read the 32bit count at an external event I will configure one capture register for each timer, these capture registers will be triggered by the same external event input line.

With this I hope to avoid inconsistencies due to overflow TIM1 at the same time when a capture occurs. Is that true? Any other opinion to handle the overflow problem with to cascaded 16Bit Counters? (No software please, because it´s too slow!)

Thanks for you help

Andy

16-32micros
Associate III
Posted on May 17, 2011 at 12:21

Hi andy,

You can have a look at ''AN2592'' on web : How to achieve 32-bit timer resolution using the link system in STM32F101xx and STM32F103xx microcontrollers. Hope this helps you 😉

STOne-32.

andywild
Associate II
Posted on May 17, 2011 at 12:21

Hi STOne32,

this AN2592 helps me a lot!

Thank you

Andy

andywild
Associate II
Posted on May 17, 2011 at 12:21

Dear STOne32,

in the AN2592 the Master TIM3 is clocked with 72Mhz.

According to the reference manual TIM3 is connected to APB1 clock which is 36MHz maximum.

How can TIM3 operate with 72MHz?

Thanks

Andy