Aamc
Aamc
___________
Q.2 (a) Explain flags in ARM. What is the purpose of CPSR and SPSR? 03
(b) What problem will occur with pipeline during branch instruction? 04
How this problem is resolved in ARM ?
(c) Explain following ARM assembly language instructions: 07
(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
OR
(c) Why ARM is not known as pure RISC machine? What are the 07
features selected in ARM from RISC machine and what are the
features not adopted in ARM from RISC machine?
(b) 8 LEDs are connected to port pin P1.16 to 1.23. Write C program 04
to blink (Flash) LED with any amount of delay.
1
(c) Describe how to configure a timer on an ARM microcontroller. 07
Explain how to set the key parameters such as pre-scaler, clock
source and mode of operation.
Q.4 (a) Explain the steps involved in configuring and initializing the ADC 03
module in an ARM microcontroller.
(b) What advantages does the AMBA architecture bring to ARM- 04
based SoC designs? How does it improve system scalability,
modularity, and performance?
(c) What are the advantages and disadvantages of C programming 07
over assembly programming for embedded systems? Explain any
two optimization techniques of C program with help of example
OR
Q.4 (a) Write equivalent assembly language instruction for following “C” 03
statement:
if (z==1) R1=R2+(R3*4)
{ z is Zero flag and R1,R2, R3 are registers }
(b) Explain branch instructions B and BL. What is the difference 04
between B and BL?
(c) Describe the different types of AMBA buses, such as AHB 07
(Advanced High-Performance Bus) and APB (Advanced
Peripheral Bus). How do these buses differ in terms of
functionality and performance?
Q.5 (a) Digital sensor is connected to port pin P0.0 and Buzzer is 03
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) What is virtual memory, and why is it essential in computer 04
systems? Describe the primary purpose it serves in managing
system memory.
(c) Write subroutines to set port pins IOSET() and clear port pins 07
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.
OR
Q.5 (a) Explain ADxCR (Analog to Digital Conversion Control Register) 03
for channel selection, resolution and start of conversion.
(b) Describe the cache hierarchy commonly used in ARM processors, 04
including L1, L2, and L3 caches. How do these levels of cache
differ in terms of capacity, proximity to the CPU ?
(c) Explain the concept of PWM using timers. How can you generate 07
PWM signals for controlling devices such as motors or LEDs
using ARM Microcontroller? What are the registers useful for
PWM programming?
*************