Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PIC with sim900 interface

Status
Not open for further replies.

akhil_mohan

Newbie level 6
Joined
Dec 11, 2011
Messages
14
Helped
5
Reputation
10
Reaction score
5
Trophy points
1,283
Activity points
1,351
hallooo everyone.. i am new to this site..... currently i am working on a project which uses pic &sim900... but my question is there any way to configure gsm on pic interrupt instead of polling... i mean after every command we have to wait for the response...... pls help...... continuously my gprs connection getting breakdown...any suggestion to make better....
 

I assume you are interfacing using a UART and hence can use receive interrupts (so characters are not lost if the PIC is busy doing something else)
I tend to collect characters from the modem using recevie interrupts and put them in a buffer - when I have a complete line I then signal the mian control loop, e.g. to check for OK or ERROR or whatever response I am expecting.
 

i am also doing same manner .. but i am using gsm with gprs... so there is a need to check the response of a every command .... i configured receive interrupt & a timer for polling .... but i dnt think this is a better method... my main application delas with these two.. any suggestionnn how can i avoid polling method...
 

Either you can use UART interrupts directly as Horace1 said or use Dma to read the incoming data on uart RX interrupt
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top