EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / interrupt handling

interrupt handling

|

Microcontroller › 8051 › interrupt handling

  • This topic has 3 replies, 3 voices, and was last updated 12 years, 5 months ago by SHAH DISHANT H..
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • January 31, 2011 at 9:36 am #570
    Ryan
    Participant

    I usde two interrupts in my program but while one interrupt was being handeled another interrupt got generated ,it was also of  higher priority but the interrupt did not got executed. what could be the possible problem?

    is the controller(at89c51)not able to handle two interrupts at a time. if yes is it valid for all controllers of other series too

    March 9, 2014 at 1:48 pm #11259
    SHAH DISHANT H.
    Participant

    Hi,

    Can you post the code here? If you want, you can use masking of interrupt. 

    March 9, 2014 at 5:39 pm #11262
    Ashutosh Bhatt
    Participant

    in 8051 based system, second interrupt service routine will not be executed till the on going ISR is completed. the priority only works when two interrupts occurs at the same time. 

    March 12, 2014 at 6:52 am #11293
    SHAH DISHANT H.
    Participant

    Hello Mr. A M Bhatt

     

    As far as I know, Higher prority interrupt can tregger lower priority interrupt. I have made one application which is as followed.

     

    When the system will receive data RI will occur and in interrupt 4 I had written a ISR which will receive data on UART unless it receives ‘*’ on UART.

     

    I had connected a fire sensor on EXT0 and when this interrupt will occur, it will start running one motor. 

     

    Here if UART is receiving data and it still hs not received ‘*’ and if EXT0 will receive interrupt, it will stop running ISR of interrupt4 and will go to ISR 1. After  completting ISR1, it will return to ISR4 and will wait till ‘*’ has been received.

     

    Check with such conditions.

     

    I may be wrong but this is what I had tried and it was working fine.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 Arrowfly LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of Arrowfly
Privacy Policy | Advertising

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise