EasyManua.ls Logo

Cmsemicon CMS32L051 - Slave Reception

Default Icon
703 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
V1.2.2
CMS32L051 User Manual |Chapter 13 Serial Interface SPI
www.mcu.com.cn 476 / 703
13.4.4 Slave reception
If bit CKS2-0 of the serial clock select register (SPIC) selects slave mode and bit 6 (TRMD) of the serial
operation mode register (SPIM) is 0, the slave receive mode is entered. When data is read from the receive
buffer register (SDRI), wait for the clock of the master device and start receiving.
1 Procedure
Figure 13-17 Initial setup steps of slave reception
The beginning of
the initial setting i
Set the PER0 register
Set the register
Set the SPIM register
Set the port
End of initial setting i
The general-purpose serial
unit is relieved of the reset
state and the clock supply
begins
Set the serial clock
Set the operating
mode
Set the port mode
register
End the initial setup
If you read data from the SDRI
registers, wait for the clock of
the master device.

Table of Contents

Related product manuals