Skip to main content
Mario Luzeiro
Associate III
April 9, 2022
Solved

Cannot set full PWM

If I set the Counter Period (AutoReload Register) to max 0xFFFF and the TIM capture/compare register to 0xFFFF too, I cannot get a full width output, I still get one tick on output.

Is that expected?

This topic has been closed for replies.
waclawek.jan
waclawek.janBest answer
Super User
April 9, 2022

Yes. To achieve "full width", you have to set CCRx > ARR. Try with ARR=0xFFFE.

JW

1 reply

waclawek.jan
waclawek.janBest answer
Super User
April 9, 2022

Yes. To achieve "full width", you have to set CCRx > ARR. Try with ARR=0xFFFE.

JW