Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

TASK1

ECE3003: Microcontoller lab


Note:
The report should have the following details,
1. Your register no
2. Name
3. Lab slot.
4. Program
5. Print screen of the entire program simulated using KEIL.
6. Print screen of the result obtained.
(Create a folder with your register number and save the program in that folder.
Don’t crop the print screen of the program and result. I should be able to see the
path of your program taken from your folder with system date and time.)

Program 1:

Load 40H into the stack pointer register. Load 5 data’s (8 bit data) into Bank 2. Push all
the 5 data’s into the stack and retrieve the data from stack to bank 0.

Program 2:

Write a program to find the average age of a group of children in a class. There are 12
Children, ranging in age from 5 to 15 years old. Pick your own data. Notice that you must
first bring the data from ROM space into the CPU's RAM and then add them together. Using
KEIL simulator, Simulate to get the results in BCD.

You might also like