Jump to content

Component: Input ADC (DSP Inputs): Difference between revisions

From Flowcode Help
m Text replacement - "style="background-color:#EAE1EA; color:#4B008D;"" to "class="mtx-class-propfolder""
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder""
 
Line 128: Line 128:
| colspan="2" | Sets the buffer data type, data is automatically scaled to fit and make full use of the data type. 
| colspan="2" | Sets the buffer data type, data is automatically scaled to fit and make full use of the data type. 
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]]
| width="90%" class="mtx-class-propfolder" | Connections
| width="90%" class="mtx-class-propfolder" | Connections
|-
|-
Line 137: Line 137:
| colspan="2" | Analogue Input Channel - Which pin is the analogue input connected to? 
| colspan="2" | Analogue Input Channel - Which pin is the analogue input connected to? 
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]]
| width="90%" class="mtx-class-propfolder" | Settings
| width="90%" class="mtx-class-propfolder" | Settings
|-
|-
Line 166: Line 166:
| colspan="2" | Map the analog input range to a selected output range.  
| colspan="2" | Map the analog input range to a selected output range.  
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]]
| width="90%" class="mtx-class-propfolder" | Mapping
| width="90%" class="mtx-class-propfolder" | Mapping
|-
|-
Line 195: Line 195:
| colspan="2" | Max value to output 
| colspan="2" | Max value to output 
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]]
| width="90%" class="mtx-class-propfolder" | Simulation Slider
| width="90%" class="mtx-class-propfolder" | Simulation Slider
|-
|-

Latest revision as of 14:36, 13 July 2026

Author Matrix Ltd
Version 1.2
Category DSP Inputs


Input ADC component

Allows the values from a buffer to be assigned driectly from an analog enabled pin. Either a single sample at a time or a number of samples. Auto scales the digital value to fill the entire range of the specified buffer type.

Component Source Code

Please click here to download the component source project: FC_Comp_Source_DSP_ADCInput.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_DSP_ADCInput.fcfx

Detailed description

No detailed description exists yet for this component

Examples

No additional examples








Macro reference

AddSample

AddSample
Adds a single ADC sample to the current location in the specified buffer. If Auto Scale is enabled then the sample will be scaled to correctly fit inside the buffer. Auto increments current location. 
- VOID Return


AddSampleArray

AddSampleArray
Adds a single ADC sample to the current location in the specified buffer. If Auto Scale is enabled then the sample will be scaled to correctly fit inside the buffer. Auto increments current location. 
- UINT SampleDelay
Number of us in between each sample. 
- VOID Return


Property reference

Properties
Buffer Size
Number of individual elements the buffer can store, default 1. 
Buffer Type
Sets the buffer data type, data is automatically scaled to fit and make full use of the data type. 
Connections
Channel
Analogue Input Channel - Which pin is the analogue input connected to? 
Settings
Bit Depth
Maximum number of bits for each ADC sample. 
VRef option
Defines what is used as the ADC maximum reference. ADC Range = GND to VRef Voltage VDD - Defines the microcontrollers power supply pin as the max reference, VREF+ Pin - Dedicated pin on the microcontroller to allow for a variable reference voltage. 
Conversion speed
Clock setting to select how fast the ADC peripheral will perform an ADC conversion. The FRC setting is based on a RC time base and so will vary with temperature and pressure. Other settings are generally based on divisions of the master clock. 
Acquisition cycles
Number of micro seconds to wait for the ADC input to charge before starting the analogue sample. 
Remap Values
Map the analog input range to a selected output range.  
Mapping
Input Full Range
Selects if the entire range of the ADC is mapped. Yes: Use the full ADC range No: Use a custom ADC range 
Input Min
Min value provided by the ADC input 
Input Max
Max value provided by the ADC input 
Output Min
Min value to output 
Output Max
Max value to output 
Simulation Slider
Show Slider
Allows the ADC input to be driven from a slider. 
Major Tick Step
The number of minor tick marks to show a major tick mark value. 
Minor Tick Step
The scale value between consecutive minor tick marks. 
Label Format