EasyManua.ls Logo

Cmsemicon CMS32L051 - 13.4 Operation of SPI

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 466 / 703
13.4 Operation of SPI
In 3-wire serial I/O mode, data is sent or received in 8- or 16-bit units. The data bit is transmitted or
received in synchronously with the serial clock.
After communication begins, bit 0 (SPTF) of SPIM is set to 1. When the communication of the data is
complete, set the Communication Completion Interrupt Request Flag (SPIIF) and clear the SPTF to 0. Then
enable the next communication.
Precautions
1. When SPTF=1 (during serial communication), access to control registers and data registers is
prohibited.
2. It must be used within the scope of the SCLK Cycle Time (t
KCY
) characteristics. Please refer to the data
sheet for details.

Table of Contents

Related product manuals