Hello,
I'm using a Teensy 3.2.
I receive 9600bd datas. I'll read it with the Teensy but it's not correct, as if the baud rate is not correct.
The board send 1 and 0:
Teensy display:
31
D
A
30
D
A
Strange value
With my MAC with an USBtoUART:
1
0
That is correct!!
With the scope the shortest pulse is 104us (it seems correct for the 9600bd).
What do I wrong????
Thanks
I'm using a Teensy 3.2.
I receive 9600bd datas. I'll read it with the Teensy but it's not correct, as if the baud rate is not correct.
The board send 1 and 0:
Teensy display:
31
D
A
30
D
A
Strange value
With my MAC with an USBtoUART:
1
0
That is correct!!
With the scope the shortest pulse is 104us (it seems correct for the 9600bd).
Code:
void loop()
{
byte Command;
if (Serial1.available() > 0)
{
Command = Serial1.read();
DebugSerial.print("Decoded: ");
DebugSerial.println(Command, HEX);
}
}
What do I wrong????
Thanks