English
Language : 

PIC18LF24K Datasheet, PDF (422/594 Pages) –
PIC18(L)F26/45/46K40
30.1 Output Voltage Selection
The DAC has 32 voltage level ranges. The 32 levels
are set with the DAC1R<4:0> bits of the DAC1CON1
register.
The DAC output voltage can be determined by using
Equation 30-1.
30.2 Ratiometric Output Level
The DAC output value is derived using a resistor ladder
with each end of the ladder tied to a positive and
negative voltage reference input source. If the voltage
of either input source fluctuates, a similar fluctuation
will result in the DAC output value.
The value of the individual resistors within the ladder
can be found in Table 37-16.
30.3 DAC Voltage Reference Output
The unbuffered DAC voltage can be output to the
DACxOUTn pin(s) by setting the respective DACOEn
bit(s) of the DACxCON0 register. Selecting the DAC
reference voltage for output on either DACxOUTn pin
automatically overrides the digital output buffer, the
weak pull-up and digital input threshold detector
functions of that pin.
Reading the DACxOUTn pin when it has been
configured for DAC reference voltage output will
always return a ‘0’.
Note: The unbuffered DAC output (DACxOUTn)
is not intended to drive an external load.
30.4 Operation During Sleep
When the device wakes up from Sleep through an
interrupt or a Windowed Watchdog Timer Time-out, the
contents of the DACxCON0 register are not affected.
To minimize current consumption in Sleep mode, the
voltage reference should be disabled.
30.5 Effects of a Reset
A device Reset affects the following:
• DACx is disabled.
• DACX output voltage is removed from the
DACxOUTn pin(s).
• The DAC1R<4:0> range select bits are cleared.
EQUATION 30-1: DAC OUTPUT VOLTAGE
IF DACEN = 1
DACx_output
=



VREF+
–
VREF-


-D----A----C----2-R--5----4---:--0----
+ VREF-
Note: See the DAC1CON0 register for the available VSOURCE+ and VSOURCE- selections.
 2016 Microchip Technology Inc.
Preliminary
DS40001816C-page 422