DAC
Purpose
Generate an output voltage from the input signal; the output voltage is calculated as \((input\cdot\mathbf{Scale}+\mathbf{Offset})\)
Library
STM32
Description
This block generates a voltage on the DAC pin in the range of \(0\,\mathrm{V}\) to \(3.3\,\mathrm{V}\). The output is scalable and can be used with an offset, where the output signal is calculated as \((input\cdot\mathbf{Scale}+\mathbf{Offset})\). Output voltage limitations can also be set.
Parameters
- DAC selection
Configure the DAC pin either as by
DAC unit and channel, or byPort and Pin number.- DAC unit
Selects the desired DAC interface.
- DAC channel
Index of the DAC output channel for a specific DAC interface.
- Port
Selects the port name of the DAC channel.
- Pin number
Defines the pin number of the DAC channel.
- Scale
A scale factor for the output signal.
- Offset
An offset for the scaled output signal.
- Minimum output voltage
The lowest value that the output voltage can reach.
- Maximum output voltage
The highest value that the output voltage can reach.