Datasheet

Section 8 I/O Ports
Rev. 6.00 Aug 04, 2006 page 254 of 680
REJ09B0145-0600
1. Serial Port Control Register (SPCR)
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
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.
Bits 7 and 6: Reserved bits
Bits 7 and 6 are reserved; they are always read as 1 and cannot be modified.
Bit 5: P4
2
/TXD
32
pin function switch (SPC32)
This bit selects whether pin P4
2
/TXD
32
is used as P4
2
or as TXD
32
.
Bit 5
SPC32 Description
0 Functions as P4
2
I/O pin (initial value)
1 Functions as TXD
32
output pin*
Note: * Set the TE bit in SCR3 after setting this bit to 1.
Bit 4: P3
5/
TXD
31
pin function switch (SPC31)
This bit selects whether pin P3
5
/TXD
31
is used as P3
5
or as TXD
31
.
Bit 4
SPC31 Description
0 Functions as P3
5
I/O pin (initial value)
1 Functions as TXD
31
output pin*
Note: * Set the TE bit in SCR3 after setting this bit to 1.