You are on page 1of 24

Complete Solved Tutorial based on Class Lecture notes.

There
may be some intentional mistakes / bugs which students are
expected to correct by mostly referring Class lecture notes.
Q1A :by entering into microprocessor age , narrate the history of microprocessor
evolution and revolution your own words . While going through this evolution and
revolution, compare:
- Word length -clock speed -addressing range - number of transistors
major application- execution speed in terms of MIPS and cache memory for the
following microprocessors:
Answer:
Word
Clock speed
Addressing
Number of transistor
length
Range
Intel 4004
4 bit
1MHZ
4 byte
2,300
Intel 8080
8 bit
1MHZ
64KB
150,000
Motorola 6800
8 bit
1MHZ
64KB
150,000
Intel 8086
16 bit
4.47-10MHZ
1MB
30,000
Pentium with MMX
32 bit
66-200MHZ
MB
1900000
Pentium III xeon
64 bit
600MHZ
MB
>3,000,000
Pentium IV
64 bit
2.3GHZ
MB
>3,000,000
Major appl.
Intel 4004
Intel 8080
Motorola 6800
Intel 8086
Pentium with MMX
Pentium III xeon
Pentium IV

Power tool controllers , simple


controller and computer
peripheral
Toys ,video games,
programmable robots, video
display, printer
Personal computer,
telephone ,TV.
Networking/servers and pc
Networking and server
computer
Personal computer and
networking
Video conferencing

Execution speed
in terms of MIPS
50 KIPS

Cache memory

MIPS

16KB

MIPS

8 KB

2.5MIPS
MIPS

16KB
16KB

MIPS

512KB, 1MB

MIPS

512KB,1MB

8 KB

Q1 B : what is the key characteristic that differentiates an 8-bit microprocessor from a


