2.23 Digital-to-Analog Converter Controller (DAC_CTRL)

The Digital-to-Analog Converter Controller (DAC_CTRL) peripheral provides the following features:
  • 7-bit resolution
  • Normal and Low Power Mode
  • Sample and hold circuitry

Using The Library

The DAC_CTRL peripheral library provides an interface for the conversion of digital values to analog voltage.

The user must ensure that DAC_CTRL is enabled before new data is written as illustrated below:
    DAC_CTRL_Enable();
    DAC_CTRL_DataWrite(0x7f);

Library Interface

Digital-to-Analog Converter Controller peripheral library provides the following interfaces:
Table 2-1. Functions
NameDescription
DAC_CTRL_InitializeInitializes DAC_CTRL module of the device
DAC_CTRL_DataWriteConverts a Digital data to Analog value
DAC_CTRL_EnableEnables Digital-to-Analog Converter Controller
DAC_CTRL_DisableDisables Digital-to-Analog Converter Controller
Note: Not all APIs maybe implemented. See the specific device family section for available APIs.