Hi everyone, I am writing a program for the PIC16F877. Suddenly, I get the following message "Crossing page boundary -- ensure page bits are set". I read the specs and it say that I can switch to different programming page by manipulate PCLATH <4:3> Please correct me if I am wrong (I can't find this info in the spec, so I am just guessing) PCLATH<4> | PCLATH<3> | GOTO PAGE -------------------------------- 0 0 Page 0 0 1 Page 1 1 0 Page 2 1 1 Page 3 Right? And I also have some questions: 1. What address do page 1, page 2, and page 3 start with? 2. If I place a subroutine in Page 1, and I want to call it from page 0, do I have to go to page 1 first before I can do a call (then switch back to page 0 to continue)? 3. Is there any trick to automatically switch the page? Is there any trick the treat the entire 8K of program memory as ONE page? Thank you very much! Thomas _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.