16-bit microprocessor? What other differences typically exit between the two classes that
are not specifically related to word size ?
Answer:
8-bit microprocessor:
Word size is 8-bit, that can address up to 64k, and its compatible with
TTL, the first 8-bit p is 8008.
16-bit microprocessor:
word size of 16-bit p is 16-bit, it can address up to 1MB
(1024K),its faster than 8-bit p, speed of 60 to 233 MHz, 16-KB Cache Memory (8 k for
instruction +8k for data), it has more instruction than 8-bit p. the first 16-bit p
is 8086.
Q2 (a): literature on specific microprocessor contains several common features . by
Exploring the data sheets write down the information about :
Microprocessor Architecture
Instruction Set
Minimal system using microprocessor
Control Signals
Pin functions
Answer
Microprocessor architecture : No of register (ACC,IR,PC,SP) Address bus/ data
bus size and control unit and ALU ,flags
Instruction set : listing of operation microprocessor van perform
LDA, STA, ADD, MOV, JSR, BSR, JMP, LSL, NADA
Minimal system using this microprocessor: how other devices are connected with
microprocessor? Example minimal system containing MPU, ROM, RAN, I/O
PORT, CLOCK, ADDRESS DECODER, power supply.
Control signal : write /read, CS ,interrupts (these signals directed other IC
Pin function : address pin, tat pins, control pins, power supply, clock I/P ,interrupts
serial data I/O

Q2(b) : Briefly define the role of following registers of 6800 microprocessor :


Program Counter
Instruction Register
Accumulator Register
ANSWER:
Program counter: program counter is 16 bit register that always hold the address of
next instruction to be executed.
Instruction register: it is special purpose register to hold the instruction fetched from
memory.
Accumulator register: accumulator register hold the data for manipulation like logic
,store, output, input ,arithmetic ,load
Q2(C): Briefly define following pin function of 6800 microprocessor :
DBE
R/W
CLOCK
TSC
IRQ
RESET
Answer:
1. DBE data bus enable pin number 36:
This pin input controls the data bus drives in the 6800 microprocessor, A high input on the
DBE pin enables the data lines, whiles a low input disables or three state the data lines ,
because data transfers to and from memory and I/P occurs during the time the Q2 clock is high
,the DBE pin is many times connected to the Q2 lines of the clock.
2. R/W: read/write control, pin number 34:
This pins output is control line that signals an external device (Ram, Row, PIA, Whether the
6800MPU is reading or writing. A HIGH output from the R/W line signals a read whereas A
LOW output signals that a write operation is under way.
3. CLOCK (Q1 and Q2) pin number 3 and 37
These input pins receive non overlapping clock signals from the external system clock
circuitry.
4. TSC Three state control pin number 39
When the TSC input pin is driven high by an external device , all address lines and R/W line
will be three stated. The TSC line is used with DMA configurations. When DMA Is not used
the TSC pin may be grounded.
5. IRQ Interrupts request line
The microprocessor can be interrupts from the normal execution of instruction and asked to
execute some other instruction.
6. RESET:
When reset pin id driven from high to low, the 6800 microprocessor sets the I flag to 1 and
jumps to the rest or restart interrupts service routine pointed to by FFFEH AND FFFFH.

The reset input is typically used to initialize or restart the system.


Q3 (A): Program can generally be developed much faster using high level languages
than using assembly languages. You have to counter this advantage with number of
advantage assembly languages.
The high level language is a medium of communication that is independent of a given
computer. Programs are written in English like words, and they can be executed on a
machine using a translator (a Compiler or a translator), they are easy to understand.
The program written in high level language when converted into machine code by the
compiler , yields many unnecessary instructions , the program written in directly in assembly
language is usually is usually shorter and faster than the one converted from a high level
language by the compiler.
Q3 ( B): Briefly describe pipeline architecture of 8086 microprocessor. Mention the jobs
performed by Bus Interface Unit (BIU) &Execution Unit (EU).

The only difference between the 8086 and the 8088 microprocessors is that BIU
of 8088 can transfer only 8 bits data at one time.
Two main parts to the microprocessor
1- The bus interface unit (BIU)
2- The execution unit (EU)
Jobs performed by bus interface unit ( BIU ):
It is interface to the outside world.
It is performs BUS operation such as
1. instruction fetching
2. reading operand from memory
3. reading operands to memory
4. Inputting or outputting data to I/O peripherals.
Its jobs also include instruction queuing & address generation.

Jobs of execution unit:


Fetching instructions.
Fetching operands from general purpose registers
Executing instructions
Generates operand addresses & passes them to the BIU.
Q3 C : Draw the software model of 8086 microprocessor.

Q4 (A) : What is the word shown in figure below ? Express the result in hexadecimal
form . Is it stored at even or an odd address boundary?
Address
Memory
(Hex)

(Binary)

0072C

1111 1110

0072B

1010 1010

Answers
The most significant byte of the word is stored at address 0072C and equals to
11111101= FD H
Its least significant byte is stored at address 0072B and is
10101010=AA H
Together these two byte give the word
11111101101010101= FDAA H
Expressing the address of the least significant byte in binary from gives
0072B= 00000000011100101011

Since the rightmost bit (LSB) is logic 1 , the word is stored at an odd address boundary in
memory.
Q4 (b): what would be 'offset' required to map to physical location 002B3(16) if the
segment base address is 0029 (16).
Answer:
= 002b3 -0029= 0299H
PA= 002B30
SR= 0029
-------------------------0029 H
Q4 (C): calculate the value of the physical address that follows. Assume all number as
hexadecimal umbers.
(1) A200: 12CF
(ii) B2C0:FA12
(1) A200:12CF
A2000
12CF
---------A32CFH
(d) B2C0:FA12
B2C00
FA12
----------C2612
Q4 (D): A data segment is to be loaded from address A0000(16) to AFFFF(16) . what
value must be loaded in to DS?
Address is: 0000 H
Q 4 (C) : How large is the 8088 memory address space?
1 M byte.

Q5( A): A microprocessor- based weighing bridge in a sugar mill requires 4K memory
plus 2 I/P &2 O/P ports. Choose a suitable memory allocation to minimize the I/P &O/P
address decoding for this up based system .draw neat &clean diagram showing the
connectivity of microprocessor with program memory, address decoder ,and I/P ports .
Solution
Program required = 4k
This can be stored within bottom 32 k
Then

A15 = 0 Then ROM will selected


=1 Then I/O is selected.
A0
0
0
1
1

A1
0
1
0
1

Are decoded to select one of 4 interfaces


I/P1 is selected
I/P2 is selected
O/P1 is selected
O/P2 is selected

A2- A14 are not connected to I/O interface


A15

A14

A13

A12.A3

A2

A1

A0

SELECTED

XXXX

ROM/RAM MEMORY

XXXX

I/P1

XXXX

I/P2

XX..XX

O/P1

XX.XX

O/P2

]Q6 (A): Distinguish between data addressing modes & memory addressing modes?
Answers :
The data- addressing modes include register operand addressing mode, immediate operand
addressing mode where the operand to access is specified as residing in an interval registers of
the microprocessor while memory address mode a physical address (PA) of the operand and
the initiate a read or write operation to this storage location.
PA= segment base: base +index +displacement
Q6 (B): Identify the addressing modes used for the source and the destination operands
in the instruction that follow:
(i)
MOV
AL,BL
(ii)
MOV
AX,OFF H
(iii)
MOV
[DI],AX
(iv)
MOV
DI,[SI]
(v)
MOV
[BX+SI],BP
(vi)
MOV
CL,[BX+4]
(vii)
IN
AL,P8
(viii)
OUT
DX,AX
(ix)
MOV
ARRAY [BX+SI],DX
(x)
MOV
EAX,[BX]
Answers:
Instruction
Sources
Destination
1

MOV

AL , BL

Register

Register

MOV

AX,OFF H

Immediate

Register

MOV

[DI],AX

Register

Indirect

MOV

DI,[SI]

Indirect

register

MOV

[BX+SI],BP

Based index

Register

MOV

Relative

register

IN

OUT

MOV

10

MOV

CL,[BX+4]
AL,P8
DX,P8
ARRAY[BX+SI],DX
EAX,[BX]

Immediate
Immediate
Register

Based relative index

Indirect register

Scaled index register

(c) What is label? What do the symbol [ ] indicate?


Label: the left most fields which are used which is used to store a symbolic name for memory
location that it represents all labels begins with a letter or special character.
The [ ] symbols denote indirect addressing
Q#7
Explain the indexed addressing mode and based indexed addressing mode.
Give illustrative example in each case.
Index addressing mode:
Index addressing mode:
Uses the value of the displacement as a pointer to the starting point of
an array of data in memory, and the contents of the specified register as an index that selects
the specific elements in the array that is to be accessed.
Eg: MOV AL, [SI] +2000H
PA=

SS
ES
DS
CS

DI
SI

8-bit,
16-bit
Displacement

Base- indexed addressing mode:


Combining based addressing mode together with indexed addressing
mode, can be used to access complex data structure as two dimensional arrays.
Eg: MOV AH, [BX] [SI] +1234H
PA=

CS
DS :
SS
ES

BX
BP

SI +
DI

8-bit,
16- bit
Displacement

Q. # 08 (A) Write a short program to transfer a word from an input device whose address
is 10A0 H, into DX.
IN AX, 10AOH
MOV DX, AX

(B) Provide a complete interpretation of the content of CS: 0050 H , including an


appropriate diagram.

The source segment base value is the code segment CS register and the source of the offset is
0050H so the PA = CS:0050H
Q # 09 (A) List the differences between 8086 and 8088 microprocessor.
The only difference between an 8088 microprocessor and an 8086 microprocessor is the BIU.
In The 8088, the BIU data bus path is 8 bits wide versus the 8086's 16-bit data bus. Another
difference Is that the 8088 instruction queue is four bytes long instead of six.
The important point to note, however, is that because the EU is the same for each processor,
the Programming instructions are exactly the same for each. Programs written for the 8086 can
be run On the 8088 without any changes.
Q #09 ( b) Is 8086/8088 TTL compatible? Explain your answer?
Yes, 8088/8086 microprocessor is compatible.
if the noise immunity figure is de-rated to 350 mv from 400 mv.
( C )What information appears on the address / data bus of the 8088 while ALE is active?
Address bits A7-A0
( D ):- Explain the operation of the TEST pin and the wait instruction?
TEST pin is input which is tested by WAIT.

(E )Describe bus buffering and latching.


Before the 8088/8086 microprocessor can be used with memory or I/O interfaces, their
multiplexed bus must be demultiplexed.
Buses need to be buffered for large systems. Because the maximum fan-out is 10, the
system must be buffered if it contains more than 10 other components.
74LS 373 Latches are used to demuliplex the address /data bus (AD7_ AD0)
connection and multiplexed address/status connection ( A19/S6 A16/S3 )
Q# 10 (A) Why it is essential to understand bus timing ? Draw a block diagram in which
clock generator (8284A) and 8086 microprocessor illustrates the connection for the
clock and reset signals.
It is essential to understand bus timing before choosing a memory or I/O device for interfacing
with 8086/8088 microprocessor, and it is provides insight into the operation of the bus signals
and basic read and write timing of the 80886.8088.

( b) illustrate and explain simplified 8086/8088 write bus cycle.


The three buses of the 8086 and 8088 address bus ,data mcontrol fuction exactly the same way
as those of any other microprocessor .if data are written to the memory , the microprocessor
outputs the memory address on the addressbus,oututs the data to be written into memory on
the data bus , and issue a write ( WR) to memory and
The 8086 and

=0

=1 for the 8088 .

( c ) compare minimum mode versus maximum mode of operation for the 8086/8088
microprocessor
There are two available mode of the operation for the 8088/8086 microprocessor, Minimum
mode and Maximum mode. Min mode is obtained by the connection of the selection pin
MN/MX to + 5 v and max. Mode is selected by grounded.
Maximum mode is used when ever a coprocessor is connected to the system.
In Minimum mode the signal of the I/O is generated by the processor so it costs less minimum
mode allow the eight bit peripherals to be used with the 8088/8086 without any special
consideration.

Q #. 11 (a) Explain the characteristics of I/O interface


Interface devices are grouped according to several different characteristics
1. Analog/Digital: if the device uses a digital data format this simplifies the interface to the
computer, but most nature signals occur naturally in analogue form. There is need to process
signals using an A/D converter ( I/P) and D/A converter (O/P) in order to connected the
computer/ microprocessor to the outside world.
2- Electrical characteristics: of the device to be connected to the to the computer may vary
enormously.

3- Operating speed: the speed of operation of the device affects the interface design
4- Data availability: the interface may be able to provide or receive data continuously or data
transfer may be restricted to discrete time intervals.
5. Data timing: data may need to be transmitted to or received from the computer at regular
time intervals or irregularly.

(b) Contrast a memory mapped I/O system with an isolated I/O system
Memory mapped I/ O: any instruction that reference to memory can accomplish the I/O
transfer.
Isolated I/ O: the data transfer between microprocessor and the I/O device takes places using
special I/P instruction IN & OUT
( c ) Explain the term handshaking as it applies to computer system.
Handshaking :
Many I/O devices accept or release information at a much slower rate
than the microprocessor; another method of I/O control called Handshaking or polling
synchronizes the I/O device with the microprocessor. An example device that requires
handshaking is a parallel printer that sends 100 cps . its clear that the processor can send 100
CPS to the printer , so to slow the processor down to match the speed of the of the printer .
The computer printer devices is facilitated using parallel I/O device PPI .As the printer is an
output device , one can program port B of PPI as output port in handshake mode ( i.e. mode 1 )
in this case m few lines of port C serve the purpose of handshake line , where as the printer can
intimate the computer about its status on port A of PPI , which is programmed as simple input
in mode 0 . the printer port physically appears to the near of CPU casing as female D-Type 25
Pin connector .

( d ) Draw the I/O map of personal computer illustrating many of the fixed I/O areas.

Q# 12. ( a ) write a series of instruction that will output AA16 to an output port located
at address C000H of the I/O address space
SOLTION
MOV DX, C000 ; DX register must be loaded with address of the output port .
MOV AL, AA
OUT DX, AL

; Data to be output must be loaded into AL.


; Data is sent at output address C000H.

( b ) suppose data are to be read from two byte wide input ports at address FF H and A9
H respectively and then output as word wide output as word output port at address
FAFD H . Write a sequence of instruction to perform this input/output operation.
Solution:
IN AL.AA

; first read byte from the port address AAH into AL.

MOV AH, AL

; and move it to AH

IN AL, A9

; other byte can be read into AL

MOV DX, FAFD

; load DX with variable address

OUT DX, AX

; send contents of AX at output FAFD

Q# 13 ( a ) the 82C55 PPI has how many programmable I/O PIN CONNECTION . list
the pins that belong to group A & group B in the 82C55. Also mention two pins which
accomplish internal I/O port section.
The 82C55 has 24 programmable I/O.
Group A consist:
1- port A
2- upper half of port C (PC7-PC4)
3- A1,A0,WR
Group b consist from :
1- port B (PB7-PB0)
2- lower half of port c(PC3-PC0_
3- RD
4- RESET
5- CK
6- VCC
7- GND
. Two pins accomplish internal I/O port address is A0 and A1

(b ) what three modes of operation are available to the 82C55 PPI? Mention the purpose
of STB signal is strobes input operation of the 82C55
Mode 0: Latched I/O
Mode 1: strobes I/O
Mode2: bi-directional I/O.
(c) How is the interrupt request pin (INTR) enabled input mode of operation of the
82C55?
The INTR pin becomes logic 1 when the STB input returns to logic 1, and it is cleared when
the data are input from the port by the microprocessor.
(d) In strobe output operation of the PPI, what is the purpose of ACK signal?
The ACK signal is an output that signals that the data have been removed from the port.
Q.# 14 By considering all aspects of microprocessor based application design explain
- System specification
- block level system design
- Software design
- Hardware design
- Hardware and software integration
-prototype
SYSTEM SPECIFICATION:
The specification states that functions that the system must perform but does
not necessarily cover how the functions are implemented.
BLOCK DIGRAM:
This includes:
Selecting microprocessor type
Determination of I/O and memory requirements
Division of tasks between hardware and software
Software design:
It is often proceeds in parallel with the hardware design.
The software may be written in assembly language or in a high level language or in
combination of two.
Depending on the type of the computer used for the software development, it may be
possible to debug parts of the software with out hardware.
HARDWARE DESGIN
It consists of selection of:
Microprocessor
Memory (RAM & ROM )
Peripheral IC's
Design circuitry to connect them together to from the system
HARDWARE & SOFTWARE INTERGATRION
Hardware debugging usually begins by testing the system with short test programs

After the hardware is able to execute these test program the hardware /software
integration begins.
The actual application software replaces the test programs and the complete system is
debugged.
This can be cheapening task, since there are often both hardware and software
problems to be found and is not always clear which it which.
Several types of test equipment are available for assisting in this process:
1- LOGIC ANALYZER: which captures a trace of the bus activity and displays
the sequence of bus cycles that were executed?
2- IN CIRCUIRT EMULATORS: which pugs into the microprocessor socket
and allows the operation of the system be controlled and monitored.
Q. # 15 (a) Discuss the function of an interrupt in a microprocessor based system and
explains the interrupts structure of the Intel family of microprocessors
1) interrupts provide a mechanism for changing the program environment.
2) Transfer program control is initiated by the occurrence of an event internal to the
microprocessor or an event in its external hardware .
3) For instance when an interrupt signals occurs indicating that an external device , such as
printer , requires services , the microprocessor must suspend what it is doing in the
main part of the program and pass control to a special routine (Interrupt services routine
) that performs the function required by the device .
4) When the microprocessor terminates execution in the main program, it remembers the
location where it left off and then it picks up execution with first instruction in services
routine. After this routine run to completion, program control is returned to the point
where the microprocessor originally left the main body of program.
5) Interrupts are practically useful when interfacing I/O device that provide data at
relatively low data transfer rates.
The interrupts of the entire Intel family of microprocessor include :
- Hardware pins that request interrupt (INTR & NMI) and one hardware pin (INTA) that
acknowledges the interrupt requested through INTA.
- In addition to the pins , the microprocessor also has software interrupts
INT,INTO,INT3, and BOUND
- Two flags bits , IF ( Interrupt flag) and TF ( Trap flag) , are also used with the interrupt
structure and a special return instruction IRET ( or IRED in 80386/higher )
- Hardware , software , and internal interrupts are serviced in priority basis.
- Internal interrupts are the highest priority group.
- Next lowest is the nonmaskable interrupts.
- Next lowest is software interrupts
- External hardware interrupts are the lowest priority group.

