Author Topic: Attiny Fuse Recovery  (Read 7593 times)

0 Members and 1 Guest are viewing this topic.

Offline dannyfTopic starter

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Attiny Fuse Recovery
« on: April 19, 2014, 08:22:33 pm »
When using attiny, particularly 8pdip versions, you may have to use the reset pin for gpio purposes. Once you do that, it can no long be programmed by your regular programmer.

Your option at this point is high voltage serial programming.

I put together a high voltage serial programmer on a pic16f684. It requires a few external components and supports lcd display.

First, the schematic:
================================
https://dannyelectronics.wordpress.com/
 

Offline dannyfTopic starter

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Attiny Fuse Recovery
« Reply #1 on: April 19, 2014, 08:25:22 pm »
Two leds indicating the progress of the reprogramming;

The button controls the progress;

Q1 + its resistors apply 12v to the avr's RST pin;

Seven wires to the AVR, including the ground.

The HC164 +  LCD are optional: they display the avr type, fuse setting and reprogrammed fuse - for confirmation purposes only.

Here is the firmware:

Code: [Select]
:1000000020308400503010200730D200FF30D10063
:100010005030840051301520642D04068001840A7C
:100020000406031D0D2864000034FC00202080001D
:10003000840A04087C060319003416288312D100B0
:10004000D21B292852088A005108D10A0319D20A62
:1000500082008313521883175108D10A84000008C4
:100060000800820741345434743469346E3479346E
:10007000203420342F3448342034203420342034A9
:1000800020342034003482074134543474346934C9
:100090006E34793420344634753473346534203406
:1000A0005234653463346F34003482075034723410
:1000B000653473347334203474346F3420347334BF
:1000C00074346134723474342E342E340034820724
:1000D000643465346234753467342D346434653483
:1000E0006234753467342D34643465346234753465
:1000F0000034820746343A3420342034203420340B
:10010000203420342034203420342034203420344F
:1001100020342034003482073034313432343334E4
:100120003434353436343734383439344134423465
:1001300043344434453446348207003404340234B2
:0A0140001F341F340234043400346D
:100666008312BB00BE01803EFB2B8312BA003323EC
:1006760039087B2B8312B200BE01BE0AFB2B831204
:10068600CF008312CF034F0F442B08008312BE0105
:100696000130FB230230B900BA016B2B831691019E
:1006A60007308312990083160F138F160F16FF302B
:1006B60095008312080083128515CF3085058316B1
:1006C600850583128716C0308316870583120800B6
:1006D600702BF030CD00CE019C238312390803190C
:1006E600BA03B903390A03193A0A031908006C2B2D
:1006F6008312BB00852BBE01BE0ABB0A3B038400E6
:100706000008FB233B0884008008031908007E2BA1
:100716004C308312C1004030E7242C30C1003B0826
:10072600E7243A08C1000030E7243908C100003048
:10073600E72C83124D0842234E08CD00CE01A52B8F
:10074600FF3042234D080319CE03CD034D0A03198A
:100756004E0A03190800A32B8312BB00BC003A08FB
:10076600D2003908B90A0319BA0A1E208312BD003D
:10077600BC0A3C0384003D0880008008031DB22BA0
:100786003B0808008312C1008030C20005114108F1
:1007960042050319D02B8514D12B851000000515B1
:1007A60000000310C20CC208031DC92B0511080066
:1007B6008312BB00BE018312BD000310BD0D0310E2
:1007C600BD0D03103D0D4038FB23BC01BE01BE0A22
:1007D6003C083907D1003A08D20051080318D20A5A
:1007E6001E20FB23BC0A08303C0203180800E92B34
:1007F6008312BF00C001BF1B40163F1BC016BF1AA5
:1008060040173F1AC0174008C523BE0803190D2C10
:1008160085140E2C8510051400000510C001BF19A3
:1008260040163F19C016BF1840173F18C01740089A
:10083600C523BE080319212C8514222C8510051406
:100846000000051008008312BA01BB01BC01BC0AF6
:10085600BD014C30C1000830E7240C30C1003C0813
:10086600E7246830C1000030E7246C30C100003056
:10087600E724B9003A08FD00FC0139087C04BA00F7
:100886007D08BB00BC0A0319BD0A00303D020330D7
:1008960003193C02031C2C2C3B08FD003A08FC0003
:1008A6000800F83083168505831285050F30B900D8
:1008B600BA016B23C030C52385100514000005104E
:1008C6000530B900BA016B23851005140000051028
:1008D600C830CD00CE019C238510051400000510FC
:1008E600C830CD00CE019C234030C52385100514A9
:1008F60000000510BE012B30FB23BE010C30FB238C
:10090600BE010630FB2B8312B901BA01BB01BC0143
:100916004C30C1000430E7246830C1000030E724C1
:100926006C30C1000030E724BD00BE01BF01C0012C
:10093600B9003E08BA003F08BB004008BC003B08AF
:10094600BC003A08BB003908BA00B9014C30C100F6
:100956000430E7247A30C1000030E7247E30C1003D
:100966000030E724BD00BE01BF01C001B9043E0846
:10097600BA043F08BB044008BC043B08BC003A0864
:10098600BB003908BA00B9014C30C1000430E72475
:100996006A30C1000030E7246E30C1000030E72421
:1009A600BD00BE01BF01C001B9043E08BA043F083C
:1009B600BB044008BC043908FC003A08FD003B08AB
:1009C600FE003C08FF0008008312C200C901CA01EC
:1009D600071DEB2C42088312CB00CC010310CB0D74
:1009E600CC0D0310CB0DCC0D4B08C5004C08C60032
:1009F6004108CB00CC010310CB0DCC0D0310CB0D61
:100A0600CC0D4B08C7004C08C8000A30C3000708C5
:100A1600C4004308CB000130FC000030FD01CB0AC6
:100A2600172D0310FC0DFD0DCB0B142D4508FC05F1
:100A36004608FD057D087C040319232D4414242D46
:100A460044104308CB000130FC000030FD01CB0A06
:100A56002F2D0310FC0DFD0DCB0B2C2D4708FC058F
:100A66004808FD057D087C0403193B2DC4143C2D64
:100A7600C410440887000310C90DCA0D00300719B9
:100A86000130C90444161430CD00CE019C2344081D
:100A960087001430422344121430CD00CE019C232B
:100AA60044088700C303C31F0A2D4A08FD004908EE
:100AB600FC000310FD0CFC0C0310FD0CFC0C7C0868
:100AC60008008312B20151235E2354244430B90036
:100AD6000030BA002030AF232030B9000030382370
:100AE6009D30B9000030BA000130DB2385120516AF
:100AF600F830870583160711831287168711283069
:100B060087043C30CD00CE019C2387121430CD00E3
:100B1600CE019C23831607152C308312CD0001309D
:100B2600CE009C2326247C08B3007D08B400323016
:100B3600B9000030BA002030AF232030B9000030B1
:100B460038237A30B9000030BA002030AF23203085
:100B5600B900403038233308B5003408B600B70171
:100B6600B8013230B9000030BA002030AF2300306F
:100B76008A0035080F398B20AF000430FC000310C3
:100B8600B80CB70CB60CB50CFC0BC22D00308A00A5
:100B960035080F398B20AE000430FC000310B80C6A
:100BA600B70CB60CB50CFC0BD12D00308A003508FD
:100BB6000F398B20AD000430FC000310B80CB70CC5
:100BC600B60CB50CFC0BE02D00308A0035080F3949
:100BD6008B20AC000430FC000310B80CB70CB60C2C
:100BE600B50CFC0BEF2D00308A0035080F398B2031
:100BF600AB000430FC000310B80CB70CB60CB50CF7
:100C0600FC0BFE2D00308A0035080F398B20AA0018
:100C16000430FC000310B80CB70CB60CB50CFC0B7A
:100C26000D2E2F2E3130652E3130A6003230662E35
:100C36003130A6003330662E3230242E3430652E05
:100C46003830A6003430662E32302C2E34302C2E1E
:100C56003830A6003530662E3408FF003308FE0013
:100C6600572E7E08043A0319152E013A0319172E3A
:100C7600023A03191B2E642E7E08083A0319272E02
:100C8600033A03191F2E642E7E08063A0319292EED
:100C9600013A0319212E642E7E080B3A03192B2ED6
:100CA600073A0319232E642E7F08903A0319342E2F
:100CB600013A03193F2E033A0319472E013A031945
:100CC6004F2E2D30A600A7002030B9000030382363
:100CD6005630B9000030BA002030AF232030B900BA
:100CE600403038233030850486247C08B5007D08E2
:100CF600B6007E08B7007F08B8007A30B900003029
:100D0600BA002030AF2300308A0035080F398B2017
:100D1600A7000430FC000310B80CB70CB60CB50CD9
:100D2600FC0B8E2E00308A0035080F398B20A6006A
:100D36000430FC000310B80CB70CB60CB50CFC0B59
:100D46009D2E00308A0035080F398B20A50004300F
:100D5600FC000310B80CB70CB60CB50CFC0BAC2E93
:100D660000308A0035080F398B20A4000430FC00BF
:100D76000310B80CB70CB60CB50CFC0BBB2E003030
:100D86008A0035080F398B20A3000430FC000310BD
:100D9600B80CB70CB60CB50CFC0BCA2E00308A008A
:100DA60035080F398B20A2000430FC000310B80C64
:100DB600B70CB60CB50CFC0BD92E2030B900403060
:100DC6003823851205163030851DEF2E8506143022
:100DD600B900BA016B23E62E8504A801A80A733070
:100DE600A9006530AA007430AB00AC006930AD00D4
:100DF6006E30AE006730AF002030B9004030382387
:100E06004830A90005123D2F6C30B9006430BA0095
:100E1600FC30312F6C30B9006430BA005230312FBB
:100E26006C30B9006430BA006A30BB008B237C306A
:100E3600B90074302F2F6C30B9006430BA006230BC
:100E4600BB008B237C30B9007430BA00DF30BB00A6
:100E56008B236E30B9006630BA00FF30BB008B239F
:100E66006F2F30308504303085061430B900BA0152
:100E76006B23362F3408FF003308FE00612F7E08EF
:100E8600043A0319072F013A03190D2F023A0319E1
:100E9600132F342F7E08083A03191E2F033A5E2FAC
:100EA6007E08063A03191E2F013A5E2F7E080B3A7A
:100EB60003191E2F073A03191E2F342F7F08903A65
:100EC6000319422F013A03194D2F033A0319532FE1
:100ED600013A0319592F342F0516CF30850586247C
:100EE6007C08B5007D08B6007E08B7007F08B8000C
:100EF60007120000000000000000000000000000D3
:100F06000000871100000000000000000000000043
:100F1600000000008716000000000000000000002E
:100F260000000000000000308A0035080F398B20D1
:100F3600AF000430FC000310B80CB70CB60CB50CAF
:100F4600FC0B9E2F00308A0035080F398B20AE002F
:100F56000430FC000310B80CB70CB60CB50CFC0B37
:100F6600AD2F00308A0035080F398B20AD000430D4
:100F7600FC000310B80CB70CB60CB50CFC0BBC2F60
:100F860000308A0035080F398B20AC000430FC0095
:100F96000310B80CB70CB60CB50CFC0BCB2F0030FD
:100FA6008A0035080F398B20AB000430FC00031093
:100FB600B80CB70CB60CB50CFC0BDA2F00308A0057
:100FC60035080F398B20AA000430FC000310B80C3A
:100FD600B70CB60CB50CFC0BE92F2030B90040302D
:100FE600382385120516851D792D20308506143087
:0A0FF600B900BA016B23F62F013495
:02400E00C430BC
:00000001FF
================================
https://dannyelectronics.wordpress.com/
 

Offline dannyfTopic starter

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Attiny Fuse Recovery
« Reply #2 on: April 19, 2014, 08:35:17 pm »
Here is the code starting up.

It read an attiny85, shows its id / signature, and the existing fuse (0x62dfff, in the form of extended fuse:high fuse:low fuse).

The leds start to blink, waiting for user to push the button to start resetting the fuses to their default values (in this case, 0x62dfff).

================================
https://dannyelectronics.wordpress.com/
 

Offline dannyfTopic starter

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Attiny Fuse Recovery
« Reply #3 on: April 19, 2014, 08:37:06 pm »
Once the user presses the  button, reprogramming starts and the program will then read back the fuse values and display them.

================================
https://dannyelectronics.wordpress.com/
 

Offline dannyfTopic starter

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Attiny Fuse Recovery
« Reply #4 on: April 19, 2014, 08:45:05 pm »
Some considerations:

1) you will need to provide your own 12v and 5v sources: the 12v source for high voltage programming and the 5v to power the pic and lcd;

2) the code supports ATTINY25/45/85 (tested), ATTINY24/44/84 (untested), and ATTINY11/12/13.

3) the code runs at 500Khz, and can run down to 125Khz. Current consumption is practically nil.

Potential enhancements:

1) move it to an avr - should be fairly easy;

2) use 7-segment led as a display device - this will require a higher pin-count device.

...
================================
https://dannyelectronics.wordpress.com/
 

Offline MatCat

  • Frequent Contributor
  • **
  • Posts: 377
  • Country: us
Re: Attiny Fuse Recovery
« Reply #5 on: April 19, 2014, 09:35:03 pm »
Can we see the source?
 

Offline dannyfTopic starter

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Attiny Fuse Recovery
« Reply #6 on: April 19, 2014, 11:54:27 pm »
Quote
2) use 7-segment led as a display device - this will require a higher pin-count device.

I did just that, :)

Running on 16F1936 + 4-digit 7-segment led display.

As you can see, the pin assignment is chosen so that the led sits right on top of the chip - using the chip's output resistance for current limiting.

There rest of the circuit is fairly common.

BTW, the code is written to drive either common anode or common cathode displays, by commenting out a macro. Thus you see two displays on the schematic. When building it, you need only one.

================================
https://dannyelectronics.wordpress.com/
 

Offline dannyfTopic starter

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Attiny Fuse Recovery
« Reply #7 on: April 19, 2014, 11:57:24 pm »
The beast in action:

1) it first reads the target device's signature and display it, waiting for user confirmation before proceeding.

Here, it is connected to a ATTINY85 (signature 0x930b)

================================
https://dannyelectronics.wordpress.com/
 

Offline dannyfTopic starter

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Attiny Fuse Recovery
« Reply #8 on: April 20, 2014, 12:01:14 am »
2) once the user confirmed the chip, by pressing the button, the program writes the default fuse setting (0x00dfff = extended fuse:high fuse:low fuse*) to the device . It then reads the fuses back and display just the high fuse:low fuse on the led.

In this case, we got it right.

*: the default fuse varies slightly from target device to target device.

Again, the code supports the ATTINY25/45/85 devices (as tested), as well as ATTINY24/44/84 (untested) and ATTINY11/12/13.

================================
https://dannyelectronics.wordpress.com/
 

Offline dannyfTopic starter

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Attiny Fuse Recovery
« Reply #9 on: April 20, 2014, 12:03:23 am »
Here is the version that drives common cathode 7segment leds:

