cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot combine TIM15/16/17, STM32F030R8

wangkang
Associate
Posted on March 14, 2016 at 06:15

Hi, 

I found an error in RM0360  about TIM15/16/17. 

It says TIM15 is able to act as a slave timer and triggerred by TIM16 or TIM17 (On page 403, slave timer is TIM15, when chosse ITR2, TIM16 acts as external trigger). But according to ''TIM16 and TIM17 block diagram'' on page 374, TIM16/17 have no TRGO signal. Also, I cannot find the master mode bits when check the registers of TIM16/17.

So, I think there may be something wrong about these 3 timers. TIM15 cannot be triggered by TIM16/17, right? But when I check the homepage of STM32F030x8, I cannot find any docs about this issue. I really confused about this problem, because I need a 32-bit timer but TIM1/3 have been occupied. 

I would like to konw that whether TIM15 and TIm16 can be connected together. And how to connect them.

Thank you.

#stm32f030r8
2 REPLIES 2
Amel NASRI
ST Employee
Posted on March 14, 2016 at 12:27

Hi kang.wang,

There is no trigger output for TIM16 and TIM17. That is why their regular output compare (TIM16 OC and TIM17 OC) are used as internal triggers for TIM15.

In fact, TIM15 trigger input is directly connected to TIM16 and TIM17 outputs.

Then, in slave side (TIM15 in your case), you have to select the relevant ITR.

-Mayla-

PS: based on the pages numbers you provided, I think that you are not using last revision of the document (

http://www.st.com/st-web-ui/static/active/en/resource/technical/document/reference_manual/DM00091010.pdf

).

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

wangkang
Associate
Posted on March 15, 2016 at 11:58

Hi, Mayla

Thanks. I have downloaded the newest RM0360.pdf.  

I think these following step maybe necessary:

1. Select TIM15 trigger source ITR2;

2. Config TIM16 TH1 OC mode;

3. Enable OC output, but not connect the pin.

Right?

Thank you.

Wang Kang.