We’re rewarding the question askers & reputations are being recalculated! Read more.

New answers tagged

1

The ATTiny chips commonly used in Arduino-like boards, such as the Adafruit Trinket or the Digispark USB will usually have a bootloader which runs before your own code. The bootloader checks for a certain state on the USB port of the board, to see if something is waiting to write a new program to the chip. The bootloader accepts new code from the host ...


1

You can just normally use all pins except for the reset pin (pin 0). When you want to program the Attiny, you just connect the programmer. It will reset the Attiny through the reset pin and put it into ISP programming mode. At that point your code hasn't run. Note: If you want to program the Attiny while it still sits in its circuit, you have to be careful, ...


0

It seems that you are using too high programming speed. SCK period al of 0.1 us renders 10 MHz, which is to fast if crystal is working at 8 MHz. Not sure where to change it in Arduino environment, but you should add this key to avrdude.exe run string: avrdude.exe -B 8 This will set programming speed to 125 kHz. Also I suggest you to buy a cheap USBasp ...


Top 50 recent answers are included