Pages: [1]   Go Down
Author Topic: Reset pin on attiny85  (Read 1031 times)
0 Members and 1 Guest are viewing this topic.
Ribeirão Preto - SP
Offline Offline
Jr. Member
**
Karma: 0
Posts: 78
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Anybody knows on arduino ide how to enable the reset pin on attiny8t as I/O pin using the arduino as isp to program the attiny

thanks
Logged

Valencia, Spain
Offline Offline
Faraday Member
**
Karma: 121
Posts: 4598
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Anybody knows on arduino ide how to enable the reset pin on attiny8t as I/O pin using the arduino as isp to program the attiny


You set a 'fuse' on the chip (read the datasheet to find out which one)

But ... the reset pin is used for programming. If you reconfigure reset for I/O you can't ever upload another program to the chip without special equipment to reset the fuse.

Logged

No, I don't answer questions sent in private messages...

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

Unless you use a bootloader.

I have had success with an Attiny84 using its internal oscillator with my customised version of optiboot installed on it, and then disabling its reset pin. I can then use UART to upload new programs.

The process should work for the Attiny85 also.

If you download this core:
https://github.com/TCWORLD/ATTinyCore/

Then in the IDE, select "Optiboot Attiny85 @8MHz", and then using ISP, burn the bootloader using the IDE.

Then connect the attiny to a serial port (you can use an arduino board with its processor removed). PB1 is the Tiny RX pin, PB0 is the Tiny TX pin.

If you open the serial monitor at 9600 board, then unplug power for the Attiny and reconnect it again (to reset it), it should print stuff to the serial monitor. If you can't read it dont worry, just keep sending the letter 'x' (lower case) with no line ending. Each time it will print something to the serial monitor. Eventually (maybe 10 to 15 times of sending 'x') it will stop printing stuff. At this point the bootloader is ready and the internal oscillator is calibrated.

You should then be able to upload sketches via the serial port. Once you have confirmed that you can do that, you will need to use avrdude to set the fuses to disable the reset pin making sure not to erase the chip.
« Last Edit: January 14, 2013, 12:12:16 pm by Tom Carpenter » Logged

~Tom~

Pages: [1]   Go Up
Jump to: