PIC18F2331 MICROCHIP [Microchip Technology], PIC18F2331 Datasheet - Page 258

no-image

PIC18F2331

Manufacturer Part Number
PIC18F2331
Description
28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High Performance PWM and A/D
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F2331-I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F2331-I/SP
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
PIC18F2331/2431/4331/4431
TABLE 20-2:
20.7
The selection of the automatic acquisition time and
A/D conversion clock is determined in part by the
clock source and frequency while in a power-man-
aged mode.
If the A/D is expected to operate while the device is in
a power-managed mode, the ACQT3:ACQT0 and
ADCS2:ADCS0 bits in ADCON2 should be updated in
accordance with the power-managed mode clock that
will be used. After the power-managed mode is entered
(either of the power-managed run modes), an A/D
acquisition or conversion may be started. Once an
acquisition or conversion is started, the device should
continue to be clocked by the same power-managed
mode clock source until the conversion has been com-
pleted. If desired, the device may be placed into the
corresponding power-managed Idle mode during the
conversion.
If the power-managed mode clock frequency is less
than 1 MHz, the A/D RC clock source should be
selected.
Operation in Sleep mode requires the A/D RC clock to
be selected. If bits ACQT3:ACQT0 are set to ‘0000’,
and a conversion is started, the conversion will be
delayed one instruction cycle to allow execution of the
SLEEP instruction and entry to Sleep mode. The IDLEN
and SCS bits in the OSCCON register must have
already been cleared prior to starting the conversion.
DS39616B-page 256
Note 1:
2:
3:
4:
Operation in Power-Managed
Modes
Operation
The RC source has a typical T
The RC source has a typical T
For device frequencies above 1 MHz, the device must be in Sleep for the entire conversion or the A/D
accuracy may be out of specification, unless in Single-shot mode.
Low-power devices only.
16 T
32 T
64 T
RC/4
2 T
4 T
8 T
RC
OSC
OSC
OSC
OSC
OSC
OSC
(3)
AD Clock Source (T
(3)
T
AD
vs. DEVICE OPERATING FREQUENCIES
ADCS2:ADCS0
AD
)
AD
AD
000
100
001
101
010
110
011
111
time of 2-6 s.
time of 0.5-1.5 s.
Preliminary
20.8
The ANSEL0, ANSEL1, TRISA and TRISE registers all
configure the A/D port pins. The port pins needed as
analog inputs must have their corresponding TRIS bits
set (input). If the TRIS bit is cleared (output), the digital
output level (V
The A/D operation is independent of the state of the
ANSEL0, ANSEL1 and the TRIS bits.
Note:
Note 1: When reading the Port register, all pins
PIC18FXX31
1.00 MHz
4.0 MHz
19.2 MHz
38.4 MHz
40.0 MHz
40.0 MHz
4.8 MHz
9.6 MHz
2: Analog levels on any pin defined as a
Configuring Analog Port Pins
Maximum Device Frequency
The A/D can operate in Sleep mode only
when configured for Single-shot opera-
tion. If the part is in Sleep mode, and it is
possible for a source other than the A/D
module to wake the part, the user must
poll ADCON<GO/DONE> to ensure it is
clear before reading the result.
configured as analog input channels will
read as cleared (a low level). Pins
configured as digital inputs will convert an
analog input. Analog levels on a digitally
configured
converted.
digital input may cause the digital input
buffer to consume current out of the
device’s specification limits.
(2)
(1)
OH
or V
OL
 2003 Microchip Technology Inc.
) will be converted.
input
PIC18LFXX31
will
1.00 MHz
10.65 MHz
21.33 MHz
4.0 MHz
1.33 MHz
2.66 MHz
5.33 MHz
666 kHz
be
(2)
accurately
(2)
(4)

Related parts for PIC18F2331