cancel
Showing results for 
Search instead for 
Did you mean: 

TIM master trigger question, what is the difference between TRGO = Compare Pulse OC1 and OC1REF?

DKuro.1
Associate III

Hi,

I am synchronizing two timers, actually already succeed but I was stuck two days because the trigger output event TRGO of TIM1 was connected to OC4REF (and CCR4 was accordingly set).

With this configuration I didn't receive a pulse in the slave trigger input, but when I select TRGO = OC1 and I set my value in CCR1 it worked.

I also tried with OC1REF, OC2REF and on.

My question is, what is the difference between TRGO in compare pulse (OC1) and in OCxREF?

I am using STM32G474RE

Thanks!!

Daniel

10 REPLIES 10

Wow, it worked!!

I see the waves and they are just like when I used CP1 and now OC4REF is selected.

So that's was the issue. So happy!! Thanks Berendi!!