1.15.3.2 CDACx_DataWrite Function
C
// x is instance of the peripheral and it is applicable only for devices having multiple instances of the peripheral.
void CDACx_DataWrite( uint16_t data )
Summary
This function will write the specified value to the CDAC and start the conversion.
Description
This function will write the specified value to the CDAC and start the conversion. The internal and/or external CDAC outputs will be updated if these output were enabled. The analog output voltage will depend on the choice of the CDAC reference.
Precondition
CDACx_Initialize must have been called for the associated CDAC instance.
Parameters
Param | Description |
---|---|
data | Digital value to be converted. |
Returns
None.
Example
uint16_t data = 0x800;
CDAC1_Initialize();
CDAC1_DataWrite(data);
Remarks
None.