ATtiny13 Project & SparkFun AVR Programmer

I decided to work on an ATtiny13 project. I will be using a test board based on the following schematic:

Here is the board.



Here are the results of a simple “blink” test program:



#include <avr/io.h>
#include <util/delay.h>

//basic bit manipulation macros/defines
#define bit_set(p, m) ((p) |= (m))
#define bit_clear(p, m) ((p) &= ~(m))

//SparkFun AVR Programmer has LED/330R on PB0 (pin 5)
#define LEDPIN PB0
#define PIN5   5

int main(void) {

  //configure LEDPIN as output
  DDRB |= (1<<LEDPIN);

  while (1) {
    bit_set(PORTB, PIN5);    //PORTB |= (1<<LEDPIN);
    bit_clear(PORTB, PIN5);  //PORTB &= ~(1<<LEDPIN);

  return 0;

SparkFun AVR Programmer
I used SparkFun’s Tiny AVR Programmer. It worked flawless, however I do have a couple of reservations about the programmer. I list my thoughts below:

    AVR Programmer Positives:

  1. Plugs directly into the USB port.
  2. Works with all 8-pin AVR chips.
  3. Incorporates breakout pins for prototyping directly from the programmer.
    AVR Programmer Negatives:

  1. Many have reported problems (comments section) loading the USBTinyISP driver.
  2. Solder pads for reset/power options.
  3. Although it can be used as an ISP, requires soldering on a 6-pin header (not furnished).

I feel the solder pads could have easily been changed to jumper pins. The original version of the programmer can be found here.

Here is the avrdude script used to program the ATtiny13:

avrdude -p attiny13 -c usbtiny -U flash:w:attiny13_test.hex

About Jim Eli

µC experimenter
This entry was posted in Uncategorized and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s