Wrong voltage

Most likely the atmega is fried at 12v if it was connected for anything more than a few mS (at best). The absolute maximum ratings on the device is 6 or 6.5v IIRC.