Académique Documents
Professionnel Documents
Culture Documents
April/May - 2012
S.1
Set-1
Solutions
EMBEDDED SYSTEMS
( Information Technology)
Time: 3 Hours
Max. Marks: 75
Answer any FIVE Questions
All Questions carry equal marks
---
1.
2.
3.
(a)
Develop a requirement description and specification of a handheld robot controller. (Unit-I, Topic No. 1.4)
(b)
Explain the characteristics of embedded computing applications. [10+5] (Unit-I, Topic No. 1.1)
(a)
(b)
Explain the mode 0 and mode 1 operation of timer 0. [7+8] (Unit-II, Topic No. 2.4)
(a)
Discuss about assembly language programming, assembler and flow chart with suitable examples.
(a)
Write a program to add ten unsigned numbers from internal RAM location and store the result.
Write a program that will use the timer1 to interrupt the program after a delay of 2 m/sec. Write an interrupt
service routine to find the average of five numbers. [7+8] (Unit-IV, Topic No. 4.4)
5.
Develop a program to interface a matrix keyboard to 8051. Draw the interface circuit. [15] (Unit-V, Topic No. 5.1)
6.
(a)
Discuss briefly about semaphores and shared data problem. (Unit-VI, Topic No. 6.3)
(b)
(a)
Discuss briefly about design of underground tank monitoring system. (Unit-VII, Topic No. 7.1)
(b)
Explain about linker/locator for embedded software. [7+8] (Unit-VII, Topic No. 7.7)
7.
8.
Discuss about networks for embedded system. [15] (Unit-VIII, Topic No. 8.2)
( JNTU-Hyderabad )
S.2
(a)
(b)
Answer :
(a)
Answer :
Port Configuration of 8051
Answer :
(a)
Answer :
( JNTU-Hyderabad )
S.3
Answer :
(i)
Exchange the Contents of SP and PSW
Program
ORG
OOH
MOV PSW, # OE 2H
MOV SP, #03 EH
XCH A, PSW
XCH A, SP
SJMP S
(ii)
Set Timer 1 to A23Dh
Program
MOV TL1, #3Dh
MOV TH1, #0A2h
(iii) Move the Contents of B Register to TMOD
For answer refer Unit-III, Q16(b).
(iv)
Copy the Contents of DPTR to Registers R0 and R1
Program
MOVDPTR,
#1624 HV
MOV
R0, DPL
MOV
R1, DPH.
Q4. (a) Write a program to add ten unsigned numbers from internal RAM location and store the
result.
Answer :
April/May-12, Set-1, Q4(a) M[7]
Program to Add Ten Unsigned Numbers from Internal RAM Locations
Let the memory location start at 4400:0100H.
Result should be stored at 120H in the same data segment.
MOV AX, 4400H
MOV DS, AX
MOV CX, 0010H
// Initializing the counter with 10
MOV BX, 0100H
// offset.
LOOP:
ADD AL, [BX]
INC BX
DEC CX
JNZ LOOP
MOV [0120], AL .
(b) Write a program that will use the timer 1 to interrupt the program after a delay of 2 m/sec.
Write an interrupt service routine to find the average of five numbers.
Answer :
April/May-12, Set-1, Q4(b) M[8]
Program Using Timer 1 to Interrupt the Program After a Delay of 2 m/sec
MAIN : MOV R6, #2D
LOOP : ACALL DELAY
DJNZ
R6, LOOP
SJMP
MAIN
( JNTU-Hyderabad )
S.4
DELAY : MOV TMOD,
#000000 01B
MOV TH1,
#OFCH
MOV TL1,
#018 H
Q7.
JNB
TF1,
CLR
TR1
CLR
TF1
Answer :
SETB TR1
HERE :
(a)
(b)
HERE
Answer :
RET
Interrupt Service Routine to Find the Average of Five
Numbers
Answer :
Networked Embedded System
Avg_ISR:
XOR AX
XOR BX
XOR CX
MOV AL, 2
ADD AL, 3
PE1
PE2
ADD AL, 4
Processor
DSP
Network
ADD AL, 5
ADD AL, 6
MOV CX, 5
DIV
Q5.
CX.
Answer :
(a)
Answer :
Semaphores
Answer :
Micro
controller
PE3
Sensors
and
actuator
PE4 PE = Processing
Element
( JNTU-Hyderabad )
S.5
There may be some systems that require processing to be done at the place where some event had occurred. For
example, consider an automobile system. The engine control module requires some processing elements to be kept
near the engine. So that they take engine status and perform processing immediately. Later they can send data to
main processor through the network.
Data reduction can be performed using distributed Processing Elements (PEs). Consider a system requires some
signal processing at the site where data is captured. A separate PE can be used to perform signal processing which
reduces the captured data and sends it to main processor for further processing.
( JNTU-Hyderabad )