AVR High Voltage Programming (Fuses Rescue) - All
AVR High Voltage Programming (Fuses Rescue) - All
Contests(/contest/) Classes(/classes/)
Publish(/about/create.jsp)
Featured: 3DPrintingClass(https://www.instructables.com/class/3DPrintingClass/) Arduino(/tag/typeid/categorytechnology/channelarduino/)
Sewing(https://www.instructables.com/tag/typeid/categorycraft/channelsewing/)
HighQuality
Resistors
TrustedbyOEM'SWorldwide.
ISO/TS16949:2009Certified
EnquireNow
Company
AVRHighVoltageProgramming(FusesRescue) by
mnedix(/member/mnedix/)inmicrocontrollers(/tag/typeid/categorytechnology/channelmicrocontrollers/)
AboutThisInstructable
License:
8 19,003 views
36 favorites
(/file/FZM9W2IHWLD2NFE/)
mnedix
(/member/mnedix/)
Follow 1
HalfayearagoIrestartedoneofmyoldpassionselectronics.I'vestudied
(/member/mnedix/)
electronicsincollegebutthathappenedduringtheMiddleAge(20yrsago).
WhileIwasexpectingthishugeleapinschematicsandwhatahobbyistcando Morebymnedix:
nowadays,Istillhadsomedifficultiesincatchingup.
OnewhichfrustratedmegreatlywasthefusesforAVR/PICmicrocontrollers
(MCUs).IfoundalotofinterestingschematicswithMCUsandfusesisavery (/id/NixiePC
importantaspectwhenprogrammingthem.However,becauseIwasanewbiein
thisdepartment,Ididn'twanttospendtoomuchonthissoIboughtquitecheap
programmersfromeBay.ThePICprogrammerworkedfinebuttheUSBAsp
clonethatIboughtforAVRswasnotaverygoodchoice.Animportant
percentageofmyburninggotscrewedupbecausethefuseswerewrongly MeterMonitor/)
programmedmostofthetimestheAVRbecameunrecognizable,ithada
wrongID,inotherwordsitbecamealmostdead/unusable.
(/id/AVRHighvoltageprogramming
Fusesrescue/)
Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)
Ad
Arduino&RaspberryPi
Freedrag&dropprojectbuilderstreamlines
creation&offerscontrolfromyourphone.
Cayenne
Step1:ConceptandSchematic
IstartedlookingonthewebforasolutionandIfoundaverygoodwaytoreset
thefusesusinghighvoltageprogramming(linkhere:
http://denki.world3.net/avr_rescue.html).Isuggestreadingthelinkforabetter
understandingofhowitworks:)
Itwasfunbuildingitonabreadboardforthefirsttimebutitbecameboringand
timeconsumingstartingwiththesecond,thirdandsoon.
IdecidedtojustputitonaPCBandhaveithandywheneverIneedtoquickly
resetthefusesforanAVR.Theschematicisverysimple,Iusedminimum
components,thelinesbetweenthe"source"MCUand"destination"arenot
protectedby1KresistorsandIalsodidn'tuseanexternalcrystalforthe
"source".Poweringtheschematicandthe"source"MCUisdoneviaasimple
LDOLM78L05Ibelieveany5VLDOgiventhatithasthesamepinout.Ididn't
botherwithfiltering,it'snotquiteimportantsincethevoltagenoiseisnot(very)
relevantforthiscircuit.
TheAVRresetprocessisstraightforward,aftermountingthe"destination"MCU
intheIC2socket,onehastopoweronthecircuit.TheLEDwillstayonuntilthe
ResetbuttonispresseduponpressingtheResetbutton,theLEDwillgooffand
thedefaultfuseswillbeburnedonthe"destination"MCU.Whenburningis
complete,theLEDwillcomeonagain.Itwilltakefewsecondstoburnthe
defaultfuses,around10seconds,sodon'tpanic.
TheEAGLEfilesandHEXforthe"source"MCUcanbefoundhere:
EAGLECADfilesbothschematicandboard
EAGLECADprintsbothtopandbottomlayers
HEXfileforthe"source"yes,onehastoprogramitfirstandthenusethis
MCUas"source"
PS:Ididn'tliketheTO92defaultpinoutoftheLDOsoI'vebuildanewlibrary
withthepinsinlineforeaseofPCBdesign.OnejusthastocopyitintheEagle
Lbrfolderandloaditinthesoftware.
AVR_Fuses.brd
Download(https://cdn.instructables.com/ORIG/FDL/WI7U/HWLD2EUA/FDLWI7UHWLD2EUA.brd)
(https://cdn.instructables.com/ORIG/FDL/WI7U/HWLD2EUA/FDLWI7UHWLD2EUA.brd)
AVR_Fuses.sch
Download(https://cdn.instructables.com/ORIG/FKO/S36Q/HWLD2EUB/FKOS36QHWLD2EUB.sch)
(https://cdn.instructables.com/ORIG/FKO/S36Q/HWLD2EUB/FKOS36QHWLD2EUB.sch)
AVR_Fuses_Top.pdf
Download(https://cdn.instructables.com/ORIG/FNV/3Q2O/HWLD2EUD/FNV3Q2OHWLD2EUD.pdf)
(https://cdn.instructables.com/ORIG/FNV/3Q2O/HWLD2EUD/FNV3Q2OHWLD2EUD.pdf)
AVR_Fuses_Bottom.pdf
Download(https://cdn.instructables.com/ORIG/F86/YKDE/HWLD2EUC/F86YKDEHWLD2EUC.pdf)
(https://cdn.instructables.com/ORIG/F86/YKDE/HWLD2EUC/F86YKDEHWLD2EUC.pdf)
AVRRescue0.2.zip
Download(https://cdn.instructables.com/ORIG/FTX/TXO1/HWLD2EUL/FTXTXO1HWLD2EUL.zip)
(https://cdn.instructables.com/ORIG/FTX/TXO1/HWLD2EUL/FTXTXO1HWLD2EUL.zip)
Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)
LM78Lxx.lbr
Download(https://cdn.instructables.com/ORIG/FZZ/ZJ5E/HWLD2NFD/FZZZJ5EHWLD2NFD.lbr)
(https://cdn.instructables.com/ORIG/FZZ/ZJ5E/HWLD2NFD/FZZZJ5EHWLD2NFD.lbr)
Step2:Overview
(/file/FQVYZO0HWLD2EUG/)
(/file/FHRUB43HWLD2EUH/) (/file/F7QFP6THWLD2EUK/)
Theschematicworkswellforme,itisdoingwhatit'ssupposedtodo.TheLED
colorisnotimportant,it'sjustsomethingtoletyouknowthecircuitworks.Itried
todesignthePCBwithaslessviasaspossibleand5viasseemsreasonable.
Theendresultmaynotlookatitsbest,thesurfacesolderingoftheICsockets
couldbealittledifficultbutitwasn'tabigdealanddefinitelynotashowstopper.
I'msureitcanbeimprovedusingSMDcomponentsbutIdidn'thaveanyhandy
soIoptedforthroughhole.AnyonecancustomizetheEAGLEfilesfortheirown
use.
Cheersandhavefun,
Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)
Ad
Arduino&RaspberryPi
Freedrag&dropprojectbuilderstreamlines
creation&offerscontrolfromyourphone.
Cayenne
Wehaveabenicecommentpolicy.
Pleasebepositiveandconstructive. wIMadeit! AddImages PostComment
Hello.Ijustetchedtheboard.iuseDipTraceandcantopentheschematics.
Wastryingtosolderpartsanywaybut:Atfirstglancethefirsttransistorlooks
likeaPNPBJTIt'sreallyaBJTPNP?Ifso...it'sbaseisdirectlyconnectedto
powerground(soalwayssaturatedanyway?),andifit'saBJT:Noresistor
betweenbaseandground,thatsreallyverybad.Sowellmaybeit'snotaBJT,
whatpartisthat?Icanseejusta2N3904inthereferencelink
http://denki.world3.net/avr_rescue.html.Thanks!
ayearago
Alright.Fromreferencelink
http://denki.world3.net/avr_rescue.htmlandboardlayoutIconclude:The
firsttransistorisaPNP,it'scollectorgoestoatmegapin7(VCC).It's
uselessadit'sbaseisalwaysgrounded.Itwillbeprobablyhot(anddie
occasionally),becausetherearen'tanytransistordrivingitsbase.Iwill
justchangethisPNPtoawirejumperpin7>VCClikeinthereference
link.Anyway,thanksforthelayout!Goingtotryresurrectingsome
atmegasinsomeminutes.
ayearago
Ughnono.It'snotatransistor.Itmustbea7805:/Thatswhat
happens...withaboardinhands...withouttheschematics...plusnot
featureinthereferencelink.Anyway...solved!
ayearago
Therewego
(https://cdn.instructables.com/FMD/2VFK/ILCN5ZKJ/FMD2VFKILCN5ZKJ.LARGE.jpg)
Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)
3monthsago
Hey,gladyoucouldmakeitwork,IreallyapologizeforthedelaybutI
completelyforgotaboutthisprojectandhaven'tcheckedoutthe
websiteforawhile:)
Hithere.Ididabuildofthisandamusingtheatmega328.Ifilookatyour
pictureitlooksliketheBC338isupsidedowncomparedtotheschematic??
ShouldthecollectorbeconnectedtoVinorshouldtheEmitter?
(https://cdn.instructables.com/FH9/6HE2/IKZS9B37/FH96HE2IKZS9B37.LARGE.jpg)
(https://cdn.instructables.com/FAY/5DYW/IKZS9B4J/FAY5DYWIKZS9B4J.LARGE.jpg)
ayearago
Okigotitworking,andit'sreallygreat.Iamresurrectingboth
Atmega328and328Pprocessors,ittakeslike2seconds:)Great!
Ofcoursetheemitterhastobetiedtoground,itstilllookslikewrong
orientationinyourpicturebutmaybethepictureisfoolingme?BTWiam
usingaBC337transistorwhichisalmostthesameasa338.Iguessit's
justactingasaswitchontheIC2resetsoaboutanybjttransistorshould
work.
IdidthePCBonamillingmachineandhadtodomyownmodificationto
theboardlayout,it'squiteimpossibletosoldericsocketonthetopwitha
groundplanejust8milsfromthepad:D
IchangedthefusesettingstomatchthedefaultinAtmega328P,thenew
valuesis:
HFUSE0xD9
LFUSE0x62
Ifoundthevaluesfromthelinkinthecode:
http://www.engbedded.com/cgibin/fc.cgi
Goodsimpleproject!Thankyou.
3monthsago
Hey,gladyoucouldmakeitwork,Ireallyapologizeforthe
delaybutIcompletelyforgotaboutthisprojectandhaven'tcheckedout
thewebsiteforawhile:)
ayearago
Hi,sorryforthelateresponse.ThebuildlooksveryniceandI'm
gladyougotitworking.Idon'trememberwhatBCIused,itprobablyhad
adifferentpinorientation.Asforthecodepart,Ididnotchangeitabit,I'm
notthatskilledinprogramming:)Myunderstandingisthatthefusesare
resettoafactorydefaultafterwhichyoucansetthemupasyouwant.
WhatIforgottomention,andIthinkIgotthiswayafterIbuiltthis,isthatit
Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)
ishighlydependentonthecrystal.Inotherwords,sincethisschematic
doesnotuseacrystal,whenyouresetanMCUthenyouresetalsothe
crystalsettingsifyouplaceitimmediatelyinaprogrammer(witha
crystal)anddon'ttakethisintoconsiderationthenyoumayendupwith
someerrors.
IwillprobablydesignandbuildanotherversionSMDbased(1206most
probably).
PS:thanksforbuildingit:)
ayearago
Hi,sorryforthelateresponse.ThebuildlooksveryniceandI'm
gladyougotitworking.Idon'trememberwhatBCIused,itprobablyhad
adifferentpinorientation.Asforthecodepart,Ididnotchangeitabit,I'm
notthatskilledinprogramming:)Myunderstandingisthatthefusesare
resettoafactorydefaultafterwhichyoucansetthemupasyouwant.
WhatIforgottomention,andIthinkIgotthiswayafterIbuiltthis,isthatit
ishighlydependentonthecrystal.Inotherwords,sincethisschematic
doesnotuseacrystal,whenyouresetanMCUthenyouresetalsothe
crystalsettingsifyouplaceitimmediatelyinaprogrammer(witha
crystal)anddon'ttakethisintoconsiderationthenyoumayendupwith
someerrors.
IwillprobablydesignandbuildanotherversionSMDbased(1206most
probably).
PS:thanksforbuildingit:)
ayearago
onemorething,iamusingaAtmega328asIC1(the
programmer)
Icompiledthecfileinatmelstudiotoaccomodatethe328anduploaded
thenewhexfilewithanatmeliceprogrammer:)
itworkswithatmega8?Thankyou
ayearago
Itshouldwork,youhavetopayattentiontopinmapping.
willthisworkwith16MHzcrystal?
ayearago
Theschematicdoesnotburnspecificfuses,itresetstheMCUto
thedefault/factorysettings.Theentirethingisintendedtodothatsoifyou
wanttousea16Mhzcrystallateronthenyouhavetoprogramthefuses
separatelyandaccordingly.
hi,
CanthisbeusedforATMGE32A.
Pleasementionthepinmappingsaswell
8
Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)
mnedix(/member/mnedix)(author) . itsme_kathi(/member/itsme_kathi)
ItcouldworkonATmega32sinceitisworkingon 2yearsago Reply
ATmega328youwillhavetodothemappingby
yourself:
http://www.atmel.com/Images/2503S.pdf
(http://www.atmel.com/Images/2503S.pdf)
http://www.atmel.com/Images/Atmel82718bitAVRM...
(http://www.atmel.com/Images/Atmel82718bitAVRMicrocontroller
ATmega48A48PA88A88PA168A168PA328
328P_datasheet_Summary.pdf)
DopayattentiontotheRESETpinits"position"dependsontheMCU
case.
ayearago
Whatfusesshouldusetoburnthehexfilefortheatmega328.?
ayearago
Theschematicdoesn'tburnspecificfuses,itactuallyerases
everythingontheMCUandburns/resetsdefaultfuses
2yearsago
Thanksalot.
justwentthroughthedatasheetofATMEGA32,foundthepinmappings.
Thanksalot.
justwentthroughthedatasheetofATMEGA32,foundthepinmappings.
FEATURED CHANNELS
Twitter(http://www.twitter.com/instructables) GiftPremiumAccount(/account/give?sourcea=footer)
Forums(/community/)
Pinterest(http://www.pinterest.com/instructables)
Answers(/tag/typequestion/?sort=RECENT)
Google+(https://plus.google.com/+instructables)
Sitemap(/sitemap/)
Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)
TermsofService(http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=21959721) |
PrivacyStatement(http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=21292079) |
LegalNotices&Trademarks(http://usa.autodesk.com/legalnoticestrademarks/) | MobileSite(https://www.instructables.com)
(http://usa.autodesk.com/adsk/servlet/pc/index?id=20781545&siteID=123112)
2016Autodesk,Inc.
Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)