Gujarat Technological UniversitySummer 2024 examination

GTU 3151107 Advance Microcontroller Summer 2024 Question Paper & PDF

B.E. · EC Engineering · Semester 5 · Subject code 3151107
Download official PDFView PDF here
Share with your class
Total
70 marks
To pass
23 marks (33%)
Duration
2.5 Hours 2:30 PM – 5:00 PM
Questions
5 with internal choice
No solutions on this paper yetNeed them for your exam? Ask once. Papers that students ask for are solved first, and we aim to add them within 24 hours.

Q.1

14 Marks
(a)
3 marks

What is interrupt latency? How FIQ interrupt latency is reduced in ARM Microcontroller?

(b)
4 marks

For what type of applications ARM is preferred over AVR microcontroller? What is advantage of 32-bit processor over 8-bit processor?

(c)
7 marks

Explain ARM Architecture and Programming model. What are the special purpose registers? Explain importance of barrel shifter with example.

Q.2

14 Marks
(a)
3 marks
Explain flags in ARM. What is the purpose of CPSR and SPSR?
(b)
4 marks

What problem will occur with pipeline during branch instruction? How this problem is resolved in ARM ?

(c)
7 marks
Explain following ARM assembly language instructions:
1)LDR R1,[R2,#8]
2)LDRB R1,[R0],#1
3)TST R1,R2
4)LDMIA R0!, {R1-R3}
5)CMN R1,R2
6)ASR
7)BX
(c)
7 marks

Why ARM is not known as pure RISC machine? What are the features selected in ARM from RISC machine and what are the features not adopted in ARM from RISC machine?

Q.3

14 Marks
(a)
3 marks

What will be content of register R1 after executing following instruction. (Assume initial content of R1=0xFAFAFAFA and R2=0x55555555) BIC R1,R1,R2

(b)
4 marks

Discuss how to toggle the state of GPIO port pin P1.0. Explain the use of bitwise XOR (exclusive OR) to change the state of the pin. Write C program for toggling the P1.0 pin's state to generate square wave with highest frequency.

(c)
7 marks

What are the exceptions and interrupts in ARM ? How exception handling done?

(a)
3 marks

What will be content of register R3 and R4 after executing following instructions ? MOV R1,#0x11 MOV R2,#0x44 ORR R3,R2,#0xAA AND R4,R1,R2

(b)
4 marks

8 LEDs are connected to port pin P1.16 to 1.23. Write C program to blink (Flash) LED with any amount of delay.

(c)
7 marks
Describe how to configure a timer on an ARM microcontroller.

Explain how to set the key parameters such as pre-scaler, clock source and mode of operation.

Q.4

14 Marks
(a)
3 marks

Explain the steps involved in configuring and initializing the ADC module in an ARM microcontroller.

(b)
4 marks

What advantages does the AMBA architecture bring to ARM- based SoC designs? How does it improve system scalability, modularity, and performance?

(c)
7 marks

What are the advantages and disadvantages of C programming over assembly programming for embedded systems? Explain any two optimization techniques of C program with help of example

(a)
3 marks

Write equivalent assembly language instruction for following “C” statement: if (z==1) R1=R2+(R3*4) { z is Zero flag and R1,R2, R3 are registers }

(b)
4 marks

Explain branch instructions B and BL. What is the difference between B and BL?

(c)
7 marks

Describe the different types of AMBA buses, such as AHB (Advanced High-Performance Bus) and APB (Advanced Peripheral Bus). How do these buses differ in terms of functionality and performance?

Q.5

14 Marks
(a)
3 marks

Digital sensor is connected to port pin P0.0 and Buzzer is connected to port pin P1.0. Write C Program to sound buzzer when digital sensor provides logic 1 and mute buzzer when digital sensor provides logic 0.

(b)
4 marks

What is virtual memory, and why is it essential in computer systems? Describe the primary purpose it serves in managing system memory.

(c)
7 marks

Write subroutines to set port pins IOSET() and clear port pins IOCLR() where pin number can be specified in argument in these subroutines. Write main program to set port pin P1.6 and clear port pin P1.4 using these subroutines.

(a)
3 marks

Explain ADxCR (Analog to Digital Conversion Control Register) for channel selection, resolution and start of conversion.

(b)
4 marks

Describe the cache hierarchy commonly used in ARM processors, including L1, L2, and L3 caches. How do these levels of cache differ in terms of capacity, proximity to the CPU ?

(c)
7 marks

Explain the concept of PWM using timers. How can you generate PWM signals for controlling devices such as motors or LEDs using ARM Microcontroller? What are the registers useful for PWM programming?

More Advance Microcontroller papers

Questions repeat across sessions. Working through two or three papers shows you which topics GTU asks most.

Preparing with friends?

Send this paper to your class group. Every question has its own link.

About this paper

Official Gujarat Technological University (GTU) examination paper for Advance Microcontroller (Summer 2024, B.E. · EC Engineering, Sem 5). Features complete 70-mark regular & remedial examination pattern, official marking distribution across all 5 questions, and direct 1-click official PDF download.

Transcribed for student exam preparation from Gujarat Technological University official examination archives. Questions, syllabus guidelines, and curriculum marking schemes remain the intellectual property of Gujarat Technological University.

ViewDownload PDF