Home
last modified time | relevance | path

Searched +full:dac +full:- +full:reference (Results 1 – 25 of 142) sorted by relevance

123456

/Zephyr-latest/dts/bindings/dac/
Dnxp,gau-dac.yaml2 # SPDX-License-Identifier: Apache-2.0
4 description: NXP GAU DAC
6 compatible: "nxp,gau-dac"
8 include: dac-controller.yaml
11 nxp,dac-reference:
14 - "internal"
15 - "external"
18 DAC reference select.
21 nxp,output-voltage-range:
24 - "small"
[all …]
Dnxp,kinetis-dac.yaml2 # SPDX-License-Identifier: Apache-2.0
4 description: NXP Kinetis MCUX DAC
6 compatible: "nxp,kinetis-dac"
8 include: dac-controller.yaml
14 voltage-reference:
17 description: DAC voltage reference select
19 low-power-mode:
21 description: Enable low-power mode
23 "#io-channel-cells":
26 io-channel-cells:
[all …]
Dti,dacx0508-base.yaml2 # SPDX-License-Identifier: Apache-2.0
4 include: [dac-controller.yaml, spi-device.yaml]
7 voltage-reference:
11 DAC voltage reference select
13 See constants in dt-bindings/dac/dacx0508.h.
15 channel0-gain:
21 See constants in dt-bindings/dac/dacx0508.h.
23 channel1-gain:
29 See constants in dt-bindings/dac/dacx0508.h.
31 channel2-gain:
[all …]
Datmel,sam0-dac.yaml2 # SPDX-License-Identifier: Apache-2.0
4 description: Atmel SAM0 family DAC
6 compatible: "atmel,sam0-dac"
9 - name: dac-controller.yaml
10 - name: pinctrl-device.yaml
19 clock-names:
22 reference:
24 description: Reference voltage source
26 - "intref"
27 - "vddana"
[all …]
Dnxp,lpdac.yaml2 # SPDX-License-Identifier: Apache-2.0
8 include: [dac-controller.yaml, pinctrl-device.yaml]
14 voltage-reference:
18 DAC voltage reference select. The meaning of the value may be
21 low-power-mode:
23 description: Enable low-power mode
25 "#io-channel-cells":
28 io-channel-cells:
29 - output
Dmicrochip,mcp4728.yaml1 description: Microchip MCP4728 12-bit 4-channel DAC
5 include: [dac-controller.yaml, i2c-device.yaml]
8 "#io-channel-cells":
15 DAC voltage reference select.
16 0 - Vdd
17 1 - Internal voltage reference (2.048V)
24 Power-down mode select.
25 0 - normal mode
26 1 - Vout is loaded with 1 kOhm resistor to ground
27 2 - Vout is loaded 100 kOhm resistor to ground
[all …]
Dnxp,kinetis-dac32.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "nxp,kinetis-dac32"
8 include: [dac-controller.yaml, pinctrl-device.yaml]
14 voltage-reference:
17 description: DAC voltage reference select
19 low-power-mode:
21 description: Enable low-power mode
27 "#io-channel-cells":
30 io-channel-cells:
31 - output
Dti,dacx0501.yaml2 # SPDX-License-Identifier: Apache-2.0
6 description: TI DACx0501 12 to 16 bit DAC series for DAC60501, DAC70501 and DAC80501 devices.
11 voltage-reference:
15 - "internal"
16 - "external"
18 DAC voltage reference select: either internal (2.5 V) or external
20 output-gain:
24 - "mul2"
25 - "mul1"
26 - "div2"
Dadi,ad569x-base.yaml2 # SPDX-License-Identifier: Apache-2.0
4 include: [dac-controller.yaml]
7 "#io-channel-cells":
10 voltage-reference:
14 - "internal"
15 - "external"
17 DAC voltage reference select.
18 - Internal voltage reference - 2.5V (reg: 0).
19 - External voltage reference (reg: 1).
24 default: "gain-1"
[all …]
/Zephyr-latest/tests/drivers/adc/adc_accuracy_test/
DREADME.txt6 - DAC source: a board DAC pin is set to a known value, which is then
9 - Reference voltage: an ADC channel is read and compared to an expected
12 For the DAC source, it is expected that DAC and ADC are connected. This
14 The test then sets DAC to half its resolution and reads the ADC to see
15 if they match. Note that DAC and ADC are expected to generate/read
18 In the reference voltage case, the ADC is expected to be connected to a
19 known voltage reference, whose value is informed, in millivolts, at
/Zephyr-latest/drivers/dac/
Ddac_sam0.c4 * SPDX-License-Identifier: Apache-2.0
11 #include <zephyr/drivers/dac.h>
18 * Maps between the DTS reference property names and register values. Note that
28 Dac *regs;
35 /* Write to the DAC. */
39 const struct dac_sam0_cfg *const cfg = dev->config; in dac_sam0_write_value()
40 Dac *regs = cfg->regs; in dac_sam0_write_value()
44 return -EINVAL; in dac_sam0_write_value()
47 regs->DATA.reg = (uint16_t)value; in dac_sam0_write_value()
59 if (channel_cfg->channel_id != 0) { in dac_sam0_channel_setup()
[all …]
Ddac_dacx0501.c4 * SPDX-License-Identifier: Apache-2.0
18 #include <zephyr/drivers/dac.h>
40 /* Specifies the source of the reference voltage. */
42 REF_INTERNAL, /* Internal 2.5V voltage reference. */
43 REF_EXTERNAL, /* External pin voltage reference. */
46 /* Specifies the reference voltage multiplier. */
60 /* Number of bits in the DAC register: Either 12, 14 or 16. */
66 const struct dacx0501_config *config = dev->config; in dacx0501_reg_read()
70 status = i2c_write_read_dt(&config->i2c_spec, &addr, sizeof(addr), raw_data, in dacx0501_reg_read()
76 /* DAC is big endian. */ in dacx0501_reg_read()
[all …]
Ddac_mcux_dac.c4 * SPDX-License-Identifier: Apache-2.0
10 #include <zephyr/drivers/dac.h>
19 dac_reference_voltage_source_t reference; member
30 const struct mcux_dac_config *config = dev->config; in mcux_dac_channel_setup()
31 struct mcux_dac_data *data = dev->data; in mcux_dac_channel_setup()
34 if (channel_cfg->channel_id != 0) { in mcux_dac_channel_setup()
35 LOG_ERR("unsupported channel %d", channel_cfg->channel_id); in mcux_dac_channel_setup()
36 return -ENOTSUP; in mcux_dac_channel_setup()
39 if (channel_cfg->resolution != 12) { in mcux_dac_channel_setup()
40 LOG_ERR("unsupported resolution %d", channel_cfg->resolution); in mcux_dac_channel_setup()
[all …]
Ddac_mcux_dac32.c4 * SPDX-License-Identifier: Apache-2.0
10 #include <zephyr/drivers/dac.h>
20 dac32_reference_voltage_source_t reference; member
33 const struct mcux_dac32_config *config = dev->config; in mcux_dac32_channel_setup()
34 struct mcux_dac32_data *data = dev->data; in mcux_dac32_channel_setup()
37 if (channel_cfg->channel_id != 0) { in mcux_dac32_channel_setup()
38 LOG_ERR("unsupported channel %d", channel_cfg->channel_id); in mcux_dac32_channel_setup()
39 return -ENOTSUP; in mcux_dac32_channel_setup()
42 if (channel_cfg->resolution != 12) { in mcux_dac32_channel_setup()
43 LOG_ERR("unsupported resolution %d", channel_cfg->resolution); in mcux_dac32_channel_setup()
[all …]
Ddac_dacx0508.c4 * SPDX-License-Identifier: Apache-2.0
9 #include <zephyr/drivers/dac.h>
11 #include <zephyr/dt-bindings/dac/dacx0508.h>
36 uint8_t reference; member
47 const struct dacx0508_config *config = dev->config; in dacx0508_reg_read()
71 return -EWOULDBLOCK; in dacx0508_reg_read()
76 ret = spi_write_dt(&config->bus, &tx); in dacx0508_reg_read()
81 ret = spi_read_dt(&config->bus, &rx); in dacx0508_reg_read()
87 return -EIO; in dacx0508_reg_read()
96 const struct dacx0508_config *config = dev->config; in dacx0508_reg_write()
[all …]
/Zephyr-latest/tests/drivers/adc/adc_accuracy_test/boards/
Dfrdm_k64f.overlay4 * SPDX-License-Identifier: Apache-2.0
8 * J4.3 will be the ADC input and J4.11 the DAC output
13 io-channels = <&adc0 20>;
14 dac = <&dac0>;
15 dac-channel-id = <0>;
16 dac-resolution = <12>;
21 #address-cells = <1>;
22 #size-cells = <0>;
28 zephyr,reference = "ADC_REF_INTERNAL";
29 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
/Zephyr-latest/doc/hardware/peripherals/
Ddac.rst3 Digital-to-Analog Converter (DAC)
9 The DAC API provides access to Digital-to-Analog Converter (DAC) devices.
18 API Reference
/Zephyr-latest/samples/sensor/mcux_lpcmp/
DREADME.rst1 .. zephyr:code-sample:: mcux_lpcmp
2 :name: NXP MCUX Low-power Analog Comparator (LPCMP)
3 :relevant-api: sensor_interface
5 Get analog comparator data from an NXP MCUX Low-power Analog Comparator (LPCMP).
10 This sample show how to use the NXP MCUX Low-power Analog Comparator (LPCMP) driver.
13 means the input voltage comes from the LPCMP internal DAC, the reference
14 voltage of the DAC is set to 0 (for the specific chip, the user needs to
15 check the reference manual to confirm where this reference voltage comes
16 from), the output voltage of the DAC is equal to (VREF/256)*(data+1), where
18 The positive input port is set to 0, the user needs to check the reference
[all …]
/Zephyr-latest/samples/sensor/veaa_x_3/boards/
Dnucleo_h563zi.overlay2 * SPDX-License-Identifier: Apache-2.0
8 /delete-node/ &spi1;
13 compatible = "festo,veaa-x-3";
14 io-channels = <&adc1 3>;
15 dac = <&dac1>;
16 dac-channel-id = <2>;
17 dac-resolution = <12>;
18 pressure-range-type = "D2";
24 #address-cells = <1>;
25 #size-cells = <0>;
[all …]
/Zephyr-latest/include/zephyr/drivers/sensor/
Dmcux_lpcmp.h5 * SPDX-License-Identifier: Apache-2.0
10 * @brief Data structure for the NXP MCUX low-power analog comparator (LPCMP)
50 * LPCMP internal DAC enable.
56 * LPCMP internal DAC high power mode disabled.
61 /** LPCMP internal DAC voltage reference source. */
63 /** LPCMP internal DAC output voltage value. */
/Zephyr-latest/tests/drivers/dac/dac_loopback/src/
Dtest_dac.c4 * SPDX-License-Identifier: Apache-2.0
11 * @brief TestPurpose: read back DAC driver output with ADC
15 #include <zephyr/drivers/dac.h>
25 * ADC and DAC need to use the same reference voltage, as the test sampling
37 * DAC output on PA4 (Arduino A2 pin of Nucleo board)
64 * DAC output on PA4
149 /* DAC output from MCP4725 pin 1
152 * Note external DAC MCP4725 is not populated on BL652_DVK, BL653_DVK and
180 .reference = ADC_REFERENCE,
198 zassert_true(device_is_ready(dac_dev), "DAC device is not ready"); in init_dac()
[all …]
/Zephyr-latest/samples/drivers/dac/
DREADME.rst1 .. 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::
[all …]
/Zephyr-latest/tests/drivers/build_all/dac/
Dapp.overlay4 * SPDX-License-Identifier: Apache-2.0
9 * with real-world devicetree nodes, to allow these tests to run on
15 #address-cells = <1>;
16 #size-cells = <1>;
20 gpio-controller;
22 #gpio-cells = <0x2>;
27 #address-cells = <1>;
28 #size-cells = <0>;
32 clock-frequency = <100000>;
37 #io-channel-cells = <1>;
[all …]
/Zephyr-latest/boards/gd/gd32a503v_eval/doc/
Dindex.rst6 The GD32A503V-EVAL board is a hardware platform that enables design and debug
7 of the GigaDevice A503 Cortex-M4F High Performance MCU.
9 The GD32A503VD features a single-core ARM Cortex-M4F MCU which can run up
10 to 120-MHz with flash accesses zero wait states, 384kiB of Flash, 48kiB of
16 - 2 user LEDs
17 - 2 user push buttons
18 - Reset Button
19 - ADC connected to a potentiometer
20 - 1 DAC channels
21 - GD25Q16 2Mib SPI Flash
[all …]
/Zephyr-latest/samples/sensor/mcux_acmp/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
50 /* Negative input port set to DAC */
56 /* DAC voltage reference */
59 /* DAC value */
94 acmp_input_handler((int16_t)trigger->type == in acmp_trigger_handler()
123 /* Delay for analog components (DAC, CMP, ...) to settle */ in main()

123456