> I've tested it, by getting my code to print a ">" on the LCD > before calling the subroutine, and a "<" if it makes it back to page1 > okay. However it never does! It just hangs after printing the ">"! > Can anyone explain why this might be happening? Are the above functions > incorrect? Could it be something else in my code which is causing it to > crash? You code for setting PCLATH looked OK. The best way to get PCLATH set would be with the PAGESEL directive. > movlw HIGH (page_1) ; move high byte of page_1 sub > movwf PCLATH ; address in to PCLATH > call page_1 ; call funtion in page_1 > call send_ascii ; print "1" This fails because PCLATH is still set to page 1 when SEND_ASCII is called. ***************************************************************** Olin Lathrop, embedded systems consultant in Devens Massachusetts (978) 772-3129, olin@embedinc.com, http://www.embedinc.com -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics