PWM and ARPE
I was trying to figure out what datasheet says with the following sentence highlighted bold for STM32F303R8T6
The PWM mode can be selected independently on each channel (one PWM per OCx
output) by writing ‘0110’ (PWM mode 1) or ‘0111’ (PWM mode 2) in the OCxM bits in the
TIMx_CCMRx register. You must enable the corresponding preload register by setting the
OCxPE bit in the TIMx_CCMRx register, and eventually the auto-reload preload register (in upcounting or center-aligned modes) by setting the ARPE bit in the TIMx_CR1 register.
Do we have to set the ARPE bit for a basic PWM generation .. ? I experienced setting or clearing it in debug mode but I can't see the difference , It still generates the same PWM wave form .
In my application I will be working with a fixed PWM frequency with a variable duty cycle , and I don't know if I should set or reset the ARPE bit ..
I meant basic by Edge Aligned mode .. But I want to know what it changes with Center Aligned mode ..
