void initInterrupt()
{
PCB_PINSEL1 = PCB_PINSEL1 | 0x00000001; /// ///////////EINT0 = Pin P0.16////////
EXTMODE = 0x00000000; // when EXTMODE= 0 means it is level sensitive n if EXTMODE=1 then EINT0 is edge sensitive
EXTPOLAR = 0x0000000; //polarity register level or edge
VICIntSelect = (0<<14); // VICIntSelect register pin no 14 (EINT0)=0 to set IRQ register if 1 then FIQ will set
VICVectCntl0 = 0x0000002E ;
VICVectAddr0 = (unsigned)EXTINTVectoredIRQ;
VICIntEnable = VICIntEnable | 0x00004000; //Enable EINT0
}