Jump to content

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

From Flowcode Help
XML import
 
No edit summary
Line 1: Line 1:
 
{| style="width:50%"
 
{| width="50%"
|-
|-
| width="20%" style="color: gray;" | Author
| width="20%" style="color:gray;" | Author
| Matrix TSL
| Matrix TSL
|-
|-
| width="20%" style="color: gray;" | Version
| width="20%" style="color:gray;" | Version
| 1.0 (Release)
| 1.0
|-
|-
| width="20%" style="color: gray;" | Category
| width="20%" style="color:gray;" | Category
| Analog Output
| 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.


==[[File:Component Icon 0a0819d2_73b7_4bc2_bc11_f3139972d224.png|Image]] Digital Potentiometer (X9Cx0x) component==
==Detailed description==
The X9Cx0x device range supports a digital potentiometers outputs.
 
100 possible wiper tap points available.
''No detailed description exists yet for this component''
Supported devices include X9C102, X9C103, X9C104, X9C503.


==Examples==
==Examples==
''<span style="color:red;">No additional examples</span>''
''<span style="color:red;">No additional examples</span>''


Line 26: Line 27:
==Downloadable macro reference==
==Downloadable macro reference==


===<span style="font-weight: normal;"><u><tt>IncrementWiper</tt></u></span>===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
Increments a single volatile wiper value
|-
| 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&nbsp;
|-
|-
| 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''
|}


'''Parameters'''


:''This macro has no parameters''
{| 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;" | '''DecrementWiper'''
|-
| colspan="2" | Decrements a single volatile wiper value&nbsp;
|-
|-
| 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''
|}




'''Return value'''
{| 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;" | '''DecrementXTimes'''
|-
| colspan="2" | Decrements the wiper value the specified number of times&nbsp;
|-
|-
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" | Count
|-
| colspan="2" | Range: 1-99&nbsp;
|-
| 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''
|}


:''This call does not return a value''


 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
===<span style="font-weight: normal;"><u><tt>DecrementWiper</tt></u></span>===
|-
Decrements a single volatile wiper value
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''IncrementXTimes'''
'''Parameters'''
|-
 
| colspan="2" | Increments the wiper value the specified number of times&nbsp;
:''This macro has no parameters''
|-
 
|-
 
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
'''Return value'''
| width="90%" | Count
 
|-
:''This call does not return a value''
| colspan="2" | Range: 1-99&nbsp;
 
|-
 
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID
===<span style="font-weight: normal;"><u><tt>DecrementXTimes</tt></u></span>===
| width="90%" style="border-top: 2px solid #000;" | ''Return''
Decrements the wiper value the specified number of times
|}
 
'''Parameters'''
 
:[[Variable Types|BYTE]] ''Count''
::Range: 1-99
 
 
'''Return value'''
 
:''This call does not return a value''
 
 
===<span style="font-weight: normal;"><u><tt>IncrementXTimes</tt></u></span>===
Increments the wiper value the specified number of times
 
'''Parameters'''
 
:[[Variable Types|BYTE]] ''Count''
::Range: 1-99
 
 
'''Return value'''
 
:''This call does not return a value''




{| 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;" | '''ShowDigit'''
|-
| 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.&nbsp;
|-
|-
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" | Digit
|-
| colspan="2" | Which of the four digits to change. (0...3)&nbsp;
|-
| 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&nbsp;
|-
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
| width="90%" | Colon
|-
| colspan="2" | Whether to show the colon character. Digit 1 only.&nbsp;
|-
| 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''
|}


==Simulation macro reference==


''This component does not contain any simulation macros''




==Property reference==
==Property reference==
<span style="font-weight: normal;"><u>CS Pin</u></span>


This property is of type ''Single digital pin'' and can be referenced with the variable name ''CS_Pin''.
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
Chip Select Pin, Active Low
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
 
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''  
<span style="font-weight: normal;"><u>Increment Pin</u></span>
|-
 
|-
This property is of type ''Single digital pin'' and can be referenced with the variable name ''Inc_Pin''.
| width="10%" align="center" | [[File:Fc9-type-5-icon.png]]
 
| width="90%" | CS Pin
Increment Pin, Active Low
|-
 
| colspan="2" | Chip Select Pin, Active Low&nbsp;
<span style="font-weight: normal;"><u>Up/Down Pin</u></span>
|-
 
| width="10%" align="center" | [[File:Fc9-type-5-icon.png]]
This property is of type ''Single digital pin'' and can be referenced with the variable name ''UD_Pin''.
| width="90%" | Increment Pin
 
|-
Up Down Pin, Low = Down, High = Up
| colspan="2" | Increment Pin, Active Low&nbsp;
|-
| width="10%" align="center" | [[File:Fc9-type-5-icon.png]]
| width="90%" | Up/Down Pin
|-
| colspan="2" | Up Down Pin, Low = Down, High = Up&nbsp;
|-
| 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'''
|-
|}

Revision as of 21:07, 16 November 2021

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.

Detailed description

No detailed description exists yet for this component

Examples

No additional examples


Downloadable macro reference

IncrementWiper
Increments a single volatile wiper value 
- VOID Return


DecrementWiper
Decrements a single volatile wiper value 
- VOID Return


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


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


ShowDigit
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. 
- BYTE Digit
Which of the four digits to change. (0...3) 
- BYTE Value
The number value to set the digit to (0...15), 16=Clear 
- BYTE Colon
Whether to show the colon character. Digit 1 only. 
- VOID Return



Property reference

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