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 expands the linear frequency range of an HC4046 from one decade to nearly three decades. An LM358 is utilized as a constant-current sink, replacing the frequency-determining resistor (10 kΩ) connected from pin 9 to ground. For this...
A TL081 operational amplifier (IC1) is utilized to enhance sensitivity. The RF signal is detected by CR1 and subsequently amplified by IC1. Full-scale sensitivity is adjusted using a 100-ohm potentiometer.
The circuit employs a TL081 operational amplifier, known for its...
This high voltage generator is capable of producing a stable high voltage exceeding 8kV. The circuit design is straightforward, ensuring stability and reliability. It consists of a step-down rectifier, a voltage regulator circuit, an 18kHz multivibrator-type oscillator, and a...
This document serves as a continuation of the previous work on PWM controllers utilizing 555 timers. The new design incorporates microcontrollers and MOSFETs in place of the 555 integrated circuits and transistors. Two versions have been developed: one equipped...
These novel relay driver circuits have the capability to activate a relay with a coil voltage rating that is double the supply voltage (Vcc). Once the relay is activated, the armature is maintained using Vcc, resulting in a significant...
This document outlines the theory behind a high-speed control scheme for an LED display screen circuit. The circuit utilizes the MCS51 series microcontroller to manage the LED display. A 62512 random access memory (RAM) is employed for data storage,...
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