English
Language : 

PIC18FXX39 Datasheet, PDF (186/322 Pages) Microchip Technology – Enhanced FLASH Microcontrollers with Single Phase Induction Motor Control Kernel
PIC18FXX39
18.2 Selecting the A/D Conversion Clock
The A/D conversion time per bit is defined as TAD. The
A/D conversion requires 12 TAD per 10-bit conversion.
The source of the A/D conversion clock is software
selectable. The seven possible options for TAD are:
• 2 TOSC
• 4 TOSC
• 8 TOSC
• 16 TOSC
• 32 TOSC
• 64 TOSC
• Internal A/D module RC oscillator (2-6 s)
For correct A/D conversions, the A/D conversion clock
(TAD) must be selected to ensure a minimum TAD time
of 1.6 s.
Table 18-1 shows the resultant TAD times derived from
the device operating frequencies and the A/D clock
source selected.
18.3 Configuring Analog Port Pins
The ADCON1, TRISA and TRISE registers control the
operation of the A/D port pins. The port pins, that are
desired as analog inputs, must have their corresponding
TRIS bits set (input). If the TRIS bit is cleared (output),
the digital output level (VOH or VOL) will be converted.
The A/D operation is independent of the state of the
CHS2:CHS0 bits and the TRIS bits.
Note 1: When reading the port register, all pins
configured as analog input channels will
read as cleared (a low level). Pins config-
ured as digital inputs will convert an analog
input. Analog levels on a digitally config-
ured input will not affect the conversion
accuracy.
2: Analog levels on any pin that is defined as
a digital input (including the AN4:AN0
pins) may cause the input buffer to con-
sume current that is out of the device’s
specification.
TABLE 18-1: TAD vs. DEVICE OPERATING FREQUENCIES
AD Clock Source (TAD)
Operation
2 TOSC
4 TOSC
8 TOSC
16 TOSC
32 TOSC
64 TOSC
RC
ADCS2:ADCS0
000
100
001
101
010
110
011
Maximum Device Frequency
PIC18FXX39
1.25 MHz
2.50 MHz
5.00 MHz
10.00 MHz
20.00 MHz
40.00 MHz
—
PIC18LFXX39
666 kHz
1.33 MHz
2.67 MHz
5.33 MHz
10.67 MHz
21.33 MHz
—
DS30485B-page 186
Preliminary
 2002-2013 Microchip Technology Inc.