Page 1 of 1

Working with the NMI irq7,facing problem-urgent.

Posted: Thu Apr 23, 2009 10:46 pm
by savaliya_ambani
Dear Sir,

I am using the NMI interrupt 7 on MOD5282 , and i have also written ISR as suggested inside the manual MOD5282 INTERRUPT.pdf. But it Disables all the functions of the UCOS. and only Idle task is running.

It gets into ISR for the When interrupr arrives on NMI, But gets trapped when it executes the last instruction of the ISR ,that is asm("rte");.
and it is compulsary that i have to use all 4 eport interrupts availble on MOD5282.

Kinldy reply me as fast as possible.thank you.

Re: Working with the NMI irq7,facing problem-urgent.

Posted: Fri Apr 24, 2009 6:18 am
by rhopf1
I'm using code as shown in section 3 of thew MOD5282 Interrupt application note. No assembly language but requires use of INTERRUPT macro.

After initializing:
// Edgeport IRQ7
INTERRUPT(irq7_isr, 0x2700 )
{
// your interrupt code, NO system calls
eport_data = sim.eport.eppdr;
sim.eport.epfr = EPORT_IRQ7; // re-enble interrupt
}