I have home made ISP Programmer for AVR. It was working fine a few days back.
but now it is giving an error message which is:
write error at the address 00000000 byte written: 0F byte read: 9F
and some times
write error at the address 00000002 byte written: 14 byte read: 97
It reades the device signature correctly.
Device Signature: ATmega162, Flash 16 kb, EEPROM: 512 bytes