PIC32 Family Reference Manual
DS61104E-page 17-44
© 2007-2011 Microchip Technology Inc.
Table 17-7:
Converting Two Sets of Inputs Using Alternating Input Selections
CONTROL BITS
Sequence Select
SMPI<2:0> =
0011
Interrupt on 4th sample
—
—
BUFM =
1
Dual 8-word result buffers
ALTS =
1
Alternate MUX A/B input select
MUX A Input Select
CH0SA<3:0> =
0000
Select AN0 for MUX A positive input
CH0NA =
0
Select V
R
- for MUX A negative input
CSCNA =
0
No input scan
CSSL<15:0> = n/a
Scan input select unused
—
—
MUX B Input Select
CH0SB<3:0> =
0001
Select AN1 for MUX B positive input
CH0NB =
0
Select V
R
- for MUX B negative input
—
—
OPERATION SEQUENCE
Sample MUX A Inputs: AN0
Convert, Write Buffer 0x0
Sample MUX B Inputs: AN1
Convert, Write Buffer 0x1
Sample MUX A Inputs: AN0
Convert, Write Buffer 0x2
Sample MUX B Inputs: AN1
Convert, Write Buffer 0x3
Interrupt; Change Buffer
Sample MUX A Inputs: AN0
Convert, Write Buffer 0x8
Sample MUX B Inputs: AN1
Convert, Write Buffer 0x9
Sample MUX A Inputs: AN0
Convert, Write Buffer 0xA
Sample MUX B Inputs: AN1
Convert, Write Buffer 0xB
Interrupt; Change Buffer
Repeat
Buffer
Address
Buffer @
1st Interrupt
Buffer @
2nd Interrupt
ADC1BUF0
AN0 sample 1
ADC1BUF1
AN1 sample 1
ADC1BUF2
AN0 sample 2
ADC1BUF3
AN1 sample 2
ADC1BUF4
ADC1BUF5
ADC1BUF6
ADC1BUF7
•
•
•
ADC1BUF8
AN0 sample 3
ADC1BUF9
AN1 sample 3
ADC1BUFA
AN0 sample 4
ADC1BUFB
AN1 sample 4
ADC1BUFC
ADC1BUFD
ADC1BUFE
ADC1BUFF