Professional Documents
Culture Documents
Task1 ECE3003: Microcontoller Lab
Task1 ECE3003: Microcontoller Lab
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.