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.

Modbus with TM4C1230H6PMI, pls advice on how to proceed.

Hi,

is it possible to implement 

Modbus with TM4C1230H6PMI,if yes kindly guide me with the procedure.

Thanks & Regards :-

utpal

  • Hi utpal,

    Yes, it is possible. I assume you already have the necessary tranceiver/level shifter hardware on your board. Then you simply need to configure the appropriate UART peripheral correctly and then write functions to handle the Modbus protocol of your choice. For the former I refer you to the TivaWare Driverlib manual and UART examples. For the latter, read the Modbus protocol specification and based on that, implement the required functions (which are pretty much the same on any platform, nothing Tiva specific there).

    Best regards,
    Veikko
  • For the former I refer you to the TivaWare Driverlib manual and UART examples.

    I'd like to add: beside the UART send/receive, the implementation of inter-character and inter-packet timeouts (for Modbus RTU) are highly MCU specific. Consider how to do this. While ASCII is easier in this regard, it is far less common in real-word devices.

    The rest, as Veikko said, is rather unspecific, "abstract" code, you can pull any implementation available in source code as example and starting point.