DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

PIC16F1513 View Datasheet(PDF) - Microchip Technology

Part Name
Description
Manufacturer
PIC16F1513 Datasheet PDF : 360 Pages
First Prev 21 22 23 24 25 26 27 28 29 30 Next Last
PIC16(L)F1512/3
FIGURE 3-6:
ACCESSING THE STACK EXAMPLE 2
TOSH:TOSL
0x0F
0x0E
0x0D
0x0C
0x0B
0x0A
0x09
0x08
0x07
0x06
0x05
0x04
0x03
0x02
0x01
0x00
Return Address
This figure shows the stack configuration
after the first CALL or a single interrupt.
If a RETURN instruction is executed, the
return address will be placed in the
Program Counter and the Stack Pointer
decremented to the empty state (0x1F).
STKPTR = 0x00
FIGURE 3-7:
ACCESSING THE STACK EXAMPLE 3
TOSH:TOSL
0x0F
0x0E
0x0D
0x0C
0x0B
0x0A
0x09
0x08
0x07
0x06
0x05
0x04
0x03
0x02
0x01
0x00
Return Address
Return Address
Return Address
Return Address
Return Address
Return Address
Return Address
After seven CALLs or six CALLs and an
interrupt, the stack looks like the figure
on the left. A series of RETURN instructions
will repeatedly place the return addresses
into the Program Counter and pop the stack.
STKPTR = 0x06
DS40001624C-page 30
2012-2014 Microchip Technology Inc.

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]