Question Bank CAM - Module 3

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

Question Bank – Module 3

1. With a neat diagram explain how a stepper motor can be interfaced with 8051.
(Please refer: clock wise and counter clock wise rotation programs)
2. Using a schematic diagram explain the procedure of interfacing KEYBOARD to 8051
microcontroller.
3. With a neat diagram, explain how a DAC 0808 can be interfaced with 8051.
(Please refer: waveform generation programs)
4. What is Seven Segment Display? Discuss interfacing of seven segment display with
8051 microcontroller.
5. Explain how ADC is interfaced with 8051.
6. Draw the schematic to connect an LED to the P1.0 and develop a program to blink
the LED continuously.
7. With a neat diagram explain how a LCD module can be interfaced with 8051.

ALP Questions
1. Write an 8051assembly language program to add two 8 bit numbers stored in

TRACE KTU
external RAM memory.

2. Write an ALP to find square of an eight bit number.

3. Write an ALP to sort N number in ascending order. Assume that the numbers are

stored in continuous locations starting from 0x4320 onwards. [ if N = 10, then

location : 4320H to 4329H]

4. Write an 8051 assembly language program to find the largest value from ten

numbers stored in memory locations 30H to 39H. Comment all lines of the program.

C Program Questions

1. Write an 8051 C program to send values 00 to FF to port P1.


2. Write an embedded C Program to convert BCD to ASCII.

3. Write an embedded C Program to convert ASCII to BCD.

4. Write an 80851 C program to toggle all the bits of port 1 continuously without any

delay.
5. Write an 80851 C program to toggle all the bits of port 1 continuously with a 250 ms

delay.

C Program Questions (Additional Questions from Model Question Paper)

1. Write an embedded C program for 8051 microcontroller to blink P2.5 every 2


seconds.
2. Write an embedded c program to toggle all the bits of P2 continuously every 500 ms.

Use timer 1, mode 1 to create the delay.

3. Write an embedded C program for 8051 microcontroller to repeatedly display the

sequence 1,5,8,0,2,6,4,9,3,7 using a 7 segment display with a delay of 1.5 second

between each number.

4. Write an embedded C program for 8051 microcontroller to continuously rotate a


stepper motor clock wise.
5. Write an 8051 C code to convert the analog input provided to ADC chip to the digital

value and store the result in memory location.

TRACE KTU
6. Write an embedded C program for 8051 microcontroller to read an analogue signal

from an ADC and reproduce the same using a DAC.

You might also like