Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.COM

X  

PIC18LF26K22 Datasheet(PDF) 71 Page - Microchip Technology

Part # PIC18LF26K22
Description  28/40/44-Pin, Low-Power, High-Performance Microcontrollers with nanoWatt XLP Technology
Download  492 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC18LF26K22 Datasheet(HTML) 71 Page - Microchip Technology

Back Button PIC18LF26K22 Datasheet HTML 67Page - Microchip Technology PIC18LF26K22 Datasheet HTML 68Page - Microchip Technology PIC18LF26K22 Datasheet HTML 69Page - Microchip Technology PIC18LF26K22 Datasheet HTML 70Page - Microchip Technology PIC18LF26K22 Datasheet HTML 71Page - Microchip Technology PIC18LF26K22 Datasheet HTML 72Page - Microchip Technology PIC18LF26K22 Datasheet HTML 73Page - Microchip Technology PIC18LF26K22 Datasheet HTML 74Page - Microchip Technology PIC18LF26K22 Datasheet HTML 75Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 71 / 492 page
background image
 2010 Microchip Technology Inc.
Preliminary
DS41412B-page 71
PIC18(L)F2X/4XK22
A CALL type instruction causes a push onto the stack;
the Stack Pointer is first incremented and the location
pointed to by the Stack Pointer is written with the
contents of the PC (already pointing to the instruction
following the CALL). A RETURN type instruction causes
a pop from the stack; the contents of the location
pointed to by the STKPTR are transferred to the PC
and then the Stack Pointer is decremented.
The Stack Pointer is initialized to ‘00000’ after all
Resets. There is no RAM associated with the location
corresponding to a Stack Pointer value of ‘00000’; this
is only a Reset value. Status bits indicate if the stack is
full or has overflowed or has underflowed.
5.1.2.1
Top-of-Stack Access
Only the top of the return address stack (TOS) is readable
and writable. A set of three registers, TOSU:TOSH:TOSL,
hold the contents of the stack location pointed to by the
STKPTR register (Figure 5-2). This allows users to
implement a software stack if necessary. After a CALL,
RCALL or interrupt, the software can read the pushed
value by reading the TOSU:TOSH:TOSL registers. These
values can be placed on a user defined software stack. At
return time, the software can return these values to
TOSU:TOSH:TOSL and do a return.
The user must disable the Global Interrupt Enable (GIE)
bits while accessing the stack to prevent inadvertent
stack corruption.
FIGURE 5-2:
RETURN ADDRESS STACK AND ASSOCIATED REGISTERS
5.1.2.2
Return Stack Pointer (STKPTR)
The STKPTR register (Register 5-1) contains the Stack
Pointer value, the STKFUL (stack full) Status bit and
the STKUNF (Stack Underflow) Status bits. The value
of the Stack Pointer can be 0 through 31. The Stack
Pointer increments before values are pushed onto the
stack and decrements after values are popped off the
stack. On Reset, the Stack Pointer value will be zero.
The user may read and write the Stack Pointer value.
This feature can be used by a Real-Time Operating
System (RTOS) for return stack maintenance.
After the PC is pushed onto the stack 31 times (without
popping any values off the stack), the STKFUL bit is
set. The STKFUL bit is cleared by software or by a
POR.
The action that takes place when the stack becomes
full depends on the state of the STVREN (Stack Over-
flow Reset Enable) Configuration bit. (Refer to
Section 24.1 “Configuration Bits” for a description of
the device Configuration bits.) If STVREN is set
(default), the 31st push will push the (PC + 2) value
onto the stack, set the STKFUL bit and reset the
device. The STKFUL bit will remain set and the Stack
Pointer will be set to zero.
If STVREN is cleared, the STKFUL bit will be set on the
31st push and the Stack Pointer will increment to 31.
Any additional pushes will not overwrite the 31st push
and STKPTR will remain at 31.
When the stack has been popped enough times to
unload the stack, the next pop will return a value of zero
to the PC and sets the STKUNF bit, while the Stack
Pointer remains at zero. The STKUNF bit will remain
set until cleared by software or until a POR occurs.
00011
001A34h
11111
11110
11101
00010
00001
00000
00010
Return Address Stack <20:0>
Top-of-Stack
000D58h
TOSL
TOSH
TOSU
34h
1Ah
00h
STKPTR<4:0>
Top-of-Stack Registers
Stack Pointer
Note:
Returning a value of zero to the PC on an
underflow has the effect of vectoring the
program to the Reset vector, where the
stack conditions can be verified and
appropriate actions can be taken. This is
not the same as a Reset, as the contents
of the SFRs are not affected.


