Just a simple sketch:
[code]
void setup() {
Serial.begin(230400);
}
void loop() {
if (Serial.available() > 0)
{
byte val = Serial.read();
Serial.write(val);
}
}
Results are ok, sending 8 bytes.
Received (after 0ms): 9C DA 00 03 63 60 3B 36
20ms waiting
Sending frame with 3 bytes
Received (after 0ms): 9C DA 00 03 49 0D 44 36
20ms waiting
Sending frame with 3 bytes
Received (after 0ms): 9C DA 00 03 5A 5F 1A 36
20ms waiting
Same procedure with 500k baud rate
Received (after 0ms): 9C DA 80 83 C9 8D C4 B6
20ms waiting
Sending frame with 3 bytes
Received (after 0ms): 9C DA 80 83 DA DF 9A B6
20ms waiting
First 4 bytes and last byte should always be the same, but with 500k i get different results.
The chipp supports the following baud rates:
75, 150, 300, 600, 1200, 1800, 2400, 3600,4800, 7200, 9600, 14400, 19200, 28800, 38400, 57600, 115200, 230400, 460800, 614400, 921600, 1228800, 2457600, 3000000 and 6000000, but this does not match 500k and 1M used in Arduino.[/code]