Datasheet

Table Of Contents
Section 9 I/O Ports
Rev. 2.00 Jul. 04, 2007 Page 206 of 692
REJ09B0309-0200
9.14 Input/Output Data Inversion
9.14.1 Serial Port Control Register,
Serial Port Control Register 2 (SPCR, SPCR2)
SPCR switches input/output data inversion of the RXD (IrRXD) and TXD (IrTXD) pins.
Figure 9.14 shows a input/output data inversion function.
SCINV0
SCINV2
SCINV4
PE1/RXD33
P31/RXD32
(PE4/RXD32)
P41/RXD31/IrRXD
(PF2/RXD31/IrRXD)
PE2/TXD33
P32/TXD32
(PE5/TXD32)
P42/TXD31/IrTXD
(PF3/TXD31/IrTXD)
RXD33
RXD32
RXD31/IrRXD
TXD33
TXD32
TXD31/IrTXD
SCINV1
SCINV3
SCINV5
Figure 9.14 Input/Output Data Inversion Function
SPCR
Bit Bit Name
Initial
Value
R/W Description
7
6
1
1
Reserved
These bits are always read as 1 and cannot be
modified.
5 SPC32 0 R/W P32/TXD32/SCL (PE5/TXD32) Pin Function Switch
Selects whether pin P32/TXD32/SCL (PE5/TXD32) is
used as P32/SCL (PE5) or as TXD32.
0: P32/ SCL (PE5) I/O pin
1: TXD32 output pin*
Note: Set the TE bit in SCR3_2 after having set this
bit to 1.