Hi. I need some guidance please. I'm using the 16F887 to run a keypad, LCD and a DS1307 RTC. It is becoming a long program
I have placed the main section in page0. The display message routines are in page1 and the display strings are in pages2 & 3. I have orged them as follows: page 0 = 5. page 1=800h. page 2=1000h and page 3=1800h. I am compiling with absolute code.
As soon as my lcalls go past a certain size, the PC jumps to another page. I monitor PCLATH in a window and I can see it changing. PCL is correct but obviously PCLATH is causing the problem. If I keep the call distance less than about 100h, all is good. I have looked at my list file to see the exact size of each page and when it gets to say 900h, trouble starts.
I use the LCALL with pagesel $ after the call. That works fine until the call is too far. Surely the whole 7ffh of each page is accessable by using LCALL.
Help.
Thanks in advance.