Vous êtes sur la page 1sur 11

UNITED INSTITUTE OF TECHNOLOGY

Periyanaickenpalayam, Coimbatore- 641 020.


INTERNAL ASSESSMENT EXAMINATION-1
FOURTH SEMESTER (2014-2015)

Computer and Science Engineering


EC 6504 MICROPROCESSOR AND MICROCONTROLLER
Time: Three hours Maximum: 100 marks
Answer ALL questions.
PART A (10 2 = 20 marks)
1. What do you mean by Segment override prefix?
2. Compare Macro and Procedure.
3. What is modular programming? Mention any 2 advantages
4. What do you meant by reentrant procedure?
5. What are intrasegment and intersegment jumps?
6. Compare closely coupled configuration features with loosely coupled configuration features
7. What is Semaphore?
8. List any four 8087 data formats.
9. List some of the features of Pentium Processor.
10. Name the signals used by the processor to communicate with an I/O Processor.
PART B (5 16 = 80 marks)
11. (a) Explain the internal hardware architecture of 8086 microprocessor with neat diagram.(16)
(Or)
(b) Explain the various addressing modes of 8086 processor with suitable examples
(16)
12. (a) Explain the 8086 Interrupts in detail.
(16)
(Or)
(b) (i) Explain the data transfer group and logical group of 8086 with instructions with
necessary examples.
(10)
(ii) Write an 8086 ALP to find the sum of numbers in the array of 10 elements.
13. (a). (i) Explain the various assembler directives with suitable examples.
(ii) Write an ALP Program to arrange the elements in an array of 10 elements in
ascending order.
(Or)
(b) Draw the architecture of 8089 I/O processor and explain.
14. (a) Draw the block diagram of 8087 numeric Data processor and explain.
(Or)
(b) Draw the pin diagram of 8086 microprocessor and list the pin details.
15. (a). With a neat block diagram, explain the Pentium architecture and features.
(Or)
(b) (i) Explain the 8086 basic bus cycle timing diagram.
(ii) Discuss briefly the data types supported by 8087 Numeric Data Processor.

Name of the
question paper
setter:
Signature:
Designation &
Dept: AP/ECE

HOD APPROVAL

DEAN APPROVAL

PRINCIPAL
APPROVAL

(6)
(8)
(8)
(16)
(16)
(16)
(16)
(8)
(8)

ANSWER KEY
1. What do you mean by Segment override prefix?
The segment override prefix allows the programmer to deviate from the
default segment. A segment override prefix allows any segment register (DS, ES, SS, or
CS) to be used as the segment when evaluating addresses in an instruction. An override is
made by adding the segment register plus a colon to the beginning of the memory
reference of the instruction as in the following examples:
Mov ax, [es: 60126]
; Use ES as the segment
Mov ax, [cs: bx]
; Use CS as the segment
Mov ax, [ss: bp+si+3]
; Use SS as the segment
2. Compare Macro and Procedure
Macros
Accessed during assembly when name given
to macro is written as an instruction in the
assembly program.
Machine code is generated for instructions
each time a macro is called.
This due to repeated generation of machine
code requires more memory.
Parameters are passed as a part of the
statement in which macro is called.

Procedures
Accessed by CALL and RET instructions during
program execution.
Machine code for instructions is put only once in
the memory.
This as all machine code is defined only once so
less memory is required.
Parameters can be passed in register memory
location or stack.

3. What is modular programming? Mention any 2 advantages.


Generally, an industry-programming project consists of thousand of lines of
instructions or operation codes. Therefore it is difficult to write, debug and test the
project. Thus the complete project is divided into sub-problems or small modules.
This approach is known as modular programming.
Advantages:
Easy to write, debug and test the project.
Codes can be reused.
4. What do you meant by reentrant procedure?
In some situations it may happen that procedure1 is called from main program,
procedure2 is called from procedure1 and procedure1 is again called from procedure2. In
this situation program execution flow reenters in the procedure1. This type of procedures
is called reentrant procedures.

5. What are intrasegment and intersegment jumps?


Intrasegment jumps as the name suggest is a special type of jump in which the
address to which the jump is to be performed is present / lies in the same
code segment from where the jump is performed from. In order to perform this
jump changes just need to be made in the instruction pointer.
Intersegment jumps the jump takes place from one segment to another. In
order to be able to make these kinds of jumps the changes need to be made in both
the code segment and the instruction pointer.
6. Compare closely coupled configuration features with loosely coupled configuration
features.
Closely Coupled System
Tightly Coupled Systems
A multiprocessor system with common A multiprocessor system in which each
shared memory is known as Closely processor has its own private local
coupled systems
memory is known as Loosely coupled
systems.
Here the information can be shared among Here the information can be shared from
the CPUs by placing it in the common one processor to other by message-passing
global memory
system.
Parallelism can be implemented less Parallelism can be implemented more
efficiently
efficiently
7. What is Semaphore?
A hardware or software flag. In multitasking systems, a semaphore is
a variable with a value that indicates the status of a common resource. It's used to lock
the resource that is being used. A process needing the resource checks the semaphore to
determine the resource's status and then decides how to proceed.
8. List any four 8087 data formats.
Binary Integers
Packed Decimal Integers
Real Numbers
Temporary Real Format
9. List some of the features of Pentium Processor.

