Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

PIC24HJ128GP310 Datasheet(PDF) 203 Page - Microchip Technology

Part # PIC24HJ128GP310
Description  High-Performance, 16-Bit Microcontrollers
PDF  286 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC24HJ128GP310 Datasheet(HTML) 203 Page - Microchip Technology

Back Button PIC24HJ128GP310 Datasheet HTML 199Page - Microchip Technology PIC24HJ128GP310 Datasheet HTML 200Page - Microchip Technology PIC24HJ128GP310 Datasheet HTML 201Page - Microchip Technology PIC24HJ128GP310 Datasheet HTML 202Page - Microchip Technology PIC24HJ128GP310 Datasheet HTML 203Page - Microchip Technology PIC24HJ128GP310 Datasheet HTML 204Page - Microchip Technology PIC24HJ128GP310 Datasheet HTML 205Page - Microchip Technology PIC24HJ128GP310 Datasheet HTML 206Page - Microchip Technology PIC24HJ128GP310 Datasheet HTML 207Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 203 / 286 page
background image
© 2007 Microchip Technology Inc.
DS70175F-page 201
PIC24HJXXXGPX06/X08/X10
19.0 10-BIT/12-BIT A/D CONVERTER
The PIC24HJXXXGPX06/X08/X10 devices have up to
32 A/D input channels. These devices also have up to
2 A/D converter modules (ADCx, where ‘x’ = 1 or 2),
each with its own set of Special Function Registers.
The AD12B bit (ADxCON1<10>) allows each of the
A/D modules to be configured by the user as either a
10-bit, 4-sample/hold A/D (default configuration) or a
12-bit, 1-sample/hold A/D.
19.1
Key Features
The 10-bit A/D configuration has the following key
features:
• Successive Approximation (SAR) conversion
• Conversion speeds of up to 1.1 Msps
• Up to 32 analog input pins
• External voltage reference input pins
• Simultaneous sampling of up to four analog input
pins
• Automatic Channel Scan mode
• Selectable conversion trigger source
• Selectable Buffer Fill modes
• Two result alignment options (signed/unsigned)
• Operation during CPU Sleep and Idle modes
The 12-bit A/D configuration supports all the above
features, except:
• In the 12-bit configuration, conversion speeds of
up to 500 ksps are supported
• There is only 1 sample/hold amplifier in the 12-bit
configuration, so simultaneous sampling of
multiple channels is not supported.
Depending on the particular device pinout, the A/D con-
verter can have up to 32 analog input pins, designated
AN0 through AN31. In addition, there are two analog
input pins for external voltage reference connections.
These voltage reference inputs may be shared with
other analog input pins. The actual number of analog
input pins and external voltage reference input config-
uration will depend on the specific device. Refer to the
device data sheet for further details.
A block diagram of the A/D converter is shown in
Figure 19-1.
19.2
A/D Initialization
The following configuration steps should be performed.
1.
Configure the A/D module:
a) Select
port
pins
as
analog
inputs
(ADxPCFGH<15:0> or ADxPCFGL<15:0>)
b) Select voltage reference source to match
expected
range
on
analog
inputs
(ADxCON2<15:13>)
c)
Select the analog conversion clock to
match desired data rate with processor
clock (ADxCON3<5:0>)
d) Determine how many S/H channels will
be
used
(ADxCON2<9:8>
and
ADxPCFGH<15:0> or ADxPCFGL<15:0>)
e) Select the appropriate sample/conversion
sequence
(ADxCON1<7:5>
and
ADxCON3<12:8>)
f)
Select
how
conversion
results
are
presented in the buffer (ADxCON1<9:8>)
g) Turn on A/D module (ADxCON1<15>)
2.
Configure A/D interrupt (if required):
a) Clear the ADxIF bit
b) Select A/D interrupt priority
19.3
ADC and DMA
If more than one conversion result needs to be buffered
before triggering an interrupt, DMA data transfers can
be used. Both ADC1 and ADC2 can trigger a DMA data
transfer. If ADC1 or ADC2 is selected as the DMA IRQ
source, a DMA transfer occurs when the AD1IF or
AD2IF bit gets set as a result of an ADC1 or ADC2
sample conversion sequence.
The SMPI<3:0> bits (ADxCON2<5:2>) are used to
select how often the DMA RAM buffer pointer is
incremented.
The ADDMABM bit (ADxCON1<12>) determines how
the conversion results are filled in the DMA RAM buffer
area being used for ADC. If this bit is set, DMA buffers
are written in the order of conversion. The module will
provide an address to the DMA channel that is the
same as the address used for the non-DMA
stand-alone buffer. If the ADDMABM bit is cleared, then
DMA buffers are written in Scatter/Gather mode. The
module will provide a scatter/gather address to the
DMA channel, based on the index of the analog input
and the size of the DMA buffer.
Note:
This data sheet summarizes the features
of
this
group
of PIC24HJXXXGPX06/X08/X10 devices.
It is not intended to be a comprehensive
reference source. To complement the
information in this data sheet, refer to the
“PIC24H Family Reference Manual”.
Refer
to
the
Microchip
web
site
(www.microchip.com)
for
the
latest
PIC24H
Family
Reference
Manual
sections.
Note:
The A/D module needs to be disabled
before modifying the AD12B bit.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com