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.

TMS320F280033: problems in RS485 communication

Part Number: TMS320F280033

Tool/software:

Hello, I am working on RS485 wherein TMS320F280033 is the slave, and I am using Modbus Master as the master.  I am sending queries from the device, but there is no data received in the microcontroller. 

I have tried using the SCI_getRxFIFOStatus() when FIFO was enabled and also the function SCI_isDataAvailableNonFIFO() disabling FIFO. What am I missing here? 
Thanks, 
Samruddhi D 

  • Samruddhi,

    While not necessarily the source of your issue, I would recommend using SCIRXEMU instead of SCIRXBUF. Refer to the description for the register:

    Now, I have a few things which should assist:

    1. Are you able to monitor the pins of the device to verify data is correctly being sent? i.e. with an oscilloscope or waveform analyzer.
    2. Please verify that the GPIO configuration for the SCI pins is correct.
    3. In the SCICTL1 register, please confirm:
      1. SCICTL1.SWRESET = 1, as 0 holds the SCI peripheral in a reset state
      2. SCICTL1.RXENA = 1, as 0 prevents the buffer from being filled

    Let me know the results of these checks!

    Regards,
    Jason Osborn

  • Hey Jason, 
    As it turns out, it was an issue with my Moxa Uport converter, after changing the device, I was able to establish a proper connection. Thanks for your help!