0% found this document useful (0 votes)
6 views5 pages

MC Lab Questions

The document is a question bank for a Microcontroller Lab (BECL456A) containing various assembly language programs (ALP) and C programs for the 8051 microcontroller. It includes tasks such as data movement, counters, arithmetic operations, sorting, and waveform generation, along with specific memory addressing techniques. Each question typically consists of two parts: an ALP and a corresponding 8051 C program.

Uploaded by

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

MC Lab Questions

The document is a question bank for a Microcontroller Lab (BECL456A) containing various assembly language programs (ALP) and C programs for the 8051 microcontroller. It includes tasks such as data movement, counters, arithmetic operations, sorting, and waveform generation, along with specific memory addressing techniques. Each question typically consists of two parts: an ALP and a corresponding 8051 C program.

Uploaded by

meghanabnaik2000
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

MICROCONTROLLER LAB QUESTION BANK

(BECL456A)

1. a) Write an ALP to move a block of n bytes of data from source (2000h)


to destination (2050h) using external RAM.
b) Write an ALP for decimal DOWN- Counter.

2. a) 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).
b) Write an ALP for Hexadecimal UP- Counter.

3. a) Write an ALP to exchange the source block starting with address 10h,
(Internal memory), containing N (06) bytes of data with destination
block starting with address 2000h (External memory).
b) Write an ALP for Hexadecimal DOWN- Counter.

4. a) Write an ALP to add the bytes in the RAM at 34h and 35h, store the
result in the register R5 (LSB) and R6 (MSB), using Indirect
Addressing Mode.
b) Write an 8051 C program to find the sum of first 10 integer numbers.

5. a) Write an ALP to subtract the bytes in the Internal RAM at 34h and
35h, store the result in the register R5 (LSB) and R6 (MSB).
b) Write an 8051 C program to find the factorial of a given number.

6. a) Write an ALP to arrange the numbers in Ascending order.


b) Write an 8051 C program to find the square of a number (1 to 10)
using Look-Up Table.

7. a) Write an ALP to find largest number from a given array starting from
20h and store it in Internal Memory location 40h.
b) Write an ALP to multiply two 8-bit numbers stored at 30h and 31h and
store 16-bit result in 32h and 33h of Internal RAM.
8. a) Write a 8051 C Program to rotate stepper motor in Clock and Anti-
Clockwise direction.
b) Write an ALP to perform to separate positive and negative in a given
array.

9. a) Write a 8051 C Program to rotate stepper motor in Clock and Anti-


Clockwise direction.
b) Write an ALP to multiply two 8-bit numbers stored at 30h and 31h and
store 16-bit result in 32h and 33h of Internal RAM.

10. a) Write a 8051 C Program to rotate stepper motor in Clock and Anti-
Clockwise direction.
b) Write an ALP to perform division operation on 8-bit number by 8-bit
number.

11. a) Write a 8051 C Program to rotate stepper motor in Clock and Anti-
Clockwise direction.
b) Write an ALP to separate even or odd elements in a given array.

12.a) Write a 8051 C Program to generate sine waveforms using


DAC interface.
b) Write an ALP to separate even or odd elements in a given array.
13.a) Write a 8051 C Program to generate square waveform using
DAC interface.
b) Write an ALP to multiply two 8-bit numbers stored at 30h and 31h and
store 16-bit result in 32h and 33h of internal RAM.

14.a) Write a 8051 C Program to generate square waveform using


DAC interface.
b) Write an ALP to perform division operation on 8-bit number by 8-bit
number.

15.a) Write a 8051 C Program to generate sine waveform using DAC


interface.
b) Write an ALP to separate positive and negative in a given array.

16.a) Write a 8051 C Program to generate square waveform using DAC


interface.
b) Write an 8051 C program to find the sum of first 10 integer numbers.

17.a) Write an ALP to find largest number from a given array starting from
20h and store it in Internal memory location 40h.
b) Write an 8051 C program to find the sum of first 10 integer numbers.

18.a) Write an ALP to move a block of n bytes of data from source (20h) to
destination (40h) sing internal RAM.
b) Write an 8051 C program to find the sum of first 10 integer numbers.

19.a) Write an ALP to move a block of n bytes of data from source (20h) to
destination (40h) sing internal RAM.
b) Write an 8051 C program to count the number of Ones and Zeros in
two consecutive memory locations.
20. a) Write an ALP to move a block of n bytes of data from source (20h) to
destination (40h) using internal RAM.

b) Write an ALP for decimal UP- Counter.

21.a) Write an ALP to arrange the numbers in Descending order.


b) Write an 8051 C program to find the square of a number (1 to 10)
using Look-Up Table.
22.a) Write an ALP to find Largest number from a given array starting from
20h and store it in Internal Memory location 40h.
b) Write an 8051 C program to count the number of Ones and Zeros in
two consecutive memory locations.

23.) Write an ALP to find smallest number from a given array starting from
20h and store it in Internal Memory location 40h.
b) Write an ALP to perform division operation on 8-bit number by 8-bit
number.
24.a) Write an ALP to multiply two 8-bit numbers stored at 30h and 31h and
store 16-bit result in 32h and 33h of Internal RAM.
b) Write an 8051 C program to count the number of Ones and Zeros in
two consecutive memory locations.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy