Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.COM

X  

PIC18LF26J53 Datasheet(PDF) 85 Page - Microchip Technology

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

PIC18LF26J53 Datasheet(HTML) 85 Page - Microchip Technology

Back Button PIC18LF26J53 Datasheet HTML 81Page - Microchip Technology PIC18LF26J53 Datasheet HTML 82Page - Microchip Technology PIC18LF26J53 Datasheet HTML 83Page - Microchip Technology PIC18LF26J53 Datasheet HTML 84Page - Microchip Technology PIC18LF26J53 Datasheet HTML 85Page - Microchip Technology PIC18LF26J53 Datasheet HTML 86Page - Microchip Technology PIC18LF26J53 Datasheet HTML 87Page - Microchip Technology PIC18LF26J53 Datasheet HTML 88Page - Microchip Technology PIC18LF26J53 Datasheet HTML 89Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 85 / 586 page
background image
 2010 Microchip Technology Inc.
Preliminary
DS39964B-page 85
PIC18F47J53 FAMILY
6.1.4.4
Stack Full and Underflow Resets
Device Resets on stack overflow and stack underflow
conditions are enabled by setting the STVREN bit in
Configuration register 1L. When STVREN is set, a full
or underflow condition sets the appropriate STKFUL or
STKUNF bit and then causes a device Reset. When
STVREN is cleared, a full or underflow condition sets
the appropriate STKFUL or STKUNF bit, but does not
cause a device Reset. The STKFUL or STKUNF bits
are cleared by the user software or a POR.
6.1.5
FAST REGISTER STACK (FRS)
A Fast Register Stack (FRS) is provided for the
STATUS, WREG and BSR registers to provide a “fast
return” option for interrupts. This stack is only one level
deep and is neither readable nor writable. It is loaded
with the current value of the corresponding register
when the processor vectors for an interrupt. All inter-
rupt sources push values into the Stack registers. The
values in the registers are then loaded back into the
working registers if the RETFIE, FAST instruction is
used to return from the interrupt.
If both low-priority and high-priority interrupts are
enabled, the Stack registers cannot be used reliably to
return from low-priority interrupts. If a high-priority
interrupt occurs while servicing a low-priority interrupt,
the Stack register values stored by the low-priority
interrupt will be overwritten. In these cases, users must
save the key registers in software during a low-priority
interrupt.
If interrupt priority is not used, all interrupts may use the
FRS for returns from interrupt. If no interrupts are used,
the FRS can be used to restore the STATUS, WREG
and BSR registers at the end of a subroutine call. To
use the Fast Register Stack for a subroutine call, a
CALL label, FAST instruction must be executed to
save the STATUS, WREG and BSR registers to the
Fast Register Stack. A RETURN, FAST instruction is
then executed to restore these registers from the FRS.
Example 6-1 provides a source code example that
uses the FRS during a subroutine call and return.
EXAMPLE 6-1:
FAST REGISTER STACK
CODE EXAMPLE
6.1.6
LOOK-UP TABLES IN PROGRAM
MEMORY
There may be programming situations that require the
creation of data structures or look-up tables in program
memory. For PIC18 devices, look-up tables can be
implemented in two ways:
• Computed GOTO
• Table Reads
6.1.6.1
Computed GOTO
A computed GOTO is accomplished by adding an offset
to the PC. An example is shown in Example 6-2.
A look-up table can be formed with an ADDWF PCL
instruction and a group of RETLW nn instructions. The
W register is loaded with an offset into the table before
executing a call to that table. The first instruction of the
called routine is the ADDWF PCL instruction. The next
executed instruction will be one of the RETLW nn
instructions that returns the value, ‘nn’, to the calling
function.
The offset value (in WREG) specifies the number of
bytes that the PC should advance and should be
multiples of 2 (LSb = 0).
In this method, only one byte may be stored in each
instruction location, but room on the return address
stack is required.
EXAMPLE 6-2:
COMPUTED GOTO USING
AN OFFSET VALUE
6.1.6.2
Table Reads
A better method of storing data in program memory
allows two bytes to be stored in each instruction
location.
Look-up table data may be stored two bytes per
program word while programming. The Table Pointer
(TBLPTR) specifies the byte address, and the Table
Latch (TABLAT) contains the data that is read from the
program memory. Data is transferred from program
memory, one byte at a time.
Table read operation is discussed further in
Section 7.1 “Table Reads and Table Writes”.
CALL SUB1, FAST
;STATUS, WREG, BSR
;SAVED IN FAST REGISTER
;STACK
SUB1
RETURN FAST
;RESTORE VALUES SAVED
;IN FAST REGISTER STACK
MOVF
OFFSET, W
CALL
TABLE
ORG
nn00h
TABLE
ADDWF
PCL
RETLW
nnh
RETLW
nnh
RETLW
nnh
.
.
.


Similar Part No. - PIC18LF26J53

ManufacturerPart #DatasheetDescription
logo
Microchip Technology
PIC18LF26J50 MICROCHIP-PIC18LF26J50 Datasheet
217Kb / 12P
   PIC18F46J50 Family Silicon Errata and Data Sheet Clarification
2010
PIC18LF26J50I/MLQTP MICROCHIP-PIC18LF26J50I/MLQTP Datasheet
4Mb / 562P
   28/44-Pin, Low-Power, High-Performance USB Microcontrollers
02/18/11
PIC18LF26J50I/MLSQTP MICROCHIP-PIC18LF26J50I/MLSQTP Datasheet
4Mb / 562P
   28/44-Pin, Low-Power, High-Performance USB Microcontrollers
02/18/11
PIC18LF26J50I/PTQTP MICROCHIP-PIC18LF26J50I/PTQTP Datasheet
4Mb / 562P
   28/44-Pin, Low-Power, High-Performance USB Microcontrollers
02/18/11
PIC18LF26J50I/PTSQTP MICROCHIP-PIC18LF26J50I/PTSQTP Datasheet
4Mb / 562P
   28/44-Pin, Low-Power, High-Performance USB Microcontrollers
02/18/11
More results

Similar Description - PIC18LF26J53

ManufacturerPart #DatasheetDescription
logo
Microchip Technology
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
PIC18F46J11 MICROCHIP-PIC18F46J11_11 Datasheet
4Mb / 536P
   28/44-Pin, Low-Power, High-Performance USB Microcontrollers with nanoWatt XLP Technology
2011
PIC18F46J50 MICROCHIP-PIC18F46J50_11 Datasheet
4Mb / 562P
   28/44-Pin, Low-Power, High-Performance USB Microcontrollers with nanoWatt XLP Technology
2011
PIC18F46J11 MICROCHIP-PIC18F46J11 Datasheet
8Mb / 528P
   28/44-Pin, Low-Power, High-Performance Microcontrollers with nanoWatt XLP Technology
2009
PIC18F23K22 MICROCHIP-PIC18F23K22 Datasheet
5Mb / 492P
   28/40/44-Pin, Low-Power, High-Performance Microcontrollers with nanoWatt XLP Technology
2010
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
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
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