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.

TMS320F28069: Detection of Idle Line in Multiprocessor Mode

Part Number: TMS320F28069
Other Parts Discussed in Thread: C2000WARE

Hello,

SCIA works in Idle Line Multiprocessor Mode. So address is received first by IT as described in the datasheet. It works fine.

However, several byte should be received and the size is not known especially if frame in not properly organized. So, I need to detect idle line in order to be able to answer properly using Tx interrupt.
How can we detect Idle-Line ?
Many thanks to your answer

Ol

  • Ol,

    As you know, Idle-line mode is configured with bit 3 in the SCI Communication Control Register (SCICCR). The blocks are separated by having a
    longer idle time between the blocks than between frames in the blocks. An idle time of ten or more bits after a frame indicates the start of a new block. The time of a single bit is calculated directly from the baud value (bits per second). Once set in Idle-line mode, the protocol (i.e. detecting the idle-line) is taken care of automatically. Please see section 13.1.1.5 in the F2806x TRM:

    www.ti.com/lit/spruh18

    I hope this helps. If this answers your question, please click the green "Verified Answer" button. Thanks.

    - Ken
  • Thanks you Ken for your answer. However, what I want to do is detecting that master stop emetting data and that serial is really idle to be able to send my data because serial link works in half duplex.


    How to test that serial is idle before to send datas (half duplex) ?

  • Ol,

    To detect if the master stopped transmitting in order to determine if the line is idle, you can read the Transmitter Empty Flag (bit 6) in the SCI Control Register 2 (SCICTL2). Also, please see the SCI example code in C2000Ware at:

    C:\ti\c2000\C2000Ware_<version>\device_support\f2806x\examples\c28\

    I hope this helps. If this answers your question, please click the green "Verified Answer" button. Thanks.

    - Ken
  • Ol,

    It's been a while since I have heard from you last. Therefore, I am assuming that my last reply resolve your issue and I will close this thread.

    - Ken