EE313 Lab 2 Report.
EE313 Lab 2 Report.
AND PHYSICS
Lab – 02
Aim
The aim of the lab is to:
Task 1.
Students are able to design a table of equivalent code in the hex in order to display
number from 0-9 in the microcontroller. The reference LED segment type common
cathode
Students are able to write a C program in the PIC C to generate HEX file for
PIC18F8722.
Lastly, the students are able to display the number 1 to 9 with the one second delay.
Task 2.
The student should be able to convert application by additional control of the key
input in which the key is pressed then only the number should be increment.
Introduction
Programable interface controller also known as PIC microcontroller is an electronic
device/circuit that is used for programming for example timers, to control production line
and much more, PIC microcontroller is found in most of the electronic device as it tells the
device what to do, for example; alarm systems, computer control system, phones and many
more, pic controller are consider wise cheap and can be brought as prebuild circuit or as a
kit that can be assembled by the user. [1]
Figure 1: The above figure shows the image of the micro-controller and all of its uses.
one of the uses for PIC is displaying desired variable in the LCD display. The intel
hexadecimal object file format also known as intellect hex is a file that the binary
information in ASCII test form, this is commonly used for programming in the
microcontrollers. In order to program, first thing to consider is to draw the look up table
that is used to derive the hex code to display the numbers 1 to 9 in the LCD display screen.
The h is always ON. To interface the 7-segment display in the pic controller, GPIO pins are
used to digital output pins. These display pins consist of 7 light emitting diodes connected in
the common anode and cathode configuration. [2]
Figure 2: The above equation shows the image of how the LED display looks like in 1 to 7
The delay of 1 seconds simply defines as that the timer for the LED to display the numbers
from 1 to 9. The number 1 will be displayed on the screen and then one second later
number 2 will be displayed. The time delay can be changed in the program of the users
choice for example time delay of 1, 3, 5 and etc.
Equipment’s
Methodology
Task 1
Figure 3: the above figure shows the image of the PIC C where it shoes the label ports.
Reference
[1]"Control system", En.wikipedia.org, 2021. [Online]. Available:
https://en.wikipedia.org/wiki/Control_system. [Accessed: 21- Mar- 2021].
[2]"7 segment display in pic microcontroller - Google Search", Google.com, 2021. [Online].
Available: https://www.google.com/search? [Accessed: 26- Mar- 2021].