cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G4 Can I use 'TRGO2' event signals from Advanced Timers (1,8,20) as event sources for Slave Timers?

AleksBak
Associate II

Hello!
Can I use 'TRGO2' event signals from Advanced Timers (1,8,20) as event sources for Slave Timers? The Reference Manual (RM0440 Rev 9, p. 381), the Internet, CubeMX and Google - all say "Yes", but in practice I could not use them for Slave Timers. I only found in one document that it is not allowed and now I do not understand whether it is true or not. Thank you.

2 REPLIES 2
waclawek.jan
Super User

Look at the slave timer's TIMx_SMCR description, there's a table which lists which timer can be used as master to that given slave timer.

[EDIT] OK so this is one of those new-fangled RMs, where this information is not there, where it used to be in older families' RM, but hidden at the beginning of TIM chapters and in the interconnect chapter (the page you've given is in that chapter, but you want to look at the table aptly named Interconnect 1).  So the answer is no, regardless of what the internets say. TRGO2 appears to be usable only to trigger ADC in 'G4.

Show how does CubeMX say this (I don't have/use it).

JW

TDK
Super User

The ITRx signals are hooked up to TRGO, not TRGO2, so it can't be used to trigger slave timers.

TDK_0-1757595225897.png

Search "TRGO2" in the reference manual and you'll see it's mostly used for triggering the ADCs.

 

If you feel a post has answered your question, please click "Accept as Solution".