MA240029 Microchip Technology, MA240029 Datasheet - Page 295

no-image

MA240029

Manufacturer Part Number
MA240029
Description
Daughter Cards & OEM Boards PIC24FJ128GA310 Gen Purpose PIM
Manufacturer
Microchip Technology
Datasheet

Specifications of MA240029

Rohs
yes
Product
Daughter Cards
Core
PIC
Description/function
Plug-in module
Interface Type
I2C, SPI
Tool Is For Evaluation Of
PIC24FJ128GA310
For Use With
Explorer 16 Development Board

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MA240029
Manufacturer:
MICROCHIP
Quantity:
12 000
24.0
The 12-bit A/D Converter has the following key
features:
• Successive Approximation Register (SAR)
• Conversion Speeds of up to 200 ksps
• Up to 32 Analog Input Channels (internal and
• Selectable 10-Bit or 12-Bit (default) Conversion
• Multiple Internal Reference Input Channels
• External Voltage Reference Input Pins
• Unipolar Differential Sample-and-Hold (S/H)
• Automated Threshold Scan and Compare
• Selectable Conversion Trigger Source
• Fixed Length (one word per channel),
• Four Options for Results Alignment
• Configurable Interrupt Generation
• Enhanced DMA Operations with Indirect Address
• Operation During CPU Sleep and Idle modes
The 12-bit A/D Converter module is an enhanced ver-
sion of the 10-bit module offered in earlier PIC24
devices. It is a Successive Approximation Register
(SAR) Converter, enhanced with 12-bit resolution, a
wide range of automatic sampling options, tighter inte-
gration with other analog modules and a configurable
results buffer.
It also includes a unique Threshold Detect feature that
allows the module itself to make simple decisions
based on the conversion results, and enhanced opera-
tion with the DMA Controller through Peripheral Indirect
Addressing (PIA).
A simplified block diagram for the module is shown in
Figure
 2010-2011 Microchip Technology Inc.
Note:
Conversion
external)
Resolution
Amplifier
Operation to Pre-Evaluate Conversion Results
Configurable Conversion Result Buffer
Generation
24-1.
12-BIT A/D CONVERTER WITH
THRESHOLD SCAN
This data sheet summarizes the features
of this group of PIC24F devices. It is not
intended to be a comprehensive refer-
ence source. For more information on the
12-Bit A/D Converter, refer to the “PIC24F
Family Reference Manual”, Section 51.
“12-Bit A/D Converter with Threshold
Detect” (DS39739).
PIC24FJ128GA310 FAMILY
24.1
To perform a standard A/D conversion:
1.
2.
3.
Configure the module:
a)
b)
c)
d)
e)
f)
g)
h)
i)
Configure the A/D interrupt (if required):
a)
b)
c)
If the module is configured for manual sampling,
set the SAMP bit (AD1CON1<1>) to begin
sampling.
Basic Operation
Configure port pins as analog inputs by
setting the appropriate bits in the ANSELn
registers (see
Analog Port Pins (ANSx)”
information).
Select the voltage reference source to
match expected range on analog inputs
(AD1CON2<15:13>).
Select the positive and negative multiplexer
inputs for each channel (AD1CHS<15:0>).
Select the analog conversion clock to match
the desired data rate with the processor
clock (AD1CON3<7:0>).
Select the appropriate sample/conversion
sequence
AD1CON3<12:8>).
For Channel A scanning operations, select
the positive channels to be included
(AD1CSSH and AD1CSSL registers).
Select
presented in the buffer (AD1CON1<9:8>
and AD1CON5 register).
Select the interrupt rate (AD1CON2<5:2>).
Turn on A/D module (AD1CON1<15>).
Clear the AD1IF bit (IFS0<13>).
Enable the AD1IE interrupt (IEC0<13>).
Select the A/D interrupt priority (IPC3<6:4>).
how
Section 11.2 “Configuring
(AD1CON1<7:5>
conversion
DS39996F-page 295
results
for more
and
are

Related parts for MA240029