+ Reply to Thread
Results 1 to 11 of 11

Thread: Interrupts in Microprocessor IC-8085.....

  1. #1
    Rohit Chatterjee Newbie
    Join Date
    Nov 2006
    Location
    Kolkata,India
    Posts
    97

    Default Interrupts in Microprocessor IC-8085.....

    In IC 8085 there is a command RIM which is supposed to show u if any RST 7.5,6.5 or 5.5 interrupt is pending....Now what does "pending" interrupt mean???If the interrupts are disabled (either by masking or disabling the Interrupt Enable F/F) then the interrupts wont wrk at all....n if they r enabled,then as soon as the microprocessor is interrupted it will cease all current wrk n go respond to the interrupt....So either the interrupts are disabled or the microprocessor responds to them immediately....Where does this "pending" thing come into the picture????


  2. #2
    ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent
    Join Date
    Jan 2007
    Location
    Hampshire. England.
    Posts
    10,839
    Blog Entries
    13

    Default

    Quote Originally Posted by Rohit Chatterjee View Post
    In IC 8085 there is a command RIM which is supposed to show u if any RST 7.5,6.5 or 5.5 interrupt is pending....Now what does "pending" interrupt mean???If the interrupts are disabled (either by masking or disabling the Interrupt Enable F/F) then the interrupts wont wrk at all....n if they r enabled,then as soon as the microprocessor is interrupted it will cease all current wrk n go respond to the interrupt....So either the interrupts are disabled or the microprocessor responds to them immediately....Where does this "pending" thing come into the picture????
    hi,
    Its all out there on Google;

    Look at this explanation.
    Interrupt Predictability
    Last edited by ericgibbs; 28th October 2009 at 03:45 PM.
    Eric " Good enough is Perfect "
    I will NOT answer PM's requesting technical help, please use the Forum
    PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/

    Link to my Articles: http://www.electro-tech-online.com/a...icgibbs-55450/

  3. #3
    Rohit Chatterjee Newbie
    Join Date
    Nov 2006
    Location
    Kolkata,India
    Posts
    97

    Default

    Thnx but the explanation went a few inches over my head....i mean its a bit hi-fi
    .....anyone wth a simpler xplanation????

  4. #4
    ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent
    Join Date
    Jan 2007
    Location
    Hampshire. England.
    Posts
    10,839
    Blog Entries
    13

    Default

    Quote Originally Posted by Rohit Chatterjee View Post
    Thnx but the explanation went a few inches over my head....i mean its a bit hi-fi
    .....anyone wth a simpler xplanation????
    hi Rohit,
    May I ask what subject you are studying and what year level you are currently at.?

    This would help us to tailor our replies to suit your background knowledge,
    Eric " Good enough is Perfect "
    I will NOT answer PM's requesting technical help, please use the Forum
    PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/

    Link to my Articles: http://www.electro-tech-online.com/a...icgibbs-55450/

  5. #5
    Rohit Chatterjee Newbie
    Join Date
    Nov 2006
    Location
    Kolkata,India
    Posts
    97

    Default

    M studyin electronics n telecomm engg....into my 3rd yr (5th semester)...n we hav this paper on IC-8085.....actually its on microprocessors wth 8085 as the case study....

  6. #6
    Papabravo Excellent Papabravo Excellent Papabravo Excellent Papabravo Excellent Papabravo Excellent Papabravo Excellent Papabravo Excellent
    Join Date
    Mar 2006
    Location
    Michigan, USA (GMT-5)
    Posts
    2,892

    Default

    Quote Originally Posted by Rohit Chatterjee View Post
    In IC 8085 there is a command RIM which is supposed to show u if any RST 7.5,6.5 or 5.5 interrupt is pending....Now what does "pending" interrupt mean???If the interrupts are disabled (either by masking or disabling the Interrupt Enable F/F) then the interrupts wont wrk at all....n if they r enabled,then as soon as the microprocessor is interrupted it will cease all current wrk n go respond to the interrupt....So either the interrupts are disabled or the microprocessor responds to them immediately....Where does this "pending" thing come into the picture????
    Pending is what happens when the conditions for generating an interrupt are present. An interrupt can remain pending for a variety of reasons including:
    1. The processor is currently processing a higher priority interrupt.
    2. The interrupt of interest is currently masked.
    3. Interrupts are disabled.
    You want the interrupt to remain "pending" until the processor can free itself from its other tasks and process the interrupt. That's what "pending" is all about.
    Last edited by Papabravo; 28th October 2009 at 05:45 PM.
    We never have time to do it right; but we always have time to do it over.

  7. #7
    ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent
    Join Date
    Jan 2007
    Location
    Hampshire. England.
    Posts
    10,839
    Blog Entries
    13

    Default

    Quote Originally Posted by Rohit Chatterjee View Post
    M studyin electronics n telecomm engg....into my 3rd yr (5th semester)...n we hav this paper on IC-8085.....actually its on microprocessors wth 8085 as the case study....
    Consider the word 'pending', it means the next action in a queue.

    So if only one Interrupt is requested the programme will service the requested interrupt and then resume the next program instruction in the original sequence before the interrupt occurred.

    If a second interrupt occurs while the mcu is servicing the first interrupt then the mcu 'notes' the interrupt but completes its current interrupt service, when done it will action the 'pending' interrupt, complete that, then return to the original program.
    Last edited by ericgibbs; 28th October 2009 at 05:53 PM.
    Eric " Good enough is Perfect "
    I will NOT answer PM's requesting technical help, please use the Forum
    PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/

    Link to my Articles: http://www.electro-tech-online.com/a...icgibbs-55450/

  8. #8
    Rohit Chatterjee Newbie
    Join Date
    Nov 2006
    Location
    Kolkata,India
    Posts
    97

    Default

    Quote Originally Posted by Papabravo View Post
    Pending is what happens when the conditions for generating an interrupt are present. An interrupt can remain pending for a variety of reasons including:
    1. The processor is currently processing a higher priority interrupt.
    2. The interrupt of interest is currently masked.
    3. Interrupts are disabled.
    You want the interrupt to remain "pending" until the processor can free itself from its other tasks and process the interrupt. That's what "pending" is all about.
    If the interrupt is masked or disabled would it still be considered pending???
    Will the interrupt signals even reach the concerned portion of the microprocesor???I hav this book on IC-8805 n the diagram ovr there shows that the interrupt signal has to pass through an AND gate....and the AND gate is disabled if either the interrupt is masked or the interrupts r disabled in general....

  9. #9
    Rohit Chatterjee Newbie
    Join Date
    Nov 2006
    Location
    Kolkata,India
    Posts
    97

    Default

    Quote Originally Posted by ericgibbs View Post
    If a second interrupt occurs while the mcu is servicing the first interrupt then the mcu 'notes' the interrupt but completes its current interrupt service, when done it will action the 'pending' interrupt, complete that, then return to the original program.
    When an interrupt service subroutine is written the enable interrupt instruction is usually written at the end of the code...before the return statemnt....so evn if an interrupt occurs the interrupts would be disabled....and if the interrupts hav not been disabled then the microprocessor will suspend performing the current interrupt routine n respond to the interrupt....so the 2nd interrupt wouldnt remain "pending" at all.....Right???

  10. #10
    Papabravo Excellent Papabravo Excellent Papabravo Excellent Papabravo Excellent Papabravo Excellent Papabravo Excellent Papabravo Excellent
    Join Date
    Mar 2006
    Location
    Michigan, USA (GMT-5)
    Posts
    2,892

    Default

    No. Interrupts can always remain pending as long as the peripheral device requires service. It does not matter what the processor is doing. When the processor gets around to enabling interrupts all those pending interrupts will be ready to go and the highest priority pending interrupt is the one that will be next in line for service.

    The crucial point is that a peripheral device is responsible for maintining the interrupt in a pending status until it is serviced by the processor. This is one reason why level sensitive interrupts are preferred by some designers and programmers.
    We never have time to do it right; but we always have time to do it over.

  11. #11
    Rohit Chatterjee Newbie
    Join Date
    Nov 2006
    Location
    Kolkata,India
    Posts
    97

    Default

    Well that explained a lot....thnx so so so much....

+ Reply to Thread

Similar Threads

  1. Interrupts in Microprocessor IC-8085.....
    By Rohit Chatterjee in forum General Electronics Chat
    Replies: 2
    Latest: 28th October 2009, 02:00 PM
  2. Opinion: 8085
    By rivalejo in forum General Electronics Chat
    Replies: 15
    Latest: 14th February 2008, 10:42 AM
  3. Interrupts or not interrupts ? That is the question !
    By ZERS in forum Micro Controllers
    Replies: 9
    Latest: 1st March 2005, 07:26 PM
  4. 8085 Microprocessor system debugging
    By wonderz in forum Electronic Projects Design/Ideas/Reviews
    Replies: 1
    Latest: 30th June 2004, 03:04 PM
  5. working frequency of microprocessor 8085
    By vanithaarjun in forum Micro Controllers
    Replies: 1
    Latest: 24th October 2003, 11:12 AM

Tags for this Thread