English
Language : 

W79E632A Datasheet, PDF (46/79 Pages) Winbond – 8-BIT MICROCONTROLLER
W79E632A/W79L632A
Fosc
PWM0 Register
PWM0 Buffer
1/2
PWMP
ENPWM0
overflow
8-bit Up Counter
PWM1 Register
PWM1 Buffer
ENPWM1
overflow
8-bit Up Counter
PWM2 Register
PWM2 Buffer
ENPWM2
overflow
8-bit Up Counter
PWM3 Register
PWM3 Buffer
ENPWM3
overflow
8-bit Up Counter
PWM4 Register
PWM4 Buffer
ENPWM4
overflow
8-bit Up Counter
PWM5 Register
PWM5 Buffer
ENPWM5
overflow
8-bit Up Counter
+
PWM0OE
PWM0
P1.0
-
+
PWM1OE
PWM1
P1.1
-
+
PWM2OE
PWM2
P1.2
-
+
PWM3OE
PWM3
P1.3
-
+
PWM4OE
PWM4
P1.4
-
+
PWM5OE
PWM5
P1.5
-
Please refer as below code.
mov pwmcon1, #00110011b
mov pwmcon2, #00000101b
mov pwmp, #40h
mov pwm0, #14h
mov pwm1, #18h
mov pwm2, #20h
mov pwm3, #b0h
mov pwm4, #40h
mov pwmcon1, #11111111b
FIGURE 1 PWM DIAGRAM
; enable pwm3, 2, 1, 0
; enable pwm4
; Fpwm = XT/(2*(1+pwmp)*255)
; duty cycle high/low = pwm0/(255-pmw0)
; output enable pwm3, 2, 1, 0
- 46 -