MSPM0G3507: Exception occurs when PWM duty cycle is set to 0

Part Number: MSPM0G3507
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Hi, I noticed a problem when I used Sysconfig to configure the PWM module. 

We have to configure "PWM Period Count", which determines the PWM frequency. Also, the "Counter Compare Value" of each channel is related to PWM channel duty. The Sysconfig tool can help us calculate the "Counter Compare Value" if we change the "Desired Duty Cycle (%)". If I set "Desired Duty Cycle (%)" to 0, Sysconfig will set "Counter Compare Value" to the same value as "PWM Period Count". However, the value set to the TIMx.LOAD register is "PWM Period Count" - 1, but the value of TIMx.CC is "Counter Compare Value". As a result, TIMx.LOAD is smaller than TIMx.CC, and this will result in a duty of 100% even if we set the duty to 0%.