Hello Manju
It's not very different to configuring an SLT interrupt.
To get an external interrupt you need to configure the EdgePort module. You can specify which of the pins IRQ1 through IRQ7 should be used as interrupt inputs, and what causes the interrupt to fire - e.g. a transition from logic 0 to logic 1.
For example to configure IRQ1 as rising-edge triggered:
MCF_EPORT_EPPAR = MCF_EPORT_EPPAR_EPPA1(0x1);
MCF_EPORT_EPDDR = 0;
MCF_EPORT_EPIER = MCF_EPORT_EPIER_EPIE1;
Unlike the SLT, the interrupt level and priority of the IRQ interrupts is fixed. IRQ1 is level 1, IRQ2 is level 2 and so on. So there's no need to configure an Interrupt Control Register (ICR). However, you do still need to unmask the interrupt in IMRL:
MCF_INTC_IMRL &= ~MCF_INTC_IMRL_MASK1;
Hope this helps
Simon