Am I able to use Pins 2,3,5,6,7 on the ATtiny85 as inputs OR outputs? (Like you can with the Arduino)
I've done a little burning with avrdude manually, and I know when you set the fuse to disable the RESET pin, you can't reburn the chip without a HVP.
That said, you gain the use of the reset pin for IO.
Is this supported with the attiny45_attiny85.zip library from HLT?
Is it supported with any arduino+ATtiny library?
QuoteThat said, you gain the use of the reset pin for IO.Yes. I believe there are some restrictions. You need to carefully dig through the datasheet.
QuoteIs this supported with the attiny45_attiny85.zip library from HLT? I believe so ... let's check ... this is from pins_arduino.c ...[font=Courier New]// ATMEL ATTINY45 / ARDUINO//// +-\/-+// Ain0 (D 5) PB5 1| |8 Vcc// Ain3 (D 3) PB3 2| |7 PB2 (D 2) Ain1// Ain2 (D 4) PB4 3| |6 PB1 (D 1) pwm1// GND 4| |5 PB0 (D 0) pwm0// +----+[/font]
I have been playing with the the Attiny85's with the arduino as ISP and managed to brick onehttp://www.rickety.us/2010/03/arduino-avr-high-voltage-serial-programmer/
Please let us know what happens.
attiny45-8.name=ATtiny45 (internal 8 MHz clock)attiny45-8.bootloader.low_fuses=0xe2attiny45-8.bootloader.high_fuses=0xdfattiny45-8.bootloader.extended_fuses=0xff
High fuse value to disable reset pin: 0x5F
avrdude -P COM4 -b 19200 -c avrisp -p attiny85 -v -e -U lfuse:w:0xE2:m -U hfuse:w:0x5F:m -U efuse:w:0xFF:m -U flash:w:tm1640.hex
Hi Panici! I'm hoping you're still around to answer a quick question. I'm about ready to do the same thing with an ATtiny85. It's going to be in an embedded toy, so I know I won't want to reprogram it again. I have a few extra ATtiny85 chips that I'll keep playing with that I won't disable the reset pin on. However, I'm really new at all of this, and have never used the avrdude command line before. The part of your post I don't understand is how you ran the BAT file through the Arduino as ISP. I've downgraded to v0022 (version 1.0 would never work for me to program the ATtiny, but 0022 works fine), and I have my final code on the ATtiny running the way I want it, just missing the pin number 5, which is the reset. So how do I run the avrdude command line you discovered and have it set my chip properly? I can't see a way to open a BAT file in the Arduino code interface. Any help would be awesome, as this is the last step I have to work out in my project.Thanks!
I just want to make sure everybody knows this but the picture at the top is of the ATtiny 45, not the ATtiny 85. Just a heads up
The BAT file is basically a command that would be typed into a Windows Command (Terminal/MS-DOS) window. It's just put in a file so you don't have to retype it every time.Install AVRdude for windows, and run the bat file by clicking on it.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16