cancel
Showing results for 
Search instead for 
Did you mean: 

TIMER 3 OUTPUT CHANNEL TRIGGER

yang hong
Associate II
Posted on May 01, 2018 at 20:18

Hello, 

 I am using NUCLEO-F429ZI. I want to use TIMER 3 for timing trigger. So I set channel 1 as output channel and ocmode is TIM_OCMODE_ACTIVE . The timing is perfect, but it looks like I only can generate a low pulse. I would like use rising edge to trigger some other digital output, but timer 3 interrupt can't be triggered. It seems I need another digital pin 'A' as the input of timer 3 output channel 1 and use 'A' to trigger interrupt event. Is it possible to void extra digital pin to trigger some event when timer channel set to TIM_OCMODE_ACTIVE.

Regards,

1 REPLY 1
Posted on May 01, 2018 at 21:31

Having a hard time deciphering this. Perhaps you can diagram the waveform you're getting, and the one you want, and where in the cycle the interrupt is expected.

You could perhaps use PWM1 or PWM2 modes, these generate pulses of different polarity. And will generate interrupts based on CNT == CCRx, you can also generate interrupts on pins/channels that aren't physically connected to anything.

Though also there was a TIM_OCPolarity_High/Low option

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..