R01UH0823EJ0100 Rev.1.00
Page 1108 of 1823
Jul 31, 2019
RX23W Group
34. IrDA Interface
34.2
Register Descriptions
34.2.1
IrDA Control Register (IRCR)
Note:
The IRCR register values are retained in module stop state, sleep mode, deep sleep mode, and software standby mode.
IRRXINV Bit (IrRX Data Polarity Switching)
This bit inverts the logic level of the IrRXD input.
When IRRXINV = 0, the IrRXD input is used as received data as is.
When IRRXINV = 1, the IrRXD input is used after the polarity is inverted.
Set this bit when the IRE bit is 0 or at the same time as setting the IRE bit to 1.
IRTXINV Bit (IrTX Data Polarity Switching)
This bit inverts the logic level of the IrTXD output.
When IRTXINV = 0, data is transmitted to IrTXD as is, and the high-level pulse width specified by IRCKS is applied.
When IRTXINV = 1, data is transmitted to IrTXD after the polarity is inverted, and the low-level pulse width specified
by IRCKS is applied.
Set this bit when the IRE bit is 0 or at the same time as setting the IRE bit to 1.
IRCKS[2:0] Bits (IrDA Output Pulse Width Select)
These bits set the high-level pulse width during IRTXD5 output encoding when the IrDA function is enabled.
Use the following procedure to set the IRCKS[2:0] bits.
(1) Set the IRCR register to specify the IrDA function (IRE bit = 1 (IrDA is enabled)).
(2) Set the IRCKS[2:0] bits to 000b.
(3) Set the SCI5.SCR.TE bit to 1 (transmission is enabled).
(4) Wait for a duration of 18/(16 × SCI5 bit rate).
(5) Set the IRCKS[2:0] bits to the target value.
Address(es): IRDA.IRCR 0008 8410h
b7
b6
b5
b4
b3
b2
b1
b0
IRE
IRCKS[2:0]
IRTXIN
V
IRRXIN
V
—
—
Value after reset:
0
0
0
0
0
0
0
0
Bit
Symbol
Bit Name
Description
R/W
b1, b0
—
Reserved
These bits are read as 0. The write value should be 0.
R/W
b2
IrRX Data Polarity
Switching
0: IRRXD5 input is used as received data as is.
1: IRRXD5 input is used as received data after the polarity is inverted.
R/W
b3
IrTX Data Polarity
Switching
0: Data to be transmitted is output to IRTXD5 as is.
1: Data to be transmitted is output to IRTXD5 after the polarity is inverted.
R/W
b6 to b4
IRCKS[2:0] IrDA Output Pulse
Width Select
b6 b4
0 0 0: B × 3/16 (B = bit period)
0 0 1: PCLK/2
0 1 0: PCLK/4
0 1 1: PCLK/8
1 0 0: PCLK/16
1 0 1: PCLK/32
1 1 0: PCLK/64
1 1 1: PCLK/128
R/W
b7
IrDA Enable
0: Serial I/O pins are used for normal serial communication.
1: Serial I/O pins are used for IrDA data communication.
R/W