Datasheet
2012-2013 Microchip Technology Inc. DS30009312B-page 355
PIC24FJ128GC010 FAMILY
REGISTER 26-6: ADLnCONH: A/D SAMPLE LIST n CONTROL HIGH REGISTER
(n = 0 to 3)
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
ASEN SLINT1 SLINT0 WM1 WM0 CM2 CM1 CM0
bit 15 bit 8
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
CTMEN
r MULCHEN SAMC4 SAMC3 SAMC2 SAMC1 SAMC0
bit 7 bit 0
Legend: r = Reserved bit
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 15 ASEN: A/D Auto-Scan Enable bit
1 = Auto-Scan: Sample and convert all associated inputs sequentially on every trigger event
0 = Sequential Scan: Sample and convert the next associated input on trigger event
bit 14-13 SLINT<1:0>: Interrupt Trigger Control bits
When ASEN =
1:
11 = Interrupt after auto-scan completion only if a match occurred
10 = Interrupt after every match
01 = Interrupt after auto-scan completion
00 = No Interrupt
When ASEN = 0:
11 = Reserved
10 = Interrupt after all entries in a sample list have been converted (SLSIZE<4:0> + 1 samples)
01 = Interrupt after every sample
00 = No interrupt
bit 12-11 WM<1:0>: Internal Buffer Write Mode bits
11 = Reserved
10 = No conversion results saved (typically for threshold compare only)
01 = Conversion results saved when a match occurs (typically for threshold compare only)
00 = All conversion results saved to the ADRESn register associated with the conversion
bit 10-8 CM<2:0>: Threshold Compare Match bits
111 = Reserved
110 = Reserved
101 = Reserved
100 = Outside Window Match: A/D Result < Low Threshold Value or A/D Result >Threshold High Value
011 = Inside Window Match: Low Threshold Value < A/D Result < Threshold High Value
010 = Greater Than Match: A/D Result > Threshold Value.
001 = Less Than Match: A/D Result < Threshold Value
000 = Matching is disabled
bit 7 CTMEN: A/D CTMU Current Source Enable bit
1 = CTMU is enabled during sampling and used as a current source driving the selected analog input
0 = CTMU is not used as a current source driving selected analog input
bit 6 Reserved: Maintain as ‘0’ for normal operation
bit 5 MULCHEN: Multiple Channel Enable bit
1 = Channels 15 to n are connected in parallel and scanned together
0 = Channels 15 to n in the scan list are sampled one at a time, as defined by the ASEN bit