PIC18F87J93 Microchip Technology, PIC18F87J93 Datasheet - Page 29

no-image

PIC18F87J93

Manufacturer Part Number
PIC18F87J93
Description
LCD PIC18F Microcontroller
Manufacturer
Microchip Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F87J93-I/PT
Manufacturer:
Microchip
Quantity:
472
Part Number:
PIC18F87J93-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC18F87J93T-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
www.DataSheet4U.com
2.0
The Analog-to-Digital (A/D) converter module has
12 inputs for all PIC18F87J93 family devices. This
module allows conversion of an analog input signal to
a corresponding 12-bit digital number.
The module has these 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)
REGISTER 2-1:
bit 7
bit 6
bit 5-2
bit 1
bit 0
© 2009 Microchip Technology Inc.
bit 7
Legend:
R = Readable bit
-n = Value at POR
ADCAL
R/W-0
12-BIT ANALOG-TO-DIGITAL
CONVERTER (A/D) MODULE
ADCAL: A/D Calibration bit
1 = Calibration is performed on next A/D conversion
0 = Normal A/D converter operation (no calibration is performed)
Unimplemented: Read as ‘0’
CHS<3:0>: Analog Channel Select bits
0000 = Channel 00 (AN0)
0001 = Channel 01 (AN1)
0010 = Channel 02 (AN2)
0011 = Channel 03 (AN3)
0100 = Channel 04 (AN4)
0101 = Channel 05 (AN5)
0110 = Channel 06 (AN6)
0111 = Channel 07 (AN7)
1000 = Channel 08 (AN8)
1001 = Channel 09 (AN9)
1010 = Channel 10 (AN10)
1011 = Channel 11 (AN11)
11xx = Unused
GO/DONE: A/D Conversion Status bit
When ADON = 1:
1 = A/D conversion in progress
0 = A/D Idle
ADON: A/D On bit
1 = A/D converter module is enabled
0 = A/D converter module is disabled
U-0
ADCON0: A/D CONTROL REGISTER 0
W = Writable bit
‘1’ = Bit is set
R/W-0
CHS3
R/W-0
CHS2
Preliminary
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
PIC18F87J93 FAMILY
R/W-0
CHS1
The ADCON0 register, shown in Register 2-1, controls
the operation of the A/D module. The ADCON1
register, shown in Register 2-2, configures the
functions of the port pins. The ADCON2 register,
shown in Register 2-3, configures the A/D clock
source, programmed acquisition time and justification.
R/W-0
CHS0
x = Bit is unknown
GO/DONE
R/W-0
DS39948A-page 27
ADON
R/W-0
bit 0

Related parts for PIC18F87J93