Lines Matching +full:dac +full:- +full:reference

1 .. zephyr:code-sample:: dac
2 :name: Digital-to-Analog Converter (DAC)
3 :relevant-api: dac_interface
5 Generate an analog sawtooth signal using the DAC driver API.
10 This sample demonstrates how to use the :ref:`DAC driver API <dac_api>`.
15 The DAC output is defined in the board's devicetree and pinmux file.
17 The board's :ref:`/zephyr,user <dt-zephyr-user>` node must have ``dac``,
18 ``dac-channel-id``, and ``dac-resolution`` properties set. See the predefined
19 overlays in :zephyr_file:`samples/drivers/dac/boards` for examples.
26 .. zephyr-app-commands::
27 :zephyr-app: samples/drivers/dac
37 .. zephyr-app-commands::
38 :zephyr-app: samples/drivers/dac
48 .. zephyr-app-commands::
49 :zephyr-app: samples/drivers/dac
59 .. zephyr-app-commands::
60 :zephyr-app: samples/drivers/dac
70 .. zephyr-app-commands::
71 :zephyr-app: samples/drivers/dac
81 .. zephyr-app-commands::
82 :zephyr-app: samples/drivers/dac
92 .. zephyr-app-commands::
93 :zephyr-app: samples/drivers/dac
98 Building and Running for NXP TWR-KE18F
103 .. zephyr-app-commands::
104 :zephyr-app: samples/drivers/dac
109 DAC output is available on pin A32 of the primary TWR elevator
112 Building and Running for NXP FRDM-K64F
117 .. zephyr-app-commands::
118 :zephyr-app: samples/drivers/dac
123 DAC output is available on connector J4 pin 11.
128 DAC. Note this is not populated by default. The sample can be built and
131 .. zephyr-app-commands::
132 :zephyr-app: samples/drivers/dac
137 DAC output is available on pin 1 of the MCP4725.
142 DAC. Note this is not populated by default. The sample can be built and
145 .. zephyr-app-commands::
146 :zephyr-app: samples/drivers/dac
151 DAC output is available on pin 1 of the MCP4725.
156 DAC. Note this is not populated by default. The sample can be built and
159 .. zephyr-app-commands::
160 :zephyr-app: samples/drivers/dac
165 DAC output is available on pin 1 of the MCP4725.
169 The BL5340 DVK PCB contains a MCP4725 to use as a DAC. The sample can be
172 .. zephyr-app-commands::
173 :zephyr-app: samples/drivers/dac
178 DAC output is available on pin 1 of the MCP4725.
180 Building and Running for GD32450I-EVAL
185 .. zephyr-app-commands::
186 :zephyr-app: samples/drivers/dac
191 Bridge the JP23 to DAC with the jumper cap, then DAC output will available on JP7.
198 .. zephyr-app-commands::
199 :zephyr-app: samples/drivers/dac
206 .. zephyr-app-commands::
207 :zephyr-app: samples/drivers/dac
217 .. zephyr-app-commands::
218 :zephyr-app: samples/drivers/dac
223 DAC output is available on connector J12 pin 4.
228 You should see a sawtooth signal with an amplitude of the DAC reference
229 voltage and a period of approx. 4 seconds at the DAC output pin specified
234 .. code-block:: console
236 Generating sawtooth signal at DAC channel 1.
238 .. note:: If the DAC is not supported, the output will be an error message.