# Vault 7: Projects

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

### Protego

# PIC24FJ32MC10X -- 10-Bit ADC

- 1
- 2
…
- 41
- 42
- 43
- 44
- 45
…
- 57
- 58

© 2010 Microchip Technology Inc. Preliminary DS39737A-page 49-43
Section 49. 10-Bit ADC with 4 Simultaneous Conversions
10-Bit ADC with
4 Simultaneous
Conversions
49
Table 49-15: Converting Two Sets of Two Inputs Using Alternating Input Selections
CONTROL BITS OPERATION SEQUENCE
Sequence Select Sample MUXA Inputs: AN1  CH0, AN0  CH1
SMPI<3:0> = 0011 Convert CH0, Write ADC1BUF0
Interrupt on 4th Sample Convert CH1, Write ADC1BUF1
CHPS<1:0> = 01 Sample MUXB Inputs: AN5  CH0, AN3  CH1
Sample Channels CH0, CH1 Convert CH0, Write ADC1BUF2
SIMSAM = 1 Convert CH1, Write ADC1BUF3
Sample All Channels Simultaneously Sample MUXA Inputs: AN1  CH0, AN0  CH1
BUFM = 1 Convert CH0, Write ADC1BUF4
Dual 8-Word Result Buffers Convert CH1, Write ADC1BUF5
ALTS = 1 Sample MUXB Inputs: AN5  CH0, AN3  CH1
Alternate MUXA/MUXB Input Select Convert CH0, Write ADC1BUF6
MUXA Input Select Convert CH1, Write ADC1BUF7
CH0SA<3:0> = 0001 Interrupt; Change Buffer
Select AN1 for CH0+ Input Sample MUXA Inputs: AN1  CH0, AN0  CH1
CH0NA = 0 Convert CH0, Write ADC1BUF8
Select AV
SS for CH0- Input Convert CH1, Write ADC1BUF9
CSCNA = 0 Sample MUXB Inputs: AN5  CH0, AN3  CH1
No Input Scan Convert CH0, Write ADC1BUFA
CSSL<15:0> = N/A Convert CH1, Write ADC1BUFB
Scan Input Select Unused Sample MUXA Inputs: AN1  CH0, AN0  CH1
CH123SA = 0 Convert CH0, Write ADC1BUFC
CH1+ = AN0, CH2+ = AN1,CH3+ = AN2 Convert CH1, Write ADC1BUFD
CH123NA<1:0> = 0x Sample MUXB Inputs: AN5  CH0, AN3  CH1
CH1-, CH2-, CH3- = AV
SS Convert CH0, Write ADC1BUFE
MUXB Input Select Convert CH1, Write ADC1BUFF
CH0SB<3:0> = 0101 ADC Interrupt; Change Buffer
Select AN5 for CH0+ Input Repeat
CH0NB = 0
Select AV
SS for CH0- Input
CH123SB = 1
CH1+ = AN3, CH2+ = AN4, CH3+ = AN5
CH123NB<1:0> = 0x
CH1-, CH2-, CH3- = AV
SS
ADC Buffer @ First ADC Interrupt ADC Buffer @ Second ADC Interrupt
ADC1BUF0 AN1 Sample 1
ADC1BUF1 AN0 Sample 1
ADC1BUF2 AN5 Sample 2
ADC1BUF3 AN3 Sample 2
ADC1BUF4 AN1 Sample 3
ADC1BUF5 AN0 Sample 3
ADC1BUF6 AN5 Sample 4
ADC1BUF7 AN3 Sample 4
ADC1BUF8 AN1 Sample 5
ADC1BUF9 AN0 Sample 5
ADC1BUFA AN5 Sample 6
ADC1BUFB AN3 Sample 6
ADC1BUFC AN1 Sample 7
ADC1BUFD AN0 Sample 7
ADC1BUFE AN5 Sample 8
ADC1BUFF AN3 Sample 8

- 1
- 2
…
- 41
- 42
- 43
- 44
- 45
…
- 57
- 58