Page 1
PCAN-Router Universal CAN Converter User Manual V1.2.0...
Page 2
PCAN-Router – User Manual Products taken into account Product Name Model Item Number PCAN-Router 2 D-Sub connectors, IPEH-002210 additional digital input PCAN-Router Screw terminal block, IPEH-002210-P additional serial interface PCAN-Router opto- 2 D-Sub connectors, IPEH-002211 decoupled galvanic isolation for connector CAN2, additional digital input CANopen®...
PCAN-Router – User Manual Contents Introduction Properties at a Glance Scope of Supply Prerequisites for Operation Connectors and Coding Solder Bridges D-Sub Connectors 2.1.1 Supplying External Devices via the CAN Connector (D-Sub only) Screw Terminal Block J4 Connector Panel: Serial Ports...
Page 4
PCAN-Router – User Manual Firmware Upload Uploading Firmware via CAN 6.1.1 System Requirements 6.1.2 Preparing Hardware and Software 6.1.3 Uploading the Firmware Uploading Firmware via the Serial Connections 33 Technical Specifications Appendix A CE Certificate Appendix B Dimension Drawings...
You can copy any firmware you have developed yourself to the PCAN-Router via the bootloader, which has already been implemen- ted, by using CAN. The PCAN-Router is supplied with a demo firm- ware which forwards CAN messages 1:1 between the two channels at 500 kbit/s.
4-bit coding of the hardware by solder bridges Aluminum profile casing with option of fitting on top-hat rails Scope of Supply PCAN-Router in aluminum profile casing 10-pin screw terminal block bar (IPEH-002210-P only) CD with documentation, Windows software (C and C++ compiler...
PCAN-Router – User Manual Connectors and Coding Solder Bridges Depending on the model the PCAN-Router has the following connectors: two 9-pin D-Sub connectors (IPEH-002210/11) one 10-pin screw terminal block bar (IPEH-002210-P) For direct access to the serial and debugging ports of the microcon- troller, additional –...
PCAN-Router – User Manual D-Sub Connectors (IPEH-002210 and IPEH-002211) The two D-Sub connectors are used for the CAN channels CAN1 and CAN2. The voltage supply can be done via both connectors, with the opto- decoupled model only via connector CAN1. The supply connections...
Page 9
PCAN-Router – User Manual Pin distribution D-Sub connector PCAN-Router IPEH-002210: Function connector CAN1 Function connector CAN2 +5 V (optional) +5 V (optional) CAN1_L CAN2_L GND CAN1 GND CAN2 Reserved (LIN) Not used SHIELD SHIELD Boot CAN1 (high-active) Not used CAN1_H...
Supplying External Devices via the CAN Connector (D-Sub only) On the circuit board of the PCAN-Router a 5-Volt supply can optio- nally be routed to each pin 1 of the D-Sub connectors CAN1 and CAN2. Thus devices with low power consumption (e.g. bus conver- ters) can be directly supplied via the CAN connector.
Page 11
PCAN-Router – User Manual IPEH-002210 from ser. no. 00459 IPEH-002210 up to ser. no. 00458 and all IPEH-002211 5-Volt supply → None Pin 1 CAN1 (R35) CAN2 (R36)
PCAN-Router – User Manual Screw Terminal Block (IPEH-002210-P) Apart from power supply and CAN channels, the screw terminal block includes connections for a serial interface with RS-232 levels. Terminal Function Supply +U CAN1_L CAN1_H CAN2_L CAN2_H Boot CAN1 (high-active) Reserved (LIN)
P0.14 +5.0 V The RxD0 and TxD0 signals are forwarded to a level converter for the RS-232 standard. The PCAN-Router model with screw terminal block provides access to the adjusted signals at terminals 9 (RS-232 RxD) and 10 (RS-232 TxD).
If constant internal pull-down wiring of the TCK or RTCK signals is not suitable for your purposes, you can remove the respective pull- down resistor on the board of the PCAN-Router by soldering it out. Both resistors (each 10 kΩ) are located next to the J5 connector panel J5 (see figures).
PCAN-Router – User Manual Coding Solder Bridges The four positions for coding solder bridges (ID 0 - 3) are each assigned to one port of the microcontroller LPC 2129 or LPC2194/01 (μC). IPEH-002210(-P) up to ser. no. 00458 IPEH-002210(-P) from ser. no. 00459...
Page 16
PCAN-Router – User Manual For a firmware upload via CAN the PCAN-Router is identified by a 4-bit ID which is determined by solder bridges. A bit is set (1) when the corresponding solder bridge position is open (default setting: ID 15, all positions open).
P0.7 Port pin High CAN1/2:n Pin n of the respective D-Sub connector STB:n Terminal n on the screw terminal block J4/5:n Pin n of the respective connector panel on the board PCAN-Router IPEH-002210(-P) from serial number 00300 and all IPEH-002211...
Page 18
CAN2_RxD CAN2 Receive P0.24 CAN2_TxD CAN2 Transmit This function is only available if the PCAN-Router is equipped with the optional LIN transceiver (on request). After resetting the microcontroller, the CAN transceivers are deactivated and must be reactivated to use them.
Page 19
PCAN-Router – User Manual Port μC function Signal Active Function/connection (μC) P0.25 CAN1_RxD CAN1 Receive CAN1_TxD CAN1 Transmit P0.27 Analog input V-Power2 Measure voltage +U maximum value (0x03FF) corresponds to approx. 16.5 V P0.28 Analog input V-Power1 Measure voltage +U...
PCAN-Router – User Manual Operation The PCAN-Router is activated by applying the supply voltage to the Connectors and Coding Solder respective input pins (see chapter 2 Bridges on page 7). The firmware in the flash memory is subsequently run. The PCAN-Router is supplied with a demo firmware which forwards CAN messages 1:1 between the two channels at 500 kbit/s.
PCAN-Router – User Manual Software This chapter covers the installation of the program package WinARM and gives notes about the CAN software library and the demo firmware. Software, source code, and additional information are included on the supplied CD in the following directory branch:...
PCAN-Router – User Manual You can get more information about the WinARM package by starting the file readme.htm from the installation directory (C:\WinARM). On the web the WinARM project is found under the following address: www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/#winarm 5.1.2 Setting up Additional Search Paths...
Page 23
PCAN-Router – User Manual In the area System variables click on the item Path and then on Edit. The dialog box Edit System Variable is shown. Add the following character string to the already existing contents of the field Variable value: C:\WinARM\bin;C:\WinARM\utils\bin;...
CD. The current version 1.6 of the library supports all models of the PCAN-Router. You can use software code that is based on previous versions of the library with version 1.6 without any changes. If your firmware shall be executed on PCAN-Router modules with the microcontroller LPC2194/01 (IPEH-002210(-P) from serial number 00300 and all IPEH-002211), the use of a library with a version of 1.6...
PCAN-Router – User Manual 5.3.1 Compiling the Demo Firmware Do the following to compile the demo firmware under Windows: Copy the subdirectory Example from the supplied CD to the local hard disk. Open a command prompt by using the Windows Start menu.
Via CAN. The scope of delivery includes a special Windows program to copy the firmware from a PC to the PCAN-Router. This is the recommended method for a firmware upload. Via the serial interface or the serial connections of the microcontroller.
This measure later applies the “Boot CAN1” connection with a high level. Connect CAN bus 1 of the PCAN-Router with a CAN inter- face connected to the computer. Pay attention to the proper termination of the CAN cabling (2 x 120 Ω).
Page 28
PCAN-Router – User Manual Perform the following steps for preparation of the software: Copy the directory PcanFlash from the supplied CD to the local hard disk. The contained Windows software that copies the Firmware via CAN (PcanFlash.exe) can only be started from a data carrier that is writable.
Page 29
PCAN-Router – User Manual Check if a PCAN net with a bit rate of 500 kbit/s is set up for the used CAN interface. If this is the case, you can continue Uploading the Firmware with the following section In the tree view right-click on the entry of the used CAN interface and select the command New Net.
PCAN-Router – User Manual 6.1.3 Uploading the Firmware The process of copying new firmware to the PCAN-Router is as follows: Ensure that a connection is established between the “Boot CAN1” and “+U ” or “+U ” connections of the PCAN- Router (details: see above).
Page 31
(Connect) button in order to change the selection in the dialog box if required. Click the (Detect) button in order to detect the PCAN- Router connected to the CAN bus. An entry for the PCAN-Router appears in the main window.
Page 32
“Flashing of module(s) finished!”. 11. Disconnect the power supply from the PCAN-Router. 12. Disconnect “Boot CAN1” from “+U ” or “+U ”. You can now use the PCAN-Router with the new firmware.
2). Do the following to initiate the microcontroller's bootloader: Switch the PCAN-Router off by disconnecting it from the power supply. Open the casing of the PCAN-Router by removing the screws in order to gain access to the board.
PCAN-Router – User Manual Technical Specifications Functionality Microcontroller NXP LPC2194/01 with a clock speed of 12 MHz (IPEH-2210(-P) up to ser. no. 00299: NXP LPC2129) Firmware upload via CAN with special bootloader or serial Add-on memory 256 kbit, EEPROM Atmel AT24C256B (via I (IPEH-2210(-P) up to ser.
Page 35
PCAN-Router – User Manual Measures Size Casing: 70 x 55 x 24 mm (2 3/4 x 2 3/16 x 15/16 inches) (L x W x H) Circuit board: 65 x 51 mm (2 9/16 x 2 inches) (L x W)
Need help?
Do you have a question about the PCAN-Router and is the answer not in the manual?
Questions and answers