Similar Part No. - PIC18LF26K22

ManufacturerPart #DatasheetDescription
logo
Microchip Technology
PIC18LF26K22 MICROCHIP-PIC18LF26K22 Datasheet
545Kb / 42P
   Flash Memory Programming Specification
01/05/10 2010
PIC18LF26K22-E/ML MICROCHIP-PIC18LF26K22-E/ML Datasheet
5Mb / 496P
   28/40/44-Pin, Low-Power, High-Performance Microcontrollers with nanoWatt XLP Technology
2010
PIC18LF26K22-E/MV MICROCHIP-PIC18LF26K22-E/MV Datasheet
5Mb / 496P
   28/40/44-Pin, Low-Power, High-Performance Microcontrollers with nanoWatt XLP Technology
2010
PIC18LF26K22-E/P MICROCHIP-PIC18LF26K22-E/P Datasheet
5Mb / 496P
   28/40/44-Pin, Low-Power, High-Performance Microcontrollers with nanoWatt XLP Technology
2010
PIC18LF26K22-E/PT MICROCHIP-PIC18LF26K22-E/PT Datasheet
5Mb / 496P
   28/40/44-Pin, Low-Power, High-Performance Microcontrollers with nanoWatt XLP Technology
2010
More results

Similar Description - PIC18LF26K22

ManufacturerPart #DatasheetDescription
logo
Microchip Technology
PIC18F2X MICROCHIP-PIC18F2X Datasheet
5Mb / 496P
   28/40/44-Pin, Low-Power, High-Performance Microcontrollers with nanoWatt XLP Technology
2010
PIC16F1824 MICROCHIP-PIC16F1824_11 Datasheet
3Mb / 419P
   28/40/44-Pin, Low-Power, High-Performance Microcontrollers with nanoWatt XLP Technology
2010
PIC18F46J11 MICROCHIP-PIC18F46J11 Datasheet
8Mb / 528P
   28/44-Pin, Low-Power, High-Performance Microcontrollers with nanoWatt XLP Technology
2009
PIC18F47J13 MICROCHIP-PIC18F47J13 Datasheet
4Mb / 558P
   28/44-Pin, High-Performance Microcontrollers with nanoWatt XLP Technology
2010
PIC18F46J50-IPT MICROCHIP-PIC18F46J50-IPT Datasheet
4Mb / 562P
   28/44-Pin, Low-Power, High-Performance USB Microcontrollers with nanoWatt XLP Technology
02/18/11
PIC18F47J53 MICROCHIP-PIC18F47J53 Datasheet
6Mb / 586P
   28/44-Pin, High-Performance USB Microcontrollers with nanoWatt XLP Technology
2010
PIC12F1516 MICROCHIP-PIC12F1516 Datasheet
2Mb / 344P
   28/40/44-Pin Flash Microcontrollers with nanoWatt XLP Technology
2011
PIC16F72X MICROCHIP-PIC16F72X Datasheet
4Mb / 302P
   28/40/44-Pin Flash Microcontrollers with nanoWatt XLP Technology
2009
PIC16F1516 MICROCHIP-PIC16F1516 Datasheet
2Mb / 344P
   28/40/44-Pin Flash Microcontrollers with nanoWatt XLP Technology
2010
PIC16F722 MICROCHIP-PIC16F722 Datasheet
4Mb / 302P
   28/40/44-Pin Flash Microcontrollers with nanoWatt XLP Technology
03/26/09
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