Created Sun, 11 Jan 2015 00:58:19 +0000 by afpds
Sun, 11 Jan 2015 00:58:19 +0000
Hello Everybody,
My name is Andre, Im from Portugal and I have some problems to programme my Uno32 with a GPS receiver.
How can I make the transmission at two serial ports (RX|TX)?
When I make the connection at RX TX from my ChipKit board to my GPS, a LED gets on and I cant Compile with Flash.
I really need some help. :? :cry:
Thank you!
Sun, 11 Jan 2015 01:05:10 +0000
Using the RX/TX pins 0 and 1 is not a good idea. It is shared, as with most Arduino boards, with the on-board USB serial connection. You can't use it for both that and for communication with another external serial device. That includes uploading new code.
But the UNO32 does have a second serial port, on pins 39 (RX) and 40 (TX).
You can access that port by using Serial1 instead of Serial:
Serial1.begin(9600);
Serial1.print("Hello");
if (Serial1.available()) {
int c = Serial1.read();
}
... etc ...