© 2004 Microchip Technology Inc. DS70064C-page 17-41
Section 17. 10-bit A/D Converter
10-bit A/D
Converter
17
17.15.6 Example: Sampling Eight Inputs Using Simultaneous Sampling
Subsection 17.15.6 and Subsection 17.15.7 demonstrate identical setups with the exception that
Subsection 17.15.6 uses simultaneous sampling with SIMSAM = 1 and Subsection 17.15.7 uses
sequential sampling with SIMSAM = 0. Both examples use alternating inputs and specify
differential inputs to the sample/hold.
Figure 17-19 and Table 17-7 demonstrate simultaneous sampling. When converting more than
one channel and selecting simultaneous sampling, the module will sample all channels, then
perform the required conversions in sequence. In this example, with ASAM set, sampling will
begin after the conversions complete.
Figure 17-19: Sampling Eight Inputs Using Simultaneous Sampling
ADCLK
SAMP
DONE
Input to CH0
AN13-AN1
TSAMP
ADIF
AN0
AN1
AN2
Input to CH1
Input to CH2
Input to CH3
ADCBUFD
ADCBUFE
ADCBUFF
AN14
TSAMP
AN3-AN6
AN4-AN7
AN5-AN8
AN14
TSAMP
AN3-AN6
AN4-AN7
AN5-AN8
ASAM
AN13-AN1
AN0
AN1
AN2
ADCBUF0
ADCBUF1
ADCBUF2
ADCBUF3
ADCBUFC
Conversion
Trigger
T
CONVTCONVTCONVTCONV TCONVTCONVTCONVTCONV TCONVTCONVTCONVTCONV