well i can't really tell you how about because i no longer use the PROTON compiler as i feel you use just by seeing your variable declaration, the way you write to EEPROM and the DelayMS statement.
maybe the PROTON forum will be handy for you
www.picbasic.org/forum
Bookmarks