You are on page 1of 1

EMBEDDED SYSTEMS LAB #02 (EVALUATIVE) ADDRESSING MODES

OBJECTIVE The purpose of this lab is to make and debug a PIC18F assembly language program to manipulate data using indirect addressing.

PRELAB Read and study the presentations about the first and second set of instructions of the PIC18F, some of these instructions will be used to implement a program.

EQUIPMENT, SOFTWARE AND COMPONENTS Microchips MPLAB assembler/debugger. Course lectures.

PROCEDURE 1. Design, type and debug a program using indirect addressing with the next functions: Clear the data memory area between 20H and 3FH included. (25%) Fill the locations 20H to 2FH with hexadecimal digits from 00H to 0FH. (25%) Then copy these numbers in reverse order to the locations 30H until 3FH at the same time clear the 20H to 2FH section. (50 %) After these actions the program loops infinitely.

DELIVERABLES 1.- Source code of procedure point 1 with comments also show to the instructor the program working using the debug tools.

RICARDO ESTEBAN PARREO CRDOVA

You might also like