Difference between revisions of "Component: DAC (Internal) (Analog Output)"

From Flowcode Help
Jump to navigationJump to search
(XML import)
 
(No difference)

Latest revision as of 16:00, 27 August 2019

Author Matrix TSL
Version 2.0 (Release)
Category Analog Output


Image DAC (Internal) component

Provides access to the onboard digital to analog converter (DAC) peripheral allowing for simple analogue output. Often the DAC output will be very low current and will need amplification using external circuitry to drive anything useful.

Examples

No additional examples


Downloadable macro reference

SetOutput

Sets the output voltage of the DAC

Parameters

UINT DAC_Value
The value to output to the DAC


Return value

This call does not return a value


Disable

Disables the DAC output.

Parameters

This macro has no parameters


Return value

This call does not return a value


Enable

Enables the DAC Output.

Parameters

This macro has no parameters


Return value

This call does not return a value


Simulation macro reference

GetValue

Gets the Name property value

Parameters

STRING Name
The name of the property


Return value

STRING


SetValue

Sets the Value for the named property

Parameters

STRING Name
Name of property to update
STRING Value
The new value for the property


Return value

This call does not return a value


GetList

No additional information


Parameters

STRING Name


Return value

STRING



Property reference

Channel

This property is of type Fixed list of ints and can be referenced with the variable name CHANNEL.

DAC Channel number

DAC Output Pin

This property is of type Single digital pin and can be referenced with the variable name PORT.

DAC Output Pin

Vref Option

This property is of type Fixed list of ints and can be referenced with the variable name VREFOP.

Selects the maximum reference value for the DAC

Vref Voltage

This property is of type Floating point and can be referenced with the variable name VrefVol.

Reference Voltage, Used to calculate the Voltage resolution.

Control Bits

This property is of type Signed integer and can be referenced with the variable name BITS.

Number of digital control bits

Resolution

This property is of type Line of text and can be referenced with the variable name Res.

Maximum output resolution based on number of control bits.

Voltage Resolution

This property is of type Floating point and can be referenced with the variable name VoltRes.

Specifies the Resolution per digital bit in terms of Voltage.

Scope Traces

This property is of type True or false and can be referenced with the variable name ScopeTraces.

Selects if the scope traces are automatically generated or not