CSE 331 - Final - Assignment - v2
CSE 331 - Final - Assignment - v2
Name:
Student ID and section:
Answer All
The LED array connected to Port A will light up if the input string is a Palindrome
Hints: Use LEA, SI and DI to access and compare the input and reversed strings
(i) Move string instructions are used to copy an array from one location to another location
(ii) There are two 8 bit timers in 8051 microcontroller
(iii) Timers can only be used for creating delay loops but not for counting
(iv) The MOVSB instruction tells the assembler to be movedstring as words; the MOVSW
implies the string is to be moved as bytes.
(v) CMPSB compares two bytes in given addresses and sets the flag accordingly
(a) Explain how to access and configure individual bit as input for 8051 application.
[2.5+2.5]
(b) Consider the following 8051 interfacing problem. Crystal frequency: 11.059MHz.The
relay coil is to be energized at an interval of 10 ms.Use timerroutine to implement the
operation. [1+1+1+1+1]
(b)Consider the following 8051 interfacing problem. Crystal frequency: 11.059MHz. The LED
D8 will light up with every key press as shown below. [1+1+1+1+1]