8085 interrupts (for classroom discussion)

Upload: vishnu-natarajan

Post on 02-Mar-2018

234 views

Category:

Documents


4 download

TRANSCRIPT

  • 7/26/2019 8085 Interrupts (for Classroom Discussion)

    1/31

    Interrupts in 8085

  • 7/26/2019 8085 Interrupts (for Classroom Discussion)

    2/31

    8085A Pin diagram and Signals(Recall)

  • 7/26/2019 8085 Interrupts (for Classroom Discussion)

    3/31

  • 7/26/2019 8085 Interrupts (for Classroom Discussion)

    4/31

  • 7/26/2019 8085 Interrupts (for Classroom Discussion)

    5/31

  • 7/26/2019 8085 Interrupts (for Classroom Discussion)

    6/31

  • 7/26/2019 8085 Interrupts (for Classroom Discussion)

    7/31

  • 7/26/2019 8085 Interrupts (for Classroom Discussion)

    8/31

  • 7/26/2019 8085 Interrupts (for Classroom Discussion)

    9/31

  • 7/26/2019 8085 Interrupts (for Classroom Discussion)

    10/31

  • 7/26/2019 8085 Interrupts (for Classroom Discussion)

    11/31

  • 7/26/2019 8085 Interrupts (for Classroom Discussion)

    12/31

  • 7/26/2019 8085 Interrupts (for Classroom Discussion)

    13/31

  • 7/26/2019 8085 Interrupts (for Classroom Discussion)

    14/31

  • 7/26/2019 8085 Interrupts (for Classroom Discussion)

    15/31

  • 7/26/2019 8085 Interrupts (for Classroom Discussion)

    16/31

  • 7/26/2019 8085 Interrupts (for Classroom Discussion)

    17/31

    Ill t ti E l N t d

  • 7/26/2019 8085 Interrupts (for Classroom Discussion)

    18/31

    Illustrative Example on Non-vectoredInterrupt

    Write a main program to count continuously

    in binary with a one-second delay betweeneach count.

    Write a service routine at XX70H to fash FFHve times when the program is interrupted

    with some appropriate delay between eachfash.

    MAIN PRORAMXX00H !X" #$XX%%HXX0&H '"XX0(H )*" +00HXX0,H 'X/ 1 $23XX04H )*" 506H

    XX0+H 5+!! '!+8 !!

    Illustrative Example on Non vectored

  • 7/26/2019 8085 Interrupts (for Classroom Discussion)

    19/31

    Illustrative Example on Non-vectoredInterrupt

    SER"I#E RO$%INEXX70H $1#H :XX76H $1#H $#WXX7;H )*" :0+HXX7(H )*" +00HXX7,H F!+#H/ 1 $23

    XX74H )*" 506HXX7+H 5+!! '!+8XX7H 5)+XX7'H 52 :

    XX7FH 9< F!+#HXX4;H $$ $#WXX4&H $$ :XX4(H '"XX4=H 2'

  • 7/26/2019 8085 Interrupts (for Classroom Discussion)

    20/31

  • 7/26/2019 8085 Interrupts (for Classroom Discussion)

    21/31

    Restart Instructions

    u t p e nterrupts us ng a r or t&

  • 7/26/2019 8085 Interrupts (for Classroom Discussion)

    22/31

    u t p e nterrupts us ng a r or t&Encoder

  • 7/26/2019 8085 Interrupts (for Classroom Discussion)

    23/31

  • 7/26/2019 8085 Interrupts (for Classroom Discussion)

    24/31

    8085 Interrupts and "ector locations

  • 7/26/2019 8085 Interrupts (for Classroom Discussion)

    25/31

  • 7/26/2019 8085 Interrupts (for Classroom Discussion)

    26/31

    l 'i ( )

  • 7/26/2019 8085 Interrupts (for Classroom Discussion)

    27/31

    Accumulator 'it pattern (or SIM )SetInterrupt Mas*+ instruction

    Illustrative Examples on Interrupt

  • 7/26/2019 8085 Interrupts (for Classroom Discussion)

    28/31

    Illustrative Examples on Interruptmas*ing

    Write a program to enable all the interrupts

    in 404=.

    o reset the 7.= interrupt

  • 7/26/2019 8085 Interrupts (for Classroom Discussion)

    29/31

  • 7/26/2019 8085 Interrupts (for Classroom Discussion)

    30/31

    Pending Interrupts

  • 7/26/2019 8085 Interrupts (for Classroom Discussion)

    31/31