(b) Explain the operation of software interrupts instruction INT, INTO, INT3 &
BOUND.
Answer:
INT: INT instruction calls the interrupts service procedures that begins at address represented
in vector number
INTO: INTO instruction checks the overflow flag (OF), if OF =1, the instruction calls the
procedure whose address is stored in interrupt vector type number 4.
If OF = 0, then the INTO instruction performs no operation and next sequential instruction in
the program executes.
INT3: INT3 instruction is often used as a breakpoint interrupt because it is easy to insert a 1byte instruction into a program, breakpoints are often used to debug faulty software.
BOUND: The BOUND instruction which has two operands, compares a register with two
words of memory data for example, if the instruction BOUND AX, DATA is executed, AX is
compare with the contents of DATA and DATA +1 and also with DATA+2 and DATA+3 if AX
is les than the contents of DATA and
DATA+1.
the type 5 interrupt occurs. If AX is greater than DATA+2 and DATA +3 , a type 5 interrupt
occurs. If AX is within the bounds of these two memory word no interrupts occurs.
( c ) what is 8295A? Also mention how many 8295 a are required to have 64 interrupt
inputs.
8259A is programmable interrupts controller that adds eight interrupt inputs to the
microprocessor.
It required a master 8295A and eight 8295A slaves.
Q. # 16 ( a ) The interrupt vectors and vector table are crucial to an understanding of
hardware and software interrupts .At what memory address is the interrupts vector table
is located?
In the first 1 k byte at location 00000000 H-000003FFH
( b ) describe the function of the following dedicated interrupts of 8086 microprocessor:
- Divider Error
- Single step or trap
- Over flow
- Bound
Answer
Type 0 _ Divider Error: Occurs whenever the result of a division overflows or whenever
an attempt is made to divide by zero
Type 1 Single step or Trap: occurs after the execution of each instruction if the trap
(TF) flag bit is set. Upon accepting this interrupt the TF bit is cleared so the interrupt
service procedure executes al full speed.
Type 4 overflow: is a special vector used the INTO instruction. The INTO instruction
interrupts the program if an overflow condition exits as reflected by the overflow flag (OF)
Type 5 BOUND: is an instruction that compares register with boundaries stored in the
memory. If the contents of the register is greater than or equal to the first word in memory
and less than or equal to the second word, no interrupt occurs because the contents of the
register is within bounds. If the contents of the register of the register is out of bounds, a
type 5 interrupt execute

