Pages: [1]   Go Down
Author Topic: Attiny 85  (Read 468 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Sr. Member
****
Karma: 2
Posts: 337
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Dear friend,

recently I get myself some attiny85. So, by referring to the datasheet, it mention it has 6 programmable I/O. But I just only can see there are 5 programmable IO only. Is it that the RESET pins also can be the IO  ?

Thanks
Logged

Brisbane, Australia
Offline Offline
Edison Member
*
Karma: 33
Posts: 1122
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

Yes it is possible to reassign the reset pin as an IO pin, but you won't be able to reprogram your ATTiny85 in the usual way after that, as the reset pin is required for that.  If you're using the Arduino IDE you'll typically treat it as 5 + reset + the two power pins.

What are you hoping to use them for?  It's possible you can work around this limitation.

Geoff
Logged

"There is no problem so bad you can't make it worse"
- retired astronaut Chris Hadfield

Denmark
Offline Offline
Edison Member
*
Karma: 35
Posts: 1072
Happy Hobbyist
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Is it that the RESET pins also can be the IO  ?
Yes it can, but if you use it as IO, you cannot reprogram the chip unless you use a High Valtage programmer

Ups, sorry strykeroz, I was too slow
« Last Edit: February 06, 2013, 08:41:03 am by Erni » Logged

Offline Offline
Sr. Member
****
Karma: 2
Posts: 337
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

USBasp consider HVP ? Oh, so for normal usage, I onyl can use 5 pins ?

Thanks
Logged

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

Oh, so for normal usage, I onyl can use 5 pins ?

Realistically? 5 pins is the limit, yes. 6 pins needs special hardware to program it.

PS: You can use the RESET pin as an analog input so long as you don't take the voltage low enough to cause a reset smiley
Logged

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

Pages: [1]   Go Up
Jump to: