English
Language : 

W79E225A_08 Datasheet, PDF (119/203 Pages) Winbond – 8-bit Microcontroller
Preliminary W79E225A/226A/227A Data Sheet
Set PMOD[1:0] = 00
Start : Load = 1
PWMRUN = 1, CLRPWM = 1
Load PWMn and PWMP to working registers
“Load” auto clear by hardware (h/w)
No
PWMn output : Non Inverted
1 if counter < PWMn
0 if counter > PWMn
PWMnI = 1?
(output inverted?)
Counter counting up
Counter = PWMn?
Yes
PWMn output : Inverted
0 if counter < PWMn
1 if counter > PWMn
No
PWMn output toggle
Counter continues counting up
Counter = PWMP?
No
PWMn output toggle
Reset counter to zero (h/w)
PWMF flag set
No
Load = 1?
Yes
Load new PWMP/PWMn value
to working register
Figure 14-17: Edge-Aligned Flow Diagram
- 119 -
Publication Release Date: April 15, 2008
Revision A4.0