We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
HEY GUYS, i need some example code of modbus rtu with 8051 controller
MODBUS is not specific to 8051 - or any other processor.
So any example should do.
http://modbus.org/ would seem the obvious place to start ...
In particular, http://modbus.org/tech.php
Also: https://www.freemodbus.org/
GitHub is a good place to search when looking for code examples ...
and there's always Google: www.lmgtfy.com
yeah i know sir, but actually i have some sensor code with 8051 controller. i want to use MODBUS RTU interface with RS485 in that sensor code so i said modbus code with 8051 controller. By the way i have MODBUS code in pic controller but i need this code in 8051 controller.
So just use that as your example, then!
Again, the MODBUS protocol remains the same whether you are using a PIC or an 8051 or anything else.
The only bit that's going to be different is the bit that directly talks to the 8051 UART hardware - but that bit has nothing to do with MODBUS.