ECE 354 - Computer System Lab II

Lab Introduction: Microchip MPLAB and In-circuit Debugger

Helpful Documentation

Please look at the following document using Acroread before sending them to the printer. Several documents are over several hundred pages in length.

Microchip 16F877 Data Sheet

MPASM Quick Reference Card

MPASM User's Guide

MPLAB-ICD (In-circuit Debugger) User's Guide

MPLAB-IDE (software) User's Guide

tut877.asm demo program

Lab intro TA hints

In this part you will become familiar with the Microchip 16F877 and some of software and hardware tools we will be using during this term.

Procedure

The following functions should be performed in the lab:

1. MPLAB software tool tutorial.

During the first lab session you should complete the tutorial in Chapter 3 of the MPLAB-IDE User's Guide. Note that the tutorial shows compilation for a 16F84. When completing the tutorial, modify code and tasks to be targeted to an 16F877. When you have completed Chapter3 spend some time reviewing Chapter 4 (MPLAB project creation) and Chapter 6 (MPLAB-SIM). The simulator will be particularly important in helping you complete your lab assignments.
2. MPLAB-ICD hardware tutorial.

During the second lab session you should complete the tutorial in Chapter 3 of the MPLAB-ICD User's Guide. This tutorial will lead you through the steps necessary to download a design to the emulator hardware and how to debug a simple program. During the second hour of the lab session please spend some time preparing for the lab 1 assignment.