Ming wrote:
I read the user op manual, couln't find anything.
Maybe this could give you some light in this issue:
Note the "interrupt:0x2400" line and read about Core interrupt level stored in SR (status register).
/*
* sw1ISR: IRQ4 Interrupt Service Routine
*
* Parameters: None
*
* Return : None.
*/
__declspec(interrupt:0x2400) void sw1ISR(void)
{
/* reading pin irq4 state */
while (!(MCF_EPORT_EPPDR & MCF_EPORT_EPPDR_EPPD4))
; /* Wait for the switch to deassert */
/* show value to EVB LEDs */
LEDshow(0x03,150);
/* Clear the interrupt event */
MCF_EPORT_EPFR = MCF_EPORT_EPFR_EPF4;
return;
}
Good luck!