Code: [Select]
:04000000803115280E
:10000800803120007F08F2000B1D0B280C281128D6
:100018000B1185317F258031112872082000FF00DF
:1000280009008631FC2E00345F347C3458345E3449
:10003800793471346F34073474340E3400343834FE
:10004800003454345C347334673477346D3400349A
:100058001C340034003400346E34003400343F342F
:1000680006345B344F3466346D347D3407347F3462
:100078006F345F347C3458345E34793471340034EE
:100200008131820702292000BF01873119278131FE
:100210008631CF268131C8302000BB003B08F30077
:1002200001308631942681318B178631E826813161
:10023000192922008E17BF302000BB003B08220086
:100240008E05F8302000BB003B088E05FB30BB005C
:100250003B0821008E0520008E16F730BB003B08BE
:100260008E052830BB003B088E043C30F400003083
:10027000F500863148268131DF302000BB003B0885
:100280008E051430F4000030F500863148268131A7
:1002900021000E152C30F4000130F500863148267F
:1002A00081318531ED25813120002F08C101C10741
:1002B0002E08C001C0074008C2004108C300C401A5
:1002C000C50142080F39333E80310A008131BB003D
:1002D0003B08CD004208BB004308BC004408BD00F9
:1002E0004508BE000430BE36BD0CBC0CBB0C890BEF
:1002F00073293E08C5003D08C4003C08C3003B0804
:10030000C20042080F39333E80310A008131BB0000
:100310003B08CC004208BB004308BC004408BD00B9
:100320004508BE000430BE36BD0CBC0CBB0C890BAE
:1003300093293E08C5003D08C4003C08C3003B08A3
:10034000C20042080F39333E80310A008131BB00C0
:100350003B08CB004208BB004308BC004408BD007A
:100360004508BE000430BE36BD0CBC0CBB0C890B6E
:10037000B3293E08C5003D08C4003C08C3003B0843
:10038000C20042080F39333E80310A008131BB0080
:100390003B08CA004208BB004308BC004408BD003B
:1003A0004508BE000430BE36BD0CBC0CBB0C890B2E
:1003B000D3293E08C5003D08C4003C08C3003B08E3
:1003C000C200F029C030BB003B0822008E0664301A
:1003D0002000A0000030A1008631B5268131F0292F
:1003E00020009019F429F529E229F6293F30BB00B5
:1003F0003B0822008E05F4302000A0000130A1004F
:100400008631B526813184311D24813120003108A7
:10041000C5003008C4002F08C3002E08C2004208DF
:100420000F39333E80310A008231BB003B08CD00DA
:100430004208BB004308BC004408BD004508BE009C
:100440000430BE36BD0CBC0CBB0C890B212A3E0807
:10045000C5003D08C4003C08C3003B08C200420878
:100460000F39333E80310A008231BB003B08CC009B
:100470004208BB004308BC004408BD004508BE005C
:100480000430BE36BD0CBC0CBB0C890B412A3E08A7
:10049000C5003D08C4003C08C3003B08C200420838
:1004A0000F39333E80310A008231BB003B08CB005C
:1004B0004208BB004308BC004408BD004508BE001C
:1004C0000430BE36BD0CBC0CBB0C890B612A3E0847
:1004D000C5003D08C4003C08C3003B08C2004208F8
:1004E0000F39333E80310A008231BB003B08CA001D
:1004F0004208BB004308BC004408BD004508BE00DC
:100500000430BE36BD0CBC0CBB0C890B812A3E08E6
:10051000C5003D08C4003C08C3003B08C2002200DF
:100520000E17062B6C302000AE006430AF00FC309C
:10053000BB003B08B00086316F268131382B6C3010
:100540002000AE006430AF005230BB003B08B0006A
:1005500086316F268131382B6C302000AE0064303C
:10056000AF006A30BB003B08B00086316F26813196
:100570007C302000AE007430AF00FF30BB003B0881
:10058000B00086316F268131382BCA2ACA2ACA2A7E
:10059000CA2ACA2A6C302000AE006430AF00623034
:1005A000BB003B08B00086316F2681317C302000D3
:1005B000AE007430AF00DF30BB003B08B0008631C6
:1005C0006F2681316E302000AE006630AF00FF3004
:1005D000BB003B08B00086316F268131382BC0301C
:1005E0002000BB003B0822008E04C0302000BB006E
:1005F0003B0822008E0614302000A0000030A1002D
:100600008631B5268131F52AF52A382B200041089C
:10061000903A0319152B013A0319202B033A0319B9
:10062000282B013A0319302BEF2A4008043A03190A
:10063000922A013A03199F2A023A0319AC2AEF2A97
:100640004008083A0319CA2A033A0319CA2AEF2AAA
:100650004008063A0319CA2A013A0319CA2AEF2A9E
:1006600040080B3A0319CA2A073A0319CA2AEF2A83
:10067000BF302000BB003B0822008E053F30200029
:10068000BB003B0822008E0584311D2481312000EF
:100690003108C5003008C4002F08C3002E08C2006E
:1006A000EF30BB003B088E0500000000000000009A
:1006B0000000000000000000F7302000BB003B08F5
:1006C0008E05000000000000000000000000000097
:1006D000000020008E160000000000000000000056
:1006E000000000000000200042080F39333E803136
:1006F0000A008331BB003B08CD004208BB00430821
:10070000BC004408BD004508BE000430BE36BD0C28
:10071000BC0CBB0C890B862B3E08C5003D08C400F1
:100720003C08C3003B08C20042080F39333E803109
:100730000A008331BB003B08CC004208BB004308E1
:10074000BC004408BD004508BE000430BE36BD0CE8
:10075000BC0CBB0C890BA62B3E08C5003D08C40091
:100760003C08C3003B08C20042080F39333E8031C9
:100770000A008331BB003B08CB004208BB004308A2
:10078000BC004408BD004508BE000430BE36BD0CA8
:10079000BC0CBB0C890BC62B3E08C5003D08C40031
:1007A0003C08C3003B08C20042080F39333E803189
:1007B0000A008331BB003B08CA004208BB00430863
:1007C000BC004408BD004508BE000430BE36BD0C68
:1007D000BC0CBB0C890BE62B3E08C5003D08C400D1
:1007E0003C08C3003B08C20022008E17BF30200027
:1007F000BB003B0822008E050C2C80302000BB0083
:100800003B0822008E0664302000A0000030A100CA
:100810008631B52681310C2C20009019102C112C1A
:10082000FD2B122CF430A0000130A1008631B5263A
:100830008131192919298031152800302000BA008A
:100840000030B9000030B8000030B7004C30B200C2
:100850003208A00004308431D32484316830200071
:10086000B2003208A00000308431D32484316C30CF
:100870002000B2003208A00000308431D32484313B
:100880002000B300B401B501B6013608BA0035083E
:10089000B9003408B8003308B7003708B200380888
:1008A000B3003908B4003A08B5000830B235B30DCA
:1008B000B40DB50D890B562C3508BA003408B900B3
:1008C0003308B8003208B7004C30B2003208A0003C
:1008D00004308431D32484317A302000B2003208CD
:1008E000A00000308431D32484317E302000B20057
:1008F0003208A00000308431D32484312000B300BA
:10090000B401B501B6013308B7043408B80435089A
:10091000B9043608BA043708B2003808B3003908F9
:10092000B4003A08B5000830B235B30DB40DB50DBA
:10093000890B942C3508BA003408B9003308B80084
:100940003208B7004C30B2003208A00004308431C5
:10095000D32484316A302000B2003208A000003075
:100960008431D32484316E302000B2003208A000DC
:1009700000308431D32484312000B300B401B501A8
:10098000B6013308B7043408B8043508B90436088A
:10099000BA043A08B1003908B0003808AF00370887
:1009A000AE00D22C08002000A500AA01AB01D82C73
:1009B0000E1DDB2CDC2CD82CDD2C2508A100A2017F
:1009C0000230A135A20D890BE12C2108A6002208D6
:1009D000A7002008A100A2010230A135A20D890BB9
:1009E000ED2C2108A8002208A9000A30A100210846
:1009F000AC00AC1FFC2CFD2CFF2C732D732D0E08AE
:100A0000A1002108AD000130A1000030A2002C0A95
:100A10000B2DA135A20D890B092D26082105A30058
:100A200027082205A400240823040319182D192DD2
:100A30001B2D2D141F2DFE30A1002108AD05013006
:100A4000A1000030A2002C0A272DA135A20D890B90
:100A5000252D28082105A30029082205A400240823
:100A600023040319342D352D372DAD143C2DFD30C5
:100A7000A1002108AD053C2D2D088E000130AA35BE
:100A8000AB0D890B3F2D00300E190130A100A201E2
:100A90002108AA042208AB042D161430F4000030FB
:100AA000F50086314826843120002D088E00143050
:100AB00087310C278431EF302000A1002108AD05DB
:100AC0001430F4000030F5008631482684312000CF
:100AD0002D088E00FF30A1002108AC07AC1F712D3E
:100AE000722DFF2C732D2B08A2002A08A1000230C2
:100AF000A236A10C890B782D21087E2D080020003C
:100B00000D178D150D158C1679084A3E8600870144
:100B10000108F0007008F100711C8F2D902D922DAE
:100B20008D16932D8D12F11C962D972D992D8D14C8
:100B30009A2D8D10711D9D2D9E2DA02D8C15A12DF2
:100B40008C11F11DA42DA52DA72D8C14A82D8C1072
:100B5000711EAB2DAC2DAE2D0C14AF2D0C10F11E53
:100B6000B22DB32DB52D0D16B62D0D12711FB92D49
:100B7000BA2DBC2D0C16BD2D0C12F11FC02DC12D90
:100B8000C32D0C15DE2D0C11DE2DDE2D0D13F901FC
:100B9000F90AEC2D8D110230F0007008F900EC2DEF
:100BA0000D110330F0007008F900EC2D8C12F901E2
:100BB000EC2D0D13F901F90AEC2DEC2D7908003A12
:100BC0000319C62D013A0319CA2D033A0319D02D72
:100BD000013A0319D62DD92D08002000B501B60120
:100BE0000130B7000030B80000303802033003197C
:100BF0003702031CFC2DFD2DFF2D402E402E4C30C6
:100C0000B0003008A00008308431D32485310C3086
:100C10002000B0003008A00037088431D32485318B
:100C200068302000B0003008A00000308431D324A8
:100C300085316C302000B0003008A00000308431D5
:100C4000D32485312000B1003108B4003408B0004D
:100C5000B1013508B300B20130083204B5003108E3
:100C60003304B6000130B7070030B83D0030380219
:100C7000033003193702031C3E2E3F2EFF2D402E5A
:100C80003608AF01AF073508AE01AE07472E0800A2
:100C9000740887310C2786317508F7007408F60050
:100CA0000830F736F60C890B512E7608F4007708D9
:100CB000F5005F2EFF3087310C2786315F2E013023
:100CC000F4020030F53BFF307506031D692EFF303E
:100CD0007406031D6C2E6D2E5A2E6E2E08004C309D
:100CE0002000B1003108A00040308431D324863187
:100CF0002C302000B1003108A00030088431D3240A
:100D0000863120002F08B1003108A0000030843166
:100D1000D324863120002E08B1003108A000003015
:100D20008431D32486310800F500FE30F4007408C5
:100D3000F800210095127508FF3A031DA02EA12E80
:100D4000A32E9515AB2E951107307505F4001508E7
:100D5000F839740495007303FF3AF4007408FA003C
:100D60007A08200095008B160800BE2E3930F4005A
:100D70000030F500863148268631BE2E0130200035
:100D8000A0020030A13BFF302106031DC92EFF3019
:100D90002006031DCC2ECD2EB62ECE2E0800200010
:100DA0000D178D150D158C168D128D108C118C1044
:100DB0000C100D120C120C11DD2EC030F300730854
:100DC00021008C058130F30073088D05E72E0800A3
:100DD00020009015C030F300730822008E043F30CD
:100DE000F300730821008E0520008E16C030F3003A
:100DF000730821008E050800F901C601C701C8016A
:100E0000C901CA01CB01CC01CD018731262786312A
:100E1000FA00200081310329F3000F2F0F2F01303A
:100E2000F3027308FF3A031D162F172F0F2F182FE9
:100E300008002100191799161912991523008C0121
:0E0E40008D012200910193019D010800FF34F5
:020000040001F9
:04000E0084C9FFDCC6
:00000001FF
================================
https://dannyelectronics.wordpress.com/
 

Offline dannyfTopic starter

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Attiny Fuse Recovery
« Reply #10 on: April 20, 2014, 12:04:18 am »
Here is the version that drives common anode 7segment leds:

Code: [Select]
:04000000803115280E
:10000800803120007F08F2000B1D0B280C281128D6
:100018000B1185317F258031112872082000FF00DF
:1000280009008631FC2E00345F347C3458345E3449
:10003800793471346F34073474340E3400343834FE
:10004800003454345C347334673477346D3400349A
:100058001C340034003400346E34003400343F342F
:1000680006345B344F3466346D347D3407347F3462
:100078006F345F347C3458345E34793471340034EE
:100200008131820702292000BF01873119278131FE
:100210008631CF268131C8302000BB003B08F30077
:1002200001308631942681318B178631E826813161
:10023000192922008E17BF302000BB003B08220086
:100240008E05F8302000BB003B088E05FB30BB005C
:100250003B0821008E0520008E16F730BB003B08BE
:100260008E052830BB003B088E043C30F400003083
:10027000F500863148268131DF302000BB003B0885
:100280008E051430F4000030F500863148268131A7
:1002900021000E152C30F4000130F500863148267F
:1002A00081318531ED25813120002F08C101C10741
:1002B0002E08C001C0074008C2004108C300C401A5
:1002C000C50142080F39333E80310A008131BB003D
:1002D0003B08CD004208BB004308BC004408BD00F9
:1002E0004508BE000430BE36BD0CBC0CBB0C890BEF
:1002F00073293E08C5003D08C4003C08C3003B0804
:10030000C20042080F39333E80310A008131BB0000
:100310003B08CC004208BB004308BC004408BD00B9
:100320004508BE000430BE36BD0CBC0CBB0C890BAE
:1003300093293E08C5003D08C4003C08C3003B08A3
:10034000C20042080F39333E80310A008131BB00C0
:100350003B08CB004208BB004308BC004408BD007A
:100360004508BE000430BE36BD0CBC0CBB0C890B6E
:10037000B3293E08C5003D08C4003C08C3003B0843
:10038000C20042080F39333E80310A008131BB0080
:100390003B08CA004208BB004308BC004408BD003B
:1003A0004508BE000430BE36BD0CBC0CBB0C890B2E
:1003B000D3293E08C5003D08C4003C08C3003B08E3
:1003C000C200F029C030BB003B0822008E0664301A
:1003D0002000A0000030A1008631B5268131F0292F
:1003E00020009019F429F529E229F6293F30BB00B5
:1003F0003B0822008E05F4302000A0000130A1004F
:100400008631B526813184311D24813120003108A7
:10041000C5003008C4002F08C3002E08C2004208DF
:100420000F39333E80310A008231BB003B08CD00DA
:100430004208BB004308BC004408BD004508BE009C
:100440000430BE36BD0CBC0CBB0C890B212A3E0807
:10045000C5003D08C4003C08C3003B08C200420878
:100460000F39333E80310A008231BB003B08CC009B
:100470004208BB004308BC004408BD004508BE005C
:100480000430BE36BD0CBC0CBB0C890B412A3E08A7
:10049000C5003D08C4003C08C3003B08C200420838
:1004A0000F39333E80310A008231BB003B08CB005C
:1004B0004208BB004308BC004408BD004508BE001C
:1004C0000430BE36BD0CBC0CBB0C890B612A3E0847
:1004D000C5003D08C4003C08C3003B08C2004208F8
:1004E0000F39333E80310A008231BB003B08CA001D
:1004F0004208BB004308BC004408BD004508BE00DC
:100500000430BE36BD0CBC0CBB0C890B812A3E08E6
:10051000C5003D08C4003C08C3003B08C2002200DF
:100520000E17062B6C302000AE006430AF00FC309C
:10053000BB003B08B00086316F268131382B6C3010
:100540002000AE006430AF005230BB003B08B0006A
:1005500086316F268131382B6C302000AE0064303C
:10056000AF006A30BB003B08B00086316F26813196
:100570007C302000AE007430AF00FF30BB003B0881
:10058000B00086316F268131382BCA2ACA2ACA2A7E
:10059000CA2ACA2A6C302000AE006430AF00623034
:1005A000BB003B08B00086316F2681317C302000D3
:1005B000AE007430AF00DF30BB003B08B0008631C6
:1005C0006F2681316E302000AE006630AF00FF3004
:1005D000BB003B08B00086316F268131382BC0301C
:1005E0002000BB003B0822008E04C0302000BB006E
:1005F0003B0822008E0614302000A0000030A1002D
:100600008631B5268131F52AF52A382B200041089C
:10061000903A0319152B013A0319202B033A0319B9
:10062000282B013A0319302BEF2A4008043A03190A
:10063000922A013A03199F2A023A0319AC2AEF2A97
:100640004008083A0319CA2A033A0319CA2AEF2AAA
:100650004008063A0319CA2A013A0319CA2AEF2A9E
:1006600040080B3A0319CA2A073A0319CA2AEF2A83
:10067000BF302000BB003B0822008E053F30200029
:10068000BB003B0822008E0584311D2481312000EF
:100690003108C5003008C4002F08C3002E08C2006E
:1006A000EF30BB003B088E0500000000000000009A
:1006B0000000000000000000F7302000BB003B08F5
:1006C0008E05000000000000000000000000000097
:1006D000000020008E160000000000000000000056
:1006E000000000000000200042080F39333E803136
:1006F0000A008331BB003B08CD004208BB00430821
:10070000BC004408BD004508BE000430BE36BD0C28
:10071000BC0CBB0C890B862B3E08C5003D08C400F1
:100720003C08C3003B08C20042080F39333E803109
:100730000A008331BB003B08CC004208BB004308E1
:10074000BC004408BD004508BE000430BE36BD0CE8
:10075000BC0CBB0C890BA62B3E08C5003D08C40091
:100760003C08C3003B08C20042080F39333E8031C9
:100770000A008331BB003B08CB004208BB004308A2
:10078000BC004408BD004508BE000430BE36BD0CA8
:10079000BC0CBB0C890BC62B3E08C5003D08C40031
:1007A0003C08C3003B08C20042080F39333E803189
:1007B0000A008331BB003B08CA004208BB00430863
:1007C000BC004408BD004508BE000430BE36BD0C68
:1007D000BC0CBB0C890BE62B3E08C5003D08C400D1
:1007E0003C08C3003B08C20022008E17BF30200027
:1007F000BB003B0822008E050C2C80302000BB0083
:100800003B0822008E0664302000A0000030A100CA
:100810008631B52681310C2C20009019102C112C1A
:10082000FD2B122CF430A0000130A1008631B5263A
:100830008131192919298031152800302000BA008A
:100840000030B9000030B8000030B7004C30B200C2
:100850003208A00004308431D32484316830200071
:10086000B2003208A00000308431D32484316C30CF
:100870002000B2003208A00000308431D32484313B
:100880002000B300B401B501B6013608BA0035083E
:10089000B9003408B8003308B7003708B200380888
:1008A000B3003908B4003A08B5000830B235B30DCA
:1008B000B40DB50D890B562C3508BA003408B900B3
:1008C0003308B8003208B7004C30B2003208A0003C
:1008D00004308431D32484317A302000B2003208CD
:1008E000A00000308431D32484317E302000B20057
:1008F0003208A00000308431D32484312000B300BA
:10090000B401B501B6013308B7043408B80435089A
:10091000B9043608BA043708B2003808B3003908F9
:10092000B4003A08B5000830B235B30DB40DB50DBA
:10093000890B942C3508BA003408B9003308B80084
:100940003208B7004C30B2003208A00004308431C5
:10095000D32484316A302000B2003208A000003075
:100960008431D32484316E302000B2003208A000DC
:1009700000308431D32484312000B300B401B501A8
:10098000B6013308B7043408B8043508B90436088A
:10099000BA043A08B1003908B0003808AF00370887
:1009A000AE00D22C08002000A500AA01AB01D82C73
:1009B0000E1DDB2CDC2CD82CDD2C2508A100A2017F
:1009C0000230A135A20D890BE12C2108A6002208D6
:1009D000A7002008A100A2010230A135A20D890BB9
:1009E000ED2C2108A8002208A9000A30A100210846
:1009F000AC00AC1FFC2CFD2CFF2C732D732D0E08AE
:100A0000A1002108AD000130A1000030A2002C0A95
:100A10000B2DA135A20D890B092D26082105A30058
:100A200027082205A400240823040319182D192DD2
:100A30001B2D2D141F2DFE30A1002108AD05013006
:100A4000A1000030A2002C0A272DA135A20D890B90
:100A5000252D28082105A30029082205A400240823
:100A600023040319342D352D372DAD143C2DFD30C5
:100A7000A1002108AD053C2D2D088E000130AA35BE
:100A8000AB0D890B3F2D00300E190130A100A201E2
:100A90002108AA042208AB042D161430F4000030FB
:100AA000F50086314826843120002D088E00143050
:100AB00087310C278431EF302000A1002108AD05DB
:100AC0001430F4000030F5008631482684312000CF
:100AD0002D088E00FF30A1002108AC07AC1F712D3E
:100AE000722DFF2C732D2B08A2002A08A1000230C2
:100AF000A236A10C890B782D21087E2D080020003C
:100B00000D138D110D118C1279084A3E8600870154
:100B10000108F0007008F100711C8F2D902D922DAE
:100B20008D12932D8D16F11C962D972D992D8D10CC
:100B30009A2D8D14711D9D2D9E2DA02D8C11A12DF2
:100B40008C15F11DA42DA52DA72D8C10A82D8C146E
:100B5000711EAB2DAC2DAE2D0C10AF2D0C14F11E53
:100B6000B22DB32DB52D0D12B62D0D16711FB92D49
:100B7000BA2DBC2D0C12BD2D0C16F11FC02DC12D90
:100B8000C32D0C11DE2D0C15DE2DDE2D0D17F901F8
:100B9000F90AEC2D8D150230F0007008F900EC2DEB
:100BA0000D150330F0007008F900EC2D8C16F901DA
:100BB000EC2D0D17F901F90AEC2DEC2D7908003A0E
:100BC0000319C62D013A0319CA2D033A0319D02D72
:100BD000013A0319D62DD92D08002000B501B60120
:100BE0000130B7000030B80000303802033003197C
:100BF0003702031CFC2DFD2DFF2D402E402E4C30C6
:100C0000B0003008A00008308431D32485310C3086
:100C10002000B0003008A00037088431D32485318B
:100C200068302000B0003008A00000308431D324A8
:100C300085316C302000B0003008A00000308431D5
:100C4000D32485312000B1003108B4003408B0004D
:100C5000B1013508B300B20130083204B5003108E3
:100C60003304B6000130B7070030B83D0030380219
:100C7000033003193702031C3E2E3F2EFF2D402E5A
:100C80003608AF01AF073508AE01AE07472E0800A2
:100C9000740887310C2786317508F7007408F60050
:100CA0000830F736F60C890B512E7608F4007708D9
:100CB000F5005F2EFF3087310C2786315F2E013023
:100CC000F4020030F53BFF307506031D692EFF303E
:100CD0007406031D6C2E6D2E5A2E6E2E08004C309D
:100CE0002000B1003108A00040308431D324863187
:100CF0002C302000B1003108A00030088431D3240A
:100D0000863120002F08B1003108A0000030843166
:100D1000D324863120002E08B1003108A000003015
:100D20008431D32486310800F500FE30F4007408C5
:100D3000F800210095127508FF3A031DA02EA12E80
:100D4000A32E9515AB2E951107307505F4001508E7
:100D5000F839740495007303FF3AF4007408FA003C
:100D60007A08200095008B160800BE2E3930F4005A
:100D70000030F500863148268631BE2E0130200035
:100D8000A0020030A13BFF302106031DC92EFF3019
:100D90002006031DCC2ECD2EB62ECE2E0800200010
:100DA0000D138D110D118C128D168D148C158C1444
:100DB0000C140D160C160C15DD2EC030F300730844
:100DC00021008C058130F30073088D05E72E0800A3
:100DD00020009015C030F300730822008E043F30CD
:100DE000F300730821008E0520008E16C030F3003A
:100DF000730821008E050800F901C601C701C8016A
:100E0000C901CA01CB01CC01CD018731262786312A
:100E1000FA00200081310329F3000F2F0F2F01303A
:100E2000F3027308FF3A031D162F172F0F2F182FE9
:100E300008002100191799161912991523008C0121
:0E0E40008D012200910193019D010800FF34F5
:020000040001F9
:04000E0084C9FFDCC6
:00000001FF
================================
https://dannyelectronics.wordpress.com/
 

