srv 2 Posted November 19, 2013 Share Posted November 19, 2013 hey please help me i am unable to get data.getting nothing from Rx.i am using MSP430F5529 at 16MHz.I can send data but unable to reci. please help me...... Here is the code: /* The circuit: * RX is digital pin P3.4 (connect to TX of other device) * TX is digital pin P3.3 (connect to RX of other device) */#include <SoftwareSerial.h>SoftwareSerial mySerial(P3_4, P3_3); // RX, TXint incomingByte = 0;void setup() { // set the data rate for the SoftwareSerial port mySerial.begin(9600);}void loop() // run over and over{ delay(1); if (mySerial.available()>0 ) { // read the incoming byte: incomingByte = mySerial.read(); // say what you got: mySerial.write("I received: "); mySerial.println(incomingByte, DEC); }} Quote Link to post Share on other sites
abecedarian 330 Posted November 19, 2013 Share Posted November 19, 2013 First order of business would be to verify the transmitter is transmitting, then make sure your data rates are compatible. Quote Link to post Share on other sites
srv 2 Posted November 19, 2013 Author Share Posted November 19, 2013 Is this code right....???.when i send any data i am getting -1 only Sent from my ST26i using Tapatalk Quote Link to post Share on other sites
srv 2 Posted November 19, 2013 Author Share Posted November 19, 2013 How to verify transmitter is transmitting...????? Sent from my ST26i using Tapatalk Quote Link to post Share on other sites
srv 2 Posted November 19, 2013 Author Share Posted November 19, 2013 Please help....i am working on a project and i am interfacing a gsm module with usart...controllor can send data to gsm but can not reci. Data from it. Sent from my ST26i using Tapatalk Quote Link to post Share on other sites
Rei Vilo 695 Posted November 19, 2013 Share Posted November 19, 2013 Duplicated thread... but same answer at http://forum.43oh.com/topic/4614-help-for-softwareserial-in-msp430f5529-launchpad/?p=41507 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.