Reprints     Printer-Friendly    Email this Article    RSS        Font Size     What's This?

[Ideas For Design]
DOWNLOAD THE CODE:
2189.zip


Use Four External Interrupts Through One 8051 Input



Yuri Magda  |   ED Online ID #2189  |   May 13, 2002

Article Rating:

The 8051-compatible microcontrollers are equipped with up to two inputs that may be used as general-purpose interrupts. A simple way to increase the number of interrupt inputs is shown in the figure. The 74LS08 chip provides up to four interrupt inputs through the standard INT0 input.

This circuit is built so that Interrupt 1 has the highest priority and Interrupt 4 has the lowest priority. Intel standard assembler is used for the demonstration program shown in the code listing. The program code allows masking of the unusable or undesirable interrupts. Here, the variable IE_MASK is used to hide the interrupts by setting the appropriate bits of the high-order nibble to "1." Each time the corresponding interrupt is implemented, the interrupt handler switches on the appropriate LED.

You see from the code that Interrupts 2 and 3 are disabled, so only 1 and 4 will be processed. Of course, the program code is only a skeleton for more complicated applications that readers can build.

To download a listing, click Download the Code at the top of the page.




Reprints     Printer-Friendly    Email this Article    RSS        Font Size     What's This?


  • Automating Analog IP Process Migration
  • C Tools Accelerate HDV Development On Xilinx FPGAs
  • A New Design Inflection Point
  • Forecasting Industry Growth For 2009 And Beyond
  • EDA Retools To Exploit Multicore Architectures
  • Design And Verification Move Up In Abstraction
  • EDA Retools To Exploit Multicore Architectures
  • A New Design Inflection Point
    1) Build A Smart Battery Charger Using A Single-Transistor Circuit
    (234 views today)
    2) Transportation Guidelines For Lithium Batteries Get Updated
    (233 views today)
    3) The Field Of Energy Harvesting Begins To Ripen
    (124 views today)
    4) 2008 BEST Electronic Design Winners
    (114 views today)
    5) Easily Convert Decimal Numbers To Their Binary And BCD Formats
    (101 views today)
    ALL TOP 20







    Reader Comments

    hello, this is the very first time i am searching your site.it is very useful for me. i would like to enjoin your group. thank you,

    antony

    antony -July 08, 2005   (Article Rating: )

    Hello please,send to me a source of Assembly project with microcontroller at89c51

    prathmesh -June 10, 2005

    Thanks.

    Anonymous -June 03, 2005
    Read more comments...

    POST YOUR COMMENTS HERE

    Name:

    Email:
    Rate this article:

     less useful more useful 
    1
    2
    3
    4
    5
    Your Comments:

    Enter the text from the image below




    Please refresh the page if you have trouble reading this text.
     
     

    PartFinder

    Find real-time pricing, stock status, same-day/next-day shipping options and more. Brought to you by Digi-Key. Go to PartFinder.    
    GlobalSpec

    PART SEARCH :
    Powered by: GlobalSpec - The Engineering Search Engine
    Sponsored Links

    Electronic Design Europe Electronic Design China EEPN Power Electronics Auto Electronics Microwaves & RF
    Mobile Dev & Design Schematics Find Power Products Military Electronics EE Events Related Resources