278
10. 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.
Bit 3: TXD
32
pin output data inversion switch
Bit 3 specifies whether or not TXD
32
pin output data is to be inverted.
Bit 3
SCINV3
Description
0
TXD
32
output data is not inverted
(initial value)
1
TXD
32
output data is inverted
Содержание H8/3935
Страница 1: ......
Страница 2: ......
Страница 4: ......
Страница 24: ...12 ...
Страница 53: ...41 Notation op Operation field 15 0 8 7 op op Figure 2 10 Block Data Transfer Instruction Code ...
Страница 96: ...84 ...
Страница 142: ...130 ...
Страница 144: ...132 ...
Страница 252: ...240 ...
Страница 326: ...314 ...
Страница 340: ...328 ...
Страница 520: ...508 ...