1 answer

Case Analysis Read the case situation given below and answer the questions that ollow: MPU 8085 c...

Question:

Subject: computer architecture and microprocessor
Case Analysis Read the case situation given below and answer the questions that ollow: MPU 8085 communicates with peripherals
Case Analysis Read the case situation given below and answer the questions that ollow: MPU 8085 communicates with peripherals through 8255 in different modes. For this it has to take following three steps: Determining the addresses of ports A, B, and C and of the control register according to the chip select logic and address ines Ao Ai. Writing a control word in the control register Writing I/O instructions o communicate with peripherals through port A, B and C... Answer the following questions: a) What do you understamd by BSR mode and control word? b) Mention different modes available in 8255 and write about its characteristics. c) Identify the port address, generate control word to configure port A and port Cu as output ports and port B and port CL as input ports. d) Write a progra to read DIP witches and display the reading from port B at port A and from port CL at port Cu.

Answers

Handshaking

The making of inter relation between slower peripheral device and microprocessor is called handshaking.

Handshaking Signal

Before making the inter-relation between peripheral device and microprocessor the PPI send some signals to microprocessor and peripheral device to perform the process, these signals are called handshaking signal. 8255-based devices that perform handshaking support following handshaking signals:

1) Strobe Input (STB) 2) Input Buffer Full (IBF) Digital Input operation 3) Output Buffer Full (OBF) 4) Acknowledge Input (AC

Read OperationSTB

goes low indicates that data are loads into port latch.

IBF Becomes high (at high to low transition of STB) indicates that input latch contains data.

INTR Becomes high (at low to high transition of STB) uPgoes interrupt subroutine to read data.

RD becomes low.IBFbecomes low when read complete, RD becomes high and IBF goes low.

IBF low means input latch has no data (Read complete)

Handshaking Signal (Continued) Data Bus Data Bus Input IBF Device 8086 RD 8255 INTR STB STB IBF (Buffer full INTR Interrupt r

It consists of three 8-bit bidirectional I/O ports i.e. PORT A, PORT B and PORT C. We can assign different ports as input or output functions.

Block diagram –

8255.png

It consists of 40 pins and operates in +5V regulated power supply. Port C is further divided into two 4-bit ports i.e.

Port C lower and port C upper and port C can work in either BSR (bit set rest) mode or in mode 0 of input-output mode of 8255. Port B can work in either mode or in mode 1 of input-output mode. Port A can work either in mode 0, mode 1 or mode 2 of input-output mode.

It has two control groups, control group A and control group B. Control group A consist of port A and port C upper. Control group B consists of port C lower and port B.

Depending upon the value if CS’, A1 and A0 we can select different ports in different modes as input-output function or BSR.

This is done by writing a suitable word in control register (control word D0-D7).

S’ A1 A0 Selection Address
0 0 0 PORT A 80 H
0 0 1 PORT B 81 H
0 1 0 PORT C 82 H
0 1 1 Control Register 83 H
1 X X No Seletion

X

Pin diagram –

PPI8255.png

  • PA0 – PA7 – Pins of port A
  • PB0 – PB7 – Pins of port B
  • PC0 – PC7 – Pins of port C
  • D0 – D7 – Data pins for the transfer of data
  • RESET – Reset input
  • RD’ – Read input
  • WR’ – Write input
  • CS’ – Chip select
  • A1 and A0 – Address pin

Write a control word to configure port A as input port in mode 0 and port B in mode 1 as output port.

Solution:The control word is 94H.N.B. D0 and D3 are low if port C is used as output or if unused

solution of d) Program

PPICR EQU 00FBH

PPIC EQU 00FAH

PPIB EQU 00F9H

PPIA EQU 00F8H

MOV AL, 83HOUT

PPICR , ALIN

AL, PPIBOUT

PPIA, ALIN

AL, PPICAND

AL, 0FH

MOV CL,

04HROL

AL, CLOUT

PPIC, AL

HLT

.

Similar Solved Questions

1 answer
4 polnts Determine the centre and the radius of the circle: 22 + y2 - 4x...
4 polnts Determine the centre and the radius of the circle: 22 + y2 - 4x + 6y - 23 = 0 Centre of the circle [type as a co-ordinate point): type your answer.... Radius of the Circle: type your answer......
1 answer
Name 1. Actually counting the goods on hand at the end of the accounting period and...
Name 1. Actually counting the goods on hand at the end of the accounting period and determining the cost of these goods by reviewing the accounting records is called a. b. c. the cost of goods sold. the physical inventory. freight-in. accumulated depreciation. 2. Unearned revenue is reported as a(n)...
1 answer
Lavage Rapide is a Canadian company that owns and operates a large automatic car wash facility...
Lavage Rapide is a Canadian company that owns and operates a large automatic car wash facility near Montreal. The following table provides data concerning the company's costs: Fixed Cost per Month $1,200 cleaning supplies Electricity Maintenance Wages and salaries Depreciation Rent Administrativ...
1 answer
Explain the Fundamentals of Disability Epidemiology and Concept of exposure?
Explain the Fundamentals of Disability Epidemiology and Concept of exposure?...
1 answer
Question 1. (a) A steel tube having inner and outer dimeters of 1.5 in. and 2...
Question 1. (a) A steel tube having inner and outer dimeters of 1.5 in. and 2 in., respectively, is turning at 45 rev/min. If the allowable shear stress (Tallow) of the tube material is 10 ksi, determine the horse power (hp) transmitted by the tube. (20 points) (b) The A-36 solid steel shaft is 3.5 ...
1 answer
Show all work to determine which one is a solution 2x+y>=10 y<x/2+1 a). (5,3) b). (-2,14)...
show all work to determine which one is a solution 2x+y>=10 y<x/2+1 a). (5,3) b). (-2,14) c). (-3,-1)...
1 answer
At General Hospital, nurses are given performance evaluations to determine eligibility for merit pay raises. The...
At General Hospital, nurses are given performance evaluations to determine eligibility for merit pay raises. The supervisor rates the nurses on a scale of 1 to 10 (10 being the highest rating) for several activities: promptness, record keeping, appearance, and bedside manner with patients. Then an a...
1 answer
In 2011, Barak Obama proposed “Buffett Rule”, what was his analysis ?
In 2011, Barak Obama proposed “Buffett Rule”, what was his analysis ?...
1 answer
Assignment: 32 Reflection Activity Save Submit Assignment for Grading Question limon dh32.03 Check Sty Work Please...
Assignment: 32 Reflection Activity Save Submit Assignment for Grading Question limon dh32.03 Check Sty Work Please read the following scenario and answer the questions that follow Dr. Susan Rice ask Bruce Goldman, CMA (AAMAL to instruct patient Dottie Tate in the use of a walker to prevent further f...
1 answer
Alexandra Form of CHEM 2251 in-class Assignment #7 Vaughn 1. Predict the products of the following...
Alexandra Form of CHEM 2251 in-class Assignment #7 Vaughn 1. Predict the products of the following 52 reactions and include stereochemistry where NaOCH DMSO 2. Provide the necessary starting material and reagent(s) to synthesize the following product. 3. Draw all the organic products of the followin...
1 answer
CALCULATOR PRINTER VERSION Question 12 Your answer is partially correct. Try again. On January 9, a...
CALCULATOR PRINTER VERSION Question 12 Your answer is partially correct. Try again. On January 9, a company pays $5,960 for salaries and wages of which $2,510 was reported as Salaries and Wages Payable on December 31. Give the entry to record the payment. (Credit accoun automatically indented when t...
1 answer
Consider the following assembly language code. The clock frequency is 4 MHz- and all initialization steps...
Consider the following assembly language code. The clock frequency is 4 MHz- and all initialization steps have been done correctly (like setting up digital I/O, the oscillator configuration, etc.) Constants Bit Pattern EQU H'20' LoopCtr EQU H'21' Max Count EQU .23; Main program loop ...
1 answer
The following information applies to the questions displayed below. Sweeten Company had no jobs in progress...
The following information applies to the questions displayed below. Sweeten Company had no jobs in progress at the beginning of March and no beginning Inventories. It started only two Jobs during March-Job P and Job Q. Job P was completed and sold by the end of the March and Job Q was incomplete at ...
1 answer
The block has a mass of 7 kg, and the semicylinder has a mass of 3...
The block has a mass of 7 kg, and the semicylinder has a mass of 3 kg. (Figure 1) Part A Determine the moment of inertia of the assembly about an axis perpendicular to the page and passing through point O Express your answer three significant figures and include the appropriate units. ? 10- Value Un...
1 answer
A Loyola bus going southbound at 25.0 m/s on Lake Shore Drive (LSD) near the Irving...
A Loyola bus going southbound at 25.0 m/s on Lake Shore Drive (LSD) near the Irving Park exit, notices CPD behind them with lights flashing and siren blaring. The police are going 40.0 m/s and are using a siren that operates at f = 1000.0 Hz. Assume the speed of sound at this stretch of LSD is 340.0...
1 answer
What is the approximate IRR for a project that costs $100,000 and provides cash inflows of...
What is the approximate IRR for a project that costs $100,000 and provides cash inflows of $30,000 for 6 years? Question 10 options: A) 19.9% B) 30.0% C) 32.3% D) 80.0%...