8.11 Input/Output Data Inversion Function
8.11.1 Overview
With input pins
WKP
0
to
WKP
7
, RXD
31
, and RXD
32
, and output pins TXD
31
and TXD
32
, the data
can be handled in inverted form.
Figure 8.10 Input/Output Data Inversion Function
8.11.2 Register Configuration and Descriptions
Table 8.27 shows the registers used by the input/output data inversion function.
Table 8.27 Register Configuration
Name
Abbreviation
R/W
Address
Serial port control register
SPCR
R/W
H'FF91
Serial Port Control Register (SPCR)
SPCR is an 8-bit readable/writable register that performs RXD
31
, RXD
32
, TXD
31
, and TXD
32
pin
input/output data inversion switching. SPCR is initialized to H'C0 by a reset.
Bit
Initial value
Read/Write
7
—
1
—
6
—
1
—
5
SPC32
0
R/W
4
SPC31
0
R/W
3
SCINV3
0
R/W
0
SCINV0
0
R/W
2
SCINV2
0
R/W
1
SCINV1
0
R/W
SCINV0
SCINV2
RXD
31
RXD
32
P3
4
/RXD
31
P4
1
/RXD
32
SCINV1
SCINV3
TXD
31
TXD
32
P3
5
/TXD
31
P4
2
/TXD
32
170