Demonstrate the use of indexed addressing to retrieve data


To develop a program for the PIC 16F84A using the MPLAB v8 IDE simulator software. The program is to convert your student number (10 ASCII characters), one character at a time, to the excess-three code. Each converted character is to be displayed on 4 LEDs connected to Port B (B0 to B3) of the microcontroller. Further, each converted character will be ON for 4 second and OFF for 1 second. Once all characters have been displayed the program will continue to run with all the LEDs flashing (ON for 1 second and OFF for 1 second then repeat this infinitely).

Objectives:

• Describe your program using properly structured flowcharts (main program and subroutines).

• Demonstrate the use of subroutines, e.g. initialize the peripheral registers and to set the time delays, etc. • Demonstrate ASCII code conversion.

• Demonstrate the use of indexed addressing to retrieve data from a table in memory.

• Describe the operation of the program in writing.

• Provide a properly formatted program listing.

• Use the MPLAB IDE software to assemble, run and debug the program.

• Demonstrate the use of Breakpoints function in MPLAB IDE to run through the program step by step.

Report: Your report must include:

• A brief problem statement;

• A clear detailed description of how your program works;

• A brief summary of the test results including two screenshots showing the program running on your machine for the 5th and last (10th) characters of your student number respectively (The status of your codes and special function registers) (Snipping Tool under Windows 7 can be used to capture the screenshots);

• Properly formatted flowcharts (may be hand drawn then scanned into the report);

• A copy of your MPLAB IDE assembled program.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Demonstrate the use of indexed addressing to retrieve data
Reference No:- TGS02309854

Now Priced at $30 (50% Discount)

Recommended (92%)

Rated (4.4/5)