Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Pic Ram

Status
Not open for further replies.

fedail

New Member
i have a question about pic16f877
the address of it is 000 to 1FF so it must be 512 with three bank
00 -> 128
01 -> 128
10 -> 128
11 -> 128

SO IT MUST BE 512
why it is 386

from Data sheet or any book
 
If you look at the data sheet you will see that some of the ram space is used by the special function registers and some area are common to all banks.

Mike.
 
Look at the memory map in the data sheet and it will make more sense.

Mike.
 
did u mean SFRs oR GPRs
if u meant i have to remove the blunk or SFRs from the ram
or count the GPRs i have counted it is 416 not 386
can any one help me to understand this and this ram is for temp Data
so where the program save is it in EEPROM i think that
 

Attachments

  • Untitled.png
    Untitled.png
    47.5 KB · Views: 117
The last 16 bytes of each bank are common. This is so you can place variables that are used lots in this area and access them without any bank switching.

Mike.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top