User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 535
UG585 (v1.11) September 27, 2016
Chapter 17: SPI Controller
17.1.3 Block Diagram
A functional block diagram of the SPI controller is shown in Figure 17-2.
APB Slave Interface
The 32-bit APB slave interface responds to register reads and writes, including data ports for reading
and writing commands and data from and to the FIFOs. All registers transactions are 32 bits. The data
ports use bits [7:0] of these ports. The configuration and status registers are listed in Appendix B,
Register Details.
SPI Master Mode
When the controller operates in master mode, it drives the SCLK clock and up to 3 slave select output
signals.The SS and start of transmission on MOSI can be manually controlled by software or
automatically controlled by the hardware.
SPI Slave Mode
When the controller operates in slave mode, it uses a single slave select input (SS 0). The SPI signals
are shown in Figure 17-2 and listed in section 17.5 I/O Interfaces. The SCLK is synchronized to the
controller reference clock (SPI_Ref_Clk). Refer to section 17.2.3 Slave Mode.
X-Ref Target - Figure 17-2
Figure 17-2: SPI Peripheral Block Diagram
APB
APB
Interface
SPI CTRL
TxFIFO
RxFIFO
Transmit
Receive
SPI
Master
MO
SO
SS[2:0]
SCLK
SCLK
SS
SCLK
SS
SI
SPI Interface
Pins
UG585_c17_02_072512
MOSI
MISO
MI
SPI
Slave
Slave
Sync
Interrupts
Interrupts