Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 28th February 2007, 05:26 AM   (permalink)
Question How to convert external Interrrupt to Multiple Interrupts

Hi,


How can we convert the External Interrupt pin INTx of 8051
into multiple interrupts.

Can anyone show me schemmatic for this.

Thanks
prevravanth is offline  
Old 28th February 2007, 07:45 AM   (permalink)
Default

Hi,
As you will want to know which is the interrupting source, you could use a HEF4532 8 input priority encoder.

This will give a 3 bit address related to the calling source, these 3 lines would go to 3 input pins on the MCU,
so that you can determine which intr source needs servicing.

Also there is a common intr output pin, to drive the MCU's intr pin.

EricG

EDIT:
hi again,
The Group Select GS, is set High when any input is High, [interrupt line], check the Truth Table for the ic.
Rem: set Ein high.

Last edited by ericgibbs; 28th February 2007 at 12:24 PM.
ericgibbs is offline  
Old 28th February 2007, 11:48 AM   (permalink)
Default

Quote:
Originally Posted by ericgibbs
Hi,
As you will want to know which is the interrupting source, you could use a HEF4532 8 input priority encoder.

This will give a 3 bit address related to the calling source, these 3 lines would go to 3 input pins on the MCU,
so that you can determine which intr source needs servicing.

Also there is a common intr output pin, to drive the MCU's intr pin.

EricG
Thanks for your reply.

But where is common intr output pin in HEF 4532.
prevravanth is offline  
Old 28th February 2007, 01:47 PM   (permalink)
Default

On the 4532 it is called EO and it is pin 15

You can also look for a 74xx148 or a 74xx748. These are also priority encoder circuits. They have an output whenever one of the inputs is active. I believe that it even has the same pinout as the 4532

Last edited by Papabravo; 28th February 2007 at 01:50 PM.
Papabravo is offline  
Old 28th February 2007, 02:26 PM   (permalink)
Default

hi papabravo,

I use GS for the Interrupt to have the same sense as the external interrupting sense and the EO for the inverted ext sense.

I think it should do what OP wants, he didn't say how many ext interrupts he had in mind.

Regards
Eric
ericgibbs is offline  
Old 28th February 2007, 08:45 PM   (permalink)
Default

Quote:
Originally Posted by ericgibbs
hi papabravo,

I use GS for the Interrupt to have the same sense as the external interrupting sense and the EO for the inverted ext sense.

I think it should do what OP wants, he didn't say how many ext interrupts he had in mind.

Regards
Eric
Sure. Depends on the processor weather you want to use active high or active low interrupts.
Papabravo is offline  
Old 1st March 2007, 11:03 AM   (permalink)
Question how External interrupts works simultaneously

The External interrupts which are coming simultaneously should process it.

What does the 3 bit address related to the calling source do

I am totally confused.
prevravanth is offline  
Old 1st March 2007, 11:50 AM   (permalink)
Default

hi,

Say you have 8 possible sources of interrupt from external devices.

You cannot service all 8 interrupting sources at the same time.

So a decision has to made which ext source has intr priority.

If you 'Or'd the 8 to generate the intr, how would you know which source was requesting the intr???

If 'one of the eight' ext sources, requesting an intr, generated a 3 bit code which is unique for that source,
then the PIC prog would know which Interrupt subr in your prog to execute.

A PIC prog reads these 3 input port bits, so it knows which ext intr to service.

This is what the priority encoder does, it encodes a 3 bit pattern, which unique for each external source.
Input source #0 has lowest priority and source#7 has the highest.

Have you read the datasheets on priority encoder devices ?

Eric

Last edited by ericgibbs; 1st March 2007 at 11:59 AM.
ericgibbs is offline  
Old 2nd March 2007, 06:39 AM   (permalink)
Default

Hi Eric,

I will answer your question: No

And continue your, well explained, story...
prevravanth, The first thing you have to do in your ISR is check the status of the three µC pins connected to the "priority encoder". Depending on the value on these three pins (0 to 7) you will know which interrupt line, on the "priority encoder circuit", you have to service.
mcs51mc is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 09:40 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker