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.
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.
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
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 ?
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.