18 uaRT
S1C17624/604/622/602/621 TeChniCal Manual
Seiko epson Corporation
18-7
If other interrupt conditions are satisfied, an interrupt occurs. You can inspect the PER, FER, and OER flags in
the UART interrupt handler routine to determine whether the UART interrupt was caused by a receive error. If
any of the error flags has the value 1, the interrupt handler routine will proceed with error recovery.
For more information on interrupt processing, see the “Interrupt Controller (ITC)” chapter.
irDa interface
18.8
This UART module includes an RZI modulator/demodulator circuit enabling implementation of IrDA 1.0-compatible
infrared communication function simply by adding basic external circuits.
The transmit data output from the UART transmit shift register is input to the modulator circuit and output from the
SOUT
x
pin after the Low pulse has been modulated to a 3
×
sclk16 cycle.
sclk16
Modulator input (shift register output)
Modulator output (SOUT
x
)
1 2 3
8 9 10 11
16
3
×
sclk16
Modulator input (shift register output)
Modulator output (SOUT
x
)
S1
D0
D1
D2
D3
D4
D5
D6
D7
P
S2
S3
(S1: Start bit, S2 & S3: Stop bits, P: Parity bit)
8.1 Transmission Signal Waveform
Figure 18.
The received IrDA signal is input to the demodulator circuit and the Low pulse width is converted to 16
×
sclk16
cycles before entry to the receive shift register. The demodulator circuit uses the pulse detection clock selected
separately from the transfer clock to detect Low pulses input (when minimum pulse width = 1.41 µs/115,200 bps).
(S1: Start bit, S2 & S3: Stop bits, P: Parity bit)
sclk16
irclk
Demodulator input (SIN
x
)
Demodulator output (shift register input)
1 2 3 4
16
16
×
sclk16
2
×
irclk or more
Demodulator input (SIN
x
)
Demodulator output (shift register input)
S1
D0
D1
D2
D3
D4
D5
D6
D7
P
S2
S3
8.2 Receive Signal Waveform
Figure 18.
irDa enable
To use the IrDA interface function, set IRMD/UART_EXP
x
register to 1. This enables the RZI modulator/de-
modulator circuit.
note: This setting must be performed before setting other UART conditions.
irDa receive detection clock selection
The input pulse detection clock is generated by dividing PCLK. The division ratio can be selected using IR-
CLK[2:0]/UART_EXP
x
register.