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?
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?
Yes. To achieve "full width", you have to set CCRx > ARR. Try with ARR=0xFFFE.
JW
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.