Skip to main content
Visitor II
October 20, 2012
Question

stm8s20x series MODBUS RTU and ASCII

  • October 20, 2012
  • 2 replies
  • 1392 views
Posted on October 20, 2012 at 04:10

Hi

I looked at google  MODBUS RTU and ASCII for some source code for stm8 but i could not find any source code for stm8 series...

1. Is there any source codes for stm8 series?

2. When a device is connected to stm8 uart(like PLC), is interrupt  proper way  for this? or do you suggest another way for this? 

Best regards...

Thank you in advance

#modbus-rtu-ascii
    This topic has been closed for replies.

    2 replies

    Visitor II
    October 22, 2012
    Posted on October 22, 2012 at 14:38

    Hello!

    The Modbus protocol isn't tightened to a particular device.

    You can use any Modbus implementation which sends and retrieves bytes by using an UART.

    Microcontrollers differences arise only in how an UART is driven.

    STM8 software library has got all you need to use an UART, so it's only up to you to replace the Modbus implementation low-level calls with the corresponding ones in the STM8 software library.

    EtaPhi
    irmakciAuthor
    Visitor II
    October 24, 2012
    Posted on October 25, 2012 at 00:10

    Thank you EtaPhi,

    But i mean another question....

    Is there any library ported to stm8 like freemodbus?

    or any source code?... 

    I decided to make modbus rtu layer by uart interrupts...

    Thank you in advance...