Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

memory bank in PIC16f877a

Status
Not open for further replies.

PA3040

Advanced Member level 3
Advanced Member level 3
Joined
Aug 1, 2011
Messages
883
Helped
43
Reputation
88
Reaction score
43
Trophy points
1,308
Activity points
6,936
Dear All
Please kindly help me to learn about memory bank in PIC16f877a
Please see picture in the attached
I found in the memory bank which is called ACCESSES AREA in addition to GPR and SFR register area
I sow this in Mid-Range MCU Family Reference Manual as Mapped in Bank0
Please advice memory.JPG
 

Hi,


( sorry - me again :-D)
First, the register map you are showing is for the 873A chip which just has 192 bytes of ram spead over Banks 0 and 1.
Banks 2 and 3 do not exist, but I believe, without checking, that if you set your code to Bank2 it will just reflect Bank0, and Bank 3 as Bank 1.

What is more interesting for you with the 877A chip is the 16 bytes of Access Areas in Banks1,2,and 3. 0x70 to 0x7F.

Anything you enter in this area is common to all banks 0 -3 , so it can be very handy to have those registers available without having to leave your current bank. Its something you will appreciate more when you write a large program that uses a lot of registers.
The area is often used for the contex saving registers used by the Interrupt routine
 
  • Like
Reactions: PA3040

    PA3040

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top