PIC16F1827-E/P Microchip Technology Inc., PIC16F1827-E/P Datasheet - Page 140

no-image

PIC16F1827-E/P

Manufacturer Part Number
PIC16F1827-E/P
Description
7 KB Flash, 384 bytes RAM, 32 MHz Int. Osc, 16 I/0, Enhanced Mid Range Core
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16F1827-E/P

A/d Inputs
12-Channel, 10-Bit
Comparators
2
Cpu Speed
8 MIPS
Eeprom Memory
256 Bytes
Input Output
16
Interface
CAN/I2C/SPI/UART/USART
Memory Type
Flash
Number Of Bits
8
Package Type
18-pin PDIP
Programmable Memory
7K Bytes
Ram Size
384 Bytes
Speed
32 MHz
Timers
4-8-bit, 1-16-bit
Voltage, Range
1.8-5.5 V
Standby Current (pic16lf182x)
30 nA @ 1.8 V, Typical
PIC16(L)F1826/27
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 up to 15 channel selections available:
• AN<11:0> pins
• Temperature Indicator
• DAC Output
• FVR (Fixed Voltage Reference) Output
Refer to
(FVR)”and
Module”
tions.
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)
The ADNREF bits of the ADCON1 register provides
control of the negative voltage reference. The negative
voltage reference can be:
• V
• V
See
for more details on the fixed voltage reference.
DS41391D-page 140
Note:
REF
DD
REF
SS
Section 14.0 “Fixed Voltage Reference (FVR)”
+ pin
- pin
ADC Configuration
for more information on these channel selec-
Section 14.0 “Fixed Voltage Reference
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
Section 15.0 “Temperature Indicator
TRIS
for more information.
and
for more information.
ANSEL
bits.
Section 16.2
Refer
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
ods as shown in
For correct conversion, the appropriate T
tion must be met. Refer to the A/D conversion require-
ments in
more information.
priate 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
Section 30.0 “Electrical
Unless using the F
system clock frequency will change the
ADC
adversely affect the ADC result.
CONVERSION CLOCK
Figure
Table 16-1
clock
16-2.
 2011 Microchip Technology Inc.
frequency,
gives examples of appro-
RC
, any changes in the
Specifications”for
which
AD
specifica-
AD
may
peri-

Related parts for PIC16F1827-E/P