In-System Programming of tinyAVR and megaAVR devices can be done using the AVR device internal SPI (Serial Peripheral Interface) to download code into the Flash and EEPROM memory. ISP programming requires only VCC, GND, RESET, and three signal lines for programming. No high-voltage signals are required. The ISP programmer can program both the internal Flash and EEPROM, fuses, lock-bits, and calibration bytes.
ISP programming will NOT work if one or more of the following cases is true:
Refer to the AVR device data sheet for information about the fuses.
Use high-voltage programming to re-enable the ISP interface from the situation listed above. Either HVPP or HVSP depending on what is supported by the AVR device.