Microchip Technology AC164337 Data Sheet

Page of 286
 2006-2014 Microchip Technology Inc.
DS70000178D-page 169
dsPIC30F1010/202X
16.0
10-BIT 2 Msps ANALOG-TO-
DIGITAL CONVERTER (ADC) 
MODULE
The dsPIC30F1010/202X devices provide high-speed
successive approximation analog to digital conversions
to support applications such as AC/DC and DC/DC
power converters.
16.1
Features
• 10-bit resolution
• Uni-polar Inputs
• Up to 12 input channels
• ±1 LSB accuracy
• Single supply operation
• 2000 ksps conversion rate at 5V
• 1000 ksps conversion rate at 3.0V
• Low power CMOS technology
16.2
Description
This ADC module is designed for applications that
require low latency between the request for conversion
and the resultant output data. Typical applications
include:
• AC/DC power supplies
• DC/DC converters
• Power factor correction
This ADC works with the Power Supply PWM module
in power control applications that require high-fre-
quency control loops. This module can sample and
convert two analog inputs in one microsecond. The one
microsecond conversion delay reduces the “phase lag”
between measurement and control system response.
Up to 4 inputs may be sampled at a time, and up to 12
inputs may request conversion at a time. If multiple
inputs request conversion, the ADC will convert them in
a sequential manner starting with the lowest order
input.
This ADC design provides each pair of analog inputs
(AN1,AN0), (AN3,AN2), ... , the ability to specify its own
trigger source out of a maximum of sixteen different
trigger sources. This capability allows this ADC to sam-
ple and convert analog inputs that are associated with
PWM generators operating on independent time
bases.
There is no operation during Sleep mode. The user
applications typically require synchronization between
analog data sampling and PWM output to the applica-
tion circuit.   The very high speed operation of this ADC
module allows “data on demand”.
In addition, several hardware features have been
added to the peripheral interface to improve real-time
performance in a typical DSP based application.
1.
Result alignment options
2.
Automated sampling
3.
External conversion start control
A block diagram of the ADC module is shown in 
Figure 16-1.
16.3
Module Functionality
The 10-bit 2 Msps ADC is designed to support power
conversion applications when used with the Power
Supply PWM module. The 10-bit 2 Msps ADC samples
up to N (N
12) inputs at a time and then converts two
sampled inputs at a time. The quantity of sample and
hold circuits is determined by a device’s requirements.
The10-Bit 2 Msps ADC produces two 10-bit conversion
results in 1 microsecond.
The ADC module supports up to 12 analog inputs. The
sampled inputs are connected, via multiplexers, to the
converter. 
The analog reference voltage is defined as the device
supply voltage (AV
DD
/AV
SS
). 
The ADC module uses these Control and Status regis-
ters:
The ADCON register controls the operation of the ADC
module. The ADSTAT register displays the status of the
conversion processes. The ADPCFG registers config-
ure the port pins as analog inputs or as digital I/O. The
CPC registers control the triggering of the ADC conver-
sions. (See Register 16-1 through Register 16-7 for
detailed bit configurations.)
Note: A unique feature of the ADC module is its abil-
ity to sample inputs in an asynchronous manner.
Individual sample and hold circuits can be triggered
independently of each other.
Note: The PLL must be enabled for the ADC module
to function. This is achieved by using the
FNOSC<1:0> bits in the FOSCSEL Configuration
register.