Microcontrollers Lab
Course Code BECL456A
CIE Marks 50
Teaching Hours/Week(L:T:P) 0:0:2
SEE Marks 50
Credits 01
Total Marks 100
Exam Hours 2
Examination type(SEE) Practical
I. Assembly Language Programming
Data Transfer Programs:
1 Write an ALP to move a block of n bytes of data from source (20h) to destination (40h) using
Internal-RAM.
2 Write an ALP to move a block of n bytes of data from source (2000h) to destination (2050h) using
External RAM.
3 Write an ALP To exchange the source block starting with address 20h, (Internal RAM) containing
N (05) bytes of data with destination block starting with address 40h (Internal RAM).
4 Write an ALP to exchange the source block starting with address 10h (Internal memory), containing
n (06) bytes of data with destination block starting at location 00h (External memory).
Arithmetic & Logical Operation Programs:
5Write an ALP to add the byte in the RAM at 34h and 35h, store the result in the register R5 (LSB)
and R6 (MSB), using Indirect Addressing Mode.
6 Write an ALP to subtract the bytes in Internal RAM 34h &35h store the result in register R5 (LSB)
& R6 (MSB).
7 Write an ALP to multiply two 8-bit numbers stored at 30h and 31h and store16- bit result in 32h and
33h of Internal RAM.
8 Write an ALP to perform division operation on 8-bit number by 8-bit number.
9 Write an ALP to separate positive and negative in a given array.
10 Write an ALP to separate even or odd elements in a given array.
11 Write an ALP to arrange the numbers in Ascending & Descending order.
12 Write an ALP to find Largest & Smallest number from a given array starting from 20h & store it in
Internal Memory location 40h.
Counter Operation Programs:
13 Write an ALP for Decimal UP-Counter.
14 Write an ALP for Decimal DOWN-Counter.
15 Write an ALP for Hexadecimal UP-Counter.
16 Write an ALP for Hexadecimal DOWN-Counter.
II. C Programming
1 Write an 8051 C program to find the sum of first 10 Integer Numbers.
2 Write an 8051 C program to find Factorial of a given number.
3 Write an 8051 C program to find the Square of a number (1 to 10) using Look-Up Table.
4 Write an 8051 C program to count the number of Ones and Zeros in two consecutive memory
locations.
III. Hardware Interfacing Programs
1 Write an 8051 C Program to rotate stepper motor in Clock & Anti-Clockwise direction.
2 Write an 8051 C program to Generate Sine & Square waveforms using DAC interface.
Suggested Learning Resources:
“The 8051 Microcontroller: Hardware, Software and Applications” ,V Udayashankara and M S
Mallikarjuna Swamy, McGraw Hill Education,1st edition,2017.
0 Comments