Datasheet

Table Of Contents
PIC16(L)F1508/9
DS40001609C-page 150 2011-2013 Microchip Technology Inc.
16.1 Output Voltage Selection
The DAC has 32 voltage level ranges. The 32 levels
are set with the DACR<4:0> bits of the DACxCON1
register.
The DAC output voltage can be determined by using
Equation 16-1.
16.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 29-16.
16.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’.
16.4 Operation During Sleep
When the device wakes up from Sleep through an
interrupt or a 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.
16.5 Effects of a Reset
A device Reset affects the following:
DACx is disabled.
•DAC
X output voltage is removed from the
DACxOUTn pin(s).
The DACR<4:0> range select bits are cleared.
EQUATION 16-1: DAC OUTPUT VOLTAGE
Note: The unbuffered DAC output (DACxOUTn)
is not intended to drive an external load.
IF DACEN = 1
DACx_output VSOURCE+VSOURCE-
DACR 4:0
2
5
-----------------------------


V
SOURCE-+=
Note: See the DACxCON0 register for the available V
SOURCE+ and VSOURCE- selections.