| Author |
Message |
|
|
Posted: Mar 06, 2009 - 06:49 PM |
|

Joined: Mar 02, 2009
Posts: 23
|
|
Hi,
I was reading the ATTiny85 datasheet and found out that the I/O pin from Reset is not usable as I thought.
I really need another I/O, but if I disable the Reset pin by Fuse will make my ATTiny85 unprogrammable forever?
Thanks,
Igor. |
|
|
| |
|
|
|
|
|
Posted: Mar 06, 2009 - 07:21 PM |
|


Joined: Oct 30, 2002
Posts: 5727
Location: The Netherlands
|
|
| You will need to use high voltage programming to reset the fuse, so it's not permanent. It will make debugging and programming quite hard. |
|
|
| |
|
|
|
|
|
Posted: Mar 06, 2009 - 07:26 PM |
|

Joined: Mar 02, 2009
Posts: 23
|
|
How to reset the fuses using high voltage programming? Is there any tutorial?
Thanks for your quick answer.
Igor. |
|
|
| |
|
|
|
|
|
Posted: Mar 06, 2009 - 07:38 PM |
|


Joined: Jan 12, 2002
Posts: 7832
Location: Canada
|
|
| you will need a programmer capable of delivering +12V to the reset pin. One important thing to note... make sure that whatever you have connected to that pin is also capable of handling that +12V signal. |
|
|
| |
|
|
|
|
|
Posted: Mar 06, 2009 - 08:02 PM |
|

Joined: Sep 05, 2001
Posts: 2507
|
|
|
igorfcardoso wrote:
I really need another I/O, but if I disable the Reset pin by Fuse will make my ATTiny85 unprogrammable forever?
No.
For reprogramming burn a bootloader into the AVR prior disabling the reset pin.
Peter |
|
|
| |
|
|
|
|
|
Posted: Mar 06, 2009 - 08:48 PM |
|

Joined: Nov 17, 2004
Posts: 13949
Location: Vancouver, BC
|
|
|
Quote:
For reprogramming burn a bootloader into the AVR prior disabling the reset pin.
This assumes that you have a pin set up as a UART receive (or some other input method). If that is not the case, then a bootloader will not help since you would need yet another pin available. |
_________________ Regards,
Steve A.
The Board helps those that help themselves.
|
| |
|
|
|
|
|
Posted: Mar 06, 2009 - 09:01 PM |
|

Joined: Jul 02, 2003
Posts: 1029
Location: Tricky Dicky City
|
|
| Depending on what you are trying to do a pin can have a dual purpose :for example blinking an led and reading a pushbutton. Just what is hooked up to your pins? |
|
|
| |
|
|
|
|
|
Posted: Mar 06, 2009 - 09:13 PM |
|

Joined: Sep 05, 2001
Posts: 2507
|
|
|
Koshchi wrote:
This assumes that you have a pin set up as a UART receive (or some other input method).
Yes, thats the big advantage of the bootloader.
You need only share a single pin with the application instead four pins on SPI-programming.
E.g. your application use a push button, then this pin can be shared with the bootloader.
Simple press not the button during download a new application.
Or another approach, use a three pin header. For running the application a jumper was placed to connect the pin with the application.
And for download the jumper was removed and a two wire cable was connected with the PC COM port or an USB-COM dongle.
Peter |
|
|
| |
|
|
|
|
|
Posted: Mar 09, 2009 - 06:04 PM |
|

Joined: Mar 02, 2009
Posts: 23
|
|
Problem solved. I figure out a way to use one pin for two functions and worked fine, like digitool sugested.
The solution with bootloader is not bad, but will be too complicated for my application.
Thanks all for the sugestions.
Igor. |
|
|
| |
|
|
|
|
|