Microchip Technology DM183037 Data Sheet

Page of 696
PIC18F97J94 FAMILY
DS30575A-page 474
 2012 Microchip Technology Inc.
For this reason, users must always carefully consider
the allocation and use of the upper analog channels
(both external and internal) when using Windowed
Compare modes. Wherever possible, exclude the
upper analog channels for Threshold Detect
operations, and convert and test those channels in a
separate routine.
FIGURE 22-14:
OUTSIDE WINDOW COMPARISON OPERATION (OVER THRESHOLD 2)
  
ADC1BUF15
ADC1BUF14
ADC1BUF13
ADC1BUF12
ADC1BUF11
ADC1BUF10
Threshold 2
ADC1BUF9
ADC1BUF8
ADC1BUF7
ADC1BUF6
ADC1BUF5
ADC1BUF4
ADC1BUF3
ADC1BUF2
Threshold 1
ADC1BUF1
ADC1BUF0
Before Conversion and Comparison
     
AD1CHITL
15
14
13
12
11
10
9
8
0
0
0
0
0
1
0
0
7
6
5
4
3
2
1
0
0
0
0
0
0
1
0
0
After Conversion and Comparison
  
Compare Only
(‘10’)
Compare and 
Store (‘01’)
ADC1BUF15
ADC1BUF14
ADC1BUF13
ADC1BUF12
ADC1BUF11
ADC1BUF10
Threshold 2
Conversion Value
ADC1BUF9
ADC1BUF8
ADC1BUF7
ADC1BUF6
ADC1BUF5
ADC1BUF4
ADC1BUF3
ADC1BUF2
Threshold 1
Threshold 1
ADC1BUF1
ADC1BUF0
     
AD1CHITL
15
14
13
12
11
10
9
8
0
0
0
0
0
0
0
0
7
6
5
4
3
2
1
0
0
0
0
0
0
0
0
0