0% found this document useful (0 votes)
32 views6 pages

Ilovepdf Merged

The document contains examination papers for the Microprocessors and Microcontrollers subject from Gujarat Technological University, covering various topics such as ARM processors, 8051 microcontroller programming, interfacing with peripherals, and assembly language programming. Each question set includes multiple-choice questions, programming tasks, and theoretical explanations, with marks allocated for each part. The exams are structured for different semesters and include practical programming assignments and theoretical concepts.

Uploaded by

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

Ilovepdf Merged

The document contains examination papers for the Microprocessors and Microcontrollers subject from Gujarat Technological University, covering various topics such as ARM processors, 8051 microcontroller programming, interfacing with peripherals, and assembly language programming. Each question set includes multiple-choice questions, programming tasks, and theoretical explanations, with marks allocated for each part. The exams are structured for different semesters and include practical programming assignments and theoretical concepts.

Uploaded by

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

Seat No.: ________ Enrolment No.

___________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE - SEMESTER–VI (NEW) EXAMINATION – SUMMER 2022
Subject Code:3160914 Date:01/06/2022
Subject Name:Microprocessors and Microcontrollers
Time:10:30 AM TO 01:00 PM Total Marks: 70
Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.
4. Simple and non-programmable scientific calculators are allowed.
MARKS
Q.1 (a) List various processing modes of ARM processors with classification. 03
(b) With diagram explain complete ARM register set. 04
(c) A 10 bytes of data string is stored at starting from memory location 40h. 07
Write an assembly language program for 8051 microcontroller to transfer
this data string to memory location starting from 50h in reverse order.

Q.2 (a) Explain the function of following pins in 8085 µp: HLDA & HOLD 03
(b) Illustrate how address/data lines AD0-AD7 are de-multiplexed in 8085 04
µp?
(c) A byte is stored in external memory location 2005H. Write an 8051 µc 07
assembly language program to count number of 0’s and 1’s in. Draw
flowchart.
OR
(c) Draw and explain timing diagram of instruction STA 2000H of 8085 µp. 07

Q.3 (a) Explain 8051 program status word (PSW) register in brief. 03
(b) Discuss various addressing modes of 8051 microcontroller assembly 04
language programming.
(c) Write a 8051 assembly language program to generate a square wave of 07
1.5 kHz frequency at P2.0 using Timer 0 in Mode 1 with crystal frequency
of 12 MHz.
OR
Q.3 (a) Explain editor, assembler, compiler and linker 03
(b) Explain all the bits of TCON register. 04
(c) Explain the Interrupt facility of 8051 microcontroller using IE and IP 07
register. Also mention the internal priority of Interrupt and their vector
locations.

Q.4 (a) Write C program to get bit P1.0 and send it to P2.1 after inverting it. 03
(b) Explain interfacing of DC motor using H-bridge circuit with 8051 04
microcontroller.
(c) Write an 8051 program in embedded C to blink the LED connected to pin 07
P1.5 at a suitable delay interval.
OR
Q.4 (a) C programming is more preferred over assembly programming for 8051 03
µc. Justify your answer with proper reason.
(b) Explain interfacing of 8051 with ADC 0808. 04
(c) What is an assembler directive? Give at least four examples of assembler 07
directives and explain function of each in brief.
1
Q.5 (a) Explain basic differences (1) Van neuman and Harvard architecture (2) 03
CISC and RISC.
(b) How baud rate can be set in 8051 microcontroller for serial 04
communication?
(c) Explain and Differentiate between the following instructions of 8051 07
microcontroller.
(i) SWAP and XCHG (ii) MOVX and MOVC
(iii) Bit level ANL and byte level ANL
OR
Q.5 (a) Explain advantages of IDE in program development. 03
(b) Write a short note on available data types in embedded C. 04
(c) Explain every step of the following program and also calculate the 07
frequency of the square wave generated at the end of program execution.
(assume crystal frequency = 11.0592MHz)
MOV TMOD, #20H
MOV TH1, #4H
SETB TR1
L1 : JNB TF1, L1
BACK: CPL P1.5
CLR TF1
SJMP BACK

*************************

2
Seat No.: ________ Enrolment No.___________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE - SEMESTER– VI (NEW) EXAMINATION – WINTER 2021
Subject Code:3160914 Date:24/11/2021
Subject Name:Microprocessors and Microcontrollers
Time:10:30 AM TO 01:00 PM Total Marks: 70
Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.
4. Simple and non-programmable scientific calculators are allowed.
MARKS
Q.1 (a) Fill in the following blanks: 03
(1) The first operation performed by the microprocessor during
execution of each instruction is _________.
(2) If the memory chip size is (512 x 8), the number of chips required
in making 4K-byte memory is _______.
(3) The addressing mode of MOV A, 30H instruction is ________.
(b) Explain functions of following pins of 8085: 04
(i) IO/M (ii) READY
(c) Draw and explain timing diagram of STA 5000H instruction of 8085. 07

