Hi
There is complete MODBUS support for the M522xx family here: http://www.utasker.com/modbus.html
Detailed user's guide: http://www.utasker.com/docs/MODBUS/uTasker_MODBUS.PDF
It includes:
- MODBUS Serial RTU/ASCII
- Multiple serial master and slave interfaces (limited only by processor UART availability)
- Multiple slaves at each UART interface (each with its own slave address, resources and application interface)
- Routing of received messages to other MODBUS master interfaces based on function codes, access ranges or other decisions
- RS485 RTS control
- Serial/serial bridge function
- ASCII slave support via USB
- MODBUS/TCP
- Multiple master and slave TCP ports
- Each slave TCP port supports multiple sessions (multiple master connections)
- Configurable idle connection timeout on each TCP port
- Multiple slaves on each TCP port (each with its own slave address, resources and application interface)
- Slave gateway operation to TCP or serial MODBUS masters
- Slave routing operation to multiple TCP or serial masters via a single TCP port
- General
- Autonomous handling of commands and requests or with application intervention
- Coils and discrete elements can be optimally overlaid with registers (architecturally independent)
- Simple generation of public MODBUS function data content, simplifying application interface
- Supports delayed slave responses while external data is accessed
- Complete MODBUS projects can be simulated in the µTasker simulator
In addition, the project is fully compatible with the Kinetis family so can be moved between Coldfire and Kinetis projects with very little effort. Supported and proven in many industrial projects since 2009.
Regards
Mark