Pages: [1] 2   Go Down
Author Topic: How to turn ATTiny PB5 RESET and I/O pin into a regular I/O PIN? Changing RSTDIS  (Read 3045 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi
How can I change the RSTDISBL fuse bit in order to turno PB5 into a regular I/O pin? I am using arduino as ISP and I am programming using arduino approach

Thanks
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 208
Posts: 8856
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Once you disable the RESET pin (to use it for I/O) you can no longer use an ISP programmer.

Might be time to invest in a High Voltage Parallel Programmer.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Oops, that is right, tiny85 Pin 1 is connected to UNO Pin D10.

Is it possible to program it with a avr dragon or ISP cable that come with STK300, after turning the RSTDIS fuse?
Logged

Leeds, UK
Offline Offline
Edison Member
*
Karma: 80
Posts: 1726
Once the magic blue smoke is released, it won't go back in!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You can't use ISP once you disable the reset pin, no matter what ISP programmer you get.

You require a High Voltage programmer.
Logged

~Tom~

Sweden
Offline Offline
Sr. Member
****
Karma: 13
Posts: 257
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You can also make the following shield that turns a arduino to a high voltage programmer.. Here it is: http://mightyohm.com/blog/2008/09/arduino-based-avr-high-voltage-programmer/
Logged

Leeds, UK
Offline Offline
Edison Member
*
Karma: 80
Posts: 1726
Once the magic blue smoke is released, it won't go back in!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

That link wouldn't really help much for an Attiny85. This would however:
http://www.rickety.us/2010/03/arduino-avr-high-voltage-serial-programmer/
Logged

~Tom~

Wahiawa, Hawaii
Offline Offline
God Member
*****
Karma: 29
Posts: 600
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The updated version now supports t85 also.
http://mightyohm.com/blog/products/hv-rescue-shield-2-x/

Logged

Sweden
Offline Offline
Sr. Member
****
Karma: 13
Posts: 257
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That link wouldn't really help much for an Attiny85. This would however:
http://www.rickety.us/2010/03/arduino-avr-high-voltage-serial-programmer/

Well my link describes how the project started etc.. If you read on you can see at the bottom that there is a link with an updated version like the one posted by hiduino which support t85 and t2313... You can't expect me to give the thread starter everything on a silver plate smiley-wink..
Logged

vermont
Offline Offline
Sr. Member
****
Karma: 8
Posts: 313
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You can't use ISP once you disable the reset pin, no matter what ISP programmer you get.

You require a High Voltage programmer.

or, as mentioned in the other thread, a tiny arduino bootloader which allows programming with reset pin as io and no 12v required.
Logged

Leeds, UK
Offline Offline
Edison Member
*
Karma: 80
Posts: 1726
Once the magic blue smoke is released, it won't go back in!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Bootloaders can also be used. But to go down that route you have to tune the internal oscillator and hope that it doesn't detune itself.

I modified a version of Optiboot to work properly with Attiny devices. The bootloader includes CodingBadly's TinyTuner sketch to allow you to tune the oscillator and have the tuned value be loaded automatically as part of the bootloader routines. Once the oscillator is tuned, the tinyTuner sketch code is deleted meaning the bootloader takes up only 576 bytes of flash.
The bootloaders can be found here:
https://github.com/TCWORLD/ATTinyCore/tree/master/tiny/bootloaders/optiboot
Logged

~Tom~

Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Many thanks.
I dont know nothing of High Voltage programmers and I have to read about it...
But it seems there is other options (you wrote about) and so i have to study them too.
Thanks

Logged

Valencia, Spain
Offline Offline
Faraday Member
**
Karma: 146
Posts: 5532
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Many thanks.
I dont know nothing of High Voltage programmers and I have to read about it...

They don't work with the Arduino IDE.
Logged

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Valencia, Spain
Offline Offline
Faraday Member
**
Karma: 146
Posts: 5532
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You can't use ISP once you disable the reset pin, no matter what ISP programmer you get.

You require a High Voltage programmer.

or, as mentioned in the other thread, a tiny arduino bootloader which allows programming with reset pin as io and no 12v required.

Doesn't that mean you just have to reserve a different pin for the bootloader, making it moot?

Logged

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Anaheim CA.
Offline Offline
Faraday Member
**
Karma: 47
Posts: 2892
...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well, There is the power pin...

Doc
Logged

--> WA7EMS <--
“The solution of every problem is another problem.” -Johann Wolfgang von Goethe
I do answer technical questions PM'd to me with whatever is in my clipboard

Leeds, UK
Offline Offline
Edison Member
*
Karma: 80
Posts: 1726
Once the magic blue smoke is released, it won't go back in!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


Doesn't that mean you just have to reserve a different pin for the bootloader, making it moot?

Nope, just add jumpers. That way you can disconnect the jumpers when programming, and reconnect them when done. I've used an Attiny85 this way before, it works quite well.

Also, if the pins chosen are ones used as outputs then depending on the applications you can probably get rid of the jumpers.

But if you think about it, if you need a HVP, then you would need to be able to isolate all 5 pins in order to program it. For a bootloader you only have to be able to isolate 2.

If you are using a DIP package it doesn't matter as you can simply pull the chip, program it, and then plug it back in.
Logged

~Tom~

Pages: [1] 2   Go Up
Jump to: