Component: ADC ADS1256 (Analog Input)

From Flowcode Help
Jump to navigationJump to search
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.

Detailed description

No detailed description exists yet for this component

Examples

No additional examples

Macro reference

Initialise

Fc9-comp-macro.png Initialise
Sets up the SPI bus ready for communications with the sensor IC. 
Fc9-void-icon.png - VOID Return


ReadData

Fc9-comp-macro.png ReadData
Reads the result of an ADC conversion as a binary value in the range of 0 to 16,777,215 
Fc9-u32-icon.png - ULONG Return


ReadDataAsVoltage

Fc9-comp-macro.png ReadDataAsVoltage
Reads the result of an ADC conversion as a floating point voltage 
Fc9-f32-icon.png - FLOAT Return


ReadIO

Fc9-comp-macro.png ReadIO
Reads from the general purpose IO pins 
Fc9-u8-icon.png - BYTE Mask
Range: 0 (0b0000) to 15 (0b1111) 
Fc9-u8-icon.png - BYTE Return


SetupADC

Fc9-comp-macro.png SetupADC
Configures the positive and negative input channels 
Fc9-u8-icon.png - BYTE PositiveChannel
0=AIN0 - 7=AIN7, 8=AINCOM 
Fc9-u8-icon.png - BYTE NegativeChannel
0=AIN0 - 7=AIN7, 8=AINCOM 
Fc9-u8-icon.png - BYTE Gain
0=1X, 1=2X, 2=4X, 3=8X, 4=16X, 5=32X, 6=64X 
Fc9-void-icon.png - VOID Return


WriteIO

Fc9-comp-macro.png WriteIO
Writes to the general purpose IO pins 
Fc9-u8-icon.png - BYTE Mask
Range: 0 (0b0000) to 15 (0b1111) 
Fc9-u8-icon.png - BYTE Value
Range: 0 (0b0000) to 15 (0b1111) 
Fc9-void-icon.png - VOID Return


Property reference

Fc9-prop-icon.png Properties
Fc9-type-16-icon.png Type
 
Fc9-type-15-icon.png VREF Voltage
Voltage reference used in the calculations for ReadDataAsVoltage 
Fc9-type-16-icon.png Data Rate
Specified the data rate in samples per second. Based on a clock rate of 7.68MHz and scales linearly with fCLKIN 
Fc9-conn-icon.png Connections
Fc9-type-16-icon.png Channel
SPI Channel selector 
Fc9-type-16-icon.png Prescale
Prescale option selector 
Fc9-type-5-icon.png MOSI
SPI Data Out Pin SDO - Also Known as Master Out Slave In (MOSI) when used in Master mode. 
Fc9-type-16-icon.png MOSI Remap Pin
Select which the target pin to assign the MOSI hardware pin functionality. 
Fc9-type-5-icon.png MISO
SPI Data In Pin SDI - Also Known as Master In Slave Out (MISO) when used in Master mode. 
Fc9-type-16-icon.png MISO Remap Pin
Select which the target pin to assign the MISO hardware pin functionality. 
Fc9-type-5-icon.png CLK
SPI Clock Pin CLK - The Clock signal is driven by the SPI master. 
Fc9-type-16-icon.png CLK Remap Pin
Select which the target pin to assign the CLK hardware pin functionality. 
Fc9-type-5-icon.png 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.  
Fc9-type-5-icon.png Data Ready
 
Fc9-type-5-icon.png Sync
 
Fc9-conn-icon.png Simulation
Fc9-type-7-icon.png Simulate Comms
 

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