Q.2 (a) With the help of diagram show how de-multiplexing of address/data lines 03
AD0- AD7 can be achieved?
(b) Draw and explain Port-2 architecture of 8051. 04
(c) Write an assembly language program that transfers a set of ten 8-bit 07
numbers stored in external RAM starting from 1000H to internal RAM
starting from 40H. Also, draw flowchart for the program logic.
OR
(c) Draw an interfacing scheme to interface 16K EPROM and 8K RAM 07
with 8031. Also specify address range.
Q.3 (a) Write an output after execution of each of the following set of 03
instructions in sequence:
MOV A, #36H
SWAP A
ANL A, #0FH
MOV P0,A
(b) Explain register banks of 8051. How banks can be selected? 04
(c) Write a subroutine that converts Hex digit into its equivalent ASCII and 07
hence using it write a program to convert an 8-bit Hexadecimal number
available in RAM at 30H into its equivalent ASCII and store the result
in RAM at 40H and 41H.
OR
Q.3 (a) Draw and explain Reset circuit of 8051. 03
(b) Explain addressing modes of 8051 with example. 04
(c) A push button switch is connected with P3.2 pin of 8051 that normally 07
pull the pin high and when pressed, the level on pin become low. Write
a program that makes an emergency alarm connected with P1.0 pin ON
when the switch is pressed. The alarm should automatically goes OFF
after 30 second.

1
Q.4 (a) Explain IE register of 8051. 03
(b) Explain 8051 interrupt’s priority. How the priority can be modified? 04
(c) Write a ‘c’ program that generates a square wave of 1 KHz frequency 07
on P1.0 pin using timer-0 in mode-1. Show timer count calculation.
OR
Q.4 (a) Differentiate between MOVX and MOVC instruction. 03
(b) Draw an interfacing scheme to interface (20X2) LCD display with 8051 04
microcontroller.
(c) Write an embedded ‘C’ program that displays a message “Happy New 07
Year” in line-1 and “2021” in line-2 of LCD display.
Q.5 (a) Explain SCON register of 8051. 03
(b) Draw an interfacing scheme to interface ADC0809 with 8051. 04
(c) Write a program that transmits a message “Happy New Year” using 07
serial mode-1 at 9600 baudrate. Assume oscillator frequency =11.0592
MHz. Show timer count calculation for the specified baudrate.
OR
Q.5 (a) Draw an interfacing scheme to interface 4 x 4 matrix keyboard with 03
8051.
(b) Draw an interfacing scheme to interface 4-digit common cathode seven 04
segment display with 8051.
(c) Using interfacing scheme in part-b, write an embedded ‘C’ program 07
that updates and displays real time second and minute on 4-digit
common cathode seven segment display.

*************

2
Seat No.: ________ Enrolment No.___________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE - SEMESTER–VI(NEW) EXAMINATION – WINTER 2022
Subject Code:3160914 Date:13-12-2022
Subject Name:Microprocessors and Microcontrollers
Time:02:30 PM TO 05:00 PM Total Marks:70
Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.
4. Simple and non-programmable scientific calculators are allowed.
MARKS
Q.1 (a) For 8051 μc operations define: pulse, state and machine cycle. 03
(b) Draw programming model of 8085 microprocessor and explain flag 04
register in brief.
(c) A 10 bytes of data string is stored at starting from memory location 50h. 07
Write an assembly language program for 8051 μc to find out maximum
value from this data string and store that value at register B .

Q.2 (a) What is the function of following pins in 8085: HOLD, READY & 03
RESET OUT
(b) Draw and explain in brief timing diagram for instruction MVI A, 32h. 04
(c) List various processing modes of ARM processors with classification 07
and explain complete ARM register set.
OR
(c) Write assembly language program for 8051 μc to count number of 0’s 07
and 1’s in a byte stored in external memory location C500H. Draw
flowchart.

Q.3 (a) Discuss the internal RAM structure of 8051. 03


(b) Discuss various addressing modes of 8051 microcontroller assembly 04
language programming.
(c) Write a for assembly language program for 8051 μc to toggle all bits at 07
PORT 2 with a time delay of 20 ms without using timers.
OR
Q.3 (a) Explain basic differences (1) Van neuman and Harvard architecture (2) 03
CISC and RISC.
(b) What are tri-state devices & why they are essential in bus oriented 04
system?
(c) Explain the operation of the following instructions of 8051 07
microcontroller in detail:
(i) MOVX (ii) CJNE (iii) DJNZ (iv) XCHD

Q.4 (a) Differentiate between SJMP, AJMP and LJMP for 8051 μc 03
programming.
(b) How baud rate can be set in 8051 microcontroller for serial 04
communication?
(c) Explain the role of SBUF & SCON registers in serial transfer in 8051. 07
OR
Q.4 (a) List out steps in executing an interrupt for 8051 μc. 03
(b) Explain IE register in brief. 04

1
(c) Write a C program using interrupts to make timer 0 to generate a square 07
wave of 5 KHz frequency on P0.1. Assume XTAL =11.0592 MHz.

Q.5 (a) Explain editor, assembler, compiler and linker. 03


(b) What is the normal operating frequency of ADC0804? When interfacing 04
ADC0804 with 8051 μc, what care need to be taken if CLK input is from
8051 μc?
(c) Draw interfacing diagram of 8051 μc to DAC808. For the same 07
connection, consider a switch SW connected to pin P0.1. Write an 8051
μc program: When SW =0, the DAC output gives a staircase waveform
otherwise no action when SW=1.
OR
Q.5 (a) In what way is the ADC0808 is different from ADC0804? 03
(b) Draw interfacing diagram for interfacing of DC motor to 8051 μc using 04
optoisolator and using a MOSFET transistor.
(c) Discuss the interfacing of seven segment display with 8051 with 07
necessary diagram.

*************

You might also like