EasyManua.ls Logo

Microchip Technology dsPIC30F - A;D Terminology and Conversion Sequence

Microchip Technology dsPIC30F
738 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
dsPIC30F Family Reference Manual
DS70065C-page 18-10 © 2004 Microchip Technology Inc.
18.4 A/D Terminology and Conversion Sequence
Figure 18-2 shows a basic conversion sequence and the terms that are used. A sampling of the
analog input pin voltage is performed by sample and hold S/H amplifiers. The S/H amplifiers are
also called S/H channels. The 12-bit A/D converter has one S/H channel, designated CH0. The
S/H channel is connected to the analog input pins via the analog input multiplexer. The analog
input multiplexer is controlled by the ADCHS register. There are two sets of multiplexer control
bits in the ADCHS register that function identically. These two sets of control bits allow two
different analog input multiplexer configurations to be programmed, which are called MUX A and
MUX B. The A/D converter can optionally switch between the MUX A and MUX B configurations
between conversions. The A/D converter can also optionally scan through a series of analog
inputs.
Sample time is the time that the A/D module’s S/H amplifier is connected to the analog input pin.
The sample time may be started manually by setting the SAMP bit (ADCON1<1>) or started
automatically by the A/D converter hardware. The sample time is ended manually by clearing the
SAMP control bit in the user software or automatically by a conversion trigger source.
Conversion time is the time required for the A/D converter to convert the voltage held by the S/H
amplifier. The A/D is disconnected from the analog input pin at the end of the sample time. The
A/D converter requires one A/D clock cycle (T
AD) to convert each bit of the result plus one
additional clock cycle. A total of 14 T
AD cycles are required to perform the complete conversion.
When the conversion time is complete, the result is loaded into one of 16 A/D result registers
(ADCBUF0...ADCBUFF), the S/H can be reconnected to the input pin, and a CPU interrupt may
be generated.
The sum of the sample time and the A/D conversion time provides the total conversion time.
There is a minimum sample time to ensure that the S/H amplifier will give the desired accuracy
for the A/D conversion (see Section 18.15 “A/D Sampling Requirements”). Furthermore, there
are multiple input clock options for the A/D converter. The user must select an input clock option
that does not violate the minimum T
AD specification.
Figure 18-2: A/D Sample/Conversion Sequence
Sample Time
A/D Conversion Time
A/D Total Conversion Time
S/H amplifier is connected to the analog input pin for sampling.
S/H amplifier is disconnected from input and holds signal lever.
A/D conversion is started by the conversion trigger source.
A/D conversion complete,
result is loaded into A/D result buffer.
Optionally generate interrupt.

Table of Contents

Other manuals for Microchip Technology dsPIC30F