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.

TMS320F28027: Baud Rate Clarification in SCI-loop back Example.

Part Number: TMS320F28027

Hi all,

I need to set a baud rate of 9600 in TI28027. 

When i calculate using the formula given in the reference manual

BRR = LSPCLK / (SCI Asynchronous Baud * 8) - 1

with LSPCLK as 10MHZ and SCI Asynchronous Baud as 9600 I am getting 208Ch

So the SCIHBAUD setting should be

SciaRegs.SCIHBAUD = 0x0020;
SciaRegs.SCILBAUD = 0x008C;

In this (SCI_Loopbac_interrupt) example its shown the following two lines.

 SciaRegs.SCIHBAUD = 0x0000;
SciaRegs.SCILBAUD = SCI_PRD;

On further putting the mouse pointer near SCI_PRD and using macro_exapnsion its showing as

(40E6/4/(100E3*8))-1

This should mean that the baud rate is 100k right?

I want to know if whether 100K is the baud rate setting used in the default example program as generally, it mentioned that 100k baud rate will lead higher percentage of errors.

Also for 9600 Baudrate, my calculated value (208Ch) is right? Also, I want to know where is the description of macro SCI_PRD mentioned.

  • Hi Sachin,

    The SCIHBAUD looks like it's not being updated, so you will need to update that register using the SCI baud rate functions in driverlib. Please use the sci examples for this.

    Also, I want to know where is the description of macro SCI_PRD mentioned.

    Can you once try right-clicking SCI_PRD and then clicking "open declaration"? This should point you to the right location.

    Regards,

    Vince