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.

TMS320F280049M: F280049 LIN-SCI register

Part Number: TMS320F280049M

Hi ,

F280049 Lin bus SCI can be used to communicate with PC.

But

1.  Driverlib user guide shows "Bitrate = (SYSCLOCK/2) / ((P + 1 + M/16) ∗ 16)", and real result is "Bitrate = (SYSCLOCK) / ((P + 1 + M/16) ∗ 16)",

     LINCLK is SYSCLOCK , not SYSCLOCK/2.

2.Lin bus register does not match setup.(as below picture)

No matter what setup with BRSR and SCIGCR1, no value shows on them.

Any suggestion with above two topic?

thanks,

best regards,

Simen

  • Hello,
    I am writing to let you know that a C2000 team member has been assigned to this post and should be answering shortly.

    Regards
    Baskaran
  • Hi Simen,

    Yes, your assumption is correct. LINCLK=SYSCLK. We will get that changed in the driver lib user guide.

    On your second question, do not use debugger expression / register window for SCI registers, since they do not display the contents correctly. The only way to verify the content got programmed correctly is to read the registers back from your code.

    Regards,
    Nirav
  • Hi Nirav,

    Thanks for your answers.

    best regards,
    Simen
  • Nirav,

    I am asking this for customers.

    We are confused.
    Would you please make it clearer on "do not use debugger expression / register window for SCI registers, since they do not display the contents correctly"?


    Does it mean do not use CCS debug watch window for
    1) only this LIN/UART submodule?
    2) both LIN/UART and conventional SCI submodules?

    Why is there such limitation?


    Wayne
  • Hi Wayne,

    The issue is only applicable to LIN module. It has to do with byte bus bridge on LIN. We are looking into this and plan is to provide customer with an option using Memory browser to be able to view the contents of the Register that reflect the data which gets programmed. Right now address offset for LIN is byte wise, while CPU is 16bit hence the content displayed on Expression window on debugger is different.

    Regards,
    Nirav
  • Nirav,

    I understand.
    Thank you for your information.


    Wayne
  • Wayne

    As mentioned offline, CCS device support package v4.2.1.0 is now available via CCS update.

    This includes fixes for:

    • (1)Viewing LIN registers in  the "Registers" window
    • (2)Moves LIN to the periphal page in the Memory Browser (CAN as well).

    Here's a screenshot on switching to the peripheral page and viewing LIN there.

    Best regards

    Chris