2018-05-01 11:18 AM
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,
2018-05-01 12:31 PM
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