12
12-15
Serial I/O
12.2 Serial I/O Related Registers
32180 Group User's Manual (Rev.1.0)
12.2.3 SIO Transmit/Receive Mode Registers
SIO0 Transmit/Receive Mode Register (S0MOD) <Address: H'0080 0111>
SIO1 Transmit/Receive Mode Register (S1MOD) <Address: H'0080 0121>
SIO2 Transmit/Receive Mode Register (S2MOD) <Address: H'0080 0131>
SIO3 Transmit/Receive Mode Register (S3MOD) <Address: H'0080 0141>
SIO4 Transmit/Receive Mode Register (S4MOD) <Address: H'0080 0A11>
SIO5 Transmit/Receive Mode Register (S5MOD) <Address: H'0080 0A21>
9 1011121314b15b8
SMOD PEN SENPSELSTBCKS
00000000
<After reset: H’00>
b Bit Name Function R W
8–10 SMOD b8 b9 b10 R W
Serial I/O mode select bit 0 0 0 : 7-bit UART
(Note 1) 0 0 1 : 8-bit UART
0 1 X : 9-bit UART
1 X X : 8-bit clock-synchronous serial I/O
11 CKS 0: Internal clock R W
Internal/external clock select bit 1: External clock (Note 2)
12 STB 0: One stop bit R W
Stop bit length select bit, UART mode only 1: Two stop bits (Note 3)
13 PSEL 0: Odd parity R W
Odd/even parity select bit, UART mode only 1: Even parity (Note 3)
14 PEN 0: Disable parity R W
Parity enable bit, UART mode only 1: Enable parity (Note 3)
15 SEN 0: Disable sleep function R W
Sleep select bit, UART mode only 1: Enable sleep function (Note 3)
Note 1: For SIO2 and 3, bit 8 is fixed to "0" in hardware. This bit cannot be set to "1" in software (to select clock-synchronous serial I/O).
Note 2: Has no effect when UART mode selected.
Note 3: Bits 12–15 have no effect during clock-synchronous mode.
The SIO Mode Registers consist of bits to set the serial I/O operation mode, data format and the functions used
during communication.
The SIO Transmit/Receive Mode Registers must always be set before the serial I/O starts operating. To change
register settings before the serial I/O starts sending or receiving data, first confirm that transmit and receive
operations have finished and then disable transmit/receive operations (by clearing the SIO Transmit Control
Register transmit enable bit and SIO Receive Control Register receive enable bit to "0") before making changes.
(1) SMOD (Serial I/O Mode Select) bits (Bits 8–10)
These bits select the operation mode of serial I/O.
(2) CKS (Internal/External Clock Select) bit (Bit 11)
This bit is effective when CSIO mode is selected. Setting this bit has no effect when UART mode is selected,
in which case the serial I/O is clocked by the internal clock.
(3) STB (Stop Bit Length Select) bit (Bit 12)
This bit is effective during UART mode. Use this bit to select the stop bit length that indicates the end of data
to transmit. Setting this bit to "0" selects one stop bit, and setting this bit to "1" selects two stop bits.
During clock-synchronous mode, the content of this bit has no effect.