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.
The TX pin goes to tx and same for rx , in case of simple data transfer with sim900. the initial code worked. the problem was with uart buffer size. increasing that to 256 from 32 implemented the code properly. the message was correctly displayed on the LCD after that.
In the above diagram, the tx pin of sim900 is connected to rx and vice verse. but it has been specified in the sim900 guide that for serial com the rx pin should be connected to rx and same for the tx pin. tx-rx and rx-tx connections are used in debug mode.
i detected some error in the module... hyperterminal is not acknowledging the device.
will hav to work on that then i can test this code. Also in the above code the uart registers and vectors hav to be defined according to the library.
Thanks for the suggestion.
Even i think that is the problem...
I am not very sure how to correct it.
The uart_getc() returns 2 bytes. Higher byte is the last received status and lower byte represents byte from ring buffer.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.