PWM output may generate a continuous high instead of a low or a continuous low
instead of high
Description
When using PWM in UP-DOWN count mode,
the PWM generator may generate a continuous High instead of Low or continuous Low
instead of High under the following condition:
- The PWM generator is used with action for comparator A or B UP
and DOWN to control the PWM cycle.
- The PWM comparator A or B is changed from a count of 2 or more
to PWM Load Count value.
- A continuous High is generated if the invert option is
enabled.
- A continuous Low is generated if the invert option is
disabled.
Workaround
- Use DOWN count mode of PWM
- When changing from any value (other than 1) to the PWM load
count value in the Comparator Load Register, always go to value of 1 before
going to the PWM load count value.