All Projects → tsaarni → avr-high-voltage-serial-programming

tsaarni / avr-high-voltage-serial-programming

Licence: BSD-3-Clause license
AVR high-voltage (HV) serial programming for ATtiny

Programming Languages

C++
36643 projects - #6 most used programming language

Projects that are alternatives of or similar to avr-high-voltage-serial-programming

DigiOS
Mini OS emulator for Digispark (an Attiny85 based microcontroller).
Stars: ✭ 46 (+35.29%)
Mutual labels:  attiny85, avr-programming
ES-Timer
A USB timer powered by Digispark ATtiny85 according to 🍅 pomodoro time management technique
Stars: ✭ 45 (+32.35%)
Mutual labels:  attiny85
ATtiny85-TinyLoad
Electronic Dummy Load
Stars: ✭ 32 (-5.88%)
Mutual labels:  attiny85
Arduino Deep Sleep
An example of proper and most advanced way to put ANY AVR Arduino boards in to sleep
Stars: ✭ 31 (-8.82%)
Mutual labels:  attiny85
ATtiny85-TinyCharger
Single-Cell Li-Ion Battery Charger with Monitoring
Stars: ✭ 20 (-41.18%)
Mutual labels:  attiny85
timonel
ATtiny85/45/25 I2C bootloader
Stars: ✭ 108 (+217.65%)
Mutual labels:  attiny85
cheatsheets
My long cheatsheets and reading lists about programming, electronics and more
Stars: ✭ 80 (+135.29%)
Mutual labels:  avr-programming
micronucleus-firmware
Fork for the firmware / digispark part of the micronucleus repository
Stars: ✭ 50 (+47.06%)
Mutual labels:  attiny85
ATtiny85-TinyFMRadio
FM Radio with RDS
Stars: ✭ 51 (+50%)
Mutual labels:  attiny85
AnalogClock
Project to sync analog clocks to a few milliseconds.
Stars: ✭ 29 (-14.71%)
Mutual labels:  attiny85
franzininho-diy-board
Placa Franzininho DIY - Placa compatível com Arduino no formato DIY para oficinas de soldagem
Stars: ✭ 100 (+194.12%)
Mutual labels:  attiny85
kalman-estimator
kalman-estimator - a Kalman estimator in C++
Stars: ✭ 22 (-35.29%)
Mutual labels:  avr-programming
ATtiny85-USB-C-Tester
Simple USB-C Power Delivery Tester
Stars: ✭ 20 (-41.18%)
Mutual labels:  attiny85
tinyPulsePPG
ATTiny85 Pulse Oximeter with Photoplethysmogram (PPG) display
Stars: ✭ 105 (+208.82%)
Mutual labels:  attiny85
AttinySound
sound generation on the AVR-Attiny cpus
Stars: ✭ 40 (+17.65%)
Mutual labels:  attiny85
ATtiny84-TinyCalibrator
OSC Calibrator and High-Voltage Fuse Resetter for 8-Pin ATtinys
Stars: ✭ 39 (+14.71%)
Mutual labels:  attiny85
Pjon
PJON (Padded Jittering Operative Network) is an experimental, arduino-compatible, multi-master, multi-media network protocol.
Stars: ✭ 2,615 (+7591.18%)
Mutual labels:  attiny85
ATtiny85-TinyDFPlayer
MP3-Player
Stars: ✭ 22 (-35.29%)
Mutual labels:  attiny85
Nokolino diy
The small and naughty MP3-monster. DIY version.
Stars: ✭ 20 (-41.18%)
Mutual labels:  attiny85
CorePartition
Universal Cooperative Multithread Lib with real time Scheduler that was designed to work, virtually, into any modern micro controller or Microchip and, also, for user space applications for modern OS (Mac, Linux, Windows) or on FreeRTOS as well. Supports C and C++
Stars: ✭ 18 (-47.06%)
Mutual labels:  attiny85

AVR high-voltage serial programming for ATtiny

Bricked your MCU?

Changing AVR fuse values in an unintended way can render the microcontroller practically dead. For example you might have altered clock source bits in a way that the processor cannot be programmed anymore. Trying to fix the problem by applying default fuse values fails:

$ avrdude -p attiny85 -c usbasp -U lfuse:w:0x62:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m

avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: error: program enable: target doesn't answer. 1
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

avrdude done.  Thank you.

Even using slower bitclock does not necessarily work anymore:

$ avrdude -p attiny85 -c usbasp -U lfuse:w:0x62:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m -B1000 -F

avrdude: set SCK frequency to 1000 Hz
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: error: program enable: target doesn't answer. 1
avrdude: initialization failed, rc=-1
avrdude: AVR device initialized and ready to accept instructions
avrdude: Device signature = 0x88fb38
avrdude: Expected signature for ATtiny85 is 1E 93 0B

avrdude done.  Thank you.

High-voltage serial programming to the help

Atmel ATtiny datasheet chapter "High-voltage Serial Programming" describes alternative way of programming ATtiny microcontroller. With this mechanism it is possible to bring the MCU back to life.

The code in this project uses Arduino Nano to re-program ATtiny85 microcontroller fuses to default values using the HVSP method. Normal serial programming method can be used again after running the program.

Schematic

Following schema describes the circuit for running the programmer. The circuit requires 12V voltage source for applying 12V to RESET pin of ATtiny85.

schema

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].