--- Quentin 的正文:> Write to EEPROM will not work if you step through > it. You must run > through it without interrupts. You can use "Run to > here" function to run > to the end. > I've noticed an error in the way you set your bank > select in the > beginning (I presume TEMP is in the first bank). > Also you are not > switching GIE off. Very important if you are using > interrupts. I've also > used the example in the manual and modified it for > my use. Very similar > to your code. I include it here so you can see the > difference in bank > select: > Thanks Quentin U reminded me that the RFCOUNT and TEMP were in BANK0. I forgot to switch back to BANK0. The problem solved. Thanks a lot. Regards CHEE -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu