Fortunately, my trusty Arduino came to the rescue. I created an Arduino-based AVR programmer that uses the high voltage programming mode and can fix pesky fuses like RSTDISBL. The Arduino has just enough IO to implement the entire HV protocol plus a go button. So far I have only implemented setting LFUSE and HFUSE in software, but there is no reason why the code couldn’t be extended to support chip erase and programming the entire flash as well. More: The fuse programming process is simple: Upload the HVFuse sketch to the Arduino, available for download here: HVFuse.pde. Install the shield and apply +12VDC to the terminals on the left. Wait for the red LED to turn on (if it isn’t already). Install the ATmega to be repaired. Push the button. As soon as the LED turns back on, the AVR is fixed and ready to be put back into service! Parts list: An Arduino NG, Diecimila, or compatible. A piece of perfboard cut to size. Header pins for the Arduino interface (note I had to drill some of the holes to get the headers to fit the nonstandard pin spacing for digital lines 8-13). An LED which indicates when it is ok to insert/remove the AVR. A 2N3903 or similar NPN transistor (2N2222, etc.). (20) 1k resistors - these protect the Arduino from short circuits in case something goes wrong. A pushbutton switch - this is the ‘go’ button. A 28 pin socket for the target AVR.
The described Arduino-based AVR programmer utilizes high voltage (HV) programming techniques to reset microcontroller fuses, particularly the RSTDISBL fuse, which can disable the reset functionality of the ATmega microcontrollers. The circuit is designed around an Arduino board, which provides the necessary input/output capabilities to execute the HV programming protocol.
The main components of the circuit include the Arduino board, a perfboard for mounting, and a variety of passive and active components. The Arduino NG, Diecimila, or any compatible variant serves as the control unit, executing the HVFuse sketch that handles programming tasks. The perfboard is used to accommodate the various components while maintaining a compact design.
For user interaction, a pushbutton switch is included, referred to as the ‘go’ button, which initiates the programming process. An LED is incorporated into the circuit to provide visual feedback, indicating when it is safe to insert or remove the AVR microcontroller. The LED will illuminate to signal the user that the programming process is active and will turn off once the operation is complete.
The circuit employs a 2N3903 or similar NPN transistor to manage the high voltage required for programming. This transistor acts as a switch, allowing the Arduino to control the application of +12VDC to the target device safely. Additionally, a series of 1k ohm resistors are utilized throughout the circuit to protect the Arduino's I/O pins from potential short circuits or excess current, ensuring the longevity and reliability of the programmer.
The 28-pin socket is designed to accommodate the target AVR microcontroller, allowing for easy insertion and removal during the programming process. The design of the circuit takes into account the non-standard pin spacing of some digital lines (8-13), which may require drilling additional holes for proper header pin alignment.
Overall, this Arduino-based AVR programmer is a practical solution for restoring functionality to microcontrollers that have been rendered inoperable due to fuse settings, providing a straightforward and effective method for hobbyists and engineers alike.Fortunately, my trusty Arduino came to the rescue I created an Arduino-based AVR programmer that uses the high voltage programming mode and can fix pesky fuses like RSTDISBL. The Arduino has just enough IO to implement the entire HV protocol plus a go” button. So far I have only implemented setting LFUSE and HFUSE in software, but there is no reason why the code couldn’t be extended to support chip erase and programming the entire flash as well.
The fuse programming process is simple:
Upload the HVFuse sketch to the Arduino, available for download here: HVFuse.pde
Install the shield and apply +12VDC to the terminals on the left
Wait for the red LED to turn on (if it isn’t already)
Install the ATmega to be repaired
Push the button
As soon as the LED turns back on, the AVR is fixed and ready to be put back into service! Parts list:
An Arduino NG, Diecimila, or compatible
A piece of perfboard cut to size
Header pins for the Arduino interface (note I had to drill some of the holes to get the headers to fit the nonstandard pin spacing for digital lines 8-13.
An LED which indicates when it is ok to insert/remove the AVR
A 2N3903 or similar NPN transistor (2N2222, etc.)
(20) 1k resistors these protect the Arduino from short circuits in case something goes wrong
A pushbutton switch this is the ‘go’ button
A 28 pin socket for the target AVR 🔗 External reference
This circuit indicates which of three voltages, ranging from approximately -4V to +4V at points A, B, and C, is the highest by illuminating one of three indicator LEDs. Alternatively, it can be configured to indicate the lowest of...
A Microchip PIC18F4550 microcontroller has been acquired, but there is uncertainty regarding its potential applications. Further research is needed to explore various possibilities for programming and utilizing the microcontroller, as well as integrating additional electronic devices with it.
The Microchip...
This voltage-to-current converter utilizes three operational amplifiers to control a pair of power transistors. The output current is determined by the formula: IOUT = Vin/R6. The output resistance exceeds 50 MΩ, and the output current can vary from 1...
The schematic diagram below illustrates a high voltage generator circuit. This circuit employs a 4049 hex inverter configured as an oscillator, and it can utilize an ignition transformer from an automotive engine. A fly-back transformer may also be suitable....
Opamps are very useful. But one of their major drawbacks is the requirement of a dual supply. This seriously limits their applications in fields where a dual supply is not affordable or not practicable. This circuit solves the problem...
The TA8184P and TA8184F are DC-controlled integrated circuits designed for dual volume, balance, and tone (bass and treble) control. These ICs are suitable for applications in car stereos, radio cassette players, music centers, and TV multiplex sound receivers, providing...
We use cookies to enhance your experience, analyze traffic, and serve personalized ads.
By clicking "Accept", you agree to our use of cookies.
Learn more