PIC18F6585-I/L Microchip Technology, PIC18F6585-I/L Datasheet - Page 251

Microcontrollers (MCU) 48KB 3328 RAM 52 I/O

PIC18F6585-I/L

Manufacturer Part Number
PIC18F6585-I/L
Description
Microcontrollers (MCU) 48KB 3328 RAM 52 I/O
Manufacturer
Microchip Technology
Datasheet

Specifications of PIC18F6585-I/L

Processor Series
PIC18F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
3.25 KB
Interface Type
I2C/SPI/AUSART/CAN
Maximum Clock Frequency
40 MHz
Number Of Programmable I/os
53
Number Of Timers
5
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
3rd Party Development Tools
52715-96, 52716-328, 52717-734, 52712-325, EWPIC18
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, PG164120, ICE2000, ICE4000, DV164136, DM183032
Minimum Operating Temperature
- 40 C
On-chip Adc
12-ch x 10-bit
Program Memory Type
Flash
Program Memory Size
48 KB
Package / Case
PLCC-68
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
19.0
The Analog-to-Digital (A/D) converter module has 12
inputs for the PIC18F6X8X devices and 16 inputs for
the PIC18F8X8X devices. This module allows conver-
sion of an analog input signal to a corresponding 10-bit
digital number.
A new feature for the A/D converter is the addition of pro-
grammable acquisition time. This feature allows the user
to select a new channel for conversion and to set the
GO/DONE bit immediately. When the GO/DONE bit is
set, the selected channel is sampled for the
programmed acquisition time before a conversion is
actually started. This removes the firmware overhead
that may have been required to allow for an acquisition
(sampling) period (see Register 19-3 and Section 19.4
“Selecting the A/D Conversion Clock”).
REGISTER 19-1:
 2004 Microchip Technology Inc.
10-BIT ANALOG-TO-DIGITAL
CONVERTER (A/D) MODULE
bit 7-6
bit 5-2
bit 1
bit 0
ADCON0 REGISTER
Legend:
R = Readable bit
- n = Value at POR
bit 7
Unimplemented: Read as ‘0’
CHS3:CHS0: Analog Channel Select bits
0000 = Channel 0 (AN0)
0001 = Channel 1 (AN1)
0010 = Channel 2 (AN2)
0011 = Channel 3 (AN3)
0100 = Channel 4 (AN4)
0101 = Channel 5 (AN5)
0110 = Channel 6 (AN6)
0111 = Channel 7 (AN7)
1000 = Channel 8 (AN8)
1001 = Channel 9 (AN9)
1010 = Channel 10 (AN10)
1011 = Channel 11 (AN11)
1100 = Channel 12 (AN12)
1101 = Channel 13 (AN13)
1110 = Channel 14 (AN14)
1111 = Channel 15 (AN15)
GO/DONE: A/D Conversion Status bit
When ADON = 1:
1 = A/D conversion in progress. This bit is automatically cleared when the A/D conversion is
0 = A/D Idle
ADON: A/D On bit
1 = A/D converter module is enabled
0 = A/D converter module is disabled and consumes no current
Note 1: These channels are only available on PIC18F8X8X devices
U-0
complete.
U-0
PIC18F6585/8585/6680/8680
R/W-0
CHS3
(1)
(1)
(1)
(1)
W = Writable bit
‘1’ = Bit is set
R/W-0
CHS2
The module has five registers:
• A/D Result High Register (ADRESH)
• A/D Result Low Register (ADRESL)
• A/D Control Register 0 (ADCON0)
• A/D Control Register 1 (ADCON1)
• A/D Control Register 2 (ADCON2)
The ADCON0 register, shown in Register 19-1,
controls the operation of the A/D module. The
ADCON1 register, shown in Register 19-2, configures
the functions of the port pins. The ADCON2 register,
shown in Register 19-3, configures the A/D clock
source, programmed acquisition time and justification.
R/W-0
CHS1
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
R/W-0
CHS0
GO/DONE
.
x = Bit is unknown
R/W-0
DS30491C-page 249
ADON
R/W-0
bit 0

Related parts for PIC18F6585-I/L