Vault 7: Projects

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

PIC24F Family Reference Manual
DS39737A-page 49-42 Preliminary © 2010 Microchip Technology Inc.
49.9.4 Using Alternating MUXA, MUXB Input Selections
Figure 49-22 and Table 49-15 demonstrate alternate sampling of the inputs assigned to MUXA
and MUXB. In this example, two channels are enabled to sample simultaneously. Setting the
ALTS bit (ADCxCON2<0>) enables alternating input selections. The first sample uses the MUXA
inputs specified by the CH0SA, CH0NA, CH123SA and CH123NA bits. The next sample uses
the MUXB inputs specified by the CH0SB, CH0NB, CH123SB and CH123NB bits.
Note that using four S&H channels, without alternating input selections, results in the same
number of conversions as this example, using two channels with alternating input selections.
However, because the CH1, CH2 and CH3 channels are more limited in the selectivity of the
analog inputs, this example method provides more flexibility of input selection than using four
channels.
Figure 49-22: Converting Two Sets of Two Inputs Using Alternating Input Selections
ADC Clock
SAMP
ADC1BUF0
ADC1BUF1
DONE
ADC1BUF2
ADC1BUF3
Input to
AN1
TSAMP
ADxIF
T
CONV
T
CONV
AN0
Input to
ADC1BUF4
ADC1BUF5
ADC1BUF6
ADC1BUF7
AN5
TSAMP
T
CONV
T
CONV
AN3
ASAM
BUFM
AN1
TSAMP
T
CONV
T
CONV
AN0
AN5
TSAMP
T
CONV
T
CONV
AN3
ADC1BUF8
T
CONV
T
CONV
TSAMP
AN5
AN3
Cleared by Software
CH0
CH1
Conversion
Trigger
Cleared
in Software

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh