Specifications
dsPIC33F Family Reference Manual
DS70183A-page 16-22 © 2006 Microchip Technology Inc.
16.11 HOW TO STOP SAMPLING AND START CONVERSIONS
The conversion trigger source terminates sampling and starts a selected sequence of
conversions. The Sample Clock Source Select (SSRC<2:0>) bits (ADxCON1<7:5>) select the
source of the conversion trigger.
16.11.1 Manual
When SSRC<2:0> = 000, the conversion trigger is under software control. Clearing the SAMP
bit (ADxCON1<1>) starts the conversion sequence.
Figure 16-5 is an example where setting the SAMP bit initiates sampling and clearing the SAMP
bit terminates sampling and starts conversion. The user software must time the setting and
clearing of the SAMP bit to ensure adequate sampling time of the input signal. See Example 16-1
for code example.
Figure 16-5: Converting 1 Channel, Manual Sample Start, Manual Conversion Start
Note: The available conversion trigger sources can vary depending on the device variant.
Please refer to the specific device data sheet for the available conversion trigger
sources.
Note: The SSRC<2:0> selection bits should not be changed when the ADC module is
enabled. If you change the conversion trigger source, be sure the ADC module is
disabled first by clearing the ADON bit (ADxCON1<15>).
ADC Clock
SAMP
ADC1BUF0
TSAMP
TCONV
BCLR AD1CON1,SAMPBSET AD1CON1,SAMP
Instruction Execution
DONE