PIC16F87-I/SS Microchip Technology, PIC16F87-I/SS Datasheet - Page 121
![IC MCU FLASH 4KX14 EEPROM 20SSOP](/photos/6/58/65895/150-20-ssop_sml.jpg)
PIC16F87-I/SS
Manufacturer Part Number
PIC16F87-I/SS
Description
IC MCU FLASH 4KX14 EEPROM 20SSOP
Manufacturer
Microchip Technology
Series
PIC® 16Fr
Datasheets
1.PIC16F616T-ISL.pdf
(8 pages)
2.PIC16F688T-ISL.pdf
(688 pages)
3.PIC16F818-ISO.pdf
(6 pages)
4.PIC16F87-IP.pdf
(228 pages)
5.PIC16F87-IP.pdf
(8 pages)
6.PIC16F87-IP.pdf
(4 pages)
7.PIC16F87-IP.pdf
(8 pages)
8.PIC16F87-IP.pdf
(24 pages)
9.PIC16F88-ISO.pdf
(214 pages)
Specifications of PIC16F87-I/SS
Program Memory Type
FLASH
Program Memory Size
7KB (4K x 14)
Package / Case
20-SSOP
Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
16
Eeprom Size
256 x 8
Ram Size
368 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 5.5 V
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Processor Series
PIC16F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
368 B
Interface Type
SSP/USART
Maximum Clock Frequency
20 MHz
Number Of Programmable I/os
16
Number Of Timers
3
Operating Supply Voltage
2 V to 5.5 V
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
3rd Party Development Tools
52715-96, 52716-328, 52717-734
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, PG164120, ICE2000, DM163014
Minimum Operating Temperature
- 40 C
On-chip Adc
10 bit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
XLT20SS-1 - SOCKET TRANSITION 18DIP 20SSOPAC164307 - MODULE SKT FOR PM3 28SSOP
Data Converters
-
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
PIC16F87-I/SS
Manufacturer:
SEMELAB
Quantity:
77
12.4
The ADCON1, ANSEL, TRISA and TRISB registers
control the operation of the A/D port pins. The port pins
that are desired as analog inputs must have their
corresponding TRIS bits set (input). If the TRIS bit is
cleared (output), the digital output level (V
will be converted.
The A/D operation is independent of the state of the
CHS<2:0> bits and the TRIS bits.
FIGURE 12-3:
FIGURE 12-4:
2005 Microchip Technology Inc.
Note 1: When reading the Port register, all pins
2: Analog levels on any pin that is defined as
Configuring Analog Port Pins
configured as analog input channels will
read as cleared (a low level). Pins config-
ured as digital inputs will convert an
analog input. Analog levels on a digitally
configured input will not affect the
conversion accuracy.
a digital input (including the RA4:RA0 and
RB7:RB6 pins), may cause the input
buffer to consume current out of the
device specification.
T
CY
Set GO/DONE bit
Holding capacitor is disconnected from analog input (typically 100 ns)
7
to T
0000 00
ADRESH
AD
Conversion starts
A/D CONVERSION T
A/D RESULT JUSTIFICATION
T
AD
1
2 1 0 7
ADFM = 1
T
AD
b9
Right Justified
2
10-bit Result
T
ADRESL
AD
b8
3
OH
T
AD
b7
AD
or V
4
0
CYCLES
T
OL
AD
b6
10-bit Result
5
)
T
AD
b5
6
12.5
Clearing the GO/DONE bit during a conversion will
abort the current conversion. The A/D Result register
pair will NOT be updated with the partially completed
A/D conversion sample. That is, the ADRESH:ADRESL
registers will continue to contain the value of the last
completed conversion (or the last value written to the
ADRESH:ADRESL registers). After the A/D conversion
is aborted, a 2 T
acquisition is started. After this 2 T
on the selected channel is automatically started. The
GO/DONE bit can then be set to start the conversion.
In Figure 12-3, after the GO/DONE bit is set, the first
time segment has a minimum of T
T
12.5.1
The ADRESH:ADRESL register pair is the location
where the 10-bit A/D result is loaded at the completion
of the A/D conversion. This register pair is 16 bits wide.
The A/D module gives the flexibility to left or right justify
the 10-bit result in the 16-bit result register. The A/D
Format Select bit (ADFM) controls this justification.
Figure 12-4 shows the operation of the A/D result
justification. The extra bits are loaded with ‘0’s. When
an A/D result will not overwrite these locations (A/D
disable), these registers may be used as two general
purpose 8-bit registers.
ADRES is loaded,
GO/DONE bit is cleared,
ADIF bit is set,
holding capacitor is connected to analog input
T
AD
AD
b4
Note:
.
7
7
T
AD
b3
ADRESH
A/D Conversions
10-bit Result
Left Justified
8
The GO/DONE bit should NOT be set in
the same instruction that turns on the A/D.
A/D RESULT REGISTERS
T
AD
b2
ADFM = 0
9
AD
T
0 7 6 5
AD
wait is required before the next
PIC16F87/88
b1
10 T
ADRESL
AD
b0
0000 00
11
CY
AD
DS30487C-page 119
and a maximum of
0
wait, acquisition