2012-10-19 7:10 PM
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-ascii2012-10-22 5:38 AM
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. EtaPhi2012-10-24 3:10 PM
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...