Digital 2: Datasheets, Microcontrollers, Video

Homework (for Thursday the 9th):

  • Install an AVR compiler chain on your machine:
    OSX: AVR MacPack (doesn’t have a nice editor. Consider Smultron or TextMate (though the latter is $47 with educational discount…). XCode is also usable for the C files, if you have the developer tools installed.
    Windows: WinAVR + AVRStudio for Drivers for the dongle.
  • Hook up the AVR power and ground lines, and identify the programming pins.
  • Test-compile a copy of the test code. sample main.c, makefile, and sample output.
    To do a test run, copy makefile and main.c into a folder, and from a terminal or command window, go to that folder and type run “make[enter]“. If all goes well, the output should resemble the sample output. If you have trouble, we will go over it in detail in class. This is here for you to test things beforehand.
    NOTE: if you get something along the lines of “no makefile found”, rename makefile to be Makefile (note capital M).

The page about the 555 timer/oscillator is here.

Digital Part 2


About this entry