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.

TMS320F28377D: SCI baud register change while code is running

Part Number: TMS320F28377D
Other Parts Discussed in Thread: C2000WARE

Tool/software:

Hi,

I am working on TMS320F28377D SCI A .IN one of the use baud setting needs to change .Initial Baud is set to 9600.
SciaRegs.SCIHBAUD.bit.BAUD = 43U;      // config9600 bps
SciaRegs.SCILBAUD.bit.BAUD  =  139U;

while the code is running this baud rate needs to be changed  to  38400
So code updated as :

EALLOW; //allowinsertion                                 
SciaRegs.SCICTL1.bit.SWRESET = 0;                        
SciaRegs.SCIHBAUD.bit.BAUD = 2U;      // config 38400 bps
SciaRegs.SCILBAUD.bit.BAUD  =  138U;                     
SciaRegs.SCICTL1.bit.SWRESET = 1;                        
EDIS;//disableinsertion  

I observed SCIA register it is changing for few sec and again goes back to 9600 baud ,default setting for SCIA.
please assist

  • Without more details on the code you are running and your specific setup, it is difficult to say what could the cause for this. It is possible that there is code in your project which configures the UART to 9600 baud that is getting called and overwriting your settings. The F28377D is also a dual-core device, where each C28x CPU has access to the SCIA module. If there is code running on both CPUs, they could be overwriting each other.

    I would suggest you start with C2000ware SCI example to rule out any software issues.