EM78468
8-BIT Microcontroller
Fcarrier
high-pulse width
low-pulse width
Low-pulse width
low-pulse width
HF
start
IR disable
IRE
IROUT
Always high-level
Fig. 26 LGP=1, IROUT Pin Output Waveform
IR/PWM function enable flowchart
STRAT
STRAT
SET P5.7 to OUTPUT state (IOC 50)
SET P5.7 to OUTPUT state (IOC 50)
SET P5.7 for IR/PWM Function Output Pin (RE)
SET P5.7 for IR/PWM Function Output Pin (RE)
SET Counter 2 clock source and prescaler (IOC91)
SET High pulse width timer, Low pulse width timer
source clock and prescaler (IOCA1)
SET High pulse width timer, Low pulse width timer
source clock and prescaler (IOCA1)
High pulse width timer (IOD0), Low pulse width timer
(IOCE0)preset value
SET Counter 2 (IOC0), High pulse width timer
(IOD0), Low pulse width timer (IOCE0)preset value
Enable IR (RE)
HF="0", and IRE="1"
Enable IR (RE)
HF="1", and IRE="1"
Enable HPWT and LPWT Interrupt
Set IOCF0 and ENI instruction
Enable HPWT and LPWT Interrupt
Set IOCF0 and ENI instruction
Enable high pulse width timer and Low pulde width
timer (RC)
Enable counter 2, high pulse width timer and Low
pulde width timer (RC)
END
END
(a) IR application
(b) PWM application
Fig. 27 IR/PWM Function Enable Flowchart
Product Specification (V1.1) 04.11.2005
• 51
(This specification is subject to change without further notice)