Jump to content

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

From Flowcode Help
No edit summary
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder""
 
(21 intermediate revisions by 2 users not shown)
Line 14: Line 14:
==Digital Potentiometer (X9Cx0x) component==
==Digital Potentiometer (X9Cx0x) component==
The X9Cx0x device range supports a digital potentiometers outputs. 100 possible wiper tap points available.  Supported devices include X9C102, X9C103, X9C104, X9C503.
The X9Cx0x device range supports a digital potentiometers outputs. 100 possible wiper tap points available.  Supported devices include X9C102, X9C103, X9C104, X9C503.
==Component Source Code==
Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_X9C_Digital_Pot.fcfx FC_Comp_Source_X9C_Digital_Pot.fcfx]
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_X9C_Digital_Pot.fcfx FC_Comp_Source_X9C_Digital_Pot.fcfx]


==Detailed description==
==Detailed description==




Line 22: Line 50:


==Examples==
==Examples==




Line 29: Line 79:




==Downloadable macro reference==


{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''IncrementWiper'''
|-
| colspan="2" | Increments a single volatile wiper value 
|-
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}




{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
 
 
 
 
 
 
 
 
==Macro reference==
 
===DecrementWiper===
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DecrementWiper'''
| width="90%" class="mtx-class-macrohead" | '''DecrementWiper'''
|-
|-
| colspan="2" | Decrements a single volatile wiper value 
| colspan="2" | Decrements a single volatile wiper value 
Line 57: Line 107:




{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
===DecrementXTimes===
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DecrementXTimes'''
| width="90%" class="mtx-class-macrohead" | '''DecrementXTimes'''
|-
|-
| colspan="2" | Decrements the wiper value the specified number of times 
| colspan="2" | Decrements the wiper value the specified number of times 
Line 75: Line 126:




{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
===IncrementWiper===
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''IncrementXTimes'''
| width="90%" class="mtx-class-macrohead" | '''IncrementWiper'''
|-
|-
| colspan="2" | Increments the wiper value the specified number of times 
| colspan="2" | Increments a single volatile wiper value 
|-
|-
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" | Count
|-
|-
| colspan="2" | Range: 1-99 
|-
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
Line 93: Line 140:




{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
===IncrementXTimes===
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ShowDigit'''
| width="90%" class="mtx-class-macrohead" | '''IncrementXTimes'''
|-
|-
| colspan="2" | Set the number to be displayed in the given digit of the display. The colon character can also be controlled when writing to digit 1. 
| colspan="2" | Increments the wiper value the specified number of times 
|-
|-
|-
|-
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" | Digit
| width="90%" | Count
|-
|-
| colspan="2" | Which of the four digits to change. (0...3) 
| colspan="2" | Range: 1-99 
|-
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" | Value
|-
| colspan="2" | The number value to set the digit to (0...15), 16=Clear 
|-
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" | Colon
|-
| colspan="2" | Whether to show the colon character. Digit 1 only. 
|-
|-
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
| width="90%" style="border-top: 2px solid #000;" | ''Return''
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}
|}




==Property reference==
==Property reference==


{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''  
| width="90%" class="mtx-class-macrohead" | '''Properties'''  
|-
|-
| width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]]
| width="90%" class="mtx-class-propfolder" | Device Connections
|-
|-
|-
|-
Line 145: Line 185:
|-
|-
| colspan="2" | Up Down Pin, Low = Down, High = Up 
| colspan="2" | Up Down Pin, Low = Down, High = Up 
|-
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Connections'''
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Simulations'''
|-
|}
|}

Latest revision as of 14:36, 13 July 2026

Author Matrix TSL
Version 1.0
Category Analog Output


Digital Potentiometer (X9Cx0x) component

The X9Cx0x device range supports a digital potentiometers outputs. 100 possible wiper tap points available. Supported devices include X9C102, X9C103, X9C104, X9C503.

Component Source Code

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

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

Detailed description

No detailed description exists yet for this component

Examples

No additional examples








Macro reference

DecrementWiper

DecrementWiper
Decrements a single volatile wiper value 
- VOID Return


DecrementXTimes

DecrementXTimes
Decrements the wiper value the specified number of times 
- BYTE Count
Range: 1-99 
- VOID Return


IncrementWiper

IncrementWiper
Increments a single volatile wiper value 
- VOID Return


IncrementXTimes

IncrementXTimes
Increments the wiper value the specified number of times 
- BYTE Count
Range: 1-99 
- VOID Return


Property reference

Properties
Device Connections
CS Pin
Chip Select Pin, Active Low 
Increment Pin
Increment Pin, Active Low 
Up/Down Pin
Up Down Pin, Low = Down, High = Up