32.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:

DACnOutputVoltage=(DACn.DATA1024)*(DACvoltagereference)

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 DACvoltagereference1024 V.