2014-10-02 02:32 AM
Hi,
I'm wondering if following feature exists on the any of the cheaper STM32 ranges? (e.g. STM32 F0?)... For PWM, the duty cycle is CCRx, the value of which is compared to the counter/timer (CNT), which can be configured to toggle a pin etc. But is there any buffer for CCRx so that its value can be automatically updated at the end of each duty cycle? This is needed for perfect PWM. Failing some auto loading buffer as above, I'm sure this can be attempted with an interrupt. However, this means that there will be an min_duty_cycle > 0% or max_duty_cycle < 100%, as the interrupt would take X cycles to complete. Thanks #pwm2014-10-02 02:59 AM
Quote from F0 reference manual:
The TIMx_CCRx registers can be programmed with or without preload registers using the OCxPE bit in the TIMx_CCMRx register.It means yes, the feature exists in F0 series.