Professional Documents
Culture Documents
Labsheet 1 Embedded System Application
Labsheet 1 Embedded System Application
Labsheet 1 Embedded System Application
1.
2.
3.
PROGRAMME
SECTION /
GROUP
DATE
1.
NAME OF
INSTRUCTOR(S)
2.
1.1 22 FEB Suhaila binti Mohd 1. Update new topic for Lab 1.
2019 Najib
(a) To familiarize with PIC18F4550, PTK40A Training Kit Module and PCWHD
IDE compiler.
(b) To understand input/output operation.
(c) Construct a basic embedded hardware based on seven segment and keypad
application.
2.0 EQUIPMENT/COMPONENTS
In this section, we are trying to scan the button (character) being pressed on
keypad. The 4x4 keypad is a 16-way XY-Matrix hexadecimal keypad. It has eight
connections where four pins for row (ROW1-ROW4) and four pins for column
(COL1-COL4). The connection for the keypad is shown in Figure 3.
Figure 3: Keypad
4 row pins are set as an output (Output from PIC) while column pins are being
pulled high (via resistor) to 5V and being configured as readable pins (Input to
PIC). To check which button is being pressed, users need to scan a column at a
time and row by row. Make rows as output and columns as input as explained
earlier. For example; set (5V, high logic) all the rows by default. 1st scan, clear
(logic low) row 1 and scan column 1 until column 4 (‘1’, ‘2’, ‘3’ and ‘A’) for low
logic, this will determine which button is pressed in row 1. If one of those buttons
is pressed, record it and jump out from the scanning loop and continue with the
action required. If no button is being pressed in row 1, set it back to default (logic
high) and clear (logic low) row 2. Scan column 1 to column 4 again and this will
scan button press of ‘4’, ‘5’, ‘6’ and ‘B’. And this process should be repeated until
all four rows are being scanned.
4.0 PROCEDURE
b) Identify the function of CD4511 chip and the advantage(s) of using it in our
circuit.
c) Identify the type of seven-segment being used in this lab? Map the truth table
of the seven- Segment display code for all possible display output.
PART 2: KEYPAD
Kindly critically discuss on the results and findings from this lab activity.
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
6.0 CONCLUSION