Don Bosco Institute of Technology,
Bangalore
(NAAC Accredited Institution)
Department of Electrical and Electronics
Engineering
(Accredited by NBA)
EEE Course: Microcontroller( Question Bank IAT2)
Sem-IV Course Coordinator: Dr. Jyoti M Roogi Date:22/04/20
25
Module
3&4
Q.N Questions C RB MAR
O. O T KS
1 Explain using CALL and RET with an example. 3
2 Explain data types of 8051C with example and data size. 3
3 Explain logical operation in C with an example. 3
4 Explain the characteristics and operation of mode1. 3
5 Explain TMOD register with neat diagram. 3,4
6 Explain TCON register with neat diagram. 3
,4
7 Write the programs in 8051C for the following 3,4
Write an 8051 C program to toggle all the bits of P1
continuously with a 250 ms.
Write an 8051 C program to toggle bits of P1 ports
continuously
Write an 8051 C program to get a byte of data form P1,
wait ½ second, and then send it to P2.
Write an 8051 C program to get a byte of data form P0. If it is
less than 100, send it to P1; otherwise, send it to P2.
8 Write an 8051 C program to convert packed BCD 0x29 to ASCII and 3,4
display the bytes on P1 and P2.
9 Write an 8051 C program to convert ASCII digits of ‘4’ and ‘7’ to 3,4
packed BCD and display them on P1.
10 Write a C program to send out the value 44H serially one bit at a 3,4
time via P1.0. The LSB should go out first.
11 Write a C program to bring in a byte of data serially one bit at a time 3,4
via P1.0. The MSB should come in first.
12 Explain the characteristics and operation of mode2. 3,4
13 Generate square wave with XTAL = 11.0592 MHz, of 2K kHz 3,4
frequency on pin P1.5 using 8051C
14 Write an 8051 C program to toggle all the bits of P0, P1, and P2 3,4
continuously with a 250 ms delay. Use the sfr keyword to declare the
port addresses.
15 Write an 8051 C program to toggle all the bits of P0 and P2 3,4
Continuously with a 250 ms delay. Using the inverting and
Ex-OR operators.
16 Generate square wave with XTAL = 11.0592 MHz, of 50 kHz 3,4
frequency on pin P1.5 using 8051C