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 74210 code. Each converted character is to be displayed on 5 LEDs connected to Port B (B0 to B4) of the microcontroller. Further, each converted character will be ON for 3 second and OFF for 1 second. Once all characters have been displayed the program will stop and the LEDs will be OFF.
Objectives:
Report:
Your report must include:
Submit the report (*.pdf only format), disassembly listing and MPLAB IDE file (*.hex) via StudyDesk, (EASE) as attachments. That is, 2 files to be submitted.
Assessment criteria
|
Assessment item |
Requirement |
Marks |
| Flowchart | ||
| Accuracy | Must reflect the program code, including subroutines |
30 |
| Sufficient detail | Correct use of flowchart symbols, lines and statements |
10 |
| Labels | On all loops and decision blocks |
5 |
| Neatness | Can be hand drawn (scanned), but must be neat |
5 |
| Program description | ||
| How it works | Detailed description of the program’s operation. At least one page. |
30 |
| Display details | Describe how the display (LEDs) interface to the PIC 16F84A |
10 |
| Delay calculations | Explain and show the delay calculations |
20 |
| Program listing | ||
| Appropriate labels | Labels should be used for loops, subroutine, etc. |
5 |
| Comments | Sufficient to describe each step in the program |
10 |
| Structure | Efficiency, use of registers and subroutines, etc. |
30 |
| Accuracy | Proper operation, (confirmed by the marker using the ‘Real PIC Simulator), Hence the hex code file (*.hex) must be submitted via StudyDesk. |
45 |
| Total |
200
|
|