Peak PCAN-Router User Manual

Peak PCAN-Router User Manual

Universal programmable can converter
Hide thumbs Also See for PCAN-Router:

Advertisement

Quick Links

PCAN-Router
Universal Programmable
CAN Converter
User Manual
Document version 2.0.0 (2020-10-14)

Advertisement

Table of Contents
loading

Summary of Contents for Peak PCAN-Router

  • Page 1 PCAN-Router Universal Programmable CAN Converter User Manual Document version 2.0.0 (2020-10-14)
  • Page 2 SN 00020 additional digital input PCAN® is a registered trademark of PEAK-System Technik GmbH. CANopen® and CiA® are registered community trade marks of CAN in Automation e.V. All other product names mentioned in this document may be the trademarks or registered trademarks of their respective companies.
  • Page 3: Table Of Contents

    PCAN-Router – User Manual Contents Introduction Properties at a Glance Scope of Supply Prerequisites for Operation Connectors and Operating Elements D-Sub Connectors (IPEH-002210/-11) Screw Terminal Block (IPEH-002210-P) Status LEDs Operation Hardware Configurations J4 Connector Panel: Serial Ports J5 Connector Panel: JTAG Ports...
  • Page 4 PCAN-Router – User Manual Appendix A CE Certificate Appendix B Dimension Drawings Appendix C Port Assignment of the Microcontroller 35...
  • Page 5: Introduction

    PCAN-Router – User Manual Introduction The PCAN-Router is a dual-channel CAN module whose NXP LPC21 series programmable microcontroller provides the option of using the CAN messages on both channels on a flexible basis. This gives a whole range of options for manipulation, evaluation, filtering, and routing of CAN messages.
  • Page 6: Scope Of Supply

    PCAN-Router – User Manual Additional digital input (only IPEH-002210/-11) Aluminum casing, optionally available with DIN rail mounting on request Supply voltage from 8 to 30 V Extended operating temperature range of -40 to 85 °C (-40 to 185 °F) Import of a new firmware via CAN...
  • Page 7: Connectors And Operating Elements

    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. The supply connections U and U connected internally without feedback.
  • Page 8 PCAN-Router – User Manual Figure 1: Pin assignment D-Sub connector PCAN-Router IPEH-002210: Function at Connector CAN1 Function at Connector CAN2 +5 V for external devices (optional) +5 V for external devices (optional) CAN1_L CAN2_L Reserved Not used SHIELD SHIELD Boot (High-active)
  • Page 9: Screw Terminal Block (Ipeh-002210-P)

    RS-232 RxD 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 6.2 on page 22 Risk of short circuit! See section...
  • Page 10: Status Leds

    PCAN-Router – User Manual Status LEDs Routing firmware is pre-installed on delivery. Therefore, the LEDs CAN1 and CAN2 light up between green and orange on incoming CAN messages. Additionally, they light up orange when the 6.2 Preparing Hardware on page 22...
  • Page 11: Operation

    PCAN-Router – User Manual Operation The PCAN-Router is activated by applying the supply voltage to the 2 Connectors and Operating respective input pins (see section Elements on page 7 ). The firmware in the flash memory is subsequently run. The PCAN-Router is supplied with an example firmware which forwards CAN messages 1:1 between the two channels at 500 kbit/s.
  • Page 12: Hardware Configurations

    PCAN-Router – User Manual Hardware Configurations For special applications various settings can be made on the circuit board of the PCAN-Router by means of solder bridges: Serial ports 4.1 J4 Connector Panel: Serial Ports on page 13 (see section Debugging ports of the microcontroller 4.2 J5 Connector Panel: JTAG Ports on page 14...
  • Page 13: J4 Connector Panel: Serial Ports

    PCAN-Router – User Manual J4 Connector Panel: Serial Ports The free connector panel J4 on the board of the PCAN-Router can be used as an access possibility to the serial ports of the microcontroller LPC2194/01 (μC). Signal Port μC RxD0 P0.1...
  • Page 14: J5 Connector Panel: Jtag Ports

    PCAN-Router – User Manual J5 Connector Panel: JTAG Ports The free connector panel J5 on the board of the PCAN-Router can be used as an access possibility to the JTAG ports of the microcontroller LPC2194/01 (μC) for hardware debugging. Signal Port μC...
  • Page 15: Coding Solder Bridges

    LPC2194/01 (μC). A bit is set (1) if the corresponding solder field is open. A concrete application is the identification of a PCAN-Router on the CAN bus during a firmware upload, especially if several routers are connected and in operation.
  • Page 16 PCAN-Router – User Manual Figure 3: Coding solder bridges on the board Position Port μC P0.4 P0.5 P0.6 P0.7 Solder Field Status Port Status 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.
  • Page 17: Supply Voltage Of External Devices (Ipeh-002210/-11)

    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 jumper position is open (default setting: ID 15, all positions open).
  • Page 18 PCAN-Router – User Manual Figure 4 below shows the positions of the solder fields on the board. The tables below contain the possible settings. Carefully put the board back into the housing. Reinsert the two screws at the D-Sub connector.
  • Page 19: Creating Own Firmware

    PCAN-Router – User Manual Creating Own Firmware With the help of the development package, you can program your own application-specific firmware for PEAK-System programmable hardware products. Download of the development package: URL: www.peak-system.com/quick/DLP-DevPack System Requirements: PC with Windows® 10 (32-/64-bit)
  • Page 20: Library

    The development of applications for the PCAN-Router is supported by the library libPCAN-RouterGNU*ys.a (* stands for version number), a binary file. You can access all resources of the PCAN-Router by means of this library. Die library is documented in the header files (*.h) which are located in the inc subdirectory of each example...
  • Page 21: Firmware Upload

    PCAN-Router – User Manual Firmware Upload The microcontroller in the PCAN-Router can be equipped with new firmware in two different ways: Via CAN (recommended): Via a CAN channel and the Windows software PEAK-Flash, the firmware can be transferred from the computer to the PCAN- Router.
  • Page 22: Preparing Hardware

    Preparing Hardware For an upload of new firmware via CAN, the CAN bootloader must be activated in the PCAN-Router. This can only be done via CAN channel 1. Firmware transfer, on the other hand, can also be done via CAN channel 2.
  • Page 23: Firmware Transfer

    CAN2 orange 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.
  • Page 24 PCAN-Router – User Manual Figure 7: Main window of PEAK-Flash Click the Next button. Click on the Modules connected to the CAN bus radio button. In the Channels of connected CAN hardware drop-down menu, select a CAN interface connected to the computer (e.g.
  • Page 25 PCAN-Router – User Manual Figure 8: Hardware selection Click on Detect. In the list, 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.
  • Page 26 Figure 9: Selection of the firmware file (*.bin) 12. Click Next. The Ready to Flash dialog appears. 13. Click Start to transfer the new firmware to the PCAN-Router. The Flashing dialog appears. 14. After the process is complete, click Next.
  • Page 27: Uploading Firmware Via The Serial Connections

    Attention! Electrostatic discharge (ESD) can damage or destroy components on the card. Take precautions to avoid ESD. 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.
  • Page 28 PCAN-Router – User Manual 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: Technical Specifications

    PCAN-Router – User Manual Technical Specifications Connectors Power supply IPEH-002210/-11: 2 x D-Sub (m), pin 9 (U IPEH-002210-P: 1 x Screw terminal block , pin 1 (U IPEH-002210/-11: 2 x D-Sub (m), 9 pins Assignment according to specification CiA® 303-1...
  • Page 30 PCAN-Router – User Manual Supported bit timing values Nominal Prescaler (BRP) 1 – 1024 Time Segment 1 1 - 16 (TSEG1) Time Segment 2 1 – 8 (TSEG2) Synch. Jump Width 1 - 4 (SJW) Galvanic isolation IPEH-002211: D-Sub connector CAN 2 up to 500 V...
  • Page 31 PCAN-Router – User Manual Digital Inputs Switching thresholds Low-High: > 0.6 V High-Low: < 0.8 V Low pass 7.23 kHz Protection ±4 kV ESD protection Galvanic isolation IPEH-002211: D-Sub connector CAN 2 up to 500 V Microcontroller NXP LPC2194/01 Clock frequency...
  • Page 32 PCAN-Router – User Manual Environment Operating temperature -40 - +85 °C (-40 - +185 °F) Temperature for storage -40 - +100 °C (-40 - +212 °F) and transport Relative humidity 15 - 90 %, not condensing Ingress protection IP20 (IEC 60529)
  • Page 33 PCAN-Router – User Manual Appendix A CE Certificate...
  • Page 34 PCAN-Router – User Manual Appendix B Dimension Drawings The figures do not show the original size.
  • Page 35 PCAN-Router – User Manual Appendix C Port Assignment of the Microcontroller The following table lists the used inputs and outputs (ports) of the LPC2194/01 microcontroller (μC) and their function in the PCAN- Router. It is meant as supplemental information. The converter's functionality is implemented by the supplied library.
  • Page 36 PCAN-Router – User Manual Port μC Function Signal Active Function/Connection (μC) P0.11 Hardware capture with timer P0.12 Port pin Reserved P0.13 I, O Port pin P0.14 Port pin /Boot_ser Activate flashing via serial interface, J4:4 P0.15 Port pin /Boot_CAN Activate flashing via CAN1...
  • Page 37 PCAN-Router – User Manual Port μC Function Signal Active Function/Connection (μC) 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 or +U maximum value (0x03FF) corresponds to 33.1 V P0.29...

This manual is also suitable for:

Ipeh-002210Ipeh-002210-pIpeh-002211

Table of Contents