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.

TMS320F28335: Technical help regarding SCI in TMS320F28335

Part Number: TMS320F28335
Other Parts Discussed in Thread: C2000WARE, CONTROLSUITE

We are USING tms320F28335 evm AND trying to send the floating point data through SCI A (GPIO 29) and receive the same data through pin GPIO 28, using RS485 as the communication protocol. . During debug mode we can see some data in the RX Buffer register but the RXREADY pin status is 0. We are using SCI loopback A example code and trying to configure it according to our need.As we are new to the system we are unable to configure it properly.

Kindly provide the technical help regarding this as soon as possible.

  • Rahul,

    Under normal operation, when a new character is ready to be read from the SCIRXBUF register the RXRDY flag is set. If the RX/BK INT ENA bit is enabled then an interrupt will be generated. After reading the SCIRXBUF the RXRDY is automatically cleared.

    Please try running the following example "as is" and see if it works as expected:

    C:\ti\c2000\C2000Ware_<version>\device_support\f2833x\examples\scia_loopback

    Note that in this example the loopback is enabled where the Tx pin is internally connected to the Rx pin. Once this example is working, you could disable the loopback and test the connection with the pins. If all works, then compare this example code to your code.

    Also, in case you are not aware - the F2833x SCI reference guide can be found at:

    www.ti.com/lit/sprufz5

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

    - Ken
  • I tried this example code as well but it getting stuck at this condition:
    while(SciaRegs.SCIFFRX.bit.RXFFST !=1) { } // wait for RRDY/RXFFST =1 for 1 data available in FIFO .
    No hardware changes has been done except he JP9 jumper has been shorted.
  • Avichai,

    The JP9 jumper is needed only when using the USB. If using the GPIO pins, then you need to remove the jumper. Please see the following thread:

    e2e.ti.com/.../665480

    (This will avoid contention issues).

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

    - Ken
  • Rahul / Avichai,

    It's been a while since I have heard from you last. Therefore, I am assuming that my last reply resolve your issue. If this isn’t the case, please reject this resolution or reply to this thread. If this thread locks, please make a new thread describing the current status of your issue. Thank you.

    - Ken
  • I have tried the loopback example with the changes you suggested but still it is getting stuck at following condition:
    while(SciaRegs.SCIFFRX.bit.RXFFST !=1) { } // wait for RRDY/RXFFST =1 for 1 data available in FIFO .
    though I have used SCIAechoback example and did some changes and got the result.
  • Avichai,

    Just to clarify your statement: "...did some changes and got the result". Does this mean everything is working now?

    - Ken
  • Rahul/Avichai,

    It's been a while since we have heard from you last. Therefore, we are assuming you were able to resolve your issue. If this isn’t the case, please reject this resolution or reply to this thread. If this thread locks, please make a new thread describing the current status of your issue. Thank you.

    - Ken
  • Sorry for the late reply

    What I meant is with the serial echoback example, i have connected the Tx (GPIO29) pin and Rx(GPIO28) pin through external wire. I sent "a" and compared the SCIARXBUFF register value with the ASCII value of "a" and if its true then it will blink the led, which is working now. But with the serial loopback example I am not getting this result though there is no hardware connection is required for serial loopback example.

  • Avichal,

    Are you able to run the loopback example 'as is' without any modifications from C2000Ware and does that work? What modifications, if any, did you make to the code?

    - Ken
  • Avichal,

    I haven’t heard from you for a while, so I’m assuming you were able to resolve your issue. If this isn’t the case, please reject this resolution or reply to this thread. If this thread locks, please make a new thread describing the current status of your issue.

    - Ken
  • Ken,
    No modification was done in the example code of serial loopback, I am running the code in the debug mode.
  • Avichal,

    This thread originally started with Rahul and you joined in the middle. The examples should work "as is". Could you let me know additional information, such as which target board you are using along with which version of CCS you are using. Also, is your example code from C2000Ware or controlSUITE?

    - Ken