công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

16F54 bảng dữ liệu(PDF) 21 Page - Microchip Technology

tên linh kiện 16F54
Giải thích chi tiết về linh kiện  Flash-Based, 8-Bit CMOS Microcontroller Series
PDF  90 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  MICROCHIP [Microchip Technology]
Trang chủ  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

16F54 bảng dữ liệu(HTML) 21 Page - Microchip Technology

Back Button 16F54 Datasheet HTML 17Page - Microchip Technology 16F54 Datasheet HTML 18Page - Microchip Technology 16F54 Datasheet HTML 19Page - Microchip Technology 16F54 Datasheet HTML 20Page - Microchip Technology 16F54 Datasheet HTML 21Page - Microchip Technology 16F54 Datasheet HTML 22Page - Microchip Technology 16F54 Datasheet HTML 23Page - Microchip Technology 16F54 Datasheet HTML 24Page - Microchip Technology 16F54 Datasheet HTML 25Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 21 / 90 page
background image
 2004 Microchip Technology Inc.
DS41213C-page 19
PIC16F5X
3.5
Program Counter
As a program instruction is executed, the Program
Counter (PC) will contain the address of the next
program instruction to be executed. The PC value is
increased by one, every instruction cycle, unless an
instruction changes the PC.
For a GOTO instruction, bits 8:0 of the PC are provided
by the GOTO instruction word. The PC Latch (PCL) is
mapped to PC<7:0> (Figure 3-6 and Figure 3-7).
For the PIC16F57 and PIC16F59, a page number must
be supplied as well. Bit 5 and bit 6 of the Status register
provide page information to bit 9 and bit 10 of the PC
(Figure 3-6 and Figure 3-7).
For a CALL instruction, or any instruction where the
PCL is the destination, bits 7:0 of the PC again are
provided by the instruction word. However, PC<8>
does not come from the instruction word, but is always
cleared (Figure 3-6 and Figure 3-7).
Instructions where the PCL is the destination or modify
PCL instructions, include MOVWF PCL, ADDWF PCL,
and BSF PCL,5.
For the PIC16F57 and PIC16F59, a page number
again must be supplied. Bit 5 and bit 6 of the Status
register provide page information to bit 9 and bit 10 of
the PC (Figure 3-6 and Figure 3-7).
FIGURE 3-6:
LOADING OF PC BRANCH
INSTRUCTIONS – PIC16F54
FIGURE 3-7:
LOADING OF PC BRANCH
INSTRUCTIONS – PIC16F57
AND PIC16F59
3.5.1
PAGING CONSIDERATIONS
PIC16F57 AND PIC16F59
If the PC is pointing to the last address of a selected
memory page, when it increments, it will cause the pro-
gram to continue in the next higher page. However, the
page preselect bits in the Status register will not be
updated. Therefore, the next GOTO, CALL or MODIFY
PCL
instruction will send the program to the page
specified by the page preselect bits (PA0 or PA<1:0>).
For example, a NOP at location 1FFh (page 0)
increments the PC to 200h (page 1). A GOTO xxx at
200h will return the program to address xxh on page 0
(assuming that PA<1:0> are clear).
To prevent this, the page preselect bits must be
updated under program control.
3.5.2
EFFECTS OF RESET
The PC is set upon a Reset, which means that the PC
addresses the last location in the last page (i.e., the
Reset vector).
The Status register page preselect bits are cleared
upon a Reset, which means that page 0 is preselected.
Therefore, upon a Reset, a
GOTO
instruction at the
Reset vector location will automatically cause the
program to jump to page 0.
Note:
Because PC<8> is cleared in the CALL
instruction or any modified PCL instruc-
tion, all subroutine calls or computed
jumps are limited to the first 256 locations
of any program memory page (512 words
long).
PC
87
0
PCL
PC
87
0
PCL
Reset to '0'
Instruction Word
Instruction Word
GOTO
Instruction
CALL
or Modify PCL Instruction
PA<1:0>
2
Status
PC
87
0
PCL
9
10
PA<1:0>
2
Status
PC
87
0
PCL
9
10
Instruction Word
Reset to ‘0’
Instruction Word
70
70
GOTO
Instruction
CALL
or Modify PCL Instruction



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


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
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