jmg escribi=F3: > Hello, > = > Does anyone has a link or even a snippet for a code to make a quick CRC > check on the programm flash memory of a PIC (16F877A)? > Assembler prefered ;-) > = > I just want to mkae a small test on startup the PIC to be sure to have va= lid > code programmed to the PIC. > = > Thanks > = > Jens It's been a while since I don't deal with CRC in assembler = but IIRC microchip has some application notes covering this = matter (I don't remember if it is for the 16F or the 18F = parts). The remaining task will be to 'feed' that crc routine with = the bytes read from the program memory which can be done by = implementing the routines posted in the datasheet (Section = 3. DATA EEPROM AND FLASH PROGRAM MEMORY). -- = ------------------------------ Mauricio Giovagnini (Maunix) www.maunix.com.ar Cordoba, Arg. LinkedIn Profile: http://www.linkedin.com/in/mgiovagnini -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist