2.22 Digital-to-Analog Converter (DAC)

This Plib implements software abstraction for DAC Peripheral.

Library Interface

Digital Analog Converter peripheral library provides the following interfaces:

Functions

NameDescription
DAC_InitializeInitializes given instance of the DAC peripheral
DAC_DataWriteThis function will write the specified value to the DAC and start the conversion
DAC_IsReadyChecks whether DAC is ready for receiving next sample value
DAC_Channel0ResultGetReturns the Channel 0 Filter output
DAC_Channel1ResultGetReturns the Channel 1 Filter output

Data types and constants

NameTypeDescription
DAC_CHANNEL_NUMEnumIdentifies the Channel index of DAC module
Note: Not all APIs maybe implemented. See the specific device family section for available APIs.