This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28027F SCIA 7-bit data length mode parity question



Hello,

I'm implementing a UART communication protocol to an F28027F & InstaSpin based customer project. The customer protocol format require 2400Baud via 7-bit data length and use even parity with 1bit stop.

By manually breakpoint check before the data was sent into SCITXBUF, I can ensure SCICCR and other registers are configured correctly. But by debugging, the oscilloscope waveforms had shown that whether I select to use odd or even parity, the SCI port can only sendout parity bit as odd parity configuration. 

Also, before checking the TX I was debugging RX path from customer device. The received waveform from oscilloscope check is correct for 7-bit data length and even parity configuration, but whether I select to use odd or even parity bit to receive, the SCIRXST will only give Parity Error Flag and reject to receive. At the beginning I thought it maybe caused from customer device clock jitter or rising edge delay from optical coupler as isolation, but since the TX path sent waveform by F28027F have the similar parity issue (which use internal 10MHz osc as main clock source), I'm not sure where I can check to locate the problem.

Does anyone have some suggestions? Thanks.

Best Regards.

Harvey Wang

  • Hi Harvey,

    It seems to me that something may be incorrect in the configuration of the number of bits or parity being used.

    My suggestion would be to set up some internal and external loopback tests. You can do the loopback to the same SCI and then distinct SCI modules. For example have SCIA loopback to SCIA. Then have SCIA loopback to SCIB. You should configure them both the same way and see if you observe the same behavior.

    sal