Created Wed, 04 Dec 2013 17:43:47 +0000 by psykhon
Wed, 04 Dec 2013 17:43:47 +0000
Hi: Im using the uno32 revc with mpide 0023 20130715, just found that the UR2X is not receiving no mather what I tried, this is a small "loopback" piece of code for testing only
void setup(){
Serial1.begin(baudrate);
Serial.begin(baudrate);
Serial1.write("H");
Serial.write("J");
}
void loop() {
while(Serial1.available()){
Serial1.write("-");
Serial1.write(Serial1.read());
}
while(Serial.available()){
Serial.write("/");
Serial.write(Serial.read());
}
}
Im testing this code with an external rs232 converter and everything is fine on Serial, on Serial1 it sends but never receives
also tested pin 39 as an output blinking a led and fine, also fine as an input so the pin is not burnt
any ideas?
Wed, 04 Dec 2013 20:49:26 +0000
tested with serial1 alone, still not working
void setup(){
Serial1.begin(baudrate);
/* Serial.begin(baudrate);*/
Serial1.write("H"); //just to see if its alive
}
void loop() {
while(Serial1.available()){ //wait for incoming
Serial1.write("-");
Serial1.write(Serial1.read());
}
}
Wed, 04 Dec 2013 21:00:40 +0000
Does your version have the Serial1+ vector fix in it?
[url]http://www.chipkit.net/forum/viewtopic.php?p=9491&sid=740c4b62eb46100e2ad64af38545f27c&sid=740c4b62eb46100e2ad64af38545f27c#p9491[/url]
Wed, 04 Dec 2013 21:28:49 +0000
Does your version have the Serial1+ vector fix in it? [url]http://www.chipkit.net/forum/viewtopic.php?p=9491&sid=740c4b62eb46100e2ad64af38545f27c&sid=e15c49351a366976e2d6b716c6e40c57#p9491[/url]
WORKS!!!
I have made many searches to find this fix for myself but clearly did not use the correct terms
Thanks!!!! :D