Hi, First off, many thanks for helping me my question "How to check if an input gets stuck?" Now I need to do CRC check on ROM as well. I will also have to do RAM check. I will ask about CRC first. I already understand how CRC works and have a routine to calculate a 16-bit number's CRC. But I don't know how to apply the routine to check the program ROM and data ROM. (I use a small chip 12CE519.) Can someone shrede lights on it? Some code to illustrate the process will be greatly appreciated! Thanks! Tony -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.