Sir i have completed the message sending part from sim908 to lpc 2148 using the polling method..Now i wanted to do the same with interrupts...i hd written the code for it which i have attached here buts its not working for me...i am not receiving any characters from sim908 now...
please let me know where i am gng wrong in the code.....
im using character lcd 16*2
....im now getting the interrupts well..though im not being able to extract the incoming message well to be displayed on the lcd.
From what it looks like,your code has two functions.The first function is for initializing USART,and the second function is the interrupt service routine for the GSM interrupt.Where in the code,are you sending/receiving the message?
In ISR use a 200 byte buffer to receive USART data. Don't test for AT or anything else in ISR. Every AT response ends with OK. So just receive whatever the SIM908 sends and after all the data is dumped to buffer, parse the buffer and extract the required field or SMS.