Tool/software:
Hello,
I am trying to get the timer working in one shot mode in combination with compare mode. Here is the register configuration of Timer6:
What I would expect to happen is that the timer output pin will get set high at the compare value and set low again at overflow (or stay high) and then the timer should stop.
What is happening instead is that the output is set high for exactly two clock cycles and then back to low and then the timer stops (ST bit is 0).
If I set the the PT bit to 0 I get a high at the output for exactly one clock cycle.
Why is the compare mode not working?
Why is the output in one shot mode (AR bit is 0) high for two clock cycles independent of basically any of the registers.
If I set the reload register and enable autor-reload (AR = 1) the PWM generation is working as expected.
What am I doing wrong in one shot mode?
Thank you!
Greetings
Stefan