Difference between revisions of "Component: ADC (MCP356X) (Analog Input)"
From Flowcode Help
Jump to navigationJump to searchLine 17: | Line 17: | ||
==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_ExternalADC_MCP356X.fcfx FC_Comp_Source_ExternalADC_MCP356X.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_ExternalADC_MCP356X.fcfx FC_Comp_Source_ExternalADC_MCP356X.fcfx] |
==Detailed description== | ==Detailed description== | ||
Line 60: | Line 60: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
+ | |||
+ | |||
Latest revision as of 13:10, 7 February 2023
Author | MatrixTSL |
Version | 1.0 |
Category | Analog Input |
Contents
ADC (MCP356X) component
An external ADC featuring 2, 4, or 8 channel 24-bit input. Capable of reading each channel independently or in differential mode. Communication using an SPI bus up to 20MHz.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_ExternalADC_MCP356X.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_ExternalADC_MCP356X.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
Initialise
Initialise | |
Confgures the SPI bus ready for communications and initialises the MCP356X device. Returns true if device is responding to commands. | |
- BOOL | Return |
SampleADC
SetGainCalibration
SetGainCalibration | |
Allows the device offset to be entered allowing for accurate readings. | |
- ULONG | Gain |
Default 800000 = Gain of 1X | |
- VOID | Return |
SetOffsetCalibration
SetOffsetCalibration | |
Allows the device offset to be entered allowing for accurate readings. | |
- LONG | Offset |
- VOID | Return |