Is there an upper limit of the baud rate on the SCI ports on an F28335?
I'm connecting two F28335s over an RS-485 link in half-duplex mode (each with an RTS signal). I have the signals timed properly such that only one DSP drives the link at a time, taking care for extra time at the end of a transfer to make sure the stop bit is properly sent (there are about 2 1/2 stop bit-periods before changing the RTS states). I've noticed that the TXEMPTY bit goes high long before the stop bit has been fully sent, btw, contrary to the documentation. Both DSPs use identical send/receive driver code and both have 30 MHz oscillators with stability and accuracy measured in parts per million (150 MHz SYSCLK) so they have nearly identical low-speed clocks for driving the SCI circuitry (SCIA in particular) and the error should never be large enough to cause a problem.
At 115200 baud - which works out to 115740 or so given integer rounding in the BRR calculation - the link works fine. At 230400, however, the "master" DSP repeatedly (though not always) registers framing errors on a simple 4-byte "ping" followed by a 2-byte "ack" separated by 20 us (the "slave" always responds so it must not be generating an error.) The inputs to the SCI pins are clearly sufficient for proper reception of the data, i.e., there is a start-bit, followed by 8 data bits, a stop bit, a start bit, 8 more data bits and at least 2 1/2 periods of stop bits at the end. The waveform resulting in an error condition is identical to that of a properly received bit insofar as I can tell by visual inspection on a 'scope. In fact, the EMU buffer register actually contains the second byte of the "ack" and the RXFFST register bits indicate the presence of 2 bytes in the FIFO. Since the FE bit has been set I cannot extract both bytes through RXBUF. Once a framing error occurs, all subsequent transfers fail as well (even after a SWRESET) until after a system reset.
The only documentation I can find on the SCI port timing is the GPIO timing which indicates higher speeds should be possible. I've seen some mention of speeds of up to 961 kbaud for similar 28xxx parts, though nothing in particular for the 28335.
Thoughts?
Mark