EM78P468N/EM78P468L
8-Bit Microcontroller
Product Specification
(V1.5) 02.15.2007
•
41
(This specification is subject to change without further notice)
6.10
Infrared Remote Control Application/PWM Waveform Generate
This LSI can output infrared carrier in user-friendly or in PWM standard waveform. The IR
and PWM waveform generated functions include an 8-bit down count timer/counter,
high-pulse width timer, low-pulse width timer, and IR control register. The IR system block
diagram is shown in Fig. 6-20. The IROUT pin waveform is determined by IR control
register (RE), IOC90 (Counters 1 and 2 control register), IOCA0 (high-pulse width timer,
low-pulse width timer control register), IOCC0 (Counter 2 preset), IOCD0 (high-pulse width
timer preset register), and IOCE0 (low-pulse width timer preset register). Details on
Fcarrier, high-pulse time, and low pulse time are explained as follows
:
If Counter 2 clock source is F
T
(this clock source can be set by IOC91), then
prescaler
IOCC
value
preset
ounter
of
decimal
F
F
T
carrier
×
+
×
=
))
0
(
2
C
1
(
2
If the high-pulse width timer clock source is FT (this clock source can be set by IOCA1), then
T
time
pulse
high
F
IOCD
value
timer
width
pulse
high
of
decimal
prescaler
T
))
0
(
1
(
+
×
=
If the low-pulse width timer clock source is FT (this clock source can be set by IOCA1);
T
time
pulse
low
F
IOCE
value
timer
width
pulse
low
of
decimal
prescaler
T
))
0
(
1
(
+
×
=
H/W Modulator Circuit
Pre-s caler
(IOC91)
8 bit dow n c ounter
Fs
8 bit dow n counter
Pre-scaler
(IOC A 1)
8
A uto-reload buf f er
A uto-reload buf f er
8
8
8 bit dow n counter
8
A uto-reload buf f er
8
IROUT p in
Pre-s caler
(IOCA 1)
IRE
Fcarrier
Fm
LGP
High-Pulse Width Timer
(IOCD0)
Low -Puls e Width Timer
( IOCE0)
HF
Counter 2
(IOCC0)
8
RE register
8
8
Fm: main oscillator frequency
Fs:
sub-oscillator frequency
Fig. 6-20 IR/PWM System Block Diagram