PIC12F1840-I/P Microchip Technology, PIC12F1840-I/P Datasheet - Page 128

7 KB Flash, 256 Bytes RAM, 32 MHz Int. Osc, 6 I/0, Enhanced Mid Range Core 8 PDI

PIC12F1840-I/P

Manufacturer Part Number
PIC12F1840-I/P
Description
7 KB Flash, 256 Bytes RAM, 32 MHz Int. Osc, 6 I/0, Enhanced Mid Range Core 8 PDI
Manufacturer
Microchip Technology
Datasheet

Specifications of PIC12F1840-I/P

Processor Series
PIC12F
Core
PIC
Program Memory Type
Flash
Program Memory Size
7 KB
Data Ram Size
256 B
Interface Type
MI2C, SPI, EUSART
Number Of Timers
3
Operating Supply Voltage
1.8 V to 5.5 V
Maximum Operating Temperature
+ 85 C
Mounting Style
Through Hole
Package / Case
PDIP-8
Development Tools By Supplier
MPLAB IDE Software
Minimum Operating Temperature
- 40 C
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC12F1840-I/P
Manufacturer:
MICROCHIP
Quantity:
200
PIC12(L)F1840
16.1
When configuring and using the ADC the following
functions must be considered:
• Port configuration
• Channel selection
• ADC voltage reference selection
• ADC conversion clock source
• Interrupt control
• Result formatting
16.1.1
The ADC can be used to convert both analog and
digital signals. When converting analog signals, the I/O
pin should be configured for analog by setting the
associated
Section 12.0 “I/O Ports”
16.1.2
There are seven channel selections available:
• AN<3:0> pins
• Temperature Indicator
• DAC Output
• FVR (Fixed Voltage Reference) Output
Refer to Section 17.0 “Digital-to-Analog Converter
(DAC) Module”,
ence (FVR)”
tor Module”
selections.
The CHS bits of the ADCON0 register determine which
channel is connected to the sample and hold circuit.
When changing channels, a delay is required before
starting the next conversion. Refer to
“ADC Operation”
16.1.3
The ADPREF bits of the ADCON1 register provides
control of the positive voltage reference. The positive
voltage reference can be:
• V
• V
• FVR 2.048V
• FVR 4.096V (Not available on LF devices)
See
for more details on the fixed voltage reference.
DS41441B-page 128
Note:
REF
DD
Section 14.0 “Fixed Voltage Reference (FVR)”
+ pin
ADC Configuration
PORT CONFIGURATION
Analog voltages on any pin that is defined
as a digital input may cause the input buf-
fer to conduct excess current.
CHANNEL SELECTION
ADC VOLTAGE REFERENCE
TRIS
and
for more information on these channel
Section 14.0 “Fixed Voltage Refer-
Section 15.0 “Temperature Indica-
for more information.
and
for more information.
ANSEL
bits.
Section 16.2
Refer
Preliminary
to
16.1.4
The source of the conversion clock is software select-
able via the ADCS bits of the ADCON1 register. There
are seven possible clock options:
• F
• F
• F
• F
• F
• F
• F
The time to complete one bit conversion is defined as
T
periods as shown in
For correct conversion, the appropriate T
tion must be met. Refer to the A/D conversion require-
ments in Section 30.0 “Electrical Specifications” for
more information.
appropriate ADC clock selections.
AD
Note:
OSC
OSC
OSC
OSC
OSC
OSC
RC
. One full 10-bit conversion requires 11.5 T
(dedicated internal oscillator)
/2
/4
/8
/16
/32
/64
Unless using the F
system clock frequency will change the
ADC
adversely affect the ADC result.
CONVERSION CLOCK
clock
Figure
Table 16-1
 2011 Microchip Technology Inc.
frequency,
16-2.
RC
, any changes in the
gives examples of
which
AD
specifica-
may
AD

Related parts for PIC12F1840-I/P