Example circuit schematic complete with component values. RREF should be a high accuracy resistor with a low PPM.
Macro reference
Initialise
Initialise
Initialize the ADS1220 ADC with default settings
- BYTE
Return
ReadRTDResistance
ReadRTDResistance
Reads the RTD sensor and returns resistance in ohms
- FLOAT
Return
ReadRTDTemperature
ReadRTDTemperature
Reads the RTD sensor and returns temperature in degrees Celsius using linear approximation - matches GitHub library get_temperature_from_rtd_ohms_with_linear_approx
- FLOAT
Return
SampleDiffRAW
SampleDiffRAW
Performs a differential ADC sample between two channels and returns 24-bit raw value. Not all channel combinations are possible, see datasheet p40 section MUX. Returns 0 if the channel selection is invalid.
SPI Data Out Pin SDO - Also Known as Master Out Slave In (MOSI) when used in Master mode.
MOSI Remap Pin
Select which the target pin to assign the MOSI hardware pin functionality.
MISO
SPI Data In Pin SDI - Also Known as Master In Slave Out (MISO) when used in Master mode.
MISO Remap Pin
Select which the target pin to assign the MISO hardware pin functionality.
CLK
SPI Clock Pin CLK - The Clock signal is driven by the SPI master.
CLK Remap Pin
Select which the target pin to assign the CLK hardware pin functionality.
CS / SS
Chip Select / Slave Select Pin Master Mode: General purpose output pin used to select the remote SPI device. Slave Mode: Hardware chip select pin input used to select the SPI device.
Use Ready Pin
Use DRDY pin to detect when conversion is complete. If disabled, polling will be used.
DRDY Pin
Data Ready pin - goes low when conversion is complete
Configuration
Data Rate
Programmable Data Rate (SPS)
Operating Mode
Conversion Mode
PGA Gain
Programmable Gain Amplifier (PGA) gain setting
Voltage Reference
Voltage reference source
Reference Voltage
FIR Filter
IDAC Current (uA)
IDAC excitation current in microamperes. Typical values: 100, 250, 500, 750, 1000. Default: 250uA
I1MUX
I2MUX
RTD Configuration
RTD Type
RTD sensor type - determines base resistance at 0°C
RTD Configuration
Reference Resistor
High precision reference resistor value in ohms. Typically 400Ω for PT100 or 4000Ω for PT1000
Temperature Coefficient
Simulation
Simulate Comms
Allows the communications to be simulated overriding the value on the panel slider controls.