User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 552
UG585 (v1.11) September 27, 2016
Chapter 17: SPI Controller
2. Configure MIO pins 17 for MISO input. Write 0x0000_02A0 to each of the slcr.MIO_PIN_17
register.
a. Route SPI 0 MISO to pin 17.
b. Disable output. [TRI_ENABLE] = 1.
c. LVCMOS18: [IO_TYPE] = 001.
d. Slow CMOS drive edge.
e. Disable internal pull-up resistor.
f. Disable HSTL receiver.
3. Configure MIO pin 18, 19 and/or 20 for Slave Select outputs. Write 0x0000_32A0 to the
slcr.MIO_PIN_18, 19 and/or 20 registers. The internal pull-up is enabled.
a. Route SPI 0 slave selects signal(s) to pins 18, 19 and/or 20. Any and all of the slave selects can
be activated for master mode. In slave mode, SS 0 must be used.
b. 3-state controlled by SPI: [TRI_ENABLE] = 0.
c. LVCMOS18: [IO_TYPE] = 001.
d. Slow CMOS drive edge.
e. Enable internal pull-up resistor.
f. Disable HSTL receiver.
4. Configure MIO pins 21 for MOSI. Write 0x0000_22A0 to each of the slcr.MIO_PIN_21 register:
a. Route SPI 0 MOSI to pin 21.
b. 3-state controlled by SPI [TRI_ENABLE] = 0.
c. LVCMOS18: [IO_TYPE] = 001.
d. Slow CMOS drive edge.
e. Disable internal pull-up resistor.
f. Disable HSTL receiver.
17.5.4 Wiring Connections
The user can connect the each SPI controller to external SPI slaves or an SPI master via the MIO pins
or the EMIO interface to PL pins. Wiring examples:
Master Mode via MIO, Figure 17-7
•Master Mode via EMIO, Figure 17-8
Slave Mode via MIO, Figure 17-9
The I/O signals of the two SPI controllers in the PS can be connected together as described in section
17.2.7 SPI-to-SPI Connection.
IMPORTANT: In master mode, connect SS0 to V
CC
if SS0 is not used. This is important because the
controller snoops this signal in master mode to detect a multi-master mode situation; if SS0 is a logic
Low, then the controller assumes multi-master mode and waits for SS0 to de-assert before issuing a
transaction.