0% found this document useful (0 votes)
77 views

Tutorial 6 PDF

This document contains 6 questions about interfacing examples using the 8051 microcontroller. Question 1 asks about isolated and memory mapped I/O techniques. Question 2 asks about how strobe and acknowledge signals are used for handshaking. Question 3 asks about interfacing a 5x4 keypad to the 8051 using ports P1 and P2 and writing assembly code to debounce keys and identify pressed keys. Question 4 asks about interfacing 3 seven-segment displays to the 8051 using ports P1 and P2 and writing assembly code to display specific digits. Question 5 asks about interfacing an LCD to the 8051 and writing assembly code to incrementally display digits while a button is pressed. Question 6 asks about interfacing

Uploaded by

Lucas Lee
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
77 views

Tutorial 6 PDF

This document contains 6 questions about interfacing examples using the 8051 microcontroller. Question 1 asks about isolated and memory mapped I/O techniques. Question 2 asks about how strobe and acknowledge signals are used for handshaking. Question 3 asks about interfacing a 5x4 keypad to the 8051 using ports P1 and P2 and writing assembly code to debounce keys and identify pressed keys. Question 4 asks about interfacing 3 seven-segment displays to the 8051 using ports P1 and P2 and writing assembly code to display specific digits. Question 5 asks about interfacing an LCD to the 8051 and writing assembly code to incrementally display digits while a button is pressed. Question 6 asks about interfacing

Uploaded by

Lucas Lee
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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