3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

How to use the Dragon Rider 500 with your AVR Dragon

Step 2ATtiny2313 - Blink the LEDs

ATtiny2313 - Blink the LEDs
«
  • 2313-ISP_Settings1.JPG
  • 2313-ISP_Settings2.JPG
  • 2313-Blinky.JPG
Let's program an ATtiny2313 which is a 20-pin microcontroller.

The Dragon Rider 500 has sockets for several different sized AVR microcontrollers. These include: 8, 20, 28, and 40 pin sockets. Depending on which socket you use, jumpers on the Dragon Rider board must be set differently.

Jumper Settings


Set the jumpers on the Dragon Rider so that the shunts connect the following pins. (pin4 is the center pin for J22-J-24)

Pins:
J5 - 23
J6 - 23
J7 - 12
J16 - 23
J22 - 41
J23 - 41
J24 - 41

This is a basic setup that allows for ISP (In System Programming).

Blinky Blinky


Programming does no good unless you have something to program. I have written a very short code example to blink the Dragon Rider's LED's one at a time.

Use a ribbon cable to connect the LED header (J29) to the PortB header (J2).

Programming

I've included the C file as well as a makefile and the hex file. Like I mentioned in the intro, I cannot cover the software side of programming in the Instructable. Program like you would for the AVR Dragon, as the Dragon Rider doesn't alter the software side of things at all.
blink_led.c884 bytes
blink_led.hex504 bytes
« Previous StepDownload PDFView All StepsNext Step »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
41
Followers
6
Author:barney_1