NO:
W90P710 Programming Guide
VERSION:
2.0
PAGE:
220
The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed, distributed or reproduced without permission
from Winbond.
Table No.: 2005-W90P710-11-A
19.4.4
PWM Timer Stop Procedure
Three different methods could used to stop PWM timer, they’re listed below:
Method 1: Set 16-bit down counter(
CNRx
) as 0, and monitor PDR. When
PDRx
reaches to 0,
disable pwm timer (
PCR
). (Recommended)
Method 2: Set 16-bit down counter(
CNRx
) as 0. When interrupt request happen, disable
pwm timer (
PCR
). (Recommended)
Figure 19-4 PWM Timer Stop flow chart (method 1)
PWM
running
Set PWM counter
register be zero
(PWM_CNRx)
Wait for count
down data be zero
(PWM_PDRx)
PWM
stop
Disable PWM
timer (PWM_PCR)