Wiki

This version is outdated by a newer approved version.DiffThis version (08 Nov 2016 10:20) was approved by Lucian Sin.The Previously approved version (26 May 2015 19:01) is available.Diff

This is an old revision of the document!


Sigma-Delta SPI Util FPGA Peripheral

ADCs from the Analog Devices Sigma-Delta converter family use a low-level communication protocol that multiplexes the SPI bus MISO signal and the data ready interrupt signal over the same physical wire (DOUT/RDY). The Sigma-Delta SPI Util peripheral can be used to de-multiplex these signals inside a FPGA.

Files

File Description
util_sigma_delta_spi.v Verilog source for the peripheral
util_sigma_delta_spi_ip.tcl TCL script to generate the Vivado IP-integrator project for the peripheral

Configuration Parameters

Name Description Default
IDLE_TIMEOUT Number of clock cycles after SPI bus activity before data ready is detected. 63
CS_PIN Chip-select pin used for the Sigma-Delta converter. 0
NUM_CS Number of total chip-select pins on the SPI bus. 2

Signal and Interface Pins

Signal Type Description
clk Clock All other signals are synchronous to this clock.
resetn Synchronous active low reset Resets the internal state machine of the core.
spi_active Input Indicates whether a SPI transaction is active on the SPI bus. (Active high).
data_ready Output Indicates when a data ready condition is detected. (Active high).
s_spi SPI bus interface slave SPI bus interface connected to the upstream SPI controller.
m_spi SPI bus interface master SPI bus interface connected to the downstream SPI bus.

Theory of Operation

The Sigma-Delta Util Peripheral monitors the SPI bus that is connected to the s_spi interface for the converters data ready condition. The m_spi interface is directly connected to the s_spi interface. In a typical configuration the s_spi interface is connected to a SPI controller and the m_spi interface is connected to external SPI bus pins.

The data_ready signal is level active high and will be asserted as long as the data ready condition is detected. It can for example be connected to a interrupt controller to start a interrupt service routine that will read the converted data sample from the ADC or it can be connected to a HDL block like the SPI Engine Offload block that will generate a SPI transaction to read the converted signal.

The data ready condition is only detected if the chip-select signal which is connected to the converter is asserted and the spi_active signal is de-asserted and both signals have been in that state for at least IDLE_TIMEOUT clock cycles. The timeout is used to avoid spurious signal detection and the IDLE_TIMEOUT parameter should be configured so that the period it takes to complete IDLE_TIMEOUT clock cycles with the clk clock is larger than the “CS falling edge to DOUT/RDY active time” and “SCLK inactive edge to DOUT/RDY high/low” as specified in the datasheet for the converter.

Supported Devices

resources/fpga/peripherals/util_sigma_delta_spi.1456754352.txt.gz · Last modified: 29 Feb 2016 14:59 by Mihai Ionut Suciu