Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.COM

X  

PIC18FXX2 Datasheet(PDF) 51 Page - Microchip Technology

Part # PIC18FXX2
Description  28/40-pin High Performance, Enhanced FLASH Microcontrollers with 10-Bit A/D
Download  332 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC18FXX2 Datasheet(HTML) 51 Page - Microchip Technology

Back Button PIC18FXX2_06 Datasheet HTML 47Page - Microchip Technology PIC18FXX2_06 Datasheet HTML 48Page - Microchip Technology PIC18FXX2_06 Datasheet HTML 49Page - Microchip Technology PIC18FXX2_06 Datasheet HTML 50Page - Microchip Technology PIC18FXX2_06 Datasheet HTML 51Page - Microchip Technology PIC18FXX2_06 Datasheet HTML 52Page - Microchip Technology PIC18FXX2_06 Datasheet HTML 53Page - Microchip Technology PIC18FXX2_06 Datasheet HTML 54Page - Microchip Technology PIC18FXX2_06 Datasheet HTML 55Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 51 / 332 page
background image
© 2006 Microchip Technology Inc.
DS39564C-page 49
PIC18FXX2
4.10
Access Bank
The Access Bank is an architectural enhancement
which is very useful for C compiler code optimization.
The techniques used by the C compiler may also be
useful for programs written in assembly.
This data memory region can be used for:
• Intermediate computational values
• Local variables of subroutines
• Faster context saving/switching of variables
• Common variables
• Faster evaluation/control of SFRs (no banking)
The Access Bank is comprised of the upper 128 bytes
in Bank 15 (SFRs) and the lower 128 bytes in Bank 0.
These two sections will be referred to as Access RAM
High and Access RAM Low, respectively. Figure 4-6
and Figure 4-7 indicate the Access RAM areas.
A bit in the instruction word specifies if the operation is
to occur in the bank specified by the BSR register or in
the Access Bank. This bit is denoted by the ’a’ bit (for
access bit).
When forced in the Access Bank (a = 0), the last
address in Access RAM Low is followed by the first
address in Access RAM High. Access RAM High maps
the Special Function registers, so that these registers
can be accessed without any software overhead. This is
useful for testing status flags and modifying control bits.
4.11
Bank Select Register (BSR)
The need for a large general purpose memory space
dictates a RAM banking scheme. The data memory is
partitioned into sixteen banks. When using direct
addressing, the BSR should be configured for the
desired bank.
BSR<3:0> holds the upper 4 bits of the 12-bit RAM
address. The BSR<7:4> bits will always read ’0’s, and
writes will have no effect.
A MOVLB instruction has been provided in the
instruction set to assist in selecting banks.
If the currently selected bank is not implemented, any
read will return all '0's and all writes are ignored. The
STATUS register bits will be set/cleared as appropriate
for the instruction performed.
Each Bank extends up to FFh (256 bytes). All data
memory is implemented as static RAM.
A MOVFF instruction ignores the BSR, since the 12-bit
addresses are embedded into the instruction word.
Section 4.12 provides a description of indirect address-
ing, which allows linear addressing of the entire RAM
space.
FIGURE 4-8:
DIRECT ADDRESSING
Note
1: For register file map detail, see Table 4-1.
2: The access bit of the instruction can be used to force an override of the selected bank (BSR<3:0>) to the
registers of the Access Bank.
3: The MOVFF instruction embeds the entire 12-bit address in the instruction.
Data
Memory(1)
Direct Addressing
Bank Select(2)
Location Select(3)
BSR<3:0>
7
0
From Opcode(3)
00h
01h
0Eh
0Fh
Bank 0
Bank 1
Bank 14
Bank 15
1FFh
100h
0FFh
000h
EFFh
E00h
FFFh
F00h


Similar Part No. - PIC18FXX2_06

ManufacturerPart #DatasheetDescription
logo
Microchip Technology
PIC18FXX2-E/L MICROCHIP-PIC18FXX2-E/L Datasheet
5Mb / 332P
   High-Performance, Enhanced Flash Microcontrollers with 10-Bit A/D
08/29/06
PIC18FXX2-E/P MICROCHIP-PIC18FXX2-E/P Datasheet
5Mb / 332P
   High-Performance, Enhanced Flash Microcontrollers with 10-Bit A/D
08/29/06
PIC18FXX2-E/PT MICROCHIP-PIC18FXX2-E/PT Datasheet
5Mb / 332P
   High-Performance, Enhanced Flash Microcontrollers with 10-Bit A/D
08/29/06
PIC18FXX2-E/SO MICROCHIP-PIC18FXX2-E/SO Datasheet
5Mb / 332P
   High-Performance, Enhanced Flash Microcontrollers with 10-Bit A/D
08/29/06
PIC18FXX2-E/SP MICROCHIP-PIC18FXX2-E/SP Datasheet
5Mb / 332P
   High-Performance, Enhanced Flash Microcontrollers with 10-Bit A/D
08/29/06
More results

Similar Description - PIC18FXX2_06

ManufacturerPart #DatasheetDescription
logo
Microchip Technology
PIC18F2220 MICROCHIP-PIC18F2220_07 Datasheet
6Mb / 386P
   28/40/44-Pin High-Performance, Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
2007
PIC18F2220 MICROCHIP-PIC18F2220 Datasheet
6Mb / 388P
   28/40/44-Pin High-Performance, Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
2003
PIC18F258 MICROCHIP-PIC18F258 Datasheet
5Mb / 384P
   High Performance, 28/40-Pin Enhanced FLASH Microcontrollers with CAN
2002
PIC18F452-IPT MICROCHIP-PIC18F452-IPT Datasheet
5Mb / 332P
   High-Performance, Enhanced Flash Microcontrollers with 10-Bit A/D
08/29/06
PIC18F242-I-SO MICROCHIP-PIC18F242-I-SO Datasheet
5Mb / 332P
   High-Performance, Enhanced Flash Microcontrollers with 10-Bit A/D
08/29/06
PIC18F442-I MICROCHIP-PIC18F442-I Datasheet
5Mb / 332P
   High-Performance, Enhanced Flash Microcontrollers with 10-Bit A/D
08/29/06
PIC18LF252-ISP MICROCHIP-PIC18LF252-ISP Datasheet
5Mb / 332P
   High-Performance, Enhanced Flash Microcontrollers with 10-Bit A/D
08/29/06
PIC18F452 MICROCHIP-PIC18F452 Datasheet
5Mb / 332P
   High Performance, Enhanced FLASH Microcontrollers with 10-Bit A/D
2002
PIC18LF252-I MICROCHIP-PIC18LF252-I Datasheet
5Mb / 332P
   High-Performance, Enhanced Flash Microcontrollers with 10-Bit A/D
08/29/06
PIC18FXX8 MICROCHIP-PIC18FXX8_06 Datasheet
6Mb / 402P
   28/40-Pin High-Performance, Enhanced Flash Microcontrollers with CAN Module
2006
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