Q .17 (a) Write assembly language procedure to fill the screen with string " Advanced
microprocessor system "?
Title first assembly language program
.model small
.data
NAL DB
41h,64h,76h,61h,60h,63h,65h,64h,6dh,4dh,69h,63h,72h,6fh,70h,72h,6fh,63h,65h,73h,73h,6fh,
72h,6dh,53h,79h,73h,74h,65h,6dh
.code
.startup
MOV CX, 29
MOV BX, 0H
MOV AH, 2H
Back: MOV AL, [BX] +NALO
INT 21H
INC BX
Loop back
.exit
End
(b) Explain
(I) In how many ways DMA process may be initiated and be terminated.
To initiate the DMA process, we use HOLD signal.
To terminate the DMA process, we use EOP signal.
(ii) The sequence of events as DMA is required by an I/O device.
The DMA I/O technique provides direct memory access to the memory,
while the p is temporarily disabled. This allows data to be transferred between memory & the
I/O devices at a rate that is limited only by the speed of the memory components in the system
or the DMA.
This process can be done by using the HOLD pin (input) that is used to request a DMA
action and the HOLD pin is an output that acknowledges.

(iii) What happens when DMAC receives DMA request from another channel while it is
serving one?
The 8237 DMA controller supplies the memory and I/O with control signals and
memory address information during the DMA transfer, the 8237 DMA controller is capable of
DMA transfers at rates of up to 1.6MB per sec. so, DMAC receive DMA from another
channel, this means that, the channel is capable of addressing a full 64k-byte section of
memory and can transfer up to 64k-bytes with a single programming.

