cancel
Showing results for 
Search instead for 
Did you mean: 

hi i want to make advancement in transducer is want to add modbus and usb in that.the current design is on 8 bit STmicrocontroller. what should I do?

PKuma.12
Associate II
 
4 REPLIES 4
Pavel A.
Evangelist III

IMHO you should not use a 8-bit ST microcontroller (STM8) at all, unless you have specific requirement for this.

STM8 does not have USB. Most important - STM32 has much better development tools and yo can find more code examples.

So to the question what should you do: consider STM32.

-- pa

Thank you for the reply.

In that transducer I have to add MODBUS and USB by using STM32L151RBT6 controller.

should I have to do coding from scratch or can make changes in existing code of STM8.

I am very new to this field and also very new to MODBUS and USB interface.

How should I start this development?

ST has code examples for USB, for the L151 either SPL-based or Cube based. I never used USB with this MCU.

You will not find much Modbus code with ST, and many implementation are commercial, and unwilling to share.

There are some free modbus libs for microcontrollers available in source code, just use a search engine.

You will surely need to write/rewrite the low level implementation (UART send/receive, character timeouts).

Modbus RTU is timing based, and thus a little less trivial then a simple terminal app.

>>How should I start this development?

Check with manager and colleagues for direction of work tasks/assignments.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..