This is not an official site of The Church of Jesus Christ of Latter-day Saints
Sunday, February 5, 2012

Mormon Bloggers

Share a Blog – Get a Blog

The Lives of Faithful Mormons

Arduino AVR High-Voltage Serial Programmer

Posted by On March - 19 - 2010

My son Paul is the author of this guest post.

This Arduino sketch is useful for rescuing ATtiny microcontrollers rendered useless by incorrect fuse settings. It does this by putting the bricked tiny into high-voltage serial programming mode and writing the fuses to safe values.

Connection Diagram

Diagram

Click to enlarge

The Arduino is connected to the tiny though 1k resistors and a 2N3904 transistor is used to switch 12 volts applied to the tiny’s reset pin. After uploading the sketch the Arduino sends “Hello?” repeatedly until
communications are established by sending a byte through the serial monitor. The Arduino then programs the fuses.

Serial Monitor log
Hello?
Hello?
Hello?
1
Entering programming Mode

lfuse reads as 62
hfuse reads as 5F
efuse reads as FF

Writing hfuse
Writing lfuse

lfuse reads as 62
hfuse reads as DF
efuse reads as FF

Exiting programming Mode

Download the program: hv_serial_prog.pde

Based on work by Jeff Keyzer.

Related posts:

  1. The Scarlet Pimpernel at Davis High

Add A Comment