|Make RadioLocman Your Homepage!|
Atmega fusebit doctor (HVPP)
The project is intended for noncommercial usage only
Atmega fusebit doctor, as name says it, device for repairing dead Atmega family AVRs by writing wrong fusebits. Most common mistakes or problems are a wrong clock source (CKSEL fusebits), disabled SPI programming (SPIEN fuse) or disabled reset pin (RSTDISBL fuse). This simple and cheap circuit will fix you uC in a fraction of a second.
If in first case we can help ourself with clock generator, then in 2nd and 3rd cases bring uC back to life is impossible with standard serial programmer. Most of people do not decide to build parallel programmer because its inconvenient and its cheaper and faster to buy new uC.
This circuit uses the parallel high-voltage programming method. Atmega8 (doctor) has saved in it’s memory signatures of most common AVR Atmega uC’s, just put your dead mega in socket, press the START button, and enjoy your good-as-new processor. There are three slots on board, for most common AVR’s, pins compatible with: Atmega8, Atmega16, Attiny2313. There is also an extra goldpin connector with all signals so you can attach your own adapters for other types of processors, in trough-hole or surface-mounted, you can use the breadboard for this – just connect signals to correct pins. How? Check your AVR datasheet, go to “memory programming” and then “parallel programming” – check the signal names, all signals are described under the DIP40 slot. In doctor memory there is a lot of free space so project may be developed all the time. One sided PCB with 55mm × 92mm dimensions. On top side you need to solder several jumpers, or, make this PCB as double sided – choose yourself. Power: stabilized 12V. Resistors from R7 to R23 may be in 100ohm to 10K, but i suggest from 470ohm to 1K.
You can find extra RS232 output, connecting to this (at 38000 bps) we will receive all information about fixing process – see exemplary printscreen in gallery. Of course terminal is not needed, all we want to know we get from leds.
ATTENTION! While mounting the DIP40 slot, you must to remove it pins from 29 to 37. These pins must not have electrical contact with inserted uC pins. Take a look at this pic, these you must remove from slot:
The ALLOW ERASE jumper allows doctor to erase whole flash and eeprom memory, if it is open, doctor will newer erase memory but may not cure device if lockbits are enabled, so you choose. After insert dead uC and press the START button, doctor will initiate the parallel programming mode. If our patient will not respond with high state at RDY/BSY line, doctor will use other way to initiate programming mode even if the XTAL pins are switched to external resonator. After that doctor will erase whole memory if user allows that. Then, read device signature and check if it supports it. Next are lockbits checked, and if they not blocking device, doctor sets all fusebits to fabric, having regard to whether there are extended fusebits or not. After that fusebits are verified, and proper leds are flashed. Also, all the info are send trough usart.
Code was written based on high-voltage parallel programming section of datasheet of suitable AVRs.
Code for this point supports only Atmega16, Atmega32, and Atmega8 – these was tested. Support for other uC (within Attiny2313) i will ad as soon as i find some time to do that :)
If you are searching for attiny family AVR’s fusebits fix device, then check my previous project, the Attiny fusebit doctor.
Fusebits: Internal 8MHz clock, and enabled EESAVE bit.
If you get green led, you can be 100% sure that fusebits are restored correctly. If processor still do not respond to standard ISP programmer, that means it have hardware SPI damaged or it is damaged in other way. If you get the red led, the only thing you can do is check what doctor sends over the rs232 – then i can help.
Firmware 2.01 BETA – support for 76 uC’s, Tested ones are lightened green. User feedback is priceless in this project, so if you successfully fixed some chip, or not, please tell me.
Eagle 5.4.0 project files, PDF & PNG schematic and PCB’s version 2.0d, HEX & BIN firmware version 2.01 BETA - download
Hardware update, added two adapters:
Firmware update, V2.03:
Device will automatically detect the HVSP adapter and start in the HVSP mode (info on rs232 output).
Added all sockets compatibility list with images… “B” means that this is the adapter #1 socket, and “C” – HVSP adapter socket.
Total supported chips: 96.
As this is now 2in1 (HVPP and HVSP) 8kB of Atmega8 memory was too short to fit all the goods inside…
DOWNLOAD – eagle 5.4.0 project files, PDF & PNG schematic and PCB’s for both adapters, HEX, BIN and EEP.BIN firmware version 2.03.
Schematics on theme: