![](http://datasheet.mmic.net.cn/30000/M32176F3TFP_datasheet_2359466/M32176F3TFP_400.png)
12
12-2
Serial I/O
32176 Group User’s Manual (Rev.1.01)
12.1 Outline of Serial I/O
The 32176 contains a total of four serial I/O channels, SIO0–SIO3. Channels SIO0 and SIO1 can be selected
between CSIO mode (clock-synchronous serial I/O) and UART mode (clock-asynchronous serial I/O). Channels
SIO2 and SIO3 are UART mode only.
CSIO mode (clock-synchronous serial I/O)
Communication is performed synchronously with a transfer clock, using the same clock on both transmit and
receive sides. The transfer data is 8 bits long (fixed).
UART mode (clock-asynchronous serial I/O)
Communication is performed at any transfer rate in any transfer data format. The transfer data length can be
selected from 7, 8 and 9 bits.
Channels SIO0–SIO3 each have a transmit DMA transfer and a receive DMA transfer request. These serial
I/Os, when combined with the internal DMA Controller (DMAC), allow serial communication to be performed
at high speed, as well as reduce the data communication load of the CPU.
Serial I/O is outlined below.
Table 12.1.1 Outline of Serial I/O
Item
Description
Number of channels
CSIO mode/UART mode : 2 channels (SIO0, SIO1)
UART only
: 2 channels (SIO2, SIO3)
Clock
During CSIO mode : Internal clock or external clock as selected (Note 1), clock polarity
can be selected
During UART mode : Internal clock only
Transfer mode
Transmit half-duplex, receive half-duplex, transmit/receive full-duplex
BRG count source
f(BCLK), f(BCLK)/8, f(BCLK)/32, f(BLCK)/256 (Note 2)
(when internal clock selected)
f(BCLK): Peripheral clock operating frequency
Data format
CSIO mode : Data length = 8 bits (fixed)
Order of transfer = LSB first (fixed)
UART mode : Start bit = 1 bit
Character length = 7, 8 or 9 bits
Parity bit = Added (odd, even) or not added
Stop bit = 1 or 2 bits
Order of transfer = LSB first (fixed)
Baud rate
CSIO mode : 152 bits/sec to 2 Mbits/sec (when f(BCLK) = 20 MHz)
UART mode : 19 bits/sec to 1.25 Mbits/sec (when f(BCLK) = 20 MHz)
Error detection
CSIO mode : Overrun error only
UART mode : Overrun, parity and framing errors
(Occurrence of any of these errors is indicated by an error sum bit)
Fixed period clock output function
When using SIO0 and SIO1 as UART, this function outputs a divided-by-2 BRG clock
from the SCLK pin.
Note 1: The maximum input frequency of an external clock during CSIO mode is f(BCLK)/16.
Note 2: If f(BCLK) is selected as the count source, the BRG set value is subject to limitations.
12.1 Outline of Serial I/O