pinMode(RESET, OUTPUT); digitalWrite(RESET, HIGH); pinMode(SCK, OUTPUT); digitalWrite(SCK, LOW); delay(50); digitalWrite(RESET, LOW);
I just succeeded in programming an ATtiny13 using the ArduinoISP sketch and core13 files! Yay!!
But I noticed that the Tiny started running its program rightaway after being programmed, while still being attached to the Arduino.
Isn't this dangerous? What would happen if one pin on the Arduino output LOW and one of the Tiny output HIGH at the same time, while being connected to each other? Wouldn't it cause a short, possibly destroying both chips?
There is a potential problem going from running to programming...http://code.google.com/p/mega-isp/issues/detail?id=22
If the target is driving SCK high when start_pmode is entered, this code creates a short-circuit for 50 ms. More than enough time to damage both processors.
So I have independently found the bug!
Yet the boards seem unaffected.
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