Department of Electronics & Communication, Faculty of Technology, Dharmsinh Desai University, Nadiad 114
DHARMSINH DESAI UNIVERSITY, NADIAD
(Faculty of Technology)
B. E. Sem.VII [EC] Examination
Embedded systems
Date: Time: 3 hours
Day: Marks: 60
_______________________________________________________________________
Instructions: 1. Assume suitable data if necessary.
2. Answer each section in separate answer book.
SECTION I
Q.1 Answer the following. [10]
a) Justify true/ false ARM core is having smaller die size compared to CISC core.
b) Mention registers visible in system mode and user mode.
c) An individual instruction takes three clock cycles to complete, so it has a three-cycle
latency, but the throughput is one instruction per cycle. Justify.
d) Which clocking scheme is implemented in ARM core. What is advantage of that scheme.
e) Draw ARM register bank floor plan.
Q.2. Attempt the following. [10]
a) Draw the sketch of data path activity for The first two (of three) cycles of a branch
instruction. Explain execution of Branch instruction using appropriate example.
b) Interface 10K half words of RAM and 16 K bytes of ROM with ARM7 core. How
processor deals with slower memory?
OR
Q.2. Attempt the following. [10]
a) What are the major components of the minimum data path cycle time. Explain ARM
data path timing (3-stage pipeline) using timing diagram.
b) Classify input /output signals to/from the ARM7TDMI core in terms of Address, Data and
Control signals.. Write significance of all signals in detail.
Q.3. Attempt the following. [10]
a) Draw and explain in detail ARM control logic structure. What type of control signals are
generated by this structure?
Department of Electronics & Communication, Faculty of Technology, Dharmsinh Desai University, Nadiad 115
b) How VIC controller of LPC2368 generates FIQ or IRQ signals to ARM core? How
address of interrupt service routine is provided to ARM core when one of the thirty two
sources which are configured as IRQ is asserted?
OR
Q.3. Attempt the following. [10]
a) How barrel shifter is designed? What is the maximum number of bits that can be rotated
in single cycle in ARM7 core? Explain working of barrel shifter using left shift by two.
b) Draw timing diagram of Nonsequential memory cycle for 32 bit write operation. How
it differs from merged IS cycle?
SECTION II
Q.4. Answer following.
1. Serial peripheral interface is,
(i) full duplex & synchronous (ii) full duplex & asynchronous (iii) half duplex & asynchronous
(iv) half duplex & asynchronous [01]
2. In serial peripheral interface, during one data transfer the master can send,
(i) only a byte of data to the slave (ii) any byte of data to the slave
(iii) less than a byte of data to the slave (iv) 8-16 bit of data to the slave [01]
3. Find out the hexadecimal representation of 21.50 using IEEE 754 single precision standard.
[02]
4. Find out hexadecimal values of register R4 and R5 after executing given program.
MOV R2, #16
MOV R3, #0x10
CMP R3,R2
ADDLE R4, R2, R3
SUBGT R5, R2, R3 [02]
5. Explain pros & cons of Serial Peripheral Interface. [02]
6. Explain any four conditional branch instructions. [02]
Q.5 Attempt the following. [10]
1. Write an arm assembly program to load given eight decimal values sequentially in the
memory in arm state. Memory location starts from 0x50000000 & values are: 65434, 332, 54, 1,
64101, 02, 33. After loading data into memory, add all values and put result into register R2 &
average of all values in register R3. Do these two operations in the thumb state and after
completion of the task, return to arm state. Write comment for each instruction. Also write values
of R2 & R3.
OR
Q.5 Attempt the following. [10]
1. Explain different multiply instructions of ARM assembly language.
2. Explain co-processor data transfer & data operation instructions.
Department of Electronics & Communication, Faculty of Technology, Dharmsinh Desai University, Nadiad 116
Q.6 Attempt the following. [10]
1. Explain different exception conditions of serial peripheral interface (SPI).
2.Mention the changes in different registers and memory location (if any) after executing
following ARM assembly instructions:
(i) STMDA r9!, {r0, r4, r6} (ii) LDMIB r11, {r1, r5, r8, r9} (iii) LDMFD r10!, {r1 r5}
OR
Q.6 Attempt the following. [10]
1. Explain all steps to configure SPI in master operation to transfer one byte data to slave. Take
necessary actions to make SPI ready for next data transfer.
2. Write an ARM assembly language program to find out minimum number from data given in
register r0 to r8.
____________________________________________________________________________
DHARMSINH DESAI UNIVERSITY, NADIAD.
(Faculty of Technology)
B. E. (EC), Sem-VII Embedded System
Third Sessional Examination
Date: 16/10/2008 Seat No:
Time : 12:00-1:00 Max. Marks: 36
Q.1 Do as directed: [12]
1. How the performance improvement of the ARM processor core is achieved?
2. Draw the standard ARM C program address space model & explain each part of the
model.
3. Justify ARM 7 core is biendian
4. How bits are stored and retrieved in ARM6 register cell circuit?
5. Justify true/false with suitable reason 2-phase non-overlapping clock
Scheme avoids racing problems
6. What are the sources of address to address multiplexer? Draw ARM address register
structure.
Q.2
1. Using Serial Peripheral Interface, master wants to transfer one byte data to slave.
Explain the procedure such that peripheral is ready for another data transfer in
future. [03]
2. Write down the steps to recover from given exception conditions in Serial
Peripheral Interface.
(i) SPI internal read buffer contains data that has not been read by the processor,
and a new transfer is completed.
(ii) Data is written in the SPI data register when a SPI data transfer is currently in
progress. [03]
3. Find out the value; which uses IEEE 754 single precision standard in keil Vision
Department of Electronics & Communication, Faculty of Technology, Dharmsinh Desai University, Nadiad 117
real-view debugger, and; will give answer as C13C0000 in hexadecimal format.
[03]
4. Explain the different ways to access the operand in ARM if ARM gives architectural
support for high-level languages. [03]
-------------- OR -------------
Q.2
1. Find out the maximum speed that can be achieved in Serial Peripheral Interface using
external 12 MHz crystal & considering minimum value of the frequency of the
SYSCLK. Write & explain each step. [06]
2. Write the code for if-else conditional statement and for & do-while loops in
ARM assembly language as ARM gives architectural support for high-level
languages. [06]
Q. 3. [12]
1. Explain with suitable diagram Data processing instruction data path activity
for i) register-register operations and ii) register- immediate operations.
2. How cross-bar switch barrel shifter can shift 32 bits within single cycle? Explain
the principle of barrel shifter with example of left shift by 3.
-------------- OR -------------
Q.3 [12]
1. What are the design protocol for Advanced System Bus with respect to Bus
arbitration and bus transfers . Show how ARM7 is deploying these protocols
in its design.
2. Write all the steps taken by ARM 7 core when SWI XX instruction is executed.
Write program segment which identifies the number of SWI instruction.