1.10.2 1.11.2 1.12.2 1.13.2 1.14.3 1.15.3 Digital-to-Analog Converter (CDAC)

The Control Digital-to-Analog Converter (CDAC) converts a digital value to a voltage. The CDAC has one channel with 12-bit resolution, and it is capable of converting up to 1,000,000 samples per second (1Msps).

Using The Library

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

uint16_t data = 0x800;
CDAC1_DataWrite(data);

Library Interface

peripheral library provides the following interfaces:

Functions

Name Description
CDACx_Initialize Initializes given instance of the CDAC peripheral
CDACx_DataWrite This function will write the specified value to the CDAC and start the conversion