LPC-CANopen-network-demo_1_ADC
所属分类:单片机开发
开发工具:C/C++
文件大小:3203KB
下载次数:24
上传日期:2014-10-13 22:12:50
上 传 者:
mahalinr
说明: ADC and CAN Communication program of two LPC11C24 Microcontrollers
文件列表:
LPC CANopen network demo_1_ADC\AN11238_1(1).pdf (701933, 2012-07-24)
LPC CANopen network demo_1_ADC\AN11238_1.pdf (701933, 2012-07-24)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Exe\c(1).out (226427, 2012-09-12)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Exe\c(1).sim (24743, 2012-09-12)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Exe\c.out (236823, 2014-09-18)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Exe\c.sim (24579, 2014-04-06)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Exe\Master.bin (24712, 2012-09-12)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Exe\Master.hex (69273, 2014-09-18)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\List\c(1).map (39231, 2012-09-12)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\List\c.map (38601, 2014-09-18)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Obj\canopen_driver(1).o (64044, 2012-09-11)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Obj\canopen_driver.o (64592, 2014-09-18)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Obj\canopen_driver.pbi (152287, 2014-10-13)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Obj\canopen_driver.pbi.cout (10990, 2014-10-13)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Obj\CAN_Node_Def(1).o (9724, 2012-09-11)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Obj\CAN_Node_Def.o (9940, 2014-09-18)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Obj\CAN_Node_Def.pbi (125724, 2014-10-13)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Obj\CAN_Node_Def.pbi.cout (10979, 2014-10-13)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Obj\core_cm0(1).o (11192, 2012-09-11)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Obj\core_cm0.o (11428, 2014-09-18)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Obj\core_cm0.pbi (36845, 2014-09-18)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Obj\core_cm0.pbi.cout (11220, 2014-09-18)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Obj\EW27D.tmp(1).o (2996, 2012-09-10)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Obj\EW27D.tmp.o (2996, 2012-09-10)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Obj\main(1).o (43096, 2012-09-11)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Obj\main.o (44208, 2014-09-18)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Obj\main.pbi (166803, 2014-10-13)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Obj\main.pbi.cout (10971, 2014-10-13)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Obj\Master(1).pbd (849, 2012-09-12)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Obj\Master.pbd (206920, 2014-10-13)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Obj\Master.pbd.browse (206920, 2014-10-13)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Obj\Retarget(1).o (12604, 2012-09-11)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Obj\Retarget.o (12876, 2014-09-18)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Obj\Retarget.pbi (117547, 2014-10-13)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Obj\Retarget.pbi.cout (10989, 2014-10-13)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Obj\startup_LPC11xx(1).o (3920, 2012-09-05)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Obj\startup_LPC11xx.o (3952, 2014-09-18)
LPC CANopen network demo_1_ADC\Projects\IAR\Master\Debug\Obj\system_LPC11xx(1).o (13528, 2012-09-11)
... ...
|----------------------------------------------------------------------|
| README for the CANopen DEMO for LPC-P11C24 + IAR EW 6.30 |
|----------------------------------------------------------------------|
This project was built and tested in
IAR Embedded Workbench 6.30
The boards that were used -> 2x LPC-P11C24
Programmer: J-link for ARM processors /at least version 7.0
The boards were connected to each other via CAN interface
- > CANH to CANH, CANL to CANL, GND to GND
(!!) The Jumpers on the boards should be in positions:
SILENT/NORMAL -> to NORMAL
All other jumpers: open (unless requiered by something else)
The boards need enough power for the CAN module to work. A suitable
source is the j-link rpogrammer or 8V to the power jack.(refer to the
board manual on the site for more information.
On the CAN bus, there must be two LPC-P11C24 boards
with a closed CAN_T jumper. For example, we tested the demo with 2 boards
and both of them had the CAN_T jumper closed. If there are more boards
on the bus, exactly two should have their CAN_T jumper closed.
The LPC-P11C24 board comes with a closed CAN_T jumper by default.
/--------------------------------------/
The CAN serial communication link is a bus to which a number of units
may be connected. This number has no theoretical limit.
Practically the total number of units will be limited by delay times
and/or electrical loads on the bus line.
@note This example is tested with a bus of 2 units - One Master and one Slave.
The master had the Master.ewp project (incl in the Master.eww workspace)
loaded. Note that in \...\LPC CANopen network demo\Software\Master\inc\CAN_Node_Def.h
the row:
#define CAN_NODE_ID CAN_MASTER_NODE
is where the unit is defined as the Master node.
The master node communicates with a pc via UART serial communication. (See the board manual and
scematic for more info on the UEXT)
These unique numbers(Master, slave 1, slave 2...) are known to all boards on the bus,
which is how they identify who signed a particular message sent on the bus.
The Slave.ewp project (incl, in the Slave.eww workspace) is uploaded to all the slave boards.
Note, that in \...\LPC CANopen network demo\Software\Slave\inc\CAN_Node_Def.h
the row:
#define CAN_NODE_ID CAN_SLAVE1_NODE
is where the unit is defined as a slave node. If you upload it like that to several units
on the bus, they are all going to react to a command sent to Slave1. To define the unit
as slave 2, simply change the row to:
#define CAN_NODE_ID CAN_SLAVE2_NODE
/--------------------------------------/
You can find the IAR EW projects in:
...\LPC CANopen network demo\Projects\IAR
Ths projects are configured to program an
LPC-P11C24 board with a j-link programmer. All the files have
already been built, if you change anything, the IDE will only re-build
the changed files.
In the IAR EW, use Project/Download/Download active application/
to download the application to the chip's memory. Alternatively, use
the "download & debug" button to download and start a debug session.
After you load the demo on all boards and connect them on a single CAN
bus, connect to the Master node via UART. Open a terminal connection
with properties: baud rate 115200, 8 data bits, 1 stop bit, no parity.
Follow the instructions on screen.
(!)NOTE: Sometimes, after programming a board with j-link, resetting
the board is needed for applications to start running
normally.
There is useful information in the main.c source files of both projects.
There is also a AN11238_1.pdf file with the demo's official documentation.
If you have any questions, email
support@olimex.com
OLIMEX, September 2012
http://www.olimex.com
近期下载者:
相关文件:
收藏者: