Component: Digital Potentiometer (MCP44XX) (Analog Output)
Author | Matrix TSL |
Version | 1.0 (Release) |
Category | Analog Output |
Contents
Digital Potentiometer (MCP44XX) component
The MCP44XX device range supports 4 digital potentiometers or rheostat outputs. 129 or 257 possible output resistance values for each channel.
Examples
No additional examples
Downloadable macro reference
IncrementWiper
Increments a single volatile wiper value
Parameters
- BYTE Index
- Range: 0-3
Return value
- This call does not return a value
DecrementWiper
Decrements a single volatile wiper value
Parameters
- BYTE Index
- Range: 0-3
Return value
- This call does not return a value
SetWiper
Sets the value of a single wiper
Parameters
- BYTE Index
- Range: 0-3
- UINT Value
- 129 Taps Range: 0-128 / 257 Taps Range: 0-256
- BOOL MemoryType
- 0=Volatile, 1=Nonvolatile
Return value
- This call does not return a value
ReadAddress
Reads a value from one of the registers on the device
Parameters
- BYTE Address
- Range: 0-15
Return value
WriteAddress
Writes a value to one of the registers on the device
Parameters
- BYTE Address
- Range: 0-15
- UINT Value
- Range: 0-256
Return value
- This call does not return a value
Simulation macro reference
This component does not contain any simulation macros
Property reference
Channel
This property is of type Fixed list of ints and can be referenced with the variable name cal_i2c1::CHANNEL.
Channel selection
SDA
This property is of type Single digital pin and can be referenced with the variable name cal_i2c1::SDA.
Pin used for SDA (data signal)
SCL
This property is of type Single digital pin and can be referenced with the variable name cal_i2c1::SCL.
Pin used for SCL (clock signal)
Baud Select
This property is of type Fixed list of ints and can be referenced with the variable name cal_i2c1::BAUD_LIST.
Baud rate option selector
Baud Rate
This property is of type Signed integer and can be referenced with the variable name cal_i2c1::BAUD.
Baud rate to be used
Stop Delay
This property is of type True or false and can be referenced with the variable name cal_i2c1::StopDel.
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.
Number of Taps
This property is of type Fixed list of ints and can be referenced with the variable name NumTaps.
No additional information
Address Bits
This property is of type Fixed list of ints and can be referenced with the variable name AddressBits.
No additional information
Simulate Comms
This property is of type True or false and can be referenced with the variable name SimulateComms.
No additional information
Scope Traces
This property is of type True or false and can be referenced with the variable name cal_i2c1::ScopeTraces.
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
This property is of type True or false and can be referenced with the variable name cal_i2c1::ConsoleData.
Selects if the console data is automatically generated or not
Injector
This property is of type Fixed list of ints and can be referenced with the variable name cal_i2c1::Injector.
Specifies the injector component on the panel to interact with to provide comms simulation.