34.3.2.3 DAC Output Voltage

The analog output voltage from the DAC peripheral is found on the DACn.OUT pin. See the I/O Multiplexing and Considerations section for details.

The following equation defines the DAC output voltage:

D A C n O u t p u t V o l t a g e = ( D A C n . D A T A 1024 ) * ( D A C v o l t a g e r e f e r e n c e )

The 10-bit value entered into the DATA register must be divided by the maximum value of the register (10-bit max. value is 210 = 1024) to get the correct voltage fraction.

The maximum value we can get is when DATA = 210, the resulting voltage is equal to the selected DAC voltage reference.

The minimum result is when DATA = ‘0’, then the output is ‘0’.

The step size for the voltage output is D A C v o l t a g e r e f e r e n c e 1024 V.