Superscalar Execution, Super pipelined architecture.


On-chip Floating point.
Branch prediction using BTB.
Wider Data bus width.
Improved Cache.
10. Name the signals used by the processor to communicate with an I/O Processor.
Interrupt Request.
Request/Grant.
Processor Status(S0-S2)
Bus High Enable
Address/Data signal.

PART B (5 16 = 80 marks)
11. (a) Explain the internal hardware architecture of 8086 microprocessor with neat diagram.(16)
Features (2M)
Architecture Diagram (8M)

Bus Interface Unit and Execution Unit (6 M)


(Or)

(b) Explain the various addressing modes of 8086 processor with suitable examples

Register addressing mode (2 M)

Immediate addressing mode (2 M)

Direct addressing mode (2 M)

Register Indirect addressing mode (2 M)

Base-Plus-Index addressing mode (2 M)

Register Relative addressing mode (2 M)

String addressing mode (2 M)

Base Relative Plus Index addressing mode (2 M)


12. (a) Explain the 8086 Interrupts in detail.

Sources of Interrupts.(1 M)

Hardware interrupt( External signal) (1 M)

Special instruction (1 M)

Condition produced by instruction. (1 M)

(16)

(16)

8086 Interrupt types (8 M)


Interrupt Priorities (4 M)

(Or)
(b) (i) Explain the data transfer group and logical group of 8086 with instructions with
necessary examples.
(10)

Data Transfer Group (5 M)


1. MOV instructions, 2. PUSH/POP, 3. Load Effective address 4. String Data
Transfer, 5. Miscellaneous Data Transfer instructions.

Logical Instructions (5 M)
1. AND instructions, 2. OR, 3.XOR, 4.Test and bit test instructions.

(ii) Write an 8086 ALP to find the sum of numbers in the array of 10 elements.
Flowchart: (3 M)

(6)

Program: (3 M)
MOV AL, 00
MOV BL, 01H
MOV CL, [2000H]
L1: ADD AL, BL
INC BL
LOOP L1
MOV [3000H], AL
HLT
13. (a). (i) Explain the various assembler directives with suitable examples.
ASSUME, DD, DW,DQ,DT,DUP, EQU, EVEN, EXTERN, END,MACRO,
ENDM,PROC,ENDP,SEGMENT, ENDS,PUBLIC,.MODEL,,LABEL
(ii) Write an ALP Program to arrange the elements in an array of 10 elements in
ascending order.
MOV SI, 2000
MOV CL, [SI]
DEC CL
REPEAT:
MOV SI, 2000
MOV CH, [SI]
DEC CH
INC SI
RECMP:
MOV AL, [SI]
INC SI
CMP AL, [SI]
JC: AHEAD
XCHG AL, [SI]
XCHG AL, [SI-1]

(8)

(8)

AHEAD:
JNZ:
JNZ:

DEC CH
RECMP
DEC CL
REPEAT
HLT

(Or)
(b) Draw the architecture of 8089 I/O processor and explain.
Features (2 M)
I/O Handled by processor, IOP (4 M)

Architecture of 8089 Diagram (6 M)

(16)

Channel registers, Addressing Memory operands, DMA operation (4 M)


14. (a) Draw the block diagram of 8087 numeric Data processor and explain.
Features (2 M)
Architecture Diagram (6 M)

(16)

Instruction Queue (2 M)
Data Registers (2 M)
Status Registers (2 M)
Control Register(2 M)

(Or)
(b) Draw the pin diagram of 8086 microprocessor and list the pin details.
Pin diagram (8 M)
Pin Descriptions and functions (8 M)

(16)

15. (a).With a neat block diagram, explain the Pentium architecture and features.

Features of Pentium Processor (2 M)

Architecture diagram (8 M)

(16)


Bus unit, Code cache, Prefetcher, Instruction decode & Control unit, ALU, Cache,
Paging and Floating point unit (8 M)
(Or)
(b) (i) Explain the 8086 basic bus cycle timing diagram. (8)
Read operation (4 M)

Write Operation (4 M)

(ii) Discuss briefly the data types supported by 8087 Numeric Data Processor.

Real or Floating Point Data Formats (3 M)

Integer Data Format (3 M)

Packed BCD Data Format (2 M)

(8)

Vous aimerez peut-être aussi