17. Serial Peripheral Interface (SPI)

CY7C601xx, CY7C602xx

17. Serial Peripheral Interface (SPI)

The SPI Master and Slave Interface core logic runs on the SPI clock domain. The SPI clock is a divider off of the CPUCLK when in Master Mode. SPI is a four pin serial interface comprised of a clock, an enable, and two data pins.

 

Figure 17-1. SPI Block Diagram

 

Register Block

 

 

SCK Speed Sel

SCK Clock Generation

 

Master/Slave Sel

SCK Clock Select

SCK_OE

 

 

SCK Polarity

SCK Clock Phase/Polarity

SCK

SCK Phase

Select

 

 

 

LE_SEL

 

SCK

 

 

 

 

 

 

 

Little Endian Sel

 

 

 

 

GPIO Block

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SS_N

 

 

 

 

 

SS_N

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SPI State Machine

 

 

 

 

 

 

 

 

SS_N_OE

 

 

 

 

 

 

 

 

 

 

SS_N

 

 

 

 

Data (8 bit)

 

 

 

MISO_OE

Load

 

Output Shift Buffer

 

 

 

 

Empty

 

 

 

 

 

 

Master/Slave Set

MISO/MOSI

MISO

 

 

 

Crossbar

 

 

 

 

 

SCK

 

 

 

 

LE_SEL

Shift Buffer

 

MOSI_OE

 

 

 

 

 

 

 

 

 

 

 

MOSI

Data (8 bit)

 

 

 

 

Load

 

Input Shift Buffer

 

 

Full

 

 

 

 

Sclk Output Enable

SCK_OE

SS_N_OE

Slave Select Output Enable

MISO_OE

Master IN, Slave Out OE

MOSI_OE

Master Out, Slave In, OE

 

Document 38-16016 Rev. *E

Page 44 of 68

[+] Feedback

Page 44
Image 44
Cypress manual Serial Peripheral Interface SPI, 1. SPI Block Diagram, CY7C601xx, CY7C602xx