
BAT32G1x9 user manual | Chapter 19 Universal serial communication unit
616 / 1149
Rev.1.02
19.5.3
Sending and receiving of the master
The transmission and reception of the master refers to the operation of this product output transmission clock
and data transmission and reception with other devices.
3-wire serial
I/O
SSPI00
SSPI01
SSPI10
SSPI11
SSPI20
SSPI21
SSPI30
SSPI31
Object channels
SCI0
Channel 0
SCI0
Channel 1
SCI0
Channel 2
SCI0
Channel 3
SCI1
Channel 0
SCI1
Channel 1
SCI2
Channel 0
SCI2
Channel 1
The pins used
SCLK0
0.SDI0
0.SDO
0 0
SCLK01,
SDI01,
SDO01
SCLK10,
SDI10,
SDO10
SCLK1
1:Sdi1
1:SDO1 1
SCLK20,
SDI20,
SDO20
SCLK21,
SDI21,
SDO21
SCLK30,
SDI30,
SDO30
SCLK31,
SDI31,
SDO31
interrupt
INTSSPI00
INTSSPI01
INTSSPI10
INTSSPI11
INTSSPI20 INTSSPI21 INTSSPI30
INTSSPI31
You can choose between an end-of-transmit interrupt (single-pass mode) or a buffer-null interrupt
(continuous transfer mode).
Error detection
flags
There is only the overflow error detection flag (OVFmn).
The length of the
transferred data
SCI0:
7
or
8
bits
SCI1/SCI2: 7
~
16bit
Transfer Rate
Note
Max.
f
CLK
/2[Hz]
Mi
n.f
CLK
/(2
×
2
15
×
128)[Hz]
f
CLK
: System clock frequency
Data phase
It can be selected by the DAPmn bit of the SCRmn register.
•DAPmn=0: Starts data output when the serial clock starts running.
• DAPmn=1: Starts the data output half a clock before the serial clock starts running.
Clock phase
It can be selected by the C KPmn bit of the SCRm n register.
• CKPmn=0: Normal phase
• CKPmn=1: Inverted
Data direction
MSB takes precedence or LSB takes precedence
Note It must be used within the scope of peripheral functional characteristics that meet this condition and meet the electrical
characteristics (see data sheet).
Remark m: unit number (m=0
~
2) n: channel number (n=0
~
3) p: SSPI number (p=00, 01, 10, 11, 20, 21, 30, 31)
mn=00
~
03, 10
~
11, 20
~
21