Hello,
I was able to successfully change my baud rate to 19200 on this board using the following code on my Particle Boron micro while connected to the SC18IM704 evaluation board using protowires and with the Jp4 jumper open. I was also able to read i2c from i2c devices quite well. But its still too slow and I can notice the difference.
Serial.begin(9600)
Serial1.write(0x52); // Start i2c message
Serial1.write(0x00); // BR0
Serial1.write(0x01); // BR1
Serial1.write(0x50); // End i2c message
// Attempt Higher Baud Rate
if (!once) {
Serial1.write(0x57); // Start i2c message
Serial1.write(0x00); // BR0
Serial1.write(0x70); // Data
Serial1.write(0x01); // BR1
Serial1.write(0x01); // Data
Serial1.write(0x50); // End i2c message
delay(500);
Serial1.end();
delay(1000);
Serial1.begin(19200);
once = true;
}
But the second I started changing the baud rate to 384000 (BRG0 = 0xB0, BRG1 = 0x00) . Things start getting wonky. To be specific, the SC18IM704 begins to effect the TX signal coming from the Boron micro. On my logic analyzer I can see framing errors and it appears to prevents me from doing internal register or i2c operations. Based on the speed spec (460.8 kbit/s), this should be achievable but the chip seems to be limiting itself. When I removed the SC18IM704 from the uart and just probed the signal from the Boron, the messages are totally fine. Which makes me think something is wrong here.
Would love some help.
Thanks!