Hard Processor System Technical Reference Manual: Agilex™ 5 SoCs

ID 814346
Date 7/19/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.3.1. SPI Master Bit-Rate Clock

The maximum frequency of the SPI master bit-rate clock (sclk_out) is one-half the frequency of SPI master clock (l4_main_clk). This allows the shift control logic to capture data on one clock edge of sclk_out and propagate data on the opposite edge. The sclk_out line toggles only when an active transfer is in progress. At all other times it is held in an inactive state, as defined by the serial protocol under which it operates.

Figure 226. Maximum sclk_out/l4_main_clk Ratio

The frequency of sclk_out can be derived from the equation below, where <SPI clock> is l4_main_clk for both master and slave modules.

Equation 1: Frequency of sclk_out:

SCKDV is a bit field in the register BAUDR, holding any even value in the range 2 to 65,534. If SCKDV is 0, then sclk_out is disabled.

The following equation describes the frequency ratio restrictions between the bit-rate clock sclk_out and the SPI master peripheral clock. The SPI master peripheral clock must be at least double the offchip master clock.

Equation 2: SPI Master Peripheral Clock:

Fl4_main_clk >= 2 x (maximum Fsclk_out)