Connecting the ATtiny
You’ll need to provide power to the ATtiny and connect it to your programmer. That is, connecting MISO, MOSI, SCK, RESET, VCC, and GND of the programmer to the corresponding pins on the ATtiny. (Or, if you’re using an circuit w/ an ATtiny, simply connect the programmer to the ISP header on the board – you may also need to power the board separately.)
Turning the Arduino board into a programmer
We’re going to use the Arduino board to program the ATtiny. First, we’ll need to turn the Arduino board into an “in-system programmer” (ISP). To this:
Run the Arduino development environment.
Open the ArduinoISP sketch from the examples menu.
Note for Arduino 1.0: you need to make a small change to the ArduinoISP sketch before uploading it. Find the line in the heartbeat() function that says “delay(40);” and change it to “delay(20);”.
Select the board and serial port that correspond to your Arduino board.
Upload the ArduinoISP sketch.
[full_path_to]/avrdude.exe -C [full_path_to]/avrdude.conf -c stk500v1 -b 19200 -P\\.\com6 -p t13 -U flash:w:test.hex
avrprog -p t13 -U flash:w:test.hex
[full_path_to]/avrdude.exe -C [full_path_to]/avrdude.conf -c stk500v1 -b 19200 -P\\.\com6 %1 %2 %3 %4 %5
Users browsing this forum: No registered users and 2 guests