Electronic Design

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


[Ideas For Design]
Microcontroller incorporates eight interrupts

Contributing Author  |   ED Online ID #6322  |   February 23, 1998


The method presented here provides a microcontroller with eight real-time interrupts instead of just one without giving up any of the processor’s standard I/O lines. This design uses a microcontroller's built-in SCI (Serial Communications Interface) to read the eight interrupt status lines. The only requirement is that the SCI provide a clock, data-input line, and an external control line.

A Motorola 68HC811 was used to prototype and test this design. A 74HC165 parallel-to-shift register loads the status of the eight real-time interrupt lines and then serially shifts the data to the microcontroller. The 74HC30 eight-input NAND gate senses all eight interrupts.

Any one or more of the eight interrupt lines going to an active low state will cause the NAND gate to produce an active high signal (see the figure). Then the signal gets inverted and sent to the real-time interrupt pin on the microcontroller (in this case, the 68HC811’s XIRQ). At this time, the software instructs the microcontroller to drive its SS (Slave Select) line low, causing the status of the interrupt lines to be loaded into the 74C165. The software then drives the SS line high again and initiates a read of its serial input line (MISO on the 68HC811). Once the status of the eight interrupt lines are read, the software examines the data sequentially to determine which interrupt service routine to execute.

One advantage of this scheme is that multiple interrupts can be captured simultaneously and serviced in terms of priority. IRQ1 is given highest priority in this design, while IRQ8 is given lowest priority. The software written for the 68HC811 also uses the RS-232 interface. It displays the interrupt currently being serviced (see the listing).


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


  • Network-On-Chip Tools Arrive for The Masses
  • Tackling System Design Challenges Through Early Verification
  • ESL Tools Take Center Stage As Designers Move Up
  • Parasitic Extraction Tool Targets Next-Generation Custom ICs
  • Synopsys Jumps Into ESL-Synthesis Pool
  • Verify Control Systems Before Committing To Hardware
  • You're Using How Many FPGAs?
  • Tool Up For The FPGA Blitz
    1) Build A Smart Battery Charger Using A Single-Transistor Circuit
    (178 views today)
    2) Hot Hands For Some Cool Rock: Motion Sensing Meets Audio Engineering
    (168 views today)
    3) What's All This Transimpedance Amplifier Stuff, Anyhow? (Part 1)
    (87 views today)
    4) GPS-Derived Grandmaster Clock Delivers Ultra-Precise Time And Frequency Sync
    (84 views today)
    5) Downconverting Mixers Lower Power Consumption While Improving Performance
    (67 views today)
    ALL TOP 20



    POST YOUR COMMENTS HERE
    Name:

    Email:
    Your Comments:

    Enter the text from the image below


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

    Search Electronic Design
         
      
     
    Web Seminar
    Sponsored By:
    Title: Read Pacing: A Performance Enhancing Feature of PCI Express Gen 2 Switch Devices
    Speakers: 
    Date: 07/01/08
    Register: 

    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