microprocessors and interfacing slides2

Upload: inception-to-eminent-mission

Post on 08-Apr-2018

236 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/6/2019 Microprocessors and Interfacing Slides2

    1/28

    MICROPROCESSORS ANDINTERFACING

    Instuctor : Dr. T. V. Rao

    Room : C 004

    Contact Hours : 4 pm 5 pm OR

    with prior appointment

  • 8/6/2019 Microprocessors and Interfacing Slides2

    2/28

    Text Book :v Microprocessors and

    Interfacingv by Douglas V Hall, Revised 2 nd editionv McGraw Hill Publication

    Referece Books :

    Brey, Intel Microprocessors The 8086,8088, 80186, 80286, 80386, 80486

    Architecture, Programming & Interfacing,4th Edition, PHI. Peter Abbel, IBM PC assembly language,

    5th edition PHI Yu-Cheng Liu and Glenn A. Gibson,

    Microcomputer Systems: The 8086/8088

  • 8/6/2019 Microprocessors and Interfacing Slides2

    3/28

    Scope andObjectives The purpose of the

    microprocessorto give an in-depth study of both

    the hardware and software includedin microcomputer systems.

    The conceptsare based on a particular

    microprocessor, the Intel 8086, and

    its associated supporting devices andsoftware and assembl lan ua e

  • 8/6/2019 Microprocessors and Interfacing Slides2

    4/28

    Main Objectives2) TO MAKE THE STUDENTS TO DEVELOP DIFFERENT TYPES OF APPLICATIONS INASSEMBLY LANGUAGE USING

    8086 INSTRUCTION SET.

    3) TO MAKE THE STUDENT TO BECOME HANDS ON TASM/MASM ASSEMBLER FOR THEDEVELOPMENT

    OF PROGRAMS IN ASSEMBLY LANGUAGE.

    4) TO MAKE THE STUDENT ANALYZE VARIOUS TYPES OF INTERFACINGS OFPERIPHERAL DEVICES .

    5) TO UNDERSTAND SOME OF THE TOPICS OF COURSE BY STUDENTS THEMSELVES .

    6) THE STUDENT MUST LEARN THE ADVANCED MICROPROCESSORS ARCHITECTURESESPECIALLY DUAL-CORE

    AND QUAD-CORE.

  • 8/6/2019 Microprocessors and Interfacing Slides2

    5/28

    SYLLABUS UNIT I : Introduction: Microprocessor evolution and types, 8086 family overview,

    8086 internal architecture, introduction to programming 8086. Programmingstructure and representation formats, Finding right instructions, writing a

    program, addressing modes. 9 Hrs UNIT II : 8086 string instructions, 8086 instruction description and assembler

    directives, Standard programming structures. writing and using procedures,writing and using assembler macros.

    9 - Hrs UNIT III: Introduction to interfacing, Bus structure: minimum mode, Interrupts and

    interrupt responses, 8259A priority interrupt controller, programmable parallelports and hand shake input and output, interfacing processor to 8255A,Peripheral interfacing: key boards, stepper motor.

    9 - Hrs

    UNIT IV: Maximum mode of operation, bus structure, Direct memory access Data

    transfer(DMA), Interfacing with 8251A(USART), 8087 numeric data processors.9 Hrs

    UNIT V : Multiuser/Multitasking operating concepts, the Intel 80286 microprocessor:architecture, real mode and protected mode, the Intel 80386: architecture, real

  • 8/6/2019 Microprocessors and Interfacing Slides2

    6/28

    BLOCK DIAGRAM OF A COMPUTER TIMESHARING SYSTEM

  • 8/6/2019 Microprocessors and Interfacing Slides2

    7/28

    BLOCK DIAGRAM OF A DISTRIBUTEDPROCESSING COMPUTER SYSTEM

  • 8/6/2019 Microprocessors and Interfacing Slides2

    8/28

    BLOCK DIAGRAM OF A SIMPLEMICROCOMPUTER

  • 8/6/2019 Microprocessors and Interfacing Slides2

    9/28

    ntel Family EvolutionProcessor Number

    AlUSize(bits)

    Data busSize(bits)

    Address BusSize(bits)

    8085 8 16 16

    8086 16 16 20 Queue 6bytes

    8088 8 20 20 Queue4bytes

    80186 16 16 24

    80286 16 16 24

    80386 32 32 32

    80486 32 32 32

    Pentium 32 64 32

  • 8/6/2019 Microprocessors and Interfacing Slides2

    10/28

    Microprocessor Chip

  • 8/6/2019 Microprocessors and Interfacing Slides2

    11/28

    8086 Pin Diagram

  • 8/6/2019 Microprocessors and Interfacing Slides2

    12/28

    8086 INTERNAL BLOCK DIAGRAM

  • 8/6/2019 Microprocessors and Interfacing Slides2

    13/28

    8086 FLAG REGISTER FORMAT

  • 8/6/2019 Microprocessors and Interfacing Slides2

    14/28

  • 8/6/2019 Microprocessors and Interfacing Slides2

    15/28

    64Kb SEGMENT POSITION IN 1Mb AddressSpace OF 8086(One Way)

  • 8/6/2019 Microprocessors and Interfacing Slides2

    16/28

    Using CS and IP a) Physical address Diagramb)Physical address Computation

  • 8/6/2019 Microprocessors and Interfacing Slides2

    17/28

    Using SS&SPa) Physical address Diagram

    b) Physical address Computation

  • 8/6/2019 Microprocessors and Interfacing Slides2

    18/28

    Using DS and Effective address accessingdata

  • 8/6/2019 Microprocessors and Interfacing Slides2

    19/28

    Flowchart for a program to read 24 samples

  • 8/6/2019 Microprocessors and Interfacing Slides2

    20/28

    Addressing Modes Datum Direct Register

    Register Indirect Register relative Based Indexed Relative Based Indexed

  • 8/6/2019 Microprocessors and Interfacing Slides2

    21/28

    :mmediate Addressing mode InstructionDatum

    :rect Addressing mode Instruction Mem

    Address Datum

  • 8/6/2019 Microprocessors and Interfacing Slides2

    22/28

    :Register Addressing mode Instruction Register Register Datum

    :egis te r Indirec t mode Instruction Register MemoryRegister Effective Address D a t u m

    Register Displacement

    eg is te r r ela ti ve:ddressing mode

    Datum

    Address

    +

    Instruction

    Memory

    Register

  • 8/6/2019 Microprocessors and Interfacing Slides2

    23/28

    Base Reg Index reg

    :Based Indexed addressing mode

    Datum

    Address

    +

    Instruction

    BaseRegister

    Address

    Index Register

    MemoryEA

  • 8/6/2019 Microprocessors and Interfacing Slides2

    24/28

    Base Reg Index reg Displacement

    elat ive Based Indexed:ddressing mode

    Datum

    Address

    +

    Instruction

    Base Register

    Address

    I n d e x R e g i s t e r Memory

  • 8/6/2019 Microprocessors and Interfacing Slides2

    25/28

    Coding template for 8086 IN instructiona) Template b) Example

    c) Hex codes

  • 8/6/2019 Microprocessors and Interfacing Slides2

    26/28

    Coding template for 8086 which MOV data betweenregisters or between a register and a memory location

  • 8/6/2019 Microprocessors and Interfacing Slides2

    27/28

  • 8/6/2019 Microprocessors and Interfacing Slides2

    28/28