BAT32G1x9 user manual | Chapter 19 Universal serial communication unit
566 / 1149
Rev.1.02
19.2 The structure of a universal serial communication unit
The Universal Serial Communication Unit consists of the following hardware.
Table 19-1
Structure of the Universal Serial Communication Unit
project
structure
Shift register
SCI0: 8
digits or
9
bits
note
1
SCI1/SCI2: 16 bits
Buffer registers
SCI0: Low 8
bits of
serial data register
mn
(SDRmn)
or
9
bits
note
1,
2
SCI1/SCI2: Serial data register
mn
(SDRmn)
Note 3
Serial clock input/output
SCLK00, SCLK01, SCLK10, SCLK11, SCLK20, SCLK21, SCLK30, SCLK31 pin (for 3-wire
serial I/O) , SCL00, SCL01
,
SCL10, SCL11, SCL20, SCL21, SCL30, SCL31 pin (for
simple I
2
C)
Serial data input
SDI00, SDI01, SDI10, SDI11, SDI20, SDI21, SDI30, SDI31 pin (for
3-wire serial I/O),
RxD0,
RxD1,
RxD2,
RxD3
pins (for
UART).
Serial data output
SDO00, SDO01, SDO10, SDO11, SDO20, SDO21, SDO3
0,
SDO31
pin (for
3-wire serial
I/O),
TxD0, TxD1,
TxD2,
TxD3
pins (for
UART).
Serial data input/output
SDA00, SDA01, SDA10, SDA11, SDA20, SDA21, SDA30, SDA31 pin (for simple I
2
C)
Slave selection inputs
SS00 pin for slave selection input function
Control registers
< Module configuration Register >
• Peripheral enable register
0/2
(PER0/2).
• Serial clock selection register
m
(SPSm).
• Serial channel enable status register
m(SEm).
• Serial channel start register
m(SSm).
• Serial channel stop register
m(STm).
• Serial output enable register
m
(SOEm).
• Serial output register
m(SOm).
• Serial output level register
m(SOLm).
•Input Switch Control Register (ISC).
• Noise filter enable register
0
(NFEN0).
<register for each channel section >
• Serial data register
mn
(SDRmn).
• Serial mode register
mn
(SMRmn).
• Serial communication runs set register
mn
(SCRmn).
• Serial status register
mn
(SSRmn).
• Serial flag clears the trigger register
mn
(SIRmn).
•Port multiplexing function configuration register (PxxcFG).
•Port Output Mode Register (POMxx).
•Port mode register (PMxx).
•Port register (Pxx).
Note 1
The
number of bits used as shift registers and buffer registers varies depending on the cell and channel.
• mn=00, 01: 9 bits lower
• mn= 02, 03: 8 bits lower
2. Depending on the communication mode, the low 8 bits of the serial data register mn (SDRmn) can be read and
written with the following SFR name.
• SSPIp communication... SIOp (SSPIp Data Register).
• UARTq receives... RXDq (UARTq Receive Data Register).
• UARTq sends... TXDq (UARTq Transmit Data Register).
• IICr communication... SIOr (IICr Data Register).
3. During the action of SEmn=1.
Remark
m: unit number (m=0, 1, 2) n: channel number (n=0
~
3) p: SSPI number (p=00, 01, 10, 11, 20, 21, 30,
31)
q: UART number (q=0
~
3) r: IIC number (r=00, 01, 10, 11, 20, 21, 30, 31)