I was able to configure and work with I2C interface in LPC2368 using Polling Method.There was no problem with the polling method.
Now i am forced to use I2C using Interrupt Routines for Real-Time Applications.I configured the following registers for enabling ISR , when i tried simulating the program , the VIC Address, VIC Enable Bit and VIC Priority are setting up properly.But the function where i used ISR is not invoking , i was not able to solve out where is the problem.Is there any more additional registers i should configure other than these ?
VICIntSelect = 0; // for selecting IRQ VICIntEnable = (1<<19); //Enabling I2C1 VICVectCntl0 = 0x01; // High Priority VICVectAddr0 = (unsigned long)I2C_IRQHandler;
__irq void I2C_IRQHandler() { .... ......
...... VICVectAddr = 0x00; //Acknowledge Interrupt }
I am not getting the IRQ Function invoked at all.
Can any one help me out on this Issue as soon as possible ?
Regards, Samjith
Sir,
Even I have followed the Sample Coding which you have sent , Still Interrupt Function is not invoking,but when I tried using simulation , all the necessary Interrupt Flags are getting set.