Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.COM

X  

PIC16F84A Datasheet(PDF) 18 Page - Microchip Technology

Part # PIC16F84A
Description  18-pin Flash/EEPROM 8-Bit Microcontrollers
Download  124 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC16F84A Datasheet(HTML) 18 Page - Microchip Technology

Back Button PIC16F84A Datasheet HTML 14Page - Microchip Technology PIC16F84A Datasheet HTML 15Page - Microchip Technology PIC16F84A Datasheet HTML 16Page - Microchip Technology PIC16F84A Datasheet HTML 17Page - Microchip Technology PIC16F84A Datasheet HTML 18Page - Microchip Technology PIC16F84A Datasheet HTML 19Page - Microchip Technology PIC16F84A Datasheet HTML 20Page - Microchip Technology PIC16F84A Datasheet HTML 21Page - Microchip Technology PIC16F84A Datasheet HTML 22Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 18 / 124 page
background image
PIC16F8X
DS30430C-page 18
© 1998 Microchip Technology Inc.
4.3
Program Counter: PCL and PCLATH
The Program Counter (PC) is 13-bits wide. The low
byte is the PCL register, which is a readable and
writable register. The high byte of the PC (PC<12:8>) is
not directly readable nor writable and comes from the
PCLATH register. The PCLATH (PC latch high) register
is a holding register for PC<12:8>. The contents of
PCLATH are transferred to the upper byte of the
program counter when the PC is loaded with a new
value. This occurs during a CALL, GOTO or a write to
PCL. The high bits of PC are loaded from PCLATH as
shown in Figure 4-1.
FIGURE 4-1:
LOADING OF PC IN
DIFFERENT SITUATIONS
4.3.1
COMPUTED GOTO
A computed GOTO is accomplished by adding an offset
to the program counter (ADDWF PCL). When doing a table
read using a computed GOTO method, care should be
exercised if the table location crosses a PCL memory
boundary (each 256 word block). Refer to the application
note
“Implementing a Table Read” (AN556).
4.3.2
PROGRAM MEMORY PAGING
The PIC16F83 and PIC16CR83 have 512 words of pro-
gram memory. The PIC16F84 and PIC16CR84 have
1K of program memory. The CALL and GOTO instruc-
tions have an 11-bit address range. This 11-bit address
range allows a branch within a 2K program memory
page size. For future PIC16F8X program memory
expansion, there must be another two bits to specify
the program memory page. These paging bits come
from the PCLATH<4:3> bits (Figure 4-1). When doing a
CALL
or a GOTO instruction, the user must ensure that
these page bits (PCLATH<4:3>) are programmed to
the desired program memory page. If a CALL instruc-
tion (or interrupt) is executed, the entire 13-bit PC is
“pushed” onto the stack (see next section). Therefore,
manipulation of the PCLATH<4:3> is not required for
the return instructions (which “pops” the PC from the
stack).
4.4
Stack
The PIC16FXX has an 8 deep x 13-bit wide hardware
stack (Figure 4-1). The stack space is not part of either
program or data space and the stack pointer is not
readable or writable.
The entire 13-bit PC is “pushed” onto the stack when a
CALL
instruction is executed or an interrupt is acknowl-
edged. The stack is “popped” in the event of a RETURN,
RETLW
or a RETFIE instruction execution. PCLATH is
not affected by a push or a pop operation.
The stack operates as a circular buffer. That is, after the
stack has been pushed eight times, the ninth push over-
writes the value that was stored from the first push. The
tenth push overwrites the second push (and so on).
If the stack is effectively popped nine times, the PC
value is the same as the value from the first pop.
PC
12
8 7
0
5
PCLATH<4:0>
PCLATH
INST with PCL
as dest
ALU result
GOTO, CALL
Opcode <10:0>
8
PC
12 11 10
0
11
PCLATH<4:3>
PCH
PCL
8 7
2
PCLATH
PCH
PCL
Note:
The PIC16F8X ignores the PCLATH<4:3>
bits, which are used for program memory
pages 1, 2 and 3 (0800h - 1FFFh). The
use of PCLATH<4:3> as general purpose
R/W bits is not recommended since this
may affect upward compatibility with
future products.
Note:
There are no instruction mnemonics
called push or pop. These are actions that
occur from the execution of the CALL,
RETURN,
RETLW,
and RETFIE instruc-
tions, or the vectoring to an interrupt
address.
Note:
There are no status bits to indicate stack
overflow or stack underflow conditions.


Similar Part No. - PIC16F84A

ManufacturerPart #DatasheetDescription
logo
Microchip Technology
PIC16F84A MICROCHIP-PIC16F84A Datasheet
494Kb / 68P
   18-pin Enhanced Flash/EEPROM 8-Bit Microcontroller
1999
PIC16F84A MICROCHIP-PIC16F84A Datasheet
1Mb / 88P
   18-pin Enhanced FLASH/EEPROM 8-bit Microcontroller
2001
PIC16F84A MICROCHIP-PIC16F84A Datasheet
1Mb / 90P
   18-pin Enhanced FLASH/EEPROM 8-Bit Microcontroller
11/29/12 2001-2013
PIC16F84A MICROCHIP-PIC16F84A Datasheet
1Mb / 90P
   18-pin Enhanced FLASH/EEPROM 8-Bit Microcontroller
11/29/12
PIC16F84A MICROCHIP-PIC16F84A Datasheet
1Mb / 337P
   8-Bit CMOS Microcontrollers
01/18/02
More results

Similar Description - PIC16F84A

ManufacturerPart #DatasheetDescription
logo
Microchip Technology
PIC16F8X MICROCHIP-PIC16F8X_99 Datasheet
1Mb / 124P
   18-pin Flash/EEPROM 8-Bit Microcontrollers
1998 - 1999
PIC16F8X MICROCHIP-PIC16F8X_13 Datasheet
1Mb / 128P
   18-pin Flash/EEPROM 8-Bit Microcontrollers
11/29/12 1996-2013
PIC16F84A-04-P MICROCHIP-PIC16F84A-04-P Datasheet
1Mb / 90P
   18-pin Enhanced FLASH/EEPROM 8-Bit Microcontroller
11/29/12
PIC16F84A MICROCHIP-PIC16F84A Datasheet
494Kb / 68P
   18-pin Enhanced Flash/EEPROM 8-Bit Microcontroller
1999
35007B MICROCHIP-35007B Datasheet
1Mb / 88P
   18-pin Enhanced FLASH/EEPROM 8-bit Microcontroller
2001
PIC16F84A MICROCHIP-PIC16F84A_07 Datasheet
1Mb / 88P
   18-pin Enhanced FLASH/EEPROM 8-bit Microcontroller
2001
PIC16F84A MICROCHIP-PIC16F84A_13 Datasheet
1Mb / 90P
   18-pin Enhanced FLASH/EEPROM 8-Bit Microcontroller
11/29/12 2001-2013
PIC12F1501-I MICROCHIP-PIC12F1501-I Datasheet
3Mb / 278P
   8-Pin Flash, 8-Bit Microcontrollers
08/02/11
PIC12LF1552 MICROCHIP-PIC12LF1552 Datasheet
4Mb / 260P
   8-Pin Flash, 8-Bit Microcontrollers
2013
PIC12F519 MICROCHIP-PIC12F519_08 Datasheet
1Mb / 96P
   8-Pin, 8-Bit Flash Microcontrollers
2008
More results


Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL




Privacy Policy
ALLDATASHEET.COM
Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Datasheet Upload   |   Contact us   |   Privacy Policy   |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com