SEARCH
TOOLBOX
LANGUAGES
modified on 11 March 2011 at 21:51 ••• 14,571 views

Lincoln CAN Example

From Manuals

(Difference between revisions)
Jump to: navigation, search
(Created page with '=Controller Area Network (CAN)= ==Compatibility [http://www.micromint.com/index.php/SBC/lincoln60.html Lincoln 60], [http://www.micromint.com/index.php/SBC/lincoln60.html Lincol…')
(Compatibility Lincoln 60, Lincoln 60E)
 
(2 intermediate revisions not shown)
Line 3: Line 3:
==Compatibility [http://www.micromint.com/index.php/SBC/lincoln60.html Lincoln 60], [http://www.micromint.com/index.php/SBC/lincoln60.html Lincoln 60E]==
==Compatibility [http://www.micromint.com/index.php/SBC/lincoln60.html Lincoln 60], [http://www.micromint.com/index.php/SBC/lincoln60.html Lincoln 60E]==
-
The I/O Plus option for the Lincoln add a CAN tranceiver to the Lincoln. In orderto run this example you need to have two Lincoln boards with the I/O Plus option and a straight through 2x5 to 2xs ribbon cable.
+
The I/O Plus option for the Lincoln adds a CAN tranceiver. In order to run this example you will need the following equipment:
-
[[Image:Lincoln_can_tx.png|center|'''Lincoln loaded with CAN TX]]
+
* 1.         Two Lincolns with the I/O Plus Option populated
 +
* 2.          Two COM ports on a computer
 +
* 3.          One 2x5 to 2x5 straght through ribbon cable
 +
Please follow these steps to run the CAN example:
-
[[Image:Lincoln_can_rx.png|center|]]
+
* 1.          Compile the example with the "#define CAN_TRANSMIT" set to 1
 +
* 2.          Program one of the Lincolns with the binary and this will be the Lincoln used to transmit CAN messages
 +
* 3.          Compile the example with the "#define CAN_TRANSMIT" set to 0
 +
* 4.          Program the other Lincoln with the binary and this will be the Lincoln used to receive CAN messages
 +
* 5.          Disconnect the power to both boards
 +
* 6.          Connect the two boards together with the 2x5 to 2x5 ribbon cable on J13
 +
* 7. Open a terminal window for each board set to 115200, 8 data bits, no parity, 1 stop bit, and no hardware handshaking
 +
* 8.          Connect a COM port to COM1 of each Lincoln board
 +
* 8.          Apply power to the Lincoln that will receive the CAN messages
 +
* 9.          Apply power to the Lincoln that will transmit the CAN messages
 +
 
 +
The following screen shots are of the CAN example in action. 
 +
 
 +
[[Image:Lincoln_can_tx.png|center|alt=Lincoln-60|frame|<div align="center">'''Lincoln programmed for CAN to transmit]]
 +
 
 +
 
 +
[[Image:Lincoln_can_rx.png|center|alt=Lincoln-60|frame|<div align="center">'''Lincoln programmed for CAN to receive]]

Current revision as of 21:51, 11 March 2011

Controller Area Network (CAN)

Compatibility Lincoln 60, Lincoln 60E

The I/O Plus option for the Lincoln adds a CAN tranceiver. In order to run this example you will need the following equipment:

  • 1. Two Lincolns with the I/O Plus Option populated
  • 2. Two COM ports on a computer
  • 3. One 2x5 to 2x5 straght through ribbon cable

Please follow these steps to run the CAN example:

  • 1. Compile the example with the "#define CAN_TRANSMIT" set to 1
  • 2. Program one of the Lincolns with the binary and this will be the Lincoln used to transmit CAN messages
  • 3. Compile the example with the "#define CAN_TRANSMIT" set to 0
  • 4. Program the other Lincoln with the binary and this will be the Lincoln used to receive CAN messages
  • 5. Disconnect the power to both boards
  • 6. Connect the two boards together with the 2x5 to 2x5 ribbon cable on J13
  • 7. Open a terminal window for each board set to 115200, 8 data bits, no parity, 1 stop bit, and no hardware handshaking
  • 8. Connect a COM port to COM1 of each Lincoln board
  • 8. Apply power to the Lincoln that will receive the CAN messages
  • 9. Apply power to the Lincoln that will transmit the CAN messages

The following screen shots are of the CAN example in action.

Lincoln-60
Lincoln programmed for CAN to transmit


Lincoln-60
Lincoln programmed for CAN to receive