ISR for IRQ1
Posted: Thu Nov 13, 2008 10:44 am
I've got code that sets the level on IRQ1 (for my MOD5270) and tests detection of the rising edge and falling edge of a signal. I can dump the registers and see that everything operates correctly (for instance, EPFR indicates that the event was detected).
I have an ISR for the events that is not getting executed. I'm pretty sure that EPF1 (table 13-13 of RM for 5270) corresponds to REQ1. Therefore, the vector for IRQ1 is 65. Right?
I defined an ISR (called edge) using the INTERRUPT macro:
INTERRUPT ( edge, 0x02000 )
{
interrupts++;
J2[15] = 0;
}
And I tried to set it up with:
SetIntc( (long)edge, 65, 4, 4 );
But it never gets called.
I set following to try to trigger the event:
J2[43].function = (PINJ2_43_IRQ1_FRT);
Bit 2 of sim.eport.epddr is set to 1 (output)
Bit 2 of sim.eport.epier is set to 1 (enabled)
Bit 2 of sim.eport.epdr is set to 1 (on)
As I said, I see bit 2 of sim.eport.eppdr and epfr going to 1, but the ISR is not being invoked.
I have an ISR for the events that is not getting executed. I'm pretty sure that EPF1 (table 13-13 of RM for 5270) corresponds to REQ1. Therefore, the vector for IRQ1 is 65. Right?
I defined an ISR (called edge) using the INTERRUPT macro:
INTERRUPT ( edge, 0x02000 )
{
interrupts++;
J2[15] = 0;
}
And I tried to set it up with:
SetIntc( (long)edge, 65, 4, 4 );
But it never gets called.
I set following to try to trigger the event:
J2[43].function = (PINJ2_43_IRQ1_FRT);
Bit 2 of sim.eport.epddr is set to 1 (output)
Bit 2 of sim.eport.epier is set to 1 (enabled)
Bit 2 of sim.eport.epdr is set to 1 (on)
As I said, I see bit 2 of sim.eport.eppdr and epfr going to 1, but the ISR is not being invoked.