Hard Processor System Technical Reference Manual: Agilex™ 5 SoCs

ID 814346
Date 4/01/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

5.10.6.2. Overview

For the SPI controller to connect to a serial-master or serial-slave peripheral device, the peripheral must have a least one of the following interfaces:

  • Motorola SPI protocol – A four-wire, full-duplex serial protocol from Motorola. The slave select line is held high when the SPI controller is idle or disabled. For more information, refer to the Motorola SPI Protocol section.
  • Texas Instruments Synchronous Serial Protocol (SSP) – A four-wire, full-duplex serial protocol. The slave select line used for SPI and Microwire protocols doubles as the frame indicator for the SSP protocol. For more information, refer to Texas Instruments Synchronous Serial Protocol (SSP) section.
  • National Semiconductor Microwire – A half-duplex serial protocol, which uses a control word transmitted from the serial master to the target serial slave. For more information, refer to the National Semiconductor Microwire Protocol section. You can program the FRF (frame format) bit field in the Control Register 0 (CTRLR0) to select which protocol is used.

The serial protocols supported by the SPI controller allow for serial slaves to be selected or addressed using hardware. Serial slaves are selected under the control of dedicated hardware select lines. The number of select lines generated from the serial master is equal to the number of serial slaves present on the bus. The serial-master device asserts the select line of the target serial slave before data transfer begins. This architecture is illustrated in part A of the "Hardware/Software Slave Selection" figure.

When implemented in software, the input select line for all serial slave devices should originate from a single slave select output on the serial master. In this mode it is assumed that the serial master has only a single slave select output.

The main program in the software domain controls selection of the target slave device; this architecture is shown in part B of the "Hardware/Software Slave Selection" figure. Software controls which slave is to respond to the serial transfer request from the master device.

Figure 224. Hardware/Software Slave Selection