High Voltage Serial Programming
As their name implies the high voltage serial and high voltage parallel programming techniques require a 12v signal.
High voltage serial programming. It should be noted that the current drawn from this signal is quite small. A high voltage serial programmer can be used to reprogram the fuses. Atmel changed the debugging feature of avr dragon with the latest firmware of avr studio 4 avr studio 5 and now it supports devices over 32 kb of. Note that this is not to be confused w the high voltage parallel programming used for 20pin devices i e.
Half a year ago i restarted one of my old passions electronics. The high voltage serial programming method applies 12v to the reset pin and a different set of programming commands in order to access the chip no matter what the fuse settings are. Atmel uses hvsp high voltage serial programming for the tiny avr family and high voltage parallel programming for the mega avr family. Atmel attiny datasheet chapter high voltage serial programming describes alternative way of programming attiny microcontroller.
Here are some ways to generate that 12v signal depending on what components you have at hand. High voltage serial programming. I ve studied electronics in college but that happened during the middle age 20yrs ago. For high voltage programming the timing of the power pin matters so it is software controlled through the svcc pin rather than.
While i was expecting this huge leap in schematics and what a hobbyist can do nowadays i stil. We provide the high voltage which usually is 12vdc for the flash devices and have total control over the chip programming. The code in this project uses arduino nano to re program attiny85 microcontroller fuses to default values using the hvsp method. Avr high voltage programming fuses rescue.
To enter and control the avr high voltage serial programming the supply to the target and the 12v to reset must be controlled with fairly critical timing. The arduino hv serial fuse programming sketch controls both the 12v to reset and the supply to the target to achieve this timing. Hvsp is the high voltage protocol for 8 and 14 pin attiny mcus. This project is created so that if i could revert the reset fuse change and flash via spi again.
If you need to make changes later on then high voltage programming is used to reset the fuses so the regular programmer can download the sketch again. You could have unprogrammed the spien fuse programmed the rstdisbl fuse or whatever. Hvsp requires 7 signals including power and ground as shown in this illustration. It employs the high voltage serial programming hvsp available for such devices.
You can find the detailed programming algorithms in the all the avr data. With this mechanism it is possible to bring the mcu back to life.