scorrpeio
Full Member level 5
hi...
I have interfaced the GSM modem with PIC18F4520 using UART interface.
I send the command "AT" to GSM modem. In response it sends reply "OK"
Now... RCREG in PIC18 is of 8bit. so it will only accept 'O' for the first RX interrupt. In the next RX interrupt RCREG will receive 'K'.
I want to store this whole response sent by the GSM modem into an array and display it onto the LCD screen.
Can anyone let me know, how to achieve it??
---------- Post added at 13:51 ---------- Previous post was at 13:47 ----------
I cant call the func WriteToLCD() inside the RX_isr routine as it will consume much time and the next received data might get lost.
Also, the reply sent by GSM modem varies like, OK, ERROR, 8078417. so, I wont know in advance, how many bytes has to be received in buffer.
I have interfaced the GSM modem with PIC18F4520 using UART interface.
I send the command "AT" to GSM modem. In response it sends reply "OK"
Now... RCREG in PIC18 is of 8bit. so it will only accept 'O' for the first RX interrupt. In the next RX interrupt RCREG will receive 'K'.
I want to store this whole response sent by the GSM modem into an array and display it onto the LCD screen.
Can anyone let me know, how to achieve it??
---------- Post added at 13:51 ---------- Previous post was at 13:47 ----------
I cant call the func WriteToLCD() inside the RX_isr routine as it will consume much time and the next received data might get lost.
Also, the reply sent by GSM modem varies like, OK, ERROR, 8078417. so, I wont know in advance, how many bytes has to be received in buffer.