전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

PIC17C752-08/CL 데이터시트(PDF) 55 Page - Microchip Technology

부품명 PIC17C752-08/CL
상세설명  High-Performance 8-Bit CMOS EPROM Microcontrollers with 10-bit A/D
PDF  328 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  MICROCHIP [Microchip Technology]
홈페이지  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC17C752-08/CL 데이터시트(HTML) 55 Page - Microchip Technology

Back Button PIC17C752-08/CL Datasheet HTML 51Page - Microchip Technology PIC17C752-08/CL Datasheet HTML 52Page - Microchip Technology PIC17C752-08/CL Datasheet HTML 53Page - Microchip Technology PIC17C752-08/CL Datasheet HTML 54Page - Microchip Technology PIC17C752-08/CL Datasheet HTML 55Page - Microchip Technology PIC17C752-08/CL Datasheet HTML 56Page - Microchip Technology PIC17C752-08/CL Datasheet HTML 57Page - Microchip Technology PIC17C752-08/CL Datasheet HTML 58Page - Microchip Technology PIC17C752-08/CL Datasheet HTML 59Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 55 / 328 page
background image
© 1998 Microchip Technology Inc.
DS30289A-page 55
PIC17C7XX
7.7
Program Counter Module
The Program Counter (PC) is a 16-bit register. PCL, the
low byte of the PC, is mapped in the data memory. PCL
is readable and writable just as is any other register.
PCH is the high byte of the PC and is not directly
addressable. Since PCH is not mapped in data or pro-
gram memory, an 8-bit register PCLATH (PC high
latch) is used as a holding latch for the high byte of the
PC. PCLATH is mapped into data memory. The user
can read or write PCH through PCLATH.
The 16-bit wide PC is incremented after each instruc-
tion fetch during Q1 unless:
• Modified by a GOTO, CALL, LCALL, RETURN, RETLW,
or RETFIE instruction
• Modified by an interrupt response
• Due to destination write to PCL by an instruction
“Skips” are equivalent to a forced NOP cycle at the
skipped address.
Figure 7-10 and Figure 7-11 show the operation of the
program counter for various situations.
FIGURE 7-10: PROGRAM COUNTER
OPERATION
FIGURE 7-11: PROGRAM COUNTER USING
THE CALL AND GOTO
INSTRUCTIONS
Internal data bus <8>
PCLATH
8
8
8
PCH
PCL
8
15
0
7
5 4
0
12
8 7
0
87
PC<15:13>
PCLATH
From Instruction
5
3
8
PCH
PCL
13
15
Using Figure 7-10, the operations of the PC and
PCLATH for different instructions are as follows:
a)
LCALL
instructions:
An 8-bit destination address is provided in the
instruction (opcode). PCLATH is unchanged.
PCLATH
→ PCH
Opcode<7:0>
→ PCL
b)
Read instructions on PCL:
Any instruction that reads PCL.
PCL
→ data bus → ALU or destination
PCH
→ PCLATH
c)
Write instructions on PCL:
Any instruction that writes to PCL.
8-bit data
→ data bus → PCL
PCLATH
→ PCH
d)
Read-Modify-Write instructions on PCL:
Any instruction that does a read-write-modify
operation on PCL, such as ADDWF PCL.
Read:
PCL
→ data bus → ALU
Write:
8-bit result
→ data bus → PCL
PCLATH
→ PCH
e)
RETURN
instruction:
Stack<MRU>
→ PC<15:0>
Using Figure 7-11, the operation of the PC and
PCLATH for GOTO and CALL instructions is as follows:
CALL
, GOTO instructions:
A 13-bit destination address is provided in the
instruction (opcode).
Opcode<12:0>
→ PC<12:0>
PC<15:13>
→ PCLATH<7:5>
Opcode<12:8>
→ PCLATH<4:0>
The read-modify-write only affects the PCL with the
result. PCH is loaded with the value in the PCLATH.
For example, ADDWF PCL will result in a jump within the
current page. If PC = 03F0h, WREG = 30h and
PCLATH = 03h before instruction, PC = 0320h after the
instruction.
To accomplish a true 16-bit computed
jump, the user needs to compute the 16-bit destination
address, write the high byte to PCLATH and then write
the low value to PCL.
The following PC related operations do not change
PCLATH:
a)
LCALL
, RETLW, and RETFIE instructions.
b)
Interrupt vector is forced onto the PC.
c)
Read-modify-write instructions on PCL
(e.g. BSF PCL).



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


데이터시트 다운로드

Go To PDF Page


링크 URL



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
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