Finding MODBUS C source code for AVR


Thread Starter

Dmitry, Russia

Hallo all. I am working with MODBUS protocol for microcontroller ATMEGA128. My problem - to connect some devices under MODBUS protocol. Most of all I am interested with "Slave" mode. Help me please to find the URL, with a C or ASM source code of MODBUS protocol.

Thank you.

i m also working on avr atmega64 and need modbus code. i have seen your query which is just same as mine. If you have found the code can you share it with me? my email id is [email protected]

thanks and regards,

Viraj Tipnis


I am looking for MODBUS master/slave /tcp/rtu code in C for implementing a wireless network. Please tell me where i can find it. Thanks a lot.

I am also looking for the same information. I want to interface a HMI/MMI to my microcontroller Atmel AVR ATmega8 through MODBUS.

If you come across some information PLEASE pass it on to me. If I get some solution I will let you know.

Thanks & Regards,
- Suhas ([email protected])
Your code sends some signal but it's unable to read any register from the slave. I've tested it with Windows 2K. Any solution?