Jump to content

Component: Digital Potentiometer (AD528X) (Analog Output): Difference between revisions

From Flowcode Help
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead""
m Text replacement - "style="background-color:#EAE1EA; color:#4B008D;"" to "class="mtx-class-propfolder""
Line 129: Line 129:
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | I2C Properties
| width="90%" class="mtx-class-propfolder" | I2C Properties
|-
|-
|-
|-
Line 163: Line 163:
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Device Properties
| width="90%" class="mtx-class-propfolder" | Device Properties
|-
|-
|-
|-
Line 182: Line 182:
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Simulation
| width="90%" class="mtx-class-propfolder" | Simulation
|-
|-
|-
|-
Line 191: Line 191:
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | I2C Simulation
| width="90%" class="mtx-class-propfolder" | I2C Simulation
|-
|-
|-
|-

Revision as of 14:35, 13 July 2026

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

DecrementWiper
Decrements a single volatile wiper value 
- BOOL Index
0=Channel1 /1=Channel2 
- VOID Return


IncrementWiper

IncrementWiper
Increments a single volatile wiper value 
- BYTE Index
Range: 0-1 
- VOID Return


Initialise

Initialise
Startup the I2C peripheral ready for communications. 
- VOID Return


ReadTapValue

ReadTapValue
Reads the tap value of the seelcted channel 
- BOOL Index
0=Channel 1 / 1=Channel 2 
- BYTE Return


SetWiper

SetWiper
Sets the value of a single wiper 
- BOOL Index
0=Channel 1 / 1=Channel 2 
- BYTE Value
256 Taps Range: 0-255 
- VOID Return


Property reference

Properties
I2C Properties
Channel
Channel selection 
SDA
Pin used for SDA (data signal) 
SCL
Pin used for SCL (clock signal) 
Baud Select
Baud rate option selector 
Baud Rate
Baud rate to be used 
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.  
Device Properties
Number of Outputs
 
Address
 
Address Bits
 
Simulation
Simulate Comms
 
I2C Simulation
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. 
Console Data
Selects if the console data is automatically generated or not 
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