Q. 18
The device we discussed in this lecture fall into two classes: microprocessors & single
chip microcomputers (microcontrollers).
(i) What are the characteristics required chip microcomputer?
A practical p controlled the system would almost certainly be implemented a single chip computer since the application relatively simple at high value market, so , it is possible to
develop a-p application on the MC6800,6802 subsequently to one smaller charger chip controller from the same family.
6805 is suitable:
RAM (B) ROM (B)
I/O
clock minimum system
64
1100
20
yes
one chip
(ii) The 6802 includes many of theses characteristics. Is it single chip
microcomputer? If not, what is missing?
I/O, ROM is missing
Since it is 6800+clock and 128 bytes RAM
(iii) What are major advantages &disadvantages of single chip microcomputer?
Single chip has the MPU, Memory, I/O function, all integrated into a single IC.
ADVANTAGE:
Single chip microcontrollers are cheap, flexible.
DISADVANTAGE:
Limited memory & I/O lines.

Q 19- Answer briefly & accurately to following questions.


?What do the following MOV instructions accomplishes ( I )
MOV AX,BX
MOV BX,AX
MOV BL,CH

Copy contents of BX into AX


Copy contents of AX into AX
Copy contents of CH into BL
0
16

(?ii )- List the 32 bit registers used for register addressing

