You are on page 1of 1

ECP2036MicroprocessorSystemsandInterfacing Tutorial6

TUTORIAL 6

THE 8051 INTERFACING EXAMPLES

Q1.
Define isolated and memory mapped I/O technique.

Q2.
Describe how strobe and acknowledge is used for handshaking.

Q3.
A keypad with 20 keys (arranged in 5 rows x 4 columns) is to be interfaced to an 8051
micro-controller.
- Draw the diagram showing the interface using P1 (LSB) for columns and P2
(LSB) for rows.
- Write necessary assembly language routines to:
- De bounce the key pressed and key released
- Identify the pressed key and find the code with C=1

Q4.
Three common cathode seven segment displays are to be interfaced to an 8051 micro-
controller.
- Draw the diagram showing the interface using P1 as digit driver and P2 as
segment driver
- Write necessary assembly language program to display digits 5, 4, and 3,
starting from the rightmost position. (use common cathode LED)

Q5.
An LCD (2 lines and 5×7 matrix) is interfaced to an 8051. Write necessary assembly
language program to incrementally and repeatedly display numerical digits from “0” to
“9” on LCD at line 1, position 6 (address 86H) with checking busy flag (D7 of LCD)
while a button connected to P3.0 is pressed (P3.0 = 0).

Q6.
With a D/A converter connected to P1 of an 8051 micro-controller and the following
program executed, find:
- Expression of the frequency of the output signal in terms of value in R0
- Frequency of the output signal
- The value of R0 for an output frequency of 15.66KHz

MOV R0, #04H


MOV A, #00H
REPEAT: MOV P1, A
ADD A, R0
SJMP REPEAT

(End)

2014 Multimedia University Page 1 of 1

You might also like