Component: Digital Potentiometer (AD528X) (Analog Output)

From Flowcode Help
Jump to navigationJump to search
Author Matrix TSL
Version 1.0
Category Analog Output


Digital Potentiometer (AD528X) component

The AD528X device range supports up to 2 digital potentiometers or rheostat outputs. 256 possible output resistance values for each channel. Note: The initial value of both channels will start at 0.

Detailed description

No detailed description exists yet for this component

Examples

No additional examples

Macro reference

DecrementWiper

Fc9-comp-macro.png DecrementWiper
Decrements a single volatile wiper value 
Fc9-bool-icon.png - BOOL Index
0=Channel1 /1=Channel2 
Fc9-void-icon.png - VOID Return


IncrementWiper

Fc9-comp-macro.png IncrementWiper
Increments a single volatile wiper value 
Fc9-u8-icon.png - BYTE Index
Range: 0-1 
Fc9-void-icon.png - VOID Return


Initialise

Fc9-comp-macro.png Initialise
Startup the I2C peripheral ready for communications. 
Fc9-void-icon.png - VOID Return


ReadTapValue

Fc9-comp-macro.png ReadTapValue
Reads the tap value of the seelcted channel 
Fc9-bool-icon.png - BOOL Index
0=Channel 1 / 1=Channel 2 
Fc9-u8-icon.png - BYTE Return


SetWiper

Fc9-comp-macro.png SetWiper
Sets the value of a single wiper 
Fc9-bool-icon.png - BOOL Index
0=Channel 1 / 1=Channel 2 
Fc9-u8-icon.png - BYTE Value
256 Taps Range: 0-255 
Fc9-void-icon.png - VOID Return


Property reference

Fc9-prop-icon.png Properties
Fc9-conn-icon.png I2C Properties
Fc9-type-16-icon.png Channel
Channel selection 
Fc9-type-5-icon.png SDA
Pin used for SDA (data signal) 
Fc9-type-5-icon.png SCL
Pin used for SCL (clock signal) 
Fc9-type-16-icon.png Baud Select
Baud rate option selector 
Fc9-type-14-icon.png Baud Rate
Baud rate to be used 
Fc9-type-7-icon.png Stop Delay
On older microcontroller devices there is a potential for the I2C hardware channel to lock up if there is not a 10ms delay between an I2C stop event and the next I2C start event. Most modern microcontrollers will not have a problem so this property can be disabled to speed up the I2C communications.  
Fc9-conn-icon.png Device Properties
Fc9-type-16-icon.png Number of Outputs
 
Fc9-type-21-icon.png Address
 
Fc9-type-16-icon.png Address Bits
 
Fc9-conn-icon.png Simulation
Fc9-type-7-icon.png Simulate Comms
 
Fc9-conn-icon.png I2C Simulation
Fc9-type-7-icon.png Scope Traces
Selects if the component pin connections are automatically generated on the data recorder window or not. Yes: Automatically add the component pins to a group on the data recorder which will reflect the sim data during simultion. No: Do not show the pin signals on the data recorder window. 
Fc9-type-7-icon.png Console Data
Selects if the console data is automatically generated or not 
Fc9-type-16-icon.png API
Specifies the injector component on the panel to interact with to provide comms simulation. 

Component Source Code

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

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