I want will do exchange to protocol Modbus-RTU. May be, do somebody have been work project? I want watch something lib.
I used Colway - Modbus RTU & TCP Master/Slave - C source code. Get protocol tester free -- not free, but I didn't have to spend any time debugging it and writing the necessary shims was simple.
This sounds a good suggestion - for that price you not even need to think about implementing it on your own or testing a open source implementation.
ok, how did you ported in Aduc7060? I need watch how it in Aduc7060 - role slave.
Follow the porting instructions (and customize MSPL_UserIF) and you'll do fine -- you have to write the serial I/O routines (remember the 3.5 char turnaround and handle taking/releasing the RS-485 line -- the hardest parts were dealing with the fractional divider for high baudrates and the turnarounds since I did that in software instead of hardware).
And periodically (when you have time.... this takes a while!), you call MSPL_RunModbus. This can take more than 20 ADC samples, so you might need a buffer on the ADC so the Modbus doesn't cause you to miss ADC samples.
Retrieving data ...