cancel
Showing results for 
Search instead for 
Did you mean: 

stm8s20x series MODBUS RTU and ASCII

irmakci
Associate II
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
2 REPLIES 2
fggnrc2
Associate II
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
irmakci
Associate II
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...