PIC18F4580-I/P Microchip Technology Inc., PIC18F4580-I/P Datasheet - Page 257

no-image

PIC18F4580-I/P

Manufacturer Part Number
PIC18F4580-I/P
Description
40 PIN, 32 KB FLASH, 1536 RAM, 36 I/O
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC18F4580-I/P

A/d Inputs
11-Channel, 10-Bit
Comparators
2
Cpu Speed
10 MIPS
Eeprom Memory
256 Bytes
Input Output
36
Interface
CAN/I2C/SPI/USART
Memory Type
Flash
Number Of Bits
8
Package Type
40-pin PDIP
Programmable Memory
32K Bytes
Ram Size
1.5K Bytes
Speed
40 MHz
Timers
1-8 bit, 3-16 bit
Voltage, Range
2-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F4580-I/P
Manufacturer:
RENESAS
Quantity:
5 600
Part Number:
PIC18F4580-I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F4580-I/PT
Manufacturer:
MICROCHIP
Quantity:
201
Part Number:
PIC18F4580-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC18F4580-I/PT
Manufacturer:
MICROCHI
Quantity:
20 000
Part Number:
PIC18F4580-I/PT
0
22.0
This module is a 16-tap resistor ladder network that
provides a selectable voltage reference. The resistor
ladder is segmented to provide two ranges of CV
values and has a power-down function to conserve
power when the reference is not being used. The
CVRCON register controls the operation of the
reference, as shown in Register 22-1. The block
diagram is shown in Figure 22-1.
The comparator and reference supply voltage can
come from either V
and V
comparator reference supply voltage is controlled by
the CVRSS bit.
REGISTER 22-1:
 2004 Microchip Technology Inc.
Note:
REF
COMPARATOR VOLTAGE
REFERENCE MODULE
-, that are multiplexed with RA3 and RA2. The
The comparator voltage reference is only
available
PIC18F458.
bit 7
bit 6
bit 5
bit 4
bit 3-0
DD
CVRCON: COMPARATOR VOLTAGE REFERENCE CONTROL REGISTER
and V
on
bit 7
CVREN: Comparator Voltage Reference Enable bit
1 = CV
0 = CV
CVROE: Comparator V
1 = CV
0 = CV
CVRR: Comparator V
1 = 0.00 CV
0 = 0.25 CV
CVRSS: Comparator V
1 = Comparator reference source, CV
0 = Comparator reference source, CV
CVR<3:0>: Comparator V
When CVRR = 1:
CV
When CVRR = 0:
CV
Legend:
R = Readable bit
-n = Value at POR
CVREN
R/W-0
REF
REF
SS
the
REF
REF
REF
REF
, or the external V
= (CVR3:CVR0/24) (CV
= 1/4 (CV
circuit powered on
circuit powered down
voltage level is also output on the RA0/AN0/CV
voltage is disconnected from the RA0/AN0/CV
PIC18F448
RSRC
RSRC
CVROE
R/W-0
to 0.625 CV
to 0.719 CV
RSRC
REF
REF
REF
) + (CVR3:CVR0/32) (CV
REF
R/W-0
CVRR
and
Range Selection bit
REF
REF
Source Selection bit
Output Enable bit
W = Writable bit
‘1’ = Bit is set
+
RSRC
RSRC
Value Selection 0
RSRC
with CV
with CV
CVRSS
R/W-0
RSRC
RSRC
)
22.1
The comparator voltage reference can output 16 distinct
voltage levels for each range. The equations used to
calculate the output of the comparator voltage reference
are as follows.
EQUATION 22-1:
EQUATION 22-2:
The settling time of the Comparator Voltage Reference
must be considered when changing the RA0/AN0/
CV
Characteristics”).
REF
If CVRR = 0:
CV
where:
RSRC
RSRC
= (V
= V
REF
If CVRR = 1:
CV
where:
DD
output (see Table 27-4 in Section 27.2 “DC
CVRSS = 1, CV
CVRSS = 0, CV
REF
/24 step size
/32 step size
Configuring the Comparator
Voltage Reference
REF
CVRSS = 1, CV
CVRSS = 0, CV
= (CV
R/W-0
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
CVR3
– V
CVR3:CVR0
RSRC
+) – (V
= (CVR<3:0>/24) x CV
SS
RSRC
)
REF
REF
REF
x 1/4) + (CVR<3:0>/32) x CV
R/W-0
CVR2
pin
-)
RSRC
RSRC
pin
RSRC
RSRC
PIC18FXX8
15 bits
= (V
= AV
= (V
= AV
REF
x = Bit is unknown
DD
R/W-0
CVR1
REF
DD
RSRC
DS41159D-page 255
+) – (V
– AV
+) – (V
– AV
SS
REF
SS
REF
-)
R/W-0
CVR0
RSRC
-)
bit 0

Related parts for PIC18F4580-I/P