# Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

### Protego

# PIC24FJ32MC10X -- 10-Bit ADC

- 1
- 2
…
- 45
- 46
- 47
- 48
- 49
…
- 57
- 58

© 2010 Microchip Technology Inc. Preliminary DS39737A-page 49-47
Section 49. 10-Bit ADC with 4 Simultaneous Conversions
10-Bit ADC with
4 Simultaneous
Conversions
49
Table 49-17: Sampling Eight Inputs Using Sequential Sampling
CONTROL BITS OPERATION SEQUENCE
Sequence Select Sample: (AN0-AN1)  CH0
SMPI<3:0> = 1111 Convert CH0, Write ADC1BUF0
Interrupt on 16th Sample Sample: AN0  CH1
CHPS<1:0> = 1x Convert CH1, Write ADC1BUF1
Sample Channels CH0, CH1, CH2, CH3 Sample: AN1  CH2
SIMSAM = 0 Convert CH2, Write ADC1BUF2
Sample All Channels Sequentially Sample: AN2  CH3
BUFM = 0 Convert CH3, Write ADC1BUF3
Single 16-Word Result Buffer Sample: (AN2-AN1)  CH0
ALTS = 1 Convert CH0, Write ADC1BUF4
Alternate MUXA/MUXB Input Select Sample: AN3  CH1
MUXA Input Select Convert CH1, Write ADC1BUF5
CH0SA<3:0> = 0000 Sample: AN4  CH2
Select AN0 for CH0+ Input Convert CH2, Write ADC1BUF6
CH0NA = 1 Sample: AN5  CH3
Select AN1 for CH0- Input Convert CH3, Write ADC1BUF7
CSCNA = 0 Sample: (AN0-AN1)  CH0
No Input Scan Convert CH0, Write ADC1BUF8
CSSL<15:0> = N/A Sample: AN0  CH1
Scan Input Select Unused Convert CH1, Write ADC1BUF9
CH123SA = 0 Sample: AN1  CH2
CH1+ = AN0, CH2+ = AN1, CH3+ = AN2 Convert CH2, Write ADC1BUFA
CH123NA<1:0> = 0X Sample: AN2  CH3
CH1-, CH2-, CH3- = AV
SS Convert CH3, Write ADC1BUFB
MUXB Input Select Sample: (AN2-AN1)  CH0
CH0SB<3:0> = 0010 Convert CH0, Write ADC1BUFC
Select AN2 for CH0+ Input Sample: AN3  CH1
CH0NB = 1 Convert CH1, Write ADC1BUFD
Select AN1 for CH0- Input Sample: AN4  CH2
CH123SB = 1 Convert CH2, Write ADC1BUFE
CH1+ = AN3, CH2+ = AN4, CH3+ = AN5 Sample: AN5  CH3
CH123NB<1:0> = 0x Convert CH3, Write ADC1BUFF
CH1-, CH2-, CH3- = AV
SS ADC Interrupt
Repeat
ADC Buffer @ First ADC Interrupt ADC Buffer @ Second ADC Interrupt
ADC1BUF0 (AN0-AN1) Sample 1 (AN0-AN1) Sample 3
ADC1BUF1 AN0 Sample 1 AN0 Sample 3
ADC1BUF2 AN1 Sample 1 AN1 Sample 3
ADC1BUF3 AN2 Sample 1 AN2 Sample 3
ADC1BUF4 (AN2-AN1) Sample 1 (AN2-AN1) Sample 3
ADC1BUF5 AN3 Sample 1 AN3 Sample 3
ADC1BUF6 AN4 Sample 1 AN4 Sample 3
ADC1BUF7 AN5 Sample 1 AN5 Sample 3
ADC1BUF8 (AN0-AN1) Sample 2 (AN0-AN1) Sample 4
ADC1BUF9 AN0 Sample 2 AN0 Sample 4
ADC1BUFA AN1 Sample 2 AN1 Sample 4
ADC1BUFB AN2 Sample 2 AN2 Sample 28
ADC1BUFC (AN2-AN1) Sample 2 (AN2-AN1) Sample 4
ADC1BUFD AN3 Sample 2 AN3 Sample 4
ADC1BUFE AN4 Sample 2 AN4 Sample 4
ADC1BUFF AN5 Sample 2 AN5 Sample 4

- 1
- 2
…
- 45
- 46
- 47
- 48
- 49
…
- 57
- 58