EAX
EBX
ECX
EDX
ESP
EBP

ESI
EDI
0

32

?What is wrong with the MOV BL, CX instruction -:(iii)


.CX is 16 bit register but BL is 8 bit registerthat is not possible
.
? Select an instruction for each of the following tasks - ( iv)
Copy BL into CL
Copy SI into BX
Copy DS into AX
Copy Al into AH

MOV CL, BL
MOV BX,SI
MOV AX,DS
MOV AH,AI

?What is the purpose of .Model tiny statement ( v)


.The .Model tiny statement directs the assembler to assemble the program into single segment
?What assembly language directive indicates the start of the code segment ( vi )
.The .CODE statement or directive indicates the start of code segment
What is the displacement and how it is measured the memory address in a MOV ( vii)
? [2000H] ,AL instruction
.Move instruction copies the contents of AL register into the 2000H
? What is wrong with MOV [BX],{DI] instruction ( viii )
Memory-to-memory transferred are not allowed
?What mode of operation is selected when MN/MX is grounded ( ix )
Maximum Mode
? What happens when HOLD input to the 8086/8088 is paced at its logic 1 level ( x )
When HOLD input to the 8086/8088 is paced at its logic 1 level then HOLD input request for
DMA
?Which bus connections on the 8086 microprocessor are typically demultiplexed ( xi )
demultipexed all three buses: address (A19-A0 and BHE), data buses (D15-D0) and control 8086
Bus (M/IO , RD and WR)
Which TTL integrated circuits is often used to demultiplexed the buses on 8088 / (xii)
? 8086

