English
Language : 

PIC24F16KL402 Datasheet, PDF (157/260 Pages) Microchip Technology – Low-Power, Low-Cost, General Purpose 16-Bit Flash Microcontrollers with nanoWatt XLP Technology
PIC24F16KL402 FAMILY
19.0 10-BIT HIGH-SPEED A/D
CONVERTER
Note:
This data sheet summarizes the features
of this group of PIC24F devices. It is not
intended to be a comprehensive
reference source. For more information
on the 10-Bit High-Speed A/D Converter,
refer to the “PIC24F Family Reference
Manual”, Section 17. “10-Bit A/D
Converter” (DS39705).
The 10-bit A/D Converter has the following key
features:
• Successive Approximation (SAR) conversion
• Conversion speeds of up to 500 ksps
• Up to 12 analog input pins
• External voltage reference input pins
• Internal band gap reference input
• Automatic Channel Scan mode
• Selectable conversion trigger source
• Two-word conversion result buffer
• Selectable Buffer Fill modes
• Four result alignment options
• Operation during CPU Sleep and Idle modes
Depending on the particular device, PIC24F16KL402
family devices implement up to 12 analog input pins,
designated AN0 through AN4 and AN9 through AN15.
In addition, there are two analog input pins for external
voltage reference connections (VREF+ and VREF-).
These voltage reference inputs may be shared with
other analog input pins.
A block diagram of the A/D Converter is displayed in
Figure 19-1.
To perform an A/D conversion:
1. Configure the A/D module:
a) Configure port pins as analog inputs and/or
select band gap reference inputs
(ANSA<3:0>, ANSB<15:12, 4:0> and
ANCFG<0>).
b) Select the voltage reference source to
match the expected range on analog inputs
(AD1CON2<15:13>).
c) Select the analog conversion clock to match
the desired data rate with the processor
clock (AD1CON3<7:0>).
d) Select the appropriate sample/conversion
sequence
(AD1CON1<7:5>
and
AD1CON3<12:8>).
e) Select how conversion results are
presented in the buffer (AD1CON1<9:8>).
f) Select interrupt rate (AD1CON2<5:2>).
g) Turn on A/D module (AD1CON1<15>).
2. Configure A/D interrupt (if required):
a) Clear the AD1IF bit.
b) Select A/D interrupt priority.
 2011 Microchip Technology Inc.
DS31037B-page 157