
CMT2380F17
Rev0.1 | 247/347
www.cmostek.com
20 Serial Peripheral Interface (SPI)
The CMT2380F17 provides a high-speed serial communication interface, the SPI interface. SPI is a
full-duplex,
high-speed and synchronous communication bus with two operation modes: Master mode and Slave
mode. Up to 24 Mbps can be supported in Master or 12MHz in Slave mode under a 48MHz system clock. It
has a Transfer Completion Flag (SPIF), Write Collision Flag (WCOL) and Mode Fault flag (MODF) in the SPI
status register (SPSTAT). And a specially designed Transmit Holding Register (THR) improves the transmit
performance compared to the conventional SPI and THRF flag indicates the THR is full or empty. SPIBSY
read-only flag reports the Busy state in SPI engine.
Figure 20-1. SPI Block Diagram
The SPI interface has four pins: MISO, MOSI, SPICLK and nSS:
SPICLK, MOSI and MISO are typically tied together between two or more SPI devices. Data flows
from master to slave on the MOSI pin (Master Out / Slave In) and flows from slave to master on the
MISO pin (Master In / Slave Out). The SPICLK signal is output in the master mode and is input in the
slave mode. If the SPI system is disabled, i.e., SPEN (SPCTL.6) = 0, these pins function as normal
I/O pins.
/SS is the optional slave select pin. In a typical configuration, an SPI master asserts one of its port
pins to select one SPI device as the current slave. An SPI slave device uses its nSS pin to
determine whether it is selected. The /SS is ignored if any of the following conditions are true:
If the SPI system is disabled, i.e. SPEN (SPCTL.6) = 0 (reset value).
If the SPI is configured as a master, i.e., MSTR (SPCTL.4) = 1, and nSS GPIO is configured as
an output.
If the /SS pin is ignored, i.e. SSIG (SPCTL.7) bit = 1, this pin is configured for port functions.
用
Note:
Содержание CMT2380F17
Страница 27: ...CMT2380F17 Rev0 1 27 347 www cmostek com 1 25 Phase Noise...
Страница 111: ...CMT2380F17 Rev0 1 111 347 www cmostek com INT2IS 1 0 Selected Port Pin of nINT2 00 P4 4 01 P3 0 10 P1 1 11 P1 6...
Страница 131: ...CMT2380F17 Rev0 1 131 347 www cmostek com Figure 16 1 Timer 0 Mode 0 Structure Figure15 2 Timer 1 Mode 0 Structure...
Страница 161: ...CMT2380F17 Rev0 1 161 347 www cmostek com Figure 16 32 Split Timer 3 Mode 1 Structure AR with Ex INT...
Страница 177: ...CMT2380F17 Rev0 1 177 347 www cmostek com Figure 17 3 PCA Interrupt System...
Страница 239: ...CMT2380F17 Rev0 1 239 347 www cmostek com Figure 19 5 8 bit Timer Mode Configuration for S1BRG S1TME 1...
Страница 246: ...CMT2380F17 Rev0 1 246 347 www cmostek com SnMIPS S0MI S1MI 1 P3 3 P4 7...
Страница 289: ...CMT2380F17 Rev0 1 289 347 www cmostek com...