CMS32L051 User Manual |Chapter 12 Universal Serial Communication Unit
www.mcu.com.cn 296 / 703
12.1 Function of universal serial communication unit
The characteristics of each serial interface supported by this product are as follows.
12.1.1 3-wire serial I/O (SSPI00, SSPI01, SSPI10, SSPI11, SSPI20, SSPI21)
Data is transmitted and received synchronously with the serial clock (SCLK) output by the master device.
This is a clock synchronous communication function that uses a serial clock (SCLK), a transmit serial data
(SDO), and a receive serial data (SDI) for communication on a total of three communication lines.
For specific setup examples, see 12.5 3-Wire Serial I/O (SSPI00, SSPI01, SSPI10, SSPI10, SSPI11,
SSPI20, SSPI21) communication operation.
[Transmit and receive data]
7-bit or 8-bit data length
Phase control of transmitting and receiving data
•
MSB/LSB preferred choice
[Clock control]
Master or slave selection
Phase control of input/output clocks
Sets the transfer period generated by the prescaler and the in-channel counter.
Maximum transfer rate
Note
Master communication: Max.f CLK/2 (SSPI00 only) Max.f
CLK
/4
Slave communication: Max.f
MCK
/6
[Interrupt function]
End of transfer interrupt, buffer null interrupt
[Error detection flag]
Overflow error
Note It must be used within the range that satisfies the SCLK cycle time (t
KCY
) characteristic. Please refer to the data
sheet for details.