Actually i am getting problem while trying to receive the incoming sms from gsm modem to micro controller
controller-lpc2148 Uart- UART0 //Cpu clock-60 Mhz (using PLL 12Mhz*5=60Mhz) VPB -15mhz //9600 baud rate ,8 bit data,1 stop bit,no parity Enabled interrupt-Rx0
Sir, I read the processor manual for UART0,I didn't check the CTI as well the 0'th bit of U0IIR. When Gsm getting incoming message means with in that fraction it will send the full string in to Rx buffer as well i don't know where & how to check these things in the isr function and one more thing is that if i connecting lke RFID reader,gps modules means i can able to receive and read the full string without any problem.Then how it could be possible sir?
By the way - I think you should consider looking at the ring buffer implementation that Keil has available. It's way better than copying a full text line when you see a line break - you don't want big loops inside an ISR.
Sir, ring buffer..? i have no prevoius experiance with ring buffer.So i have to google about ring buffer and also why & where do you refer me this ring buffer to implent?
To check buffer register,
"if(dataa!=0x0A)"
or
for(i=0; s1[i]!='\0';i++)
{
s2[i]=s1[i];
} Please clarify me also I am the new one to keil.So please guide me to do the ring buffer implementation
Sorry, can't afford the time to guide you. But Google is your friend. There is more than enough information available. Just make sure to read a bit more carefully than you read the posting instructions for source code - details tends to be important.
Sorry for the mistakes in last post.I try to re write the code using ring buffer sir.Could i able to use this ring buffer concept in to ISR.?Is that possible
Most definitely - as clearly described in quite a number of articles about the use of ring buffers. They are so popular just because they work well with interrupts or with multiple threads. So you haven't located the Keil LPC2100 UART sample code yet?