Assignment 3: The Walking Lights
In this assignment you are to walk through the process of
writing, assembling and simulating a PIC program, and finally to
burn the program into a PIC 16C84. Use the
Walking Lights program.
Specifically:
-
Make a C:\Users\your-name directory on Windows95.
-
Start MPLAB, make a new project in your directory,
type in the Walking Lights program and add it to the
project. Successfully build the project.
-
Use animate to walk through the program. Observe the
Program Memory Window, the File Registers Window and
the Special Function Register Window.
-
Plug the PICSTART into serial port A and program your Microchip.
-
Transfer the chip to the PICDEM board and watch it work.
-
Modify the program so that the lights move faster. Reprogram
your chip in the PICSTART, return it to the PICDEM and watch it work.
Some Reminders:
Be sure the simulator mode and the proper development mode are
selected. Be sure to use LIST P=PIC16C84 at the top of your
assembly source code. Make sure that the WDT (Watchdog timer)
is OFF in the panel that presents itself just after
the PICSTART is enabled.