An 8 bit transparent latch (74LS373)


What is the purpose of the demultiplexed BHE signal on the 8086 (xiii)
? microprocessor
Used for memory bank selection
? If the clock input to the 8088/8086 is 4 MHz , how long is one bus cycle ( xiv )
ns 250
How many MIPS is the 8086/8088 capable of obtaining when operated with 10 MHz ( xv)
?clock
.MIPS 2.5
How munch time is allocated for memory access when the 8088/8086 ( xvi )
microprocessor
? are operated with 5 MHz clock
460ns
List the number of words in bytes or KB found in each memory device for the ( xvii )
? following no of address connections
8
256
11
1024
12
4096
13
8192
List number of data items stored in each of the following memory devices and ( xviii )
? number of bits in each datum
2K*4
1K*1
4K*8
16K*1
64K*4

2K memory location and 4 bits are stored in each


.datum
1K memory locations and 1 bit stored in each
datum
4K memory location and 8 bits stored in each
datum
16K memory location and 1 bit stored in each
.datum
64K memory location and 4 bits stored in each
.datum

? What is the purpose of CS and CE pin on memory ( xix)


.These pins are used to select or enable device so that it can perform read or write operation

( xx )What is the purpose of OE pin on memory devices?


The OE enables or disable a set of ti-state buffers located within memory devices & must be
active to read data
?What is the purpose of WE pin on a RAM( xxi)
It cause the memory to perform write operation provided the CS or CE pin is also active