Offline dannyfTopic starter

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Attiny Fuse Recovery
« Reply #11 on: April 20, 2014, 12:16:39 am »
General operations:

1) both trunks follow the same HV serial programming specification in the datasheet; Different fuse values are used to for different chips, based on the detected target device signature.

2) The 16x2 lcd version simply writes to the lcd and follows a linear process; The 7-segment led version utilizes timer0 interrupt (in this particularly case, the chip runs at 1Mhz Fcy and the timer0 prescaler is set to 8:1, so each digit is shown for 8*256us = 2ms). In the isr, individual digits are updated from a display buffer (of 4 bytes, containing the font information for each digit). The isr runs in the background and the user only needs to update the display buffer when new information needs to be sent to the 7-segment display, the isr handles the rest.

================================
https://dannyelectronics.wordpress.com/
 

Offline dannyfTopic starter

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Attiny Fuse Recovery
« Reply #12 on: April 20, 2014, 12:33:44 am »
The basic led display can also used in others, like a simple volt meter, a ammeter, or a frequency meter: TMR1 takes the incoming pulse train and TMR2/4/6 gates the input -> you have a frequency meter with minimal parts count.

TMR1 on this particular mcu is asynchronous so it is perfect for a frequency meter.
================================
https://dannyelectronics.wordpress.com/
 

Offline notsob

  • Frequent Contributor
  • **
  • Posts: 695
  • Country: au
Re: Attiny Fuse Recovery
« Reply #13 on: April 20, 2014, 12:59:35 am »
I made one of these fuse doctors years ago
http://mdiy.pl/atmega-fusebit-doctor-hvpp/?lang=en
 

Offline dannyfTopic starter

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Attiny Fuse Recovery
« Reply #14 on: April 20, 2014, 02:03:34 am »
Yours is a lot more powerful than mine: mine was designed just to handle some of the attinies.

For others, the Dragon may be a better route.
================================
https://dannyelectronics.wordpress.com/
 

Offline zapta

  • Super Contributor
  • ***
  • Posts: 6190
  • Country: us
Re: Attiny Fuse Recovery
« Reply #15 on: April 20, 2014, 05:05:05 pm »
 

Offline dannyfTopic starter

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Attiny Fuse Recovery
« Reply #16 on: April 23, 2014, 12:36:34 am »
Quote
The basic led display can also used in others, like ...

Or to make a solder station out of it: with digital read out of temperatures.

One of those days, I will put it together, :)
================================
https://dannyelectronics.wordpress.com/
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf