Actions

AVR Lesson: Output Pins I

From HacDC Wiki

Revision as of 22:25, 28 May 2008 by 146.142.54.14 (talk) (New page: == Goals == In this lesson, you'll program the micro-controller version of "hello world", letting you fire up your programmer, compiler, chip, LED, and test them all out. You'll learn h...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Goals

In this lesson, you'll program the micro-controller version of "hello world", letting you fire up your programmer, compiler, chip, LED, and test them all out. You'll learn how to setup and use pins for output, and along the way get some exposure to AVR-specific coding practice.


The Circuit

The Code

Trouble?

Programmer woes:

Is the LED in the correct polarity? (Positive to pin PB4, negative to GND).