Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 2 of 2

Thread: Strange readings on serial1 with teensy3

  1. #1
    Junior Member
    Join Date
    Nov 2012
    Posts
    4

    Strange readings on serial1 with teensy3

    with an easy program like this:

    Code:
    void setup() {
    	Serial1.begin(57600);
    }
    
    void loop() {
            int incomingByte;
            
    	if (Serial1.available() > 0) {
    		incomingByte = Serial1.read();
    		Serial1.write(incomingByte);
    	}
            Serial1.println("12345");
    }
    I recivie this loop response:
    Code:
    12345
    112345
    212345
    312345
    412345
    512345
    
    12345
    
    12345
    112345
    212345
    312345
    412345
    512345
    
    12345
    The RX of serial is not connected and i read the TX through an arduino.

    Seems like that I get on serial with "Serial1.read()" is what I previusly sent, how is possible ?
    and I see this problem on all of my ports..
    I broke somethink?

  2. #2
    Junior Member
    Join Date
    Nov 2012
    Posts
    4
    [SOLVED]
    I found the problem.. rx and tx was connected by some bad soldering..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •