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