smitchell
Junior Member level 2
Hi,
I'm working on a project at uni where I want to implement the Modbus protocol in Atmega16's. I'm pretty new to microcontrollers so I'm using codevision to write the code instead of assembler.
I've got as far as getting a voltage reading from the ADC in a slave and transmitting it via the USART to the master and displaying it on an LCD. So now I need to start sending requests for data, which is where modbus will come in..
Does anyone have any links for Modbus code written in C for AVR chips that I could use as a reference?
In the end I guess I'll try to do it from scratch using the Modbus manual from modbus.org, but I'm a bit short on time, and my C skills are still pretty sh#thouse...
I'd much appreciate any help you guys can give me.
Thanks,
Sam
I'm working on a project at uni where I want to implement the Modbus protocol in Atmega16's. I'm pretty new to microcontrollers so I'm using codevision to write the code instead of assembler.
I've got as far as getting a voltage reading from the ADC in a slave and transmitting it via the USART to the master and displaying it on an LCD. So now I need to start sending requests for data, which is where modbus will come in..
Does anyone have any links for Modbus code written in C for AVR chips that I could use as a reference?
In the end I guess I'll try to do it from scratch using the Modbus manual from modbus.org, but I'm a bit short on time, and my C skills are still pretty sh#thouse...
I'd much appreciate any help you guys can give me.
Thanks,
Sam