Author Topic: Multiple Hardware Interrupt signals  (Read 2541 times)

0 Members and 1 Guest are viewing this topic.

Offline Pariah_ZeroTopic starter

  • Newbie
  • Posts: 4
  • Country: us
Multiple Hardware Interrupt signals
« on: February 11, 2014, 03:30:51 am »
My memory is fuzzy and my google-fu is failing me

I've been working on a design with a number of chips are connecting to a microcontroller using i2c.

A bunch of the chips have open drain interrupts, so it's easy to chain them to the same pin on the MCU, and then query the chips when an interrupt is received...

However, one of the chips has four interrupts which are logic level pins (not open drain); as I recall these can't be simply chained together, as I'd end up with one chip fighting to hold the interrupt high, while the others fight to hold it low, with an eventual release of blue smoke.

There are only a few external interrupt pins; certainly more than I have available interrupt pins.

So what options are available to handle more interrupts than available interrupt pins?
 

Offline TerraHertz

  • Super Contributor
  • ***
  • Posts: 3958
  • Country: au
  • Why shouldn't we question everything?
    • It's not really a Blog
Re: Multiple Hardware Interrupt signals
« Reply #1 on: February 11, 2014, 04:09:39 am »
The magic words are 'Programmable Interrupt Controller'. PIC.

Read up on the old x86 legacy chips like the 8259. Maybe there's something equivalent today.
Or, use a small programmable logic device to implement a simple PIC.
Collecting old scopes, logic analyzers, and unfinished projects. http://everist.org
 

Offline AlfBaz

  • Super Contributor
  • ***
  • Posts: 2184
  • Country: au
Re: Multiple Hardware Interrupt signals
« Reply #2 on: February 11, 2014, 05:08:26 am »
There's always the 74LS32  :)
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Multiple Hardware Interrupt signals
« Reply #3 on: February 11, 2014, 12:17:19 pm »
Quote
So what options are available to handle more interrupts than available interrupt pins?

Using diodes to OR them.
================================
https://dannyelectronics.wordpress.com/
 

Offline qno

  • Frequent Contributor
  • **
  • Posts: 422
  • Country: nl
Re: Multiple Hardware Interrupt signals
« Reply #4 on: February 11, 2014, 07:36:40 pm »
You can use a transistor with a pull up resistor.

To quicky see the device that made the interrupt use a decimal to hex demultiplexer.

checkout 74xxx147
« Last Edit: February 11, 2014, 07:45:12 pm by qno »
Why spend money I don't have on things I don't need to impress people I don't like?
 

Offline NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9110
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: Multiple Hardware Interrupt signals
« Reply #5 on: February 11, 2014, 07:50:01 pm »
You could use diodes if they're active low or a transistor and resistor if they're active high.

Another solution is to use a PCF8574 or similar, but that's probably more complex than necessary.
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Multiple Hardware Interrupt signals
« Reply #6 on: February 11, 2014, 08:21:21 pm »
Quote
a transistor and resistor if they're active high.

Diodes can OR them if they are active high too.
================================
https://dannyelectronics.wordpress.com/
 

Offline NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9110
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: Multiple Hardware Interrupt signals
« Reply #7 on: February 11, 2014, 10:13:42 pm »
Quote
a transistor and resistor if they're active high.

Diodes can OR them if they are active high too.

You'll still need to invert it to connect it to an active low bus.
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Multiple Hardware Interrupt signals
« Reply #8 on: February 11, 2014, 10:36:54 pm »
No.
================================
https://dannyelectronics.wordpress.com/
 

Offline NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9110
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: Multiple Hardware Interrupt signals
« Reply #9 on: February 12, 2014, 12:19:14 am »
No.
He already has an active low interrupt bus. Using another I/O to make an active high interrupt bus is one option, but if I/Os are scarce, a better choice might be to use a transistor and two resistors to tie it into the active low bus. (The second resistor is to pull down the line when no interrupt is active. Otherwise, the line will float when there's no interrupt and be prone to noise.)
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Multiple Hardware Interrupt signals
« Reply #10 on: February 12, 2014, 12:28:23 am »
Quote
...

Diodes can OR active high signals or active low signals.
================================
https://dannyelectronics.wordpress.com/
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf