background image

 

Universal Programmable 
CAN Converter 

User Manual 

PCAN-Router 

Document version 2.0.0 (2020-10-14) 

Summary of Contents for IPEH-002210

Page 1: ...Universal Programmable CAN Converter User Manual PCAN Router Document version 2 0 0 2020 10 14 ...

Page 2: ...t names mentioned in this document may be the trademarks or registered trademarks of their respective companies They are not explicitly marked by and 2020 PEAK System Technik GmbH Duplication copying printing or other forms and the electronic distribution of this document is only allowed with explicit permission of PEAK System Technik GmbH PEAK System Technik GmbH reserves the right to change tech...

Page 3: ...P 9 2 3 Status LEDs 10 3 Operation 11 4 Hardware Configurations 12 4 1 J4 Connector Panel Serial Ports 13 4 2 J5 Connector Panel JTAG Ports 14 4 3 Coding Solder Bridges 15 4 4 Supply Voltage of External Devices IPEH 002210 11 17 5 Creating Own Firmware 19 5 1 Library 20 6 Firmware Upload 21 6 1 System Requirements 21 6 2 Preparing Hardware 22 6 3 Firmware Transfer 23 6 4 Uploading Firmware via the...

Page 4: ...PCAN Router User Manual 4 Appendix A CE Certificate 33 Appendix B Dimension Drawings 34 Appendix C Port Assignment of the Microcontroller 35 ...

Page 5: ...demo firmware that forwards CAN messages 1 1 between both channels at 500 kbit s The corresponding source code is included as example in the scope of supply The module is installed in an aluminum profile casing and is shipped in versions with two D Sub connectors or a screw terminal block 1 1 Properties at a Glance NXP LPC21 series microcontroller 16 32 bit ARM CPU 32 kByte EEPROM Two High speed C...

Page 6: ...232 interface only IPEH 002210 P 1 2 Scope of Supply PCAN Router in aluminum casing IPEH 002210 P mating connector Phoenix Windows development package with GCC ARM Embedded flash program and programming examples Library with programming examples Manual in PDF format 1 3 Prerequisites for Operation Voltage supply within a range of 8 to 30 V DC For uploading a new firmware via CAN CAN interface of t...

Page 7: ...12 The following subsections describe each connector assignment 2 1 D Sub Connectors IPEH 002210 11 The two D Sub connectors are provided for the CAN channels CAN1 and CAN2 The CAN lines CAN_H CAN_L are arranged according to the CiA 303 1 specification The power supply of the PCAN Router can be provided via both D Sub connectors The opto decoupled version IPEH 002211 can only be supplied via CAN1 ...

Page 8: ... Not used 7 CAN1_H CAN2_H 8 Not used Din0 Low active 9 Supply Ub1 Supply Ub2 PCAN Router Opto decoupled IPEH 002211 Pin Function at Connector CAN1 Function at Connector CAN2 1 5 V for external devices optional 1 5 V for external devices optional via DC DC converter 1 2 CAN1_L CAN2_L 3 GND1 GND2 4 Reserved Not used 5 SHIELD SHIELD 6 Boot High active Activation of CAN bootloader2 Not used 7 CAN1_H C...

Page 9: ...r Phoenix Contact MC 1 5 10 ST 3 81 Terminal Function 1 Supply Ub 2 GND 3 CAN1_L 4 CAN1_H 5 CAN2_L 6 CAN2_H 7 Boot High active Activation of CAN bootloader3 8 Reserved 9 RS 232 RxD 10 RS 232 TxD For further connection details that are not needed for programming of the PCAN Router because of implementation in a library see also Appendix C Port Assignment of the Microcontroller on page 35 3 Risk of ...

Page 10: ...s CAN1 and CAN2 light up between green and orange on incoming CAN messages Additionally they light up orange when the bootloader is activated see 6 2 Preparing Hardware on page 22 Additional LED functions can be programmed with your own firmware More details can be found in the programming examples supplied ...

Page 11: ...supplied with an example firmware which forwards CAN messages 1 1 between the two channels at 500 kbit s An incoming CAN message causes a change between green and orange of the LED status indication for the respective CAN channel The source code for the example firmware 1_ROUTING and further examples can be downloaded from the following link www peak system com quick DLP DevPack More about firmwar...

Page 12: ...onnector Panel Serial Ports on page 13 Debugging ports of the microcontroller see section 4 2 J5 Connector Panel JTAG Ports on page 14 Coding of the hardware for retrieval via firmware see section 4 3 Coding Solder Bridges on page 15 D Sub versions only IPEH 002210 11 Supply of external devices with 5 Volt via the D Sub connector see section 4 4 Supply Voltage of External Devices IPEH 002210 11 on...

Page 13: ...0 3 Not used 4 Boot_ser P0 14 5 GND 6 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 Attention The RxD0 pin 1 and TxD0 pin 2 signals in connec tor panel J4 are designed for TTL levels only Using RS 232 levels at these connec...

Page 14: ...Reset Reset Pull up 4 3 3 V 5 TCK P1 29 Pull down R30 6 TMS P1 30 Pull up 7 TDO P1 27 Pull up 8 TDI P1 28 Pull up 9 RTCK P1 26 Pull down R31 10 TRST P1 31 Pull up 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 circuit board of the PCAN Router by soldering it out Both resistors each 10 k are ...

Page 15: ...to activate the coding solder bridges Danger of short circuit Take great care when soldering to avoid short circuits Attention Electrostatic discharge ESD can damage or destroy components on the card Take precautions to avoid ESD 1 Unscrew the housing on both sides 2 For D Sub version only Remove the screws next to one of the two D Sub connectors 3 Pull out the board 4 Solder the solder bridge s o...

Page 16: ...Solder Field Status Port Status Low High The status of the ports is relevant in the following cases The loaded firmware is programmed so that it reads the status at the corresponding ports of the microcontroller For example the activation of certain functions of the firmware or the coding of an ID is conceivable here ...

Page 17: ...e CAN connection CAN1 and CAN2 With a solder bridge for each CAN channel on the board of the PCAN Router a voltage of 5 Volt can be applied to pin 1 of the D Sub connector The current consumption may not exceed 100 mA per CAN connection Do the following to activate the 5 Volt supply Danger of short circuit Take great care when soldering to avoid short circuits Attention Electrostatic discharge ESD...

Page 18: ... below contain the possible settings 5 Carefully put the board back into the housing 6 Reinsert the two screws at the D Sub connector 7 Screw the two sides of the housing back together Figure 4 Solder fields R35 and R36 on the board 5 Volt Supply D Sub Connector None Default Pin 1 R35 for CAN1 R36 for CAN2 ...

Page 19: ...dware via CAN Content of the package Build Tools Tools for automating the build process Compiler Compilers for the supported programmable products Hardware Contains sub directories of the supported hardware which include several firmware examples Use the examples for starting your own firmware development PEAK Flash Windows tool for uploading the firmware to your hardware via CAN Copy the director...

Page 20: ...start Visual Studio Code which is available for free from Microsoft 5 Select the folder of your project and open it For example d PEAK DevPack Hardware PCAN Router Examples 01_ROUTING 6 You can edit the C code and call make clean make all or compile single file via the menu Terminal Run Task 7 Create your firmware with Make All The firmware is the bin in the sub directory out of your project folde...

Page 21: ...ontroller For more information see section 6 4 Uploading Firmware via the Serial Connections on page 27 6 1 System Requirements The following prerequisites must be given so that the PCAN Router can be updated with new firmware CAN interface of the PCAN series for the computer e g PCAN USB CAN cabling between the CAN interface and the PCAN Router with proper termination 120 on each end of the CAN b...

Page 22: ...utions to avoid ESD 1 Disconnect the device from the power supply 2 Establish a connection between Boot and the power supply Ub1 Ub2 or Ub Figure 5 Connection at D Sub connector CAN1 between the pins 6 and 9 Figure 6 Connection at the screw terminal block between terminals 1 and 7 This measure later applies the Boot connection with a high level 3 Connect a CAN bus of the PCAN Router with a CAN int...

Page 23: ...ge CAN2 on orange 6 3 Firmware Transfer On the PCAN Router a new version of the firmware can be transferred via both CAN channels Only the bootloader can be activated via the first CAN channel The firmware is uploaded via a CAN bus using the supplied Windows program PEAK Flash Do the following to transfer a new firmware with PEAK Flash 1 The software PEAK Flash is included in the development packa...

Page 24: ...t button 5 Click on the Modules connected to the CAN bus radio button 6 In the Channels of connected CAN hardware drop down menu select a CAN interface connected to the computer e g PCAN USB FD 7 In the Bit rate drop down menu select the nominal bit rate available on the CAN bus ...

Page 25: ...st the PCAN Router appears together with the Module ID and Firmware version If not check whether a proper connection to the CAN bus with the appropriate nominal bit rate exists 9 Click Next 10 Select the Firmware File radio button and click Select 11 Select the corresponding file bin ...

Page 26: ...e new firmware to the PCAN Router The Flashing dialog appears 14 After the process is complete click Next 15 You can exit the program 16 Disconnect the device from the power supply 17 Remove the connection between Boot and the power supply Ub1 Ub2 or Ub 18 Connect the device to the power supply You can now use the PCAN Router with the new firmware ...

Page 27: ...crocontroller s bootloader Danger of short circuit Take great care when soldering to avoid short circuits Attention Electrostatic discharge ESD can damage or destroy components on the card Take precautions to avoid ESD 1 Switch the PCAN Router off by disconnecting it from the power supply 2 Open the casing of the PCAN Router by removing the screws in order to gain access to the board 3 Establish a...

Page 28: ...r User Manual 28 5 Switch on the PCAN Router by applying a supply voltage Due to the Low level on port P0 14 of the microcontroller the PCAN Router starts the bootloader for serial copying The two LEDs remain off ...

Page 29: ... 10 Power Supply Supply voltage Ub 12 V DC 8 to 30 V DC possible Current consumption Idle 60 mA at 12 V Maximum 124 mA at 8 V 90 mA at 12 V 50 mA at 30 V Power saving modes None Protection 1 kV surge protection 50 V reverse polarity protection 4 kV ESD protection CAN Protocols on OSI layer 2 CAN 2 0 A B Physical transmission ISO 11898 2 High speed CAN Transceiver NXP TJA1040T CAN bit rates Nominal...

Page 30: ...one Dielectric strength VESD 4 kV VCAN 22 V per pin Listen only mode Yes Time stamp resolution 1 μs RS 232 Connectors IPEH 002210 P RxD and TxD Bitrate maximum 230400 Baud Signal level maximum 9 V Dielectric strength VESD 4 kV Galvanic isolation None Digital Inputs Count IPEH 002210 11 1 Connectors Din0 Input voltage 30 V to 30 V Input current range 0 mA to 1 44 mA Input current 0 2 mA Input imped...

Page 31: ...pload Via CAN PCAN interface required or serial ports of the microcontroller IPEH 002210 P additionally possible via RS 232 Memory Type Add on memory Memory size 240 kByte MCU Flash 32 kbit On Chip EEPROM Measures Size IPEH 002210 11 D Sub 78 7 x 55 x 24 mm W x H x D IPEH 002210 P Phoenix 82 3 x 55 x 24 mm W x H x D Casing 70 2 x 50 x 24 mm W x H x D Circuit board 51 x 65 mm W x H See also dimensi...

Page 32: ... transport 40 100 C 40 212 F Relative humidity 15 90 not condensing Ingress protection IEC 60529 IP20 Conformity EMV Directive 2014 30 EU DIN EN 61326 1 2013 07 RoHS 2 EU directive 2011 65 EU RoHS 2 EU directive 2015 863 EU amended list of restricted substances DIN EN IEC 63000 2019 05 VDE 0042 12 2019 05 ...

Page 33: ...PCAN Router User Manual 33 Appendix A CE Certificate ...

Page 34: ...PCAN Router User Manual 34 Appendix B Dimension Drawings The figures do not show the original size ...

Page 35: ...gnal Active μC Function Connection5 P0 0 O TxD UART0 TxD0 Serial communication Transmit J4 2 or STB 10 RS 232 levels P0 1 I RxD UART0 RxD0 Serial communication Receive J4 1 or STB 9 RS 232 levels P0 2 I O SCL SCL P0 3 I O SDA SDA I2 C bus to the EEPROM Microchip 24LC02B or Atmel AT24C256B P0 4 I Port pin ID0 High P0 5 I Port pin ID1 High P0 6 I Port pin ID2 High P0 7 I Port pin ID3 High Coding sol...

Page 36: ...ctivate the RS 232 converter by Low level activated by default possibility for energy saving P0 18 I Hardware capture with timer P0 19 I Port pin Switch High Digital input Din0 CAN2 8 due to wiring Low active P0 20 Hardware capture with timer P0 21 O Port pin CAN_en_2 Low P0 22 O Port pin CAN_en_1 Low Activate the respective CAN transceiver6 P0 23 I RD2 CAN2_RxD CAN2 Receive P0 24 O TD2 CAN2_TxD C...

Page 37: ...d P1 17 O7 Port pin Low LED CAN1 green P1 18 O7 Port pin Low LED CAN2 red P1 19 O7 Port pin Low LED CAN2 green P1 25 O P1 26 JTAG interface RTCK Debugging J5 9 P1 27 JTAG interface TDO Debugging J5 7 P1 28 JTAG interface TDI Debugging J5 8 P1 29 JTAG interface TCK Debugging J5 5 P1 30 JTAG interface TMS Debugging J5 6 P1 31 JTAG interface TRST Debugging J5 10 7 It may occur that an LED glows sligh...

Reviews: