OK, let's not hijack Earl's thread any farther Please start a new thread in mel PbasicPro , and study this thread:http://www.picbasic.co.uk/forum/showthread.php?t=543
To gain some insight on the next thing we are going to do, after which you will compile a working program into your PIC, which you wrote.