Jump to content

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

From Flowcode Help
No edit summary
No edit summary
Line 15: Line 15:
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.
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.


==Component Pack==
==Component Source Code==


BASICIO
Please click here for the component source code: [https://www.flowcode.co.uk/wikicopy/componentsource/FC_Comp_Source_DAC.fcfx FC_Comp_Source_DAC.fcfx]


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




Line 32: Line 34:


==Examples==
==Examples==




Line 169: Line 173:
|-
|-
| colspan="2" | DAC Output Pin 
| colspan="2" | DAC Output Pin 
|-
| width="10%" align="center" | [[File:Fc9-type-7-icon.png]]
| width="90%" | Alt Pin
|-
| colspan="2" |  
|-
|-
| width="10%" align="center" | [[File:Fc9-type-16-icon.png]]
| width="10%" align="center" | [[File:Fc9-type-16-icon.png]]
Line 195: Line 204:
| colspan="2" | Specifies the Resolution per digital bit in terms of Voltage. 
| colspan="2" | Specifies the Resolution per digital bit in terms of Voltage. 
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Connections'''
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Simulation
|-
|-
| 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 17:45, 9 November 2022

Author Matrix TSL
Version 2.0
Category Analog Output


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.

Component Source Code

Please click here for the component source code: FC_Comp_Source_DAC.fcfx

Detailed description

No detailed description exists yet for this component

Examples

No additional examples


Downloadable macro reference

SetOutput
Sets the output voltage of the DAC 
- UINT DAC_Value
The value to output to the DAC 
- VOID Return


GetValue
Gets the Name property value 
- STRING Name
The name of the property 
- STRING Return


Disable
Disables the DAC output. 
- VOID Return


Enable
Enables the DAC Output. 
- VOID Return


SetValue
Sets the Value for the named property 
- STRING Name
Name of property to update 
- STRING Value
The new value for the property 
- VOID Return


GetList
 
- STRING Name
 
- STRING Return



Property reference

Properties
Channel
DAC Channel number 
DAC Output Pin
DAC Output Pin 
Alt Pin
 
Vref Option
Selects the maximum reference value for the DAC 
Vref Voltage
Reference Voltage, Used to calculate the Voltage resolution. 
Control Bits
Number of digital control bits 
Resolution
Maximum output resolution based on number of control bits. 
Voltage Resolution
Specifies the Resolution per digital bit in terms of Voltage. 
Simulation
Scope Traces
Selects if the scope traces are automatically generated or not