Jump to main content

##

# 3.10.6 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 3-6.Functions
Name | Description
--- | ---
DAC_CTRL_Initialize | Initializes DAC_CTRL module of the device
DAC_CTRL_DataWrite | Converts a Digital data to Analog value
DAC_CTRL_Enable | Enables Digital-to-Analog Converter Controller
DAC_CTRL_Disable | Disables Digital-to-Analog Converter Controller