PIC16LC72 Microchip Technology, PIC16LC72 Datasheet - Page 15
![no-image](/images/manufacturer_photos/0/4/439/microchip_technology_sml.jpg)
PIC16LC72
Manufacturer Part Number
PIC16LC72
Description
8-Bit CMOS Microcontrollers
Manufacturer
Microchip Technology
Datasheet
1.PIC16LC72.pdf
(124 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
PIC16LC72-04/SO
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC16LC72-04/SP
Manufacturer:
MIC
Quantity:
20 000
Part Number:
PIC16LC72A
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Company:
Part Number:
PIC16LC72A-04/SO
Manufacturer:
Microchip Technology
Quantity:
5 000
Company:
Part Number:
PIC16LC72A-04I/ML
Manufacturer:
Microchip Technology
Quantity:
135
2.3
The program counter (PC) specifies the address of the
instruction to fetch for execution. The PC is 13 bits
wide. The low byte is called the PCL register. This reg-
ister is readable and writable. The high byte is called
the PCH register. This register contains the PC<12:8>
bits and is not directly readable or writable. All updates
to the PCH register go through the PCLATH register.
FIGURE 2-9:
1998 Microchip Technology Inc.
Situation 1 - Instruction with PCL as destination
Situation 2 - GOTO Instruction
Situation 3 - CALL Instruction
Situation 4 - RETURN, RETFIE, or RETLW Instruction
PCL and PCLATH
PC
PC
PC
PC
Note: PCLATH is not updated with the contents of PCH.
12
12 11 10
2
12 11 10
12 11 10
2
LOADING OF PC IN DIFFERENT SITUATIONS
5
PCH
PCLATH<4:3>
PCH
PCH
PCLATH<4:3>
PCH
PCLATH
PCLATH
PCLATH
PCLATH<4:0>
8
8
8
PCLATH
8
7
7
7
7
PCL
PCL
PCL
PCL
11
11
11
8
ALU result
0
0
0
0
13
13
Opcode <10:0>
Opcode <10:0>
Opcode <10:0>
Preliminary
Figure 2-9 shows the four situations for the loading of
the PC. Example 1 shows how the PC is loaded on a
write to PCL (PCLATH<4:0>
shows how the PC is loaded during a GOTO instruction
(PCLATH<4:3>
is loaded during a CALL instruction (PCLATH<4:3>
PCH), with the PC loaded (PUSHed) onto the Top of
Stack. Finally, example 4 shows how the PC is loaded
during one of the return instructions where the PC is
loaded (POPed) from the Top of Stack.
STACK (13-bits x 8)
STACK (13-bits x 8)
STACK (13-bits x 8)
STACK (13-bits x 8)
Top of STACK
Top of STACK
Top of STACK
Top of STACK
PIC16C72 Series
PCH). Example 3 shows how the PC
PCH). Example 2
DS39016A-page 15