English
Language : 

PIC18F1XK22 Datasheet, PDF (246/388 Pages) Microchip Technology – 20-Pin Flash Microcontrollers with nanoWatt XLP Technology
PIC18F1XK22/LF1XK22
REGISTER 20-2: VREFCON1: VOLTAGE REFERENCE CONTROL REGISTER 1
R/W-0
R/W-0
R/W-0
U-0
R/W-0
R/W-0
U-0
D1EN
D1LPS
DAC1OE
—
D1PSS1
D1PSS0
—
bit 7
R/W-0
D1NSS
bit 0
Legend:
R = Readable bit
-n = Value at POR
W = Writable bit
‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
x = Bit is unknown
bit 7
bit 6
bit 5
bit 4
bit 3-2
bit 1
bit 0
D1EN: DAC 1 Enable bit
0 = DAC 1 is disabled
1 = DAC 1 is enabled
D1LPS: DAC 1 Low-Power Voltage State Select bit
0 = VDAC = DAC1 Negative reference source selected
1 = VDAC = DAC1 Positive reference source selected
DAC1OE: DAC 1 Voltage Output Enable bit
1 = DAC 1 voltage level is also outputed on the RA0/AN0/CVREF/VREF-/C1IN+/INT0/PGD pin
0 = DAC 1 voltage level is disconnected from RA0/AN0/CVREF/VREF-/C1IN+/INT0/PGD pin pin
Unimplemented: Read as ‘0’
D1PSS<1:0>: DAC 1 Positive Source Select bits
00 = VDD
01 = VREF+
10 = FVR output
11 = Reserved, do not use
Unimplemented: Read as ‘0’
D1NSS: DAC1 Negative Source Select bits
0 = VSS
1 = VREF-
REGISTER 20-3: VREFCON2: VOLTAGE REFERENCE CONTROL REGISTER 2
U-0
—
bit 7
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
—
—
DAC1R4 DAC1R3
DAC1R2
DAC1R1
R/W-0
DAC1R0
bit 0
Legend:
R = Readable bit
-n = Value at POR
W = Writable bit
‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
x = Bit is unknown
bit 7-5
bit 4-0
Unimplemented: Read as ‘0’
DAC1R<4:0>: DAC1 Voltage Output Select bits
VOUT = ((VSOURCE+) - (VSOURCE-))*(DAC1R<4:0>/(2^5)) + VSOURCE-
Note 1: The output select bits are always right justified to ensure that any number of bits can be used without
affecting the register layout.
DS41365D-page 246
Preliminary
 2010 Microchip Technology Inc.