Component: ADC ADS1256 (Analog Input): Difference between revisions
Appearance
No edit summary |
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"" |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 32: | Line 32: | ||
===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" | Sets up the SPI bus ready for communications with the sensor IC. | | colspan="2" | Sets up the SPI bus ready for communications with the sensor IC. | ||
| Line 46: | Line 46: | ||
===ReadData=== | ===ReadData=== | ||
{| 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" | '''ReadData''' | ||
|- | |- | ||
| colspan="2" | Reads the result of an ADC conversion as a binary value in the range of 0 to 16,777,215 | | colspan="2" | Reads the result of an ADC conversion as a binary value in the range of 0 to 16,777,215 | ||
| Line 60: | Line 60: | ||
===ReadDataAsVoltage=== | ===ReadDataAsVoltage=== | ||
{| 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" | '''ReadDataAsVoltage''' | ||
|- | |- | ||
| colspan="2" | Reads the result of an ADC conversion as a floating point voltage | | colspan="2" | Reads the result of an ADC conversion as a floating point voltage | ||
| Line 74: | Line 74: | ||
===ReadIO=== | ===ReadIO=== | ||
{| 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" | '''ReadIO''' | ||
|- | |- | ||
| colspan="2" | Reads from the general purpose IO pins | | colspan="2" | Reads from the general purpose IO pins | ||
| Line 93: | Line 93: | ||
===SetupADC=== | ===SetupADC=== | ||
{| 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" | '''SetupADC''' | ||
|- | |- | ||
| colspan="2" | Configures the positive and negative input channels | | colspan="2" | Configures the positive and negative input channels | ||
| Line 122: | Line 122: | ||
===WriteIO=== | ===WriteIO=== | ||
{| 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" | '''WriteIO''' | ||
|- | |- | ||
| colspan="2" | Writes to the general purpose IO pins | | colspan="2" | Writes to the general purpose IO pins | ||
| Line 147: | Line 147: | ||
==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''' | ||
|- | |- | ||
|- | |- | ||
| Line 168: | Line 168: | ||
| colspan="2" | Specified the data rate in samples per second. Based on a clock rate of 7.68MHz and scales linearly with fCLKIN | | colspan="2" | Specified the data rate in samples per second. Based on a clock rate of 7.68MHz and scales linearly with fCLKIN | ||
|- | |- | ||
| 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 227: | Line 227: | ||
| 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 | ||
|- | |- | ||
|- | |- | ||
Latest revision as of 14:37, 13 July 2026
| Author | Matrix TSL |
| Version | 1.0 |
| Category | Analog Input |
ADC ADS1256 component
24-bit very low noise single ended or differential ADC compatible with ADS1255 or ADS1256. ADS1255 has two single ended or one differential input. ADC1256 has eight single ended or four differential inputs.
Version information
Library Version, Component Version, Date, Author, Info 7, 1.0, 25-10-24, BR, Minor change to try and address a problem 8, 1.0, 28-10-24, BR, Solved a problem where the sensor didn't init correctly
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
Initialise
| Initialise | |
| Sets up the SPI bus ready for communications with the sensor IC. | |
| Return | |
ReadData
| ReadData | |
| Reads the result of an ADC conversion as a binary value in the range of 0 to 16,777,215 | |
| Return | |
ReadDataAsVoltage
| ReadDataAsVoltage | |
| Reads the result of an ADC conversion as a floating point voltage | |
| Return | |
ReadIO
| ReadIO | |
| Reads from the general purpose IO pins | |
| Mask | |
| Range: 0 (0b0000) to 15 (0b1111) | |
| Return | |
SetupADC
WriteIO
| WriteIO | |
| Writes to the general purpose IO pins | |
| Mask | |
| Range: 0 (0b0000) to 15 (0b1111) | |
| Value | |
| Range: 0 (0b0000) to 15 (0b1111) | |
| Return | |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_ExternalADC_ADS1256.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_ExternalADC_ADS1256.fcfx