Specifications

© 2006 Microchip Technology Inc. DS70183A-page 16-21
Section 16. Analog-to-Digital Converter (ADC)
A
D
C
16
Table 16-1: Sample/Conversion Control Options
16.10 HOW TO START SAMPLING
16.10.1 Manual
Setting the SAMP bit (ADxCON1<1>) causes the ADC to begin sampling. One of several options
can be used to end sampling and complete the conversions. Sampling does not resume until the
SAMP bit is once again set. For an example, see Figure 16-5.
16.10.2 Automatic
Setting the ASAM bit (ADxCON1<2>) causes the ADC to automatically begin sampling a channel
whenever a conversion is not active on that channel. One of several options can be used to end
sampling and complete the conversions. If the SIMSAM bit specifies sequential sampling,
sampling on a channel resumes after the conversion of that channel completes. If the SIMSAM
bit specifies simultaneous sampling, sampling on a channel resumes after the conversion of all
channels completes. For an example, see Figure 16-6.
CHPS<1:0> SIMSAM Sample/Conversion Sequence
# of Sample/
Convert Cycles
to Complete
Example
00 x Sample CH0, Convert CH0 1 Figure 16-5,
Figure 16-6,
Figure 16-7,
Figure 16-8,
Figure 16-11,
Figure 16-12,
Figure 16-17,
Figure 16-18
01 0 Sample CH0, Convert CH0
Sample CH1, Convert CH1
2
1x 0 Sample CH0, Convert CH0
Sample CH1, Convert CH1
Sample CH2, Convert CH2
Sample CH3, Convert CH3
4 Figure 16-10,
Figure 16-14,
Figure 16-22
01 1 Sample CH0, CH1 simultaneously
Convert CH0
Convert CH1
1 Figure 16-20
1x 1 Sample CH0, CH1, CH2, CH3
simultaneously
Convert CH0
Convert CH1
Convert CH2
Convert CH3
1 Figure 16-9,
Figure 16-13,
Figure 16-19,
Figure 16-21