.
?How many bits of storage do the following EPROM memory devices contain ( xxii)

2708
2716
2732
2764
27128

1024 = (1K *8)


bytes
2048 bytes=(2K*8)
4096 bytes=(4K*8)
8192 bytes=(8K*8)
16384 =(16k*8)
bytes

?SRAM is acronym for that type of device -( xxiii )


.SRAM is devices that retain data for as long as power is applied to memory devices
The 4016 memory has a G pin as S pin and W pin What are these pins used for ( xxiv )
?RAM
G pin work as OE ands S pin as CS pin and W pin as WE
? how much memory access time is required by the slowest 4016 ( xxv )
ns 250
?DRAM is an acronym for what type of device ( xxvii )
Dynamic RAM (RRAM) contains data for only a short period, usually 2-4 ms. It must be
.refreshed periodically
The TMS4464 has 8 address inputs, yet it is a 64 k DRAM, explain how many ( xxvii )
?address can be forced into 8 address input
The addresses inputs to most DRAMS derive are multiplexed. This allows the 16 bit address to
.be sent to DRAM through 8 address input pins

?What are the purposes of CAS and RAS inputs of a DRAM ( xxviii )
.CAS and RAS are two special pins called as Column Address Strobe and Row Address Strobe
?How much time is required to refresh a typical DRAM ( xxix )
ms 2-4
? What is the purpose of BHE and A0 pins on 8086 micro processor ( xxx )
.The BHE select the upper memory bank and A0 select lower memory bank

Q No.20 What are Embedded systems? Give some Examples of Embedded systems. What
is Technology behind Embedded systems? Explain Criteria to choose a microcontroller
for small embedded microcontroller based application.
[ Refer Lecture 27-28 Embedded System Design ]

You might also like