w78l365a Winbond Electronics Corp America, w78l365a Datasheet - Page 15

no-image

w78l365a

Manufacturer Part Number
w78l365a
Description
8-bit Microcontroller
Manufacturer
Winbond Electronics Corp America
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
w78l365a24DL
Manufacturer:
WINBOND/华邦
Quantity:
20 000
Part Number:
w78l365a24FL
Manufacturer:
Nuvoton Technology Corporation of America
Quantity:
10 000
Part Number:
w78l365a24PL
Manufacturer:
Nuvoton Technology Corporation of America
Quantity:
10 000
Part Number:
w78l365a24PL
Manufacturer:
WINBOND/华邦
Quantity:
20 000
This gives a repetition frequency range of 123 Hz to 31.4 KHz (
registers with either 00H or FFH, the PWM channels will output a constant HIGH or LOW level,
respectively. Since the 8-bit counter counts modulo 255, it can never actually reach the value of the
PWM registers when they are loaded with FFH.
When a compare register (PWM0, PWM1, PWM2, PWM3, PWM4) is loaded with a new value, the
associated output updated immediately. It does not have to wait until the end of the current counter
period. There is weakly pulled high on PWM output.
Please refer as below code.
mov pwmcon1, #00110011b
mov pwmcon2, #00000101b
mov pwmp, #40h
jb
mov pwm0, #14h
jb
mov pwm1, #18h
f
osc
p1.3, $
p1.4, $
ENPWM0/1/2/3/4
1/2
Prescaler
PWMP
; enable pwm3, 2, 1, 0
; enable pwm4
; Fpwm = XT/(2*(1+pwmp)*255)
; duty cycle high/low = pwm0/(255-pmw0)
FIGURE 1 PWM DIAGRAM
8bit counter
8bit counter
8bit counter
PWM1
PWM0
PWM4
PWM2
PWM3
- 15 -
comparator
comparator
comparator
comparator
comparator
W78LE365/W78L365A
Publication Release Date: April 28, 2008
f
osc
= 16 MHz). By loading the PWM
PWM0OE
PWM2OE
PWM1OE
PWM4OE
PWM3OE
(P1.4)
PWM1
PWM4
(P1.7)
(P1.3)
PWM0
PWM3
(P1.6)
(P1.5)
PWM2
Revision A8

Related parts for w78l365a