11 peripheral chips of 8088

Upload: vishal-dhekale

Post on 03-Jun-2018

222 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/12/2019 11 Peripheral Chips of 8088

    1/19

    Revision no.: PPT/2K403/02Revision no.: PPT/2K403/02

    Peripheral Chips of 8088(Self Study)

  • 8/12/2019 11 Peripheral Chips of 8088

    2/19

    Revision no.: PPT/2K403/02

    CMS INSTITUTE, 2004. All rights reserved. No part of this material may be reproduced, stored or emailed without the prior permission of Programme Director, CMS Institute

    8284 Clock Generator

    Three different functions perform by 8284 Generating system clock for the 8088

    Generating ready signal for the 8088

    Generating reset signal for the 8088.

  • 8/12/2019 11 Peripheral Chips of 8088

    3/19

    Revision no.: PPT/2K403/02

    CMS INSTITUTE, 2004. All rights reserved. No part of this material may be reproduced, stored or emailed without the prior permission of Programme Director, CMS Institute

    Clock Logic

    Output signals: CLOCK, OSC and PCLK.

    The clock is the system clock for the microprocessor, co-

    processor and bus-controller.

    It is a free running clock of 33% duty cycle.

    The frequency of this signal is 1/3 the frequency of crystal at

    pin X1, X2 or external input signal at EFI.

  • 8/12/2019 11 Peripheral Chips of 8088

    4/19

    Revision no.: PPT/2K403/02

    CMS INSTITUTE, 2004. All rights reserved. No part of this material may be reproduced, stored or emailed without the prior permission of Programme Director, CMS Institute

    Ready Logic

    Generates READY signal for the microprocessor.

    To introduce a wait state in the 8088 bus cycle, the READYinput is made low by 8284 otherwise READY is maintained at a

    high level.

    Two pairs of input signals which can make READY low:

    Pair 1 : RDY1 and AEN1

    Pair 2 : RDY2 and AEN2

  • 8/12/2019 11 Peripheral Chips of 8088

    5/19

    Revision no.: PPT/2K403/02

    CMS INSTITUTE, 2004. All rights reserved. No part of this material may be reproduced, stored or emailed without the prior permission of Programme Director, CMS Institute

    Ready Logic (contd.)

    In PCs, the RDY2 and AEN2 are not used.

    The RDY1 signal is used for generating cycle stealing wait

    states for performing the DMA bus cycle.

    The AEN1 pin is used for generating wait states in the CPU bus

    cycle for synchronizing the CPU with slower memory or I/O

    ports.

  • 8/12/2019 11 Peripheral Chips of 8088

    6/19

    Revision no.: PPT/2K403/02

    CMS INSTITUTE, 2004. All rights reserved. No part of this material may be reproduced, stored or emailed without the prior permission of Programme Director, CMS Institute

    Reset Logic

    Generates the RESET signal for the 8088.

    When the RES input pin is made low, the RESET logic

    generates high active RESET signal.

    Power good signal is generated by SMPS.

  • 8/12/2019 11 Peripheral Chips of 8088

    7/19

    Revision no.: PPT/2K403/02

    CMS INSTITUTE, 2004. All rights reserved. No part of this material may be reproduced, stored or emailed without the prior permission of Programme Director, CMS Institute

    Reset Logic (contd.)

    In PCs, the RES input is connected to any of the following two

    signals:

    Power good signal from SMPS.

    Power on reset from an R-C low pass filter circuit.

    The manual reset from the front reset switch is also connected to

    RES input.

    Resetting the PC is done under any of the following

    conditions:

    During power-on ie. power-up reset.

    By pressing the reset push button or switch ie. manual reset.

  • 8/12/2019 11 Peripheral Chips of 8088

    8/19

    Revision no.: PPT/2K403/02

    CMS INSTITUTE, 2004. All rights reserved. No part of this material may be reproduced, stored or emailed without the prior permission of Programme Director, CMS Institute

    Reset Logic (contd.)

    By pressing Ctrl+Alt+Delete on the keyboard ie. soft reset.

    The hardware resets (i.e. Manual reset and Power up reset)

    effectively applies a reset clearing all flags, IP, DS, SS and ES

    registers and setting up all ones in CS register.

    The soft reset is purely a software sequence as a result of

    which the POST gets control.

  • 8/12/2019 11 Peripheral Chips of 8088

    9/19

    Revision no.: PPT/2K403/02

    CMS INSTITUTE, 2004. All rights reserved. No part of this material may be reproduced, stored or emailed without the prior permission of Programme Director, CMS Institute

    8288 Bus Controller

    8288 functions

    Generates the ALE signal to control the address latch.

    Generates the DT/R and the DEN signals to control the data bus

    transceiver.

    Generating the Read/Write Control signals on behalf of the 8088.

  • 8/12/2019 11 Peripheral Chips of 8088

    10/19

    Revision no.: PPT/2K403/02

    CMS INSTITUTE, 2004. All rights reserved. No part of this material may be reproduced, stored or emailed without the prior permission of Programme Director, CMS Institute

    8255 (Programmable Peripheral Interface)

    Widely used as multipurpose programming I/O device for

    interfacing several types of peripheral to a computer.

    Important general purpose I/O device that can be used with

    almost any microprocessor.

    24 I/O pins that can be grouped primarily in two 8-bit parallel

    ports A and B, with the remaining eight bits as port C.

    The eight bits of port C can be used as individual bits or be

    grouped in two 4 bits ports C upper (CU) and C Lower (CL).

    R i i PPT/2K403/02

  • 8/12/2019 11 Peripheral Chips of 8088

    11/19

    Revision no.: PPT/2K403/02

    CMS INSTITUTE, 2004. All rights reserved. No part of this material may be reproduced, stored or emailed without the prior permission of Programme Director, CMS Institute

    8255 PPI (contd.)

    Modes of operation that can be

    selected by software

    Mode 0 - Basic Input/Output

    Mode 1 - Strobe Input/Output

    Mode 2 - BI-directional bus

    Uses of the 8255

    Printer interface for directly

    interfacing a parallel interface

    printer with handshake protocol.

    Keyboard and display interface.

    Digital to analog/analog to

    digital interface.

    R i i PPT/2K403/02

  • 8/12/2019 11 Peripheral Chips of 8088

    12/19

    Revision no.: PPT/2K403/02

    CMS INSTITUTE, 2004. All rights reserved. No part of this material may be reproduced, stored or emailed without the prior permission of Programme Director, CMS Institute

    8253 Programmable Timer

    Three multipurpose

    programmable timers.

    Each timer has a 16 bit

    down counter, which

    can be programmed to

    operate in any of the sixdifferent modes.

    Each counter can be

    programmedindependent of other

    counters.

    Revision no : PPT/2K403/02

  • 8/12/2019 11 Peripheral Chips of 8088

    13/19

    Revision no.: PPT/2K403/02

    CMS INSTITUTE, 2004. All rights reserved. No part of this material may be reproduced, stored or emailed without the prior permission of Programme Director, CMS Institute

    8259 Programmable Interrupt controller

    The micro processor provide service to I/O devices in one of

    the two ways.

    Polling routine Interrupts.

    Polling Routine

    Microprocessor checks & tests to see if any device needs to beserviced.

    The order of testing and the priority given to different I/O devices

    can be changed by changing the polling routine.

    The I/O polling routine is only useful with the I/O devices which do

    not demand immediate service or have very infrequent demands

    for service.

    Revision no : PPT/2K403/02

  • 8/12/2019 11 Peripheral Chips of 8088

    14/19

    Revision no.: PPT/2K403/02

    CMS INSTITUTE, 2004. All rights reserved. No part of this material may be reproduced, stored or emailed without the prior permission of Programme Director, CMS Institute

    Interrupts and Interrupt process

    Interrupts

    Interrupt input tells the microprocessor that an external device

    needs attention.

    It is very much similar to a subroutine.

    Interrupt process

    An Interrupt signal is received by the microprocessor.

    The microprocessor completes its current instruction. No

    instruction is cut-off in the middle its execution. The address of the next instruction with a value is stored on the

    stack.

    Revision no : PPT/2K403/02

  • 8/12/2019 11 Peripheral Chips of 8088

    15/19

    Revision no.: PPT/2K403/02

    CMS INSTITUTE, 2004. All rights reserved. No part of this material may be reproduced, stored or emailed without the prior permission of Programme Director, CMS Institute

    Interrupt process (contd.)

    The program counter is stored called the interrupt vector.

    The microprocessor executes the interrupt routine which starts at

    this vector address.

    When the interrupt routine is finished a return instruction loads

    the PC from the stack.

    Program execution continues with the instruction which follows

    the instruction which it was executing when the interrupt

    occurred.

    Revision no : PPT/2K403/02

  • 8/12/2019 11 Peripheral Chips of 8088

    16/19

    Revision no.: PPT/2K403/02

    CMS INSTITUTE, 2004. All rights reserved. No part of this material may be reproduced, stored or emailed without the prior permission of Programme Director, CMS Institute

    8259 functions

    Accepts the requests from the peripheral devices.

    Determines which of the requests is of highest priority.

    Ascertains whether the in-coming request has a higher

    priority value than the level currently being serviced.

    Issues an interrupt to a CPU based on this determination.

    Revision no : PPT/2K403/02

  • 8/12/2019 11 Peripheral Chips of 8088

    17/19

    Revision no.: PPT/2K403/02

    CMS INSTITUTE, 2004. All rights reserved. No part of this material may be reproduced, stored or emailed without the prior permission of Programme Director, CMS Institute

    8237 Programmable DMA Controller

    DMA is used for quick transfer of large amount of data.

    DMA reduces the workload of processor.

    When the processor requires the periodic rest regarding

    certain tasks, the DMA takes hand over from the processor by

    taking its data bus &control signal and perform that task with

    the same consistency and speed as of processor.

    Revision no.: PPT/2K403/02

  • 8/12/2019 11 Peripheral Chips of 8088

    18/19

    Revision no.: PPT/2K403/02

    CMS INSTITUTE, 2004. All rights reserved. No part of this material may be reproduced, stored or emailed without the prior permission of Programme Director, CMS Institute

    Features of DMA

    Four independent DMA channels.

    Direct memory to memory transfer possible.

    Independent Auto initialization of all channels.

    Supports the software DMA requests.

    It can be cascaded.

    It has the necessary logic for supporting peripheral

    subsystems, such as Floppy disks and Hard disks.

    Revision no.: PPT/2K403/02

  • 8/12/2019 11 Peripheral Chips of 8088

    19/19

    CMS INSTITUTE, 2004. All rights reserved. No part of this material may be reproduced, stored or emailed without the prior permission of Programme Director, CMS Institute

    Design & Published by:

    CMS Institute, Design & Development Centre, CMS House, Plot No. 91, Street No.7,

    MIDC, Marol, Andheri (E), Mumbai 400093, Tel: 91-22-28216511, 28329198

    Email: [email protected]

    www.cmsinstitute.co.in