Component: ADC 24bit ADS1220 (Analog Input): Difference between revisions
Appearance
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"" |
|||
| (10 intermediate revisions by 3 users not shown) | |||
| Line 28: | Line 28: | ||
Example circuit schematic complete with component values. RREF should be a high accuracy resistor with a low PPM. | Example circuit schematic complete with component values. RREF should be a high accuracy resistor with a low PPM. | ||
[[File:ADS1220_RTD3.png| | [[File:ADS1220_RTD3.png|680px]] | ||
==Macro reference== | ==Macro reference== | ||
===Initialise=== | ===Initialise=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Initialise''' | ||
|- | |- | ||
| colspan="2" | Initialize the ADS1220 ADC with default settings | | colspan="2" | Initialize the ADS1220 ADC with default settings | ||
| Line 47: | Line 47: | ||
===ReadRTDResistance=== | ===ReadRTDResistance=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReadRTDResistance''' | ||
|- | |- | ||
| colspan="2" | Reads the RTD sensor and returns resistance in ohms | | colspan="2" | Reads the RTD sensor and returns resistance in ohms | ||
| Line 61: | Line 61: | ||
===ReadRTDTemperature=== | ===ReadRTDTemperature=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReadRTDTemperature''' | ||
|- | |- | ||
| colspan="2" | Reads the RTD sensor and returns temperature in degrees Celsius using linear approximation - matches GitHub library get_temperature_from_rtd_ohms_with_linear_approx | | colspan="2" | Reads the RTD sensor and returns temperature in degrees Celsius using linear approximation - matches GitHub library get_temperature_from_rtd_ohms_with_linear_approx | ||
| Line 75: | Line 75: | ||
===SampleDiffRAW=== | ===SampleDiffRAW=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SampleDiffRAW''' | ||
|- | |- | ||
| colspan="2" | 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. | | colspan="2" | 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. | ||
| Line 104: | Line 104: | ||
===SampleDiffVolts=== | ===SampleDiffVolts=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SampleDiffVolts''' | ||
|- | |- | ||
| colspan="2" | Performs a differential ADC sample and returns voltage in volts | | colspan="2" | Performs a differential ADC sample and returns voltage in volts | ||
| Line 133: | Line 133: | ||
===SampleSglRaw=== | ===SampleSglRaw=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SampleSglRaw''' | ||
|- | |- | ||
| colspan="2" | Performs a single-ended ADC sample on the selected channel and returns 24-bit raw value | | colspan="2" | Performs a single-ended ADC sample on the selected channel and returns 24-bit raw value | ||
| Line 157: | Line 157: | ||
===SampleSglVolts=== | ===SampleSglVolts=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SampleSglVolts''' | ||
|- | |- | ||
| colspan="2" | Performs a single-ended ADC sample and returns voltage in volts | | colspan="2" | Performs a single-ended ADC sample and returns voltage in volts | ||
| Line 182: | Line 182: | ||
==Property reference== | ==Property reference== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Connections | ||
|- | |- | ||
|- | |- | ||
| Line 247: | Line 247: | ||
| colspan="2" | Data Ready pin - goes low when conversion is complete | | colspan="2" | Data Ready pin - goes low when conversion is complete | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Configuration | ||
|- | |- | ||
|- | |- | ||
| Line 301: | Line 301: | ||
| colspan="2" | | | colspan="2" | | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | RTD Configuration | ||
|- | |- | ||
|- | |- | ||
| Line 315: | Line 315: | ||
| colspan="2" | | | colspan="2" | | ||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9-type- | | width="10%" align="center" | [[File:Fc9-type-15-icon.png]] | ||
| width="90%" | Reference Resistor | | width="90%" | Reference Resistor | ||
|- | |- | ||
| Line 325: | Line 325: | ||
| colspan="2" | | | colspan="2" | | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Simulation | ||
|- | |- | ||
|- | |- | ||
| Line 337: | Line 337: | ||
==Component Source Code== | ==Component Source Code== | ||
Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/ | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_External_ADC24Bit_ADS1220.fcfx FC_Comp_Source_External_ADC24Bit_ADS1220.fcfx] | ||
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/ | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_External_ADC24Bit_ADS1220.fcfx FC_Comp_Source_External_ADC24Bit_ADS1220.fcfx] | ||
Latest revision as of 14:36, 13 July 2026
| Author | Matrix TSL |
| Version | 1.0 |
| Category | Analog Input |
ADC 24bit ADS1220 component
A Precision Low power 24Bit SPI ADC 4 channel device with Programmable Gain Amplifier (PGA) and Data Rates up to 2 kSPS
Detailed description
No detailed description exists yet for this component
Examples
Example use case of a 3-wire RTD to read high resolution and high accuracy temperature.
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 | |
| Return | |
ReadRTDResistance
| ReadRTDResistance | |
| Reads the RTD sensor and returns resistance in ohms | |
| 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 | |
| Return | |
SampleDiffRAW
SampleDiffVolts
SampleSglRaw
SampleSglVolts
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_External_ADC24Bit_ADS1220.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_External_ADC24Bit_ADS1220.fcfx