Component: ADC QUAD + DAC (PCF8591) (Analog Input)
From Flowcode Help
Jump to navigationJump to search| Author | Matrix TSL | 
| Version | 1.0 | 
| Category | Analog Input | 
Contents
ADC QUAD + DAC (PCF8591) component
An I2C device allowing for up to 4 x 8-bit analogue inputs as well as 1 x 8-bit analogue output. Up to 8 devices can be used together ona signel I2C bus.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_External_ADC4_DAC1_PCF8591.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_External_ADC4_DAC1_PCF8591.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
|   | EnableDAC | 
| Enables and Disables the DAC output, Default Disabled. | |
|  - BOOL | Enabled | 
| 0=Disabled, 1=Enabled | |
|  - VOID | Return | 
|   | WriteDAC | 
| Writes a value to the digital to analogue output. | |
|  - BYTE | Value | 
|  - VOID | Return | 
|   | SetupADC | 
| Configures how the ADC inputs are wired | |
|  - BYTE | Configuration | 
| Range: 0-3, Default 0 | |
|  - VOID | Return | 
|   | SampleADC | 
| Performs a single ADC sample on the selected ADC channel | |
|  - BYTE | Channel | 
| Range: 0-3 | |
|  - BYTE | Return | 
|   | Initialise | 
| Sets up the I2C bus ready for communications with the device. | |
|  - VOID | Return | 
Property reference
==Macro reference==
|   | EnableDAC | 
| Enables and Disables the DAC output, Default Disabled. | |
|  - BOOL | Enabled | 
| 0=Disabled, 1=Enabled | |
|  - VOID | Return | 
|   | WriteDAC | 
| Writes a value to the digital to analogue output. | |
|  - BYTE | Value | 
|  - VOID | Return | 
|   | SetupADC | 
| Configures how the ADC inputs are wired | |
|  - BYTE | Configuration | 
| Range: 0-3, Default 0 | |
|  - VOID | Return | 
|   | SampleADC | 
| Performs a single ADC sample on the selected ADC channel | |
|  - BYTE | Channel | 
| Range: 0-3 | |
|  - BYTE | Return | 
|   | Initialise | 
| Sets up the I2C bus ready for communications with the device. | |
|  - VOID | Return | 
Property reference
==Macro reference==
|   | EnableDAC | 
| Enables and Disables the DAC output, Default Disabled. | |
|  - BOOL | Enabled | 
| 0=Disabled, 1=Enabled | |
|  - VOID | Return | 
|   | WriteDAC | 
| Writes a value to the digital to analogue output. | |
|  - BYTE | Value | 
|  - VOID | Return | 
|   | SetupADC | 
| Configures how the ADC inputs are wired | |
|  - BYTE | Configuration | 
| Range: 0-3, Default 0 | |
|  - VOID | Return | 
|   | SampleADC | 
| Performs a single ADC sample on the selected ADC channel | |
|  - BYTE | Channel | 
| Range: 0-3 | |
|  - BYTE | Return | 
|   | Initialise | 
| Sets up the I2C bus ready for communications with the device. | |
|  - VOID | Return | 






