PIC16F872-E/SS Microchip Technology, PIC16F872-E/SS Datasheet - Page 103

no-image

PIC16F872-E/SS

Manufacturer Part Number
PIC16F872-E/SS
Description
IC,MICROCONTROLLER,8-BIT,PIC CPU,CMOS,SSOP,28PIN,PLASTIC
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F872-E/SS

Rohs Compliant
YES
Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Connectivity
I²C, SPI
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
22
Program Memory Size
3.5KB (2K x 14)
Program Memory Type
FLASH
Eeprom Size
64 x 8
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 5.5 V
Data Converters
A/D 5x10b
Oscillator Type
External
Operating Temperature
-40°C ~ 125°C
Package / Case
28-SSOP
Package
28SSOP
Device Core
PIC
Family Name
PIC16
Maximum Speed
20 MHz
Operating Supply Voltage
5 V
Data Bus Width
8 Bit
Number Of Programmable I/os
22
Interface Type
I2C/SPI
On-chip Adc
5-chx10-bit
Number Of Timers
3
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
6.3.3
1997 Microchip Technology Inc.
Banking
The data memory is partitioned into four banks. Each bank contains General Purpose Registers
and Special Function Registers. Switching between these banks requires the RP0 and RP1 bits
in the STATUS register to be configured for the desired bank when using direct addressing. The
IRP bit in the STATUS register is used for indirect addressing.
Table 6-1:
Each Bank extends up to 7Fh (128 bytes). The lower locations of each bank are reserved for the
Special Function Registers. Above the Special Function Registers are General Purpose Regis-
ters. All data memory is implemented as static RAM. All Banks may contain special function reg-
isters. Some “high use” special function registers from Bank0 are mirrored in the other banks for
code reduction and quicker access.
Through the evolution of the products, there are a few variations in the layout of the Data Memory.
The data memory organization that will be the standard for all new devices is shown in
Figure
reduce the software overhead for context switching. The registers in bold will be in every device.
The other registers are peripheral dependent. Not every peripheral’s registers are shown,
because some file addresses have a different registers from those shown. As with all the figures,
tables, and specifications presented in this reference guide, verify the details with the device spe-
cific data sheet.
Figure 6-4: Direct Addressing
Accessed
Bank
RP1 RP0
bank select
0
1
2
3
6-5. This Memory map has the last 16-bytes mapped across all memory banks. This is to
Section 6. Memory Organization
Direct and Indirect Addressing of Banks
(RP1:RP0)
Direct
location select
6
Direct Addressing
0 0
0 1
1 0
1 1
Data
Memory
from opcode
Indirect
(IRP)
7Fh
00h
0
1
Bank0
00
0
Bank1
01
Bank2
10
Bank3
11
DS31006A-page 6-9
7Fh
6

Related parts for PIC16F872-E/SS