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.
Look at the program memory used. Bit 3 and 4 in PCLATH (or bit 11 and 12 in PC) indicates the page used.
Each page is 2k memory, which takes 11 bits of program memory. So if your program doesn't use up to bit 11 and 12 (both are 0), then you don't have to save them.
0x0258 = 0b0001001011000
The program is within the page 0. So, what do you think?
*EDIT:
One page is 2k, which is 2048 (0 to 2047, or 0x0000 to 0x07ff)
In binary,
Page 0: 0b0000000000000 to 0b0011111111111
Page 1: 0b0100000000000 to 0b0111111111111
Page 2: 0b1000000000000 to 0b1011111111111
Bit 11 and 12 indicate the page, as in bit 3 and 4 in PCLATH.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.