Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

PIC18LF4331-E/ML Datasheet(PDF) 249 Page - Microchip Technology

Part # PIC18LF4331-E/ML
Description  28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High-Performance PWM and A/D
PDF  392 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC18LF4331-E/ML Datasheet(HTML) 249 Page - Microchip Technology

Back Button PIC18LF4331-E/ML Datasheet HTML 245Page - Microchip Technology PIC18LF4331-E/ML Datasheet HTML 246Page - Microchip Technology PIC18LF4331-E/ML Datasheet HTML 247Page - Microchip Technology PIC18LF4331-E/ML Datasheet HTML 248Page - Microchip Technology PIC18LF4331-E/ML Datasheet HTML 249Page - Microchip Technology PIC18LF4331-E/ML Datasheet HTML 250Page - Microchip Technology PIC18LF4331-E/ML Datasheet HTML 251Page - Microchip Technology PIC18LF4331-E/ML Datasheet HTML 252Page - Microchip Technology PIC18LF4331-E/ML Datasheet HTML 253Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 249 / 392 page
background image
 2010 Microchip Technology Inc.
DS39616D-page 249
PIC18F2331/2431/4331/4431
21.2
A/D Result Buffer
The A/D module has a 4-level result buffer with an
address range of 0 to 3, enabled by setting the FIFOEN
bit in the ADCON1 register. This buffer is implemented
in a circular fashion, where the A/D result is stored in
one location and the address is incremented. If the
address is greater than 3, the pointer is wrapped back
around to 0. The result buffer has a Buffer Empty Flag,
BFEMT, indicating when any data is in the buffer. It also
has a Buffer Overflow Flag, BFOVFL, which indicates
when a new sample has overwritten a location that was
not previously read.
Associated with the buffer is a pointer to the address for
the next read operation. The ADPNT<1:0> bits
configure the address for the next read operation.
These bits are read-only.
The Result Buffer also has a configurable interrupt
trigger level that is configured by the ADRS<1:0> bits.
The user has three selections: interrupt flag set on
every write to the buffer, interrupt on every second write
to the buffer, or interrupt on every fourth write to the
buffer. ADPNT<1:0> are reset to ‘00’ every time a
conversion sequence is started (either by setting the
GO/DONE bit or on a trigger).
21.3
A/D Acquisition Requirements
For the A/D Converter to meet its specified accuracy,
the charge holding capacitor (CHOLD) must be allowed
to fully charge to the input channel voltage level. The
analog input model is shown in Figure 21-2. The
source impedance (RS) and the internal sampling
switch (RSS) impedance directly affect the time
required to charge the capacitor CHOLD. The sampling
switch (RSS) impedance varies over the device voltage
(VDD). The source impedance affects the offset voltage
at the analog input (due to pin leakage current). The
maximum recommended impedance for analog
sources is 2.5 k
. After the analog input channel is
selected (changed), the channel must be sampled for
at least the minimum acquisition time before starting a
conversion.
To
calculate
the
minimum
acquisition
time,
Equation 21-1 may be used. This equation assumes
that 1/2 LSb error is used (1024 steps for the A/D). The
1/2 LSb error is the maximum error allowed for the A/D
to meet its specified resolution.
Example 21-1 shows the calculation of the minimum
required acquisition time TACQ. In this case, the
converter module is fully powered up at the outset and
therefore, the amplifier settling time, TAMP, is negligible.
This calculation is based on the following application
system assumptions:
CHOLD
=9 pF
Rs
=
100

Conversion Error
1/2 LSb
VDD
=5V
 Rss = 6 k
Temperature
=
50°C (system max.)
VHOLD
=
0V @ time = 0
EQUATION 21-1:
ACQUISITION TIME
EQUATION 21-2:
MINIMUM A/D HOLDING CAPACITOR CHARGING TIME
Note:
When right justified, reading ADRESL
increments the ADPNT<1:0> bits. When
left justified, reading ADRESH increments
the ADPNT<1:0> bits.
Note:
When the conversion is started, the
holding capacitor is disconnected from the
input pin.
TACQ
=
Amplifier Settling Time + Holding Capacitor Charging Time + Temperature Coefficient
=TAMP + TC + TCOFF
VHOLD
=
(VREF – (VREF/2048)) • (1 – e(-T
C
/CHOLD(RIC + RSS + RS)))
or
TC
=
-(CHOLD)(RIC + RSS + RS) ln(1/2048)



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