PIC18F24J11 MICROCHIP [Microchip Technology], PIC18F24J11 Datasheet - Page 353

no-image

PIC18F24J11

Manufacturer Part Number
PIC18F24J11
Description
28/44-Pin, Low-Power, High-Performance USB Microcontrollers with nanoWatt XLP Technology
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F24J11-I/ML
Manufacturer:
MICROCHIP
Quantity:
49 000
Part Number:
PIC18F24J11-I/SO
Manufacturer:
Microchip Technology
Quantity:
1 960
The ANCON0 and ANCON1 registers are used to
configure the operation of the I/O pin associated with
each analog channel. Setting any one of the PCFG bits
configures the corresponding pin to operate as a digital
only I/O. Clearing a bit configures the pin to operate as
an analog input for either the A/D Converter or the
comparator module; all digital peripherals are disabled
and digital inputs read as ‘0’. As a rule, I/O pins that are
multiplexed with analog inputs default to analog
operation on device Resets.
In order to correctly perform A/D conversions on the V
band gap reference (ADCON0<5:2> = 1111), the refer-
ence circuit must be powered on first. The VBGEN bit in
the ANCON1 register allows the firmware to manually
REGISTER 21-3:
REGISTER 21-4:
 2011 Microchip Technology Inc.
bit 7
Legend:
R = Readable bit
-n = Value at POR
bit 7-0
Note 1:
bit 7
Legend:
R = Readable bit
-n = Value at POR
bit 7
bit 6
bit 5
bit 4-0
PCFG7
VBGEN
R/W-0
R/W-0
(1)
These bits are not implemented on 28-pin devices.
PCFG<7:0>: Analog Port Configuration bits (AN<7:0>)
1 = Pin configured as a digital port
0 = Pin configured as an analog channel – digital input disabled and reads ‘0’
VBGEN: 1.2V Band Gap Reference Enable bit
1 = 1.2V band gap reference is powered on
0 = 1.2V band gap reference is turned off to save power (if no other modules are requesting it)
Reserved: Always maintain as ‘0’ for lowest power consumption
Unimplemented: Read as ‘0’
PCFG<12:8>: Analog Port Configuration bits (AN<12:8>)
1 = Pin configured as a digital port
0 = Pin configured as an analog channel – digital input disabled and reads ‘0’
PCFG6
R/W-0
r
ANCON0: A/D PORT CONFIGURATION REGISTER 2 (BANKED F48h)
ANCON1: A/D PORT CONFIGURATION REGISTER 1 (BANKED F49h)
(1)
W = Writable bit
r = Reserved
W = Writable bit
‘1’ = Bit is set
‘1’ = Bit is set
PCFG5
R/W-0
U-0
(1)
PCFG12
PCFG4
R/W-0
R/W-0
BG
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
PIC18F46J11 FAMILY
PCFG11
PCFG3
R/W-0
R/W-0
request that the band gap reference circuit should be
enabled. For best accuracy, firmware should allow a
settling time of at least 10 ms prior to performing the first
acquisition on this channel after enabling the band gap
reference.
The reference circuit may already have been turned on
if some other hardware module (such as comparators
or HLVD) has already requested it. In this case, the ini-
tial turn-on settling time may have already elapsed and
firmware does not need to wait as long before measur-
ing V
may clear the VBGEN bit, which will save a small
amount of power if no other modules are still requesting
the V
BG
BG
. Once the acquisition is complete, firmware
reference.
PCFG10
PCFG2
R/W-0
R/W-0
x = Bit is unknown
x = Bit is unknown
PCFG1
PCFG9
R/W-0
R/W-0
DS39932D-page 353
PCFG0
PCFG8
R/W-0
R/W-0
bit 0
bit 0

Related parts for PIC18F24J11