Gujarat Technological University
Gujarat Technological University
___________
Q.3 (a) Write assembly language program to (1) shift left R1 by 32 and (2) 03
logical shift right R2 by 8 (3) Add both result in R3.
Assume R1=0x34, R2 = 0x53A0,
What will be content of R1, R2 and R3 after executing the code.
(b) Describe following instructions with suitable example. 04
(1) LDMIA R1, {R2-R10}
(2) LDMDB R1!, {R2-R10}
(c) Describe Thumb mode in ARM processor. Differentiate ARM mode 07
and Thumb Mode. How to switch from/to Thumb mode to/from ARM
mode?
1
Q.4 (a) What is MMU? Enlist merits and demerits of MMU. 03
(b) Describe following assembler directives: 04
AREA, DCD, ADR, ENTRY
(c) Sketch circuit diagram of LCD interfacing with LPC2148. Write C- 07
program to display “MICROCONTROLLER” on first line of LCD.
OR
Q.4 (a) Enlist main control components of ARM MMU. 03
(b) Write assembly language instruction for following operations: 04
if(R0 < (R5+R7))
{
R1 = R1 + R2*8
R3 = R3 – R1*16
}
(c) Sketch circuit diagram to interface following devices with LPC2148. 07
(1) Eight LEDs at P1.0 to P1.7
(2) single switch (SW1) at P1.16
(3) Single relay (R1) at P1.20
*************