Irda Interface; Receive Errors; Framing Error - Epson S1C17W12 Technical Manual

Cmos 16-bit single chip microcontroller
Table of Contents

Advertisement

12.5.4 IrDA Interface

This UART2 includes an RZI modulator/demodulator circuit enabling implementation of IrDA 1.0-compatible in-
frared communication function simply by adding simple external circuits.
Set the UAnMOD.IRMD bit to 1 to use the IrDA interface.
Data transfer control is identical to that for normal interface even if the IrDA interface function is enabled.
S1C17 UART2
Figure 12.5.4.1 Example of Connections with an Infrared Communication Module
The transmit data output from the UART2 Ch.n transmit shift register is output from the USOUTn pin after the low
pulse width is converted into 3/16 by the RZI modulator in SIR method.
Modulator input (shift register output)
Modulator output (USOUTn)
The received IrDA signal is input to the RZI demodulator and the low pulse width is converted into the normal
width before input to the receive shift register.
Demodulator input (USINn)
Demodulator output (shift register input)
Notes: • Set the baud rate division ratio to 1/16 when using the IrDA interface function.
• The low pulse width (T

12.6 Receive Errors

Three different receive errors, framing error, parity error, and overrun error, may be detected while receiving data.
Since receive errors are interrupt causes, they can be processed by generating interrupts.

12.6.1 Framing Error

The UART2 determines loss of sync if a stop bit is not detected (when the stop bit is received as 0) and assumes
that a framing error has occurred. The received data that encountered an error is still transferred to the receive data
buffer and the UAnINTF.FEIF bit (framing error interrupt flag) is set to 1 when the data becomes ready to read
from the UAnRXD register.
S1C17W12/W13 TECHNICAL MANUAL
(Rev. 1.2)
RXD
USINn
VCC
V
DD
GND
V
SS
TXD
USOUTn
LEDA
T
Figure 12.5.4.2 IrDA Transmission Signal Waveform
T
2
Figure 12.5.4.3 IrDA Receive Signal Waveform
) of the IrDA signal input must be CLK_UART2 × 3 cycles or longer.
2
Seiko Epson Corporation
VCC
AMP
GND
Infrared communication module
1
3
T
1
16
12 UART (UART2)
3
T
1
16
12-7

Advertisement

Table of Contents
loading

This manual is also suitable for:

S1c17w13

Table of Contents