0% found this document useful (0 votes)
17 views1 page

VIT Microprocessor Lab Assignment Guide

The document outlines an assignment for the Microprocessors and Microcontrollers Lab at Vellore Institute of Technology, detailing five programming tasks. These tasks include adding decimal numbers, adding multi-byte BCD numbers, developing assembly code for a digital circuit, checking for palindromes in a string, and summing even numbers from specified memory locations. The assignment is prepared by Dr. Henridass A.

Uploaded by

Rachneet Kaur
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views1 page

VIT Microprocessor Lab Assignment Guide

The document outlines an assignment for the Microprocessors and Microcontrollers Lab at Vellore Institute of Technology, detailing five programming tasks. These tasks include adding decimal numbers, adding multi-byte BCD numbers, developing assembly code for a digital circuit, checking for palindromes in a string, and summing even numbers from specified memory locations. The assignment is prepared by Dr. Henridass A.

Uploaded by

Rachneet Kaur
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Vellore Institute of Technology

School of Electronics Engineering


BECE204P Microprocessors and Microcontrollers Lab
Assignment-1
1. Write a program to add 5 decimal numbers and store the result in register R2 and R3.
The numbers are stored in ROM space starting at 300H.
Sample Data: 40, 28, 35, 79, 99.

2. Write a program to add two multi-byte BCD numbers together and store the result in
RAM locations 100H onwards. The two multi-byte items are stored in the ROM space
starting at 200H and 250H. See the following example data.
Sample Data: Number A: 2446366598D
Number B: 9356463778D

3. Develop an assembly code for 8051 Microcontroller, to implement the given digital
circuit using KEIL development tool.

4. Write an Assembly Language Programming (ALP) to check if a string is a


palindrome or not. (Min String size is 5). If palindrome R0=1 else R0=0.

5. Develop an ALP of 8051 to find the sum of Even numbers stored from the data memory
locations starting at 50H. Store the result in R5 and R6 registers. (Perform addition of
even numbers only)
Sample Data: 50H, 27H, A0H, B3H, C5H, 34H, 80H, 97H, E0H, F1;

Prepared by
Dr. Henridass A
AP/SENSE/ VIT-Vellore.

You might also like