atmel_sam3sek_modbus
所属分类:通讯编程
开发工具:Visual C++
文件大小:127KB
下载次数:2
上传日期:2013-08-22 21:21:42
上 传 者:
kingof1234
说明: atmel_sam3sek_modbus通讯源码
(Atmel M3 MODBS)
文件列表:
Third Party (0, 2011-02-07)
Third Party\freemodbus-v1.5.0 (0, 2011-02-07)
Third Party\freemodbus-v1.5.0\bsd.txt (1436, 2006-12-07)
Third Party\freemodbus-v1.5.0\Changelog.txt (14448, 2010-06-05)
Third Party\freemodbus-v1.5.0\demo (0, 2011-02-07)
Third Party\freemodbus-v1.5.0\demo\SAM3S (0, 2011-02-07)
Third Party\freemodbus-v1.5.0\demo\SAM3S\atmel_app.c (11638, 2010-11-23)
Third Party\freemodbus-v1.5.0\demo\SAM3S\atmel_app.h (3237, 2010-11-23)
Third Party\freemodbus-v1.5.0\demo\SAM3S\demo.c (18450, 2010-11-23)
Third Party\freemodbus-v1.5.0\demo\SAM3S\demo.ewd (41999, 2010-11-10)
Third Party\freemodbus-v1.5.0\demo\SAM3S\demo.ewp (49184, 2010-11-23)
Third Party\freemodbus-v1.5.0\demo\SAM3S\demo.eww (1303, 2011-02-07)
Third Party\freemodbus-v1.5.0\demo\SAM3S\demo_rtu.bat (84, 2010-06-14)
Third Party\freemodbus-v1.5.0\demo\SAM3S\port (0, 2011-02-07)
Third Party\freemodbus-v1.5.0\demo\SAM3S\port\port.h (2762, 2010-06-17)
Third Party\freemodbus-v1.5.0\demo\SAM3S\port\portevent.c (2465, 2010-06-05)
Third Party\freemodbus-v1.5.0\demo\SAM3S\port\portother.c (2651, 2010-06-05)
Third Party\freemodbus-v1.5.0\demo\SAM3S\port\portserial.c (9112, 2010-11-12)
Third Party\freemodbus-v1.5.0\demo\SAM3S\port\porttimer.c (5267, 2010-06-17)
Third Party\freemodbus-v1.5.0\doc (0, 2011-02-07)
Third Party\freemodbus-v1.5.0\doc\dox.css (7514, 2006-02-22)
Third Party\freemodbus-v1.5.0\doc\doxygen.conf (38140, 2010-06-05)
Third Party\freemodbus-v1.5.0\doc\dox_html_footer (126, 2006-02-22)
Third Party\freemodbus-v1.5.0\doc\dox_html_header (267, 2006-02-22)
Third Party\freemodbus-v1.5.0\doc\main.dox (3460, 2010-06-05)
Third Party\freemodbus-v1.5.0\doc\memory.ods (11955, 2006-11-19)
Third Party\freemodbus-v1.5.0\doc\porting.dox (6294, 2008-03-28)
Third Party\freemodbus-v1.5.0\doc\tips.dox (1740, 2006-11-14)
Third Party\freemodbus-v1.5.0\doc\TODO.txt (890, 2006-09-04)
Third Party\freemodbus-v1.5.0\gpl.txt (18351, 2006-02-19)
Third Party\freemodbus-v1.5.0\lgpl.txt (26936, 2006-02-19)
Third Party\freemodbus-v1.5.0\modbus (0, 2011-02-07)
Third Party\freemodbus-v1.5.0\modbus\ascii (0, 2011-02-07)
Third Party\freemodbus-v1.5.0\modbus\ascii\mbascii.c (15715, 2010-06-06)
Third Party\freemodbus-v1.5.0\modbus\ascii\mbascii.h (2457, 2006-12-07)
Third Party\freemodbus-v1.5.0\modbus\functions (0, 2011-02-07)
Third Party\freemodbus-v1.5.0\modbus\functions\mbfunccoils.c (9887, 2007-02-19)
Third Party\freemodbus-v1.5.0\modbus\functions\mbfuncdiag.c (1662, 2006-12-07)
Third Party\freemodbus-v1.5.0\modbus\functions\mbfuncdisc.c (4614, 2007-02-19)
... ...
FREEMODBUS 1.5 ATSAM3S EXAMPLE
==============================
REQUIREMENTS
============
This example contains a simple demo program for FreeMODBUS for the AT91SAM3S
Cortex M3 controllers on the SAM3S-EK [0] evaluation kit. It requires a wired
RS485 connection to a host processor and a MODBUS master software on the PC
side to be useful. Demo versions of MODBUS master stacks can be found in
[1], [2] and [3]. Commercial MODBUS stacks are available from [4].
INSTALLATION
============
The SAM3S-EK evaluation board should be modified as following to enable RS485
data transmission.
- Place Jumpers JP11, JP10 and JP12
- Place a solder drop accross R25
Warning: The RS485 shares data lines with USART1. It is therefore absolutely
necessary to set PA23 to a high level.
SOURCE
======
TESTING
=======
Start the MODBUS sample application and test if the input registers starting
at protocol address 1000 can be read. There are four registers values avai-
lable and the output should look like:
Polling slave (Ctrl-C to stop) ...
[1000]: ***74
[1001]: 0
[1002]: 0
[1003]: 0
Polling slave (Ctrl-C to stop) ...
[1000]: -8831
[1001]: 0
[1002]: 0
[1003]: 0
Polling slave (Ctrl-C to stop) ...
The simple testing utility used in the 'demo_rtu.bat' script can be found at
[3].
PROBLEMS
========
In case you can get no communication working make sure that the RS485 line is
biased correctly. The SAM3S-EK does not populate the RS485 bias resistors by
default and if you have a RS485 master which does not bias the lines either
you will get wrong characters. For this R24 and R30 on the bottom side of the
evaluation kit of the PCB should be populated.
REFERENCES
==========
[0] Atmel SAM3S-EK: http://www.atmel.com/dyn/products/tools_card_v2.asp?tool_id=4678
[1] WinTech ModScan32: http://www.win-tech.com/html/modscan32.htm
[2] Modus Poll: http://www.modbustools.com/modbus_poll.asp
[3] FieldTalk Modpoll: http://www.focus-sw.com/fieldtalk/modpoll.html
[4] Embedded Solutions: http://www.embedded-solutions.at
Version: $Id: README.txt,v 1.1 2010/06/05 09:57:46 wolti Exp $
近期下载者:
相关文件:
收藏者: