cancel
Showing results for 
Search instead for 
Did you mean: 

Timer in one pulse mode

MichelM38
Associate III

Hi

I have a trigger ( the pink trace) who triggers one delay of 200µs with the help of the timer 3 ( a channel toggles each event, the red trace) . A IT is also generated . Another channel of this timer 3 is used to trigger a one pulse mode pwm with a 100µs period and a duty cycle of 50%. This is the green trace. But I would like to have this result for each pulse of the trigger signal( pink trace) . And it' do not !!

 

TEK00007.PNG

How can I rearm this PWM?  The file is  attached

Thanks for your help !

10 REPLIES 10

Hi

here is the chronogramme

diag1.png

1  /  it's the trigger signal

2/   it's the Input capture IT call back function

3/  it's just a signal to help in debug. It's a outpure compare who toggles the output pin

4/  another signal used to delay the pwm and another signal which is not shown on this diagram

5/  the PWM signal in one pulse mode used to control an optical device . it's triggered by Tmr3/OC2REF.  This pulse can exceed the next edge of the trigger by 1µs

Thank for your help