Datasheet

2009-2016 Microchip Technology Inc. DS40001365F-page 235
PIC18(L)F1XK22
21.7 Operation During Sleep
When the device wakes up from Sleep through an
interrupt or a Watchdog Timer time-out, the contents of
the VREFCON1 register are not affected. To minimize
current consumption in Sleep mode, the voltage
reference should be disabled.
21.8 Effects of a Reset
A device Reset affects the following:
DAC is disabled
DAC output voltage is removed from the
DAC1OUT pin
The DAC1R<4:0> range select bits are cleared
21.9 Register Definitions: DAC Control
REGISTER 21-1: VREFCON1: VOLTAGE REFERENCE CONTROL REGISTER 0
R/W-0 R/W-0 R/W-0 U-0 R/W-0 R/W-0 U-0 R/W-0
D1EN D1LPS DAC1OE
D1PSS<1:0>
D1NSS
bit 7 bit 0
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
u = Bit is unchanged x = Bit is unknown -n/n = Value at POR and BOR/Value at all other Resets
‘1’ = Bit is set ‘0’ = Bit is cleared
bit 7 D1EN: DAC Enable bit
1 = DAC is enabled
0 = DAC is disabled
bit 6 D1LPS: DAC Low-Power Voltage Source Select bit
1 = DAC Positive reference source selected
0 = DAC Negative reference source selected
bit 5 DAC1OE: DAC Voltage Output Enable bit
1 = DAC voltage level is also an output on the DAC1OUT (CV
REF) pin
0 = DAC voltage level is disconnected from the DAC1OUT (CV
REF) pin
bit 4 Unimplemented: Read as ‘0
bit 3-2 D1PSS<1:0>: DAC Positive Source Select bits
00 =V
DD
01 =VREF+
10 = FVR1BUF1 output
11 = Reserved, do not use
bit 1 Unimplemented: Read as ‘0
bit 0 D1NSS: DAC Negative Source Select bits
1 =V
REF-
0 =V
SS