2.2.2 Setting up and Testing

First, install the simulator. This should be a fairly painless process (unless you don't have admin. access rights). The simulator is not required, but it is convenient. Then, install WinAVR, which should also be painless.

Now a little bit of elbow grease. Start a command line interface (otherwise known as a DOS prompt) first. Go to the directory where WinAVR was installed. Let's say you keep the defaults and install WinAVR at c:\winavr, then issue the following commands:

c:
cd \winavr\examples
cd demo
copy \winavr\sample\makefile .
edit makefile

In the editor, look for the line that reads

MCU = atmega128

Change atmega128 to at90s2313.

Then, look for the line that reads

TARGET = main

Change main to demo.

Save the file and exit the editor. Generally, you only need the following command to make all the targets:

make all



Subsections

Copyright © 2006-02-15 by Tak Auyeung