GMS81508B HYNIX [Hynix Semiconductor], GMS81508B Datasheet - Page 55

no-image

GMS81508B

Manufacturer Part Number
GMS81508B
Description
HYUNDAI MICRO ELECTRONICS 8-BIT SINGLE-CHIP MICROCONTROLLERS
Manufacturer
HYNIX [Hynix Semiconductor]
Datasheet
GMS81508B/16B/24B
14. PWM OUTPUT
The GMS815xxB have two channels of built-in pulse
width modulation outputs. PWM outputs data are multi-
plex to the R56 and R57 port. Bit 6 and bit 7 of R5DD
should be set to “1” when PWM is used as an output port.
The pulse period according to input clock are shown as be-
low.
Bit 2 (EN0) and bit 3 (EN1) of PWMCR determine the op-
eration channel of PWM. When EN0=0 and EN1=0, PWM
does not execute
52
f
f
f
f
XIN
XIN
XIN
XIN
Input clock
256
512
1024
2048
f
f
f
f
f
f
f
f
XIN
XIN
XIN
XIN
XIN
XIN
XIN
XIN
256
512
1024
2048
256
512
1024
2048
P0CK[1:0]
P1CK[1:0]
00
01
10
11
00
01
10
11
MUX
MUX
Period of PWM
16.38 ms
32.77 ms
65.54 ms
8.19 ms
EN0
EN1
1
1
0
0
Figure 14-1 PWM block diagram
8-bit Counter
8-bit Counter
PWMR0
PWMR1
Comparator
[0F0
Comparator
[0F1
Overflow
Overflow
The input clock is selected by PWM Control Register
(PWMCR, address F2
mined by the PWM Register (PWMR, address F0
F1
It is a PWM output controlled by PWMCR, PWMR0 and
PWMR1.
H
H
H
]
]
).
S
R
S
R
F/F
F/F
Duty ratio
Q
Q
POL0
POL1
HYUNDAI MicroElectronics
H
) and the width of pulse is deter-
=
PWMR
--------------------------- -
256
DEC. 1999 Ver 1.04
+
1
PWM0
PWM1
100%
H
and

Related parts for GMS81508B