Corel Office Document - esd-electronics-usa.comDocument file:...

53
CPCI-405 Hardware Manual Rev. 3.4 esd electronic system design gmbh Vahrenwalder Str. 207 • 30165 Hannover • Germany www.esd-electronics.com • Fax: 0511/37 29 8-68 Phone: 0511/37 29 80 • International: +49-5 11-37 29 80 CPCI-405 CompactPCI-Controller Board with CAN and ETHERNET Hardware Manual to product: I.2306.xx

Transcript of Corel Office Document - esd-electronics-usa.comDocument file:...

  • CPCI-405 Hardware Manual Rev. 3.4

    esd electronic system design gmbhVahrenwalder Str. 207 • 30165 Hannover • Germany

    www.esd-electronics.com • Fax: 0511/37 29 8-68 Phone: 0511/37 29 80 • International: +49-5 11-37 29 80

    CPCI-405CompactPCI-Controller Board

    with CAN and ETHERNET

    Hardware Manual

    to product: I.2306.xx

  • CPCI-405 Hardware Manual Rev. 3.4

    N O T E

    The information in this document has been carefully checked and is believed to be entirely reliable. esdmakes no warranty of any kind with regard to the material in this document, and assumes noresponsibility for any errors that may appear in this document. esd reserves the right to make changeswithout notice to this, or any of its products, to improve reliability, performance or design.

    esd assumes no responsibility for the use of any circuitry other than circuitry which is part of a productof esd gmbh.

    esd does not convey to the purchaser of the product described herein any license under the patent rightsof esd gmbh nor the rights of others.

    esd electronic system design gmbhVahrenwalder Str. 20730165 HannoverGermany

    Phone: +49-511-372 98-0Fax: +49-511-372 98-68E-mail: [email protected]: www.esd-electronics.com

    USA / Canada:esd electronics Inc.525 Bernardston RoadSuite 1Greenfield, MA 01301 USA

    Phone: +1-800-732-8006Fax: +1-800-732-8093E-mail: [email protected]: www.esd-electronics.us

  • CPCI-405 Hardware Manual Rev. 3.4

    Document file: I:\texte\Doku\MANUALS\CPCI\CPCI405\Englisch\CP405_34H.en9

    Date of print: 2007-05-16

    Serial Number: from BC882

    Changes in the chapters

    The changes in the document listed below affect changes in the hardware as well as changes in thedescription of the facts, only.

    Chapter Changes as compared with previous version

    1.3.3 NVRAM specified

    2.1 Table completed

    3.1.2 Addresses inserted

    3.2.1 Default settings corrected (Handshake: none)

    3.3.1 Table completed

    Technical details are subject to change without further notice.

  • CPCI-405 Hardware Manual Rev. 3.4

    This page is intentionally left blank.

  • CPCI-405 Hardware Manual Rev. 3.4 1

    Contents Page1. Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

    1.1 Description of the CPCI-405 Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31.2 PCB View with Connector Designations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51.3 Summary of Technical Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

    1.3.1 General Technical Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61.3.2 CompactPCI Bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71.3.3 Microprocessor and Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71.3.4 Serial Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81.3.5 CAN-Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81.3.6 ETHERNET Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91.3.7 Software Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91.3.8 Order Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

    2. Front Panel View with LED-Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112.1 LEDs in the Front Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113.1 PowerPC Microcontroller PPC405GPr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

    3.1.1 General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123.1.2 Address Assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133.1.3 Interrupt Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

    3.2 Serial Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153.2.1 Default Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153.2.2 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153.2.3 Connecting the RS-232-Interface SER 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163.2.4 Connecting the Serial Interface SER 1 with TTL-Level . . . . . . . . . . . . . . . . . . . . . 16

    3.3 Function of Coding Switch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173.3.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173.3.2 Switching the Boot-Flash-EPROM via Coding Switch Bit 4 . . . . . . . . . . . . . . . . . 17

    3.4 CAN/DeviceNet Unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183.4.1 General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183.4.2 Interface Circuits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

    4. Connector Assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204.1 Serial Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

    4.1.1 SER 0: Assignment of the RJ12 Socket X700 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204.1.2 SER 0: Connection Cable RJ12-DSUB9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214.1.3 SER 0: DSUB-Socket when Using the Adapter Cable RJ12-DSUB9 . . . . . . . . . . . 224.1.4 SER 1: Assignment of the 6-pin Post Connector X710 . . . . . . . . . . . . . . . . . . . . . 23

    4.2 CAN-Bus Interface (X1000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244.3 CAN-TTL Signals (X1010) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254.4 Option: DeviceNet-Adapter Boards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264.5 ETHERNET 10/100BaseT Connection (X1200) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294.6 Debug Port X720 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30

    4.6.1 Signal Alignment of the 16-pole SMD-Strip and JTAG-Adapter (PCB-Rev. 1.x) . . 304.6.2 Signal Alignment of 8-pole SMD-Strip and JTAG-Adapter (from PCB-Rev. 2.x) . . 31

    5. Special Designs: CPCI-405 with CPCI-CAN-ISO11898 Add-On . . . . . . . . . . . . . . . . . . . . 335.1 CPCI-405-2 PowerPC Host with 8 HP Front Panel (I.2306.49) . . . . . . . . . . . . . . . . . . . . 33

  • CPCI-405 Hardware Manual Rev. 3.42

    5.1.1 Front Panel view of CPCI-405-2 with Adapter Board and 8 HP Front Panel . . . . . 345.2 CPCI-405-A PCI-Adapter with 6 U Front Panel (I.2306.47) . . . . . . . . . . . . . . . . . . . . . . . 35

    5.2.1 Front Panel view of the CPCI-405-A PCI-Adapter with 6 U Front Panel . . . . . . . . 365.3 Serial Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37

    5.3.1 RS-232 Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375.3.2 RS-422 interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375.3.3 RS-485 interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 385.3.4 Solder Bridges for the Configuration of the Serial Interface SER1 . . . . . . . . . . . . . 39

    5.4 Connector Assignments of the Special Designs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 405.4.1 CAN-Interface CAN 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 405.4.2 SER1: Assignment of the RJ12 Socket P100 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41

    6. Correctly Wiring Electrically Isolated CAN Networks . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43

    7. CAN-Bus Troubleshooting Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 477.1 Termination . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 477.2 CAN_H/CAN_L Voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 487.3 Ground . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 487.4 CAN Transceiver Resistance Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49

  • Overview

    CPCI-405 Hardware Manual Rev. 3.4 3

    +5 V=

    +5 V=

    FPGAControl LogicCAN1

    CAN0

    IRQ

    FlashEPROM

    NVRAM

    IDE-CompactFlash

    Interface

    RJ4510/100BaseT

    10/100BaseTTransceiver

    RJ12SER 0

    RS-232

    RS-232Interface

    Post ConnectorSER 1TTL

    SDRAM

    PPC405

    CANBUS

    Electrical Isolation

    DC/DCConverter

    DSUB9CiA pinning

    CAN ControllerSJA1000

    CompactPCI Connector

    CAN ControllerSJA1000

    PhysicalCANLayer

    Post ConnectorCAN-TTL

    1. Overview

    1.1 Description of the CPCI-405 Board

    Fig. 1.1.1: Block circuit diagram

    The CPCI-405 is a CompactPCI board in Euro format. It is available as PCI-master CPU or asintelligent slave board. Both options only differ in the configuration of the PowerPC 405GPr processor.

    Apart from a powerful CPU the PowerPC 405GPr processor has got an SDRAM controller, a PCI-businterface, a controller for serial interfaces and an MII-interface which is here used to realize anETHERNET interface.

    In addition to Flash EPROM and NVRAM as system memory, the memory of the CPCI-405 has gotup to 128 Mbyte SDRAM as working memory. Furthermore, the board has got a CompactFlash cardinterface. The boards plugged in can be accessed by standard system drivers like an IDE-drive.

    One of the two serial interfaces has been designed as an RS-232-interface. It can be accessed via anRJ12-connector in the front panel. The second serial interface is accessible via a post connector onboard. The signals of this interface are of TTL-level.

    The CAN-interface which can be accessed via the front panel, is controlled by an SJA1000-CAN-controller. The interface corresponds to ISO11898, is electrically insulated and can be used fortransmission rates of up to 1 Mbit/s. The second CAN-interface has got an SJA1000-CAN-controlleras well.

  • Overview

    CPCI-405 Hardware Manual Rev. 3.44

    The TTL-signals of both controllers are led to a post connector. Here, two adapter boards can beconnected via flat ribbon cables, realising the physical layer. The adapter boards are available with CAN(ISO11898) or DeviceNet interfaces. Optionally the CPCI-405 together with the adapter board isavailable in two special designs (page 33).

    The ETHERNET interface is suitable for 10 Mbit/s and 100 Mbit/s networks. They are connected viaan RJ45 socket in the front panel.

    The status of the board is shown by LEDs in the front panel.

  • Overview

    CPCI-405 Hardware Manual Rev. 3.4 5

    1.2 PCB View with Connector Designations

    Fig. 1.2.1: PCB view (diagram without front panel)

  • Overview

    CPCI-405 Hardware Manual Rev. 3.46

    1.3 Summary of Technical Data

    1.3.1 General Technical Data

    Ambient temperature 0...50 C

    Humidity max. 90 %, non-condensing

    Power supply

    via CompactPCI-bus,5 V ± 5% / 200 mA (from PCB-rev. 2.0 on)and3.3 V ± 5% / 800 mA (from PCB-rev. 2.0 on)

    Connectors

    X100 (132-pin post connector) - CompactPCI-board connector J1X101 (132-pin post connector) - CompactPCI-board connector J2X700 (6-pin RJ12-socket) - RS-232-interface (SER 0) X710 (6-pin post connector) - serial interface with TTL-level (SER 1)X720 (8-pin SMD socket) - debug interfaceX1000 (9-pin DSUB-connector) - CAN 0 (ISO11898)X1010 (10-pin post connector) - CAN 0 (TTL) + CAN 1 (TTL)X1100 (50-pin CompactFlash board connector) - CompactFlash boardsX1200 (8-pin RJ45-socket) - ETHERNET Twisted Pair (IEEE 802.3)

    Dimensions 100 mm x 160 mm

    Weight 200 g

    Table 1.3.1: General technical data

  • Overview

    CPCI-405 Hardware Manual Rev. 3.4 7

    1.3.2 CompactPCI Bus

    Host bus PCI-bus in accordance with PCI Local Bus Specification 2.2

    PCI-data/address bus 32 bits

    Controller PowerPC 405GPr

    Interrupt interrupt signal A, B, C, D

    Board dimensionin accordance with PCI-Specification, Rev. 1.0

    Connectors

    Connector coding Universal Board, not keyed(3,3 V or 5 V signalling voltage)

    Table 1.3.2: CompactPCI Bus interface

    1.3.3 Microprocessor and Memory

    CPUPowerPC 405GPr / 266 MHz (default at board type I.2306.04) /32 bit(up to 400 MHz as an option)

    NVRAM

    32 K x 8 bits NVRAM: Simtek STK14C88 (no battery required)

    option: RTC with NVRAM STM M48T35Y (internal battery)

    Flash-EPROM up to 4 M x 16 bits

    Serial EEPROM 1 Kbyte

    SDRAM 16 M x 32 bits (64 Mbyte) (default at board type I.2306.04)32 M x 32 bits (128 Mbyte) (optional)

    CompactFlash slot

    - for CompactFlash memory boards in accordance withCompactFlashTM specification

    - suitable for board design type I- 3.3 V-power supply- controlled in ‘True IDE’ mode

    Table 1.3.3: Microprocessor and memory

  • Overview

    CPCI-405 Hardware Manual Rev. 3.48

    1.3.4 Serial Interfaces

    Number 2

    Controller PowerPC 405GPr

    Bit rate Microcontroller: 300 bit/s ... 115.200 bit/sRS-232-Transceiver: max. 115.200 Kbit/s

    Physical interface Serial 0: RS-232CSerial 1: TTL-level signals

    Connectors Serial 0: 6-pin RJ12-socket in front panelSerial 1: 6-pin post connector on board

    Table 1.3.4: Serial interfaces

    1.3.5 CAN-Interfaces

    Number 2

    CAN-controller SJA1000

    CAN-protocol CAN 2.0A/2.0B

    Physical interfaceCAN 0: differential, connection in accordance with ISO 11898CAN 1: TTL-level, connection together with CAN 0-TTL to 10-pin

    post connector

    Transmission rate 10 Kbit/s ... 1 Mbit/s

    Bus termination has to be terminated externally

    ConnectorsCAN 0: DSUB9-connector in front panel and 10-pin post connector

    for adapter board X1010CAN 1: 10-pin post connector for adapter board X1010

    Adapter board- to be connected to 10-pin post connector X1010- available with differential CAN-interface (ISO11898) or

    DeviceNet interface (with Combicon socket)

    Table 1.3.5: CAN-interfaces

  • Overview

    CPCI-405 Hardware Manual Rev. 3.4 9

    1.3.6 ETHERNET Interface

    Number 1

    Bit rate 10 Mbit/s, 100 Mbit/s

    Controller PowerPC405GPr

    Physical interface Twisted Pair (IEEE 802.3) 10/100BaseT

    Electrical insulation via repeating coil

    Connector 8-pin RJ45-socket in front panel

    Table 1.3.6: ETHERNET interface

    1.3.7 Software Support

    The boot monitor U-Boot* is stored in the Flash memory. This makes it possible for the CPCI-405 toboot with various operating systems from the network, the local Flash memory or the Compact Flashmemory. The operating systems Linux and VxWorks are available with according drivers for the local interfaces.Further operating systems are available on request.Furthermore the CAN-transmission protocols CANopen and DeviceNet and a local WEB-server areavailable.

    * http://sourceforge.net/project/u-boot

  • Overview

    CPCI-405 Hardware Manual Rev. 3.410

    1.3.8 Order Information

    Type Properties Order No.

    CPCI-405 AMCC PowerPC405GPr, 266 MHz, 64 MB SDRAM,4 MB Flash, CPCI-host I.2306.04

    CPCI-405-64 as I.2306.04, but AMCC PowerPC405GPr with 400 MHz I.2306.05

    CPCI-405-Aas I.2306.04, but CPCI-target adapter I.2306.07

    as I.2306.07, but with 4 HP / 6 U front panel I.2306.47

    CPCI-405-A-64 as I.2306.05, but CPCI-target adapter I.2306.08

    CPCI-405-2 as I.2306.04, but 2x CAN ISO11898 and 2x serial RS-232,8 HP / 3 U front panel I.2306.49

    CPCI-405-VxW VxWorks BSP I.2306.30

    CPCI-405-Linux Linux BSP/Adaption I.2306.32

    CPCI-405-QNX QNX6 BSP I.2306.34

    CPCI-405-ME English manual 1*)

    (this manual) I.2306.21

    CPCI-405-ENGEngineering Manual in English 2*)Content: Circuit diagrams, PCB top overlay drawing, data sheets of significant components

    I.2306.25

    1*) The manual is free, if it was ordered together with the product.2*) This manual is liable for costs, please contact our support.

    Table 1.3.8: Order information

  • LED-Display

    CPCI-405 Hardware Manual Rev. 3.4 11

    SE

    R0

    1

    8

    1

    6

    16

    59

    CA

    N0

    L E

    TH R

    CA

    NR

    UN

    US

    R10/100

    CAN:RUN: USR: 10/100:

    EjectLever

    Link Status Ethernet LED

    Receive Status Ethernet LED

    CAN Active LEDBoard CPU RUN LEDUser-Defined LED10/100 Mbit/s Ethernet LED

    CAN Interface CAN0 (X1000)

    RS-232 Interface SER0 (X700)

    Ethernet 10/100BaseT (X1200)

    LED Display

    2. Front Panel View with LED-DisplayThe module has got four LEDs in the front panel and another LED which can only be seen on the boarditself when the case is open.

    2.1 LEDs in the Front Panel

    Fig. 2.1.1: Position and colours of LEDs

  • LED-Display

    CPCI-405 Hardware Manual Rev. 3.412

    Name Colour Meaning of LED when on

    CAN greenCAN-frames are being received or transmittedThe LED is hardwired. The LED cannnot be controlled throughsoftware.

    RUN green

    local CPU is in RUN status (LED lights at every access to the SDRAM, therefore the LED can beblinking or permanently on in normal operation) The LED is hardwired. The LED cannnot be controlled throughsoftware.

    USR greenapplication-specific programmable functionThe USR LED is controlled by the 405 GPr CPU’s GPIO24 signal. Clear GPIO24 to turn on the USR LED or set GPIO24 to turn it off.

    RCV greenETHERNET bit rate: 100 Mbit/s The LED is hardwired. The LED cannnot be controlled throughsoftware.

    Link Status green link status ETHERNET (link to server or hub detected)

    ReceiveStatus yellow receive status ETHERNET (reception of ETHERNET-data packages)

    Table 2.1.1: Display functions of LEDs

  • Description of Units

    CPCI-405 Hardware Manual Rev. 3.4 13

    3. Description of Units

    3.1 PowerPC Microcontroller PPC405GPr

    3.1.1 General

    The general functions of the PowerPC 405GPr will not be explained in this manual. The manual of themicrocontroller can be downloaded from the homepage of the manufacturer AMCC at:

    http://www.amcc.com/Embedded/

  • Description of Units

    CPCI-405 Hardware Manual Rev. 3.414

    3.1.2 Address Assignment

    Start address[HEX]

    End address[HEX] Unit

    0x0000_0000 0x03FF_FFFF SDRAM (max. 64 Mbyte)

    0X0000_0000 0xEF5F_FFFF PCI Core memory

    Internal periphery:

    0xEF60_0300 0xEF60_0307 UART0-register (see 405GP-Manual Table 3-6 , S. 3-9) *

    0xEF60_0400 0xEF60_0407 UART1-register (see 405GP-Manual Table 3-7 , S. 3-10) *

    0xEF60_0500 0xEF60_0510 IIC0-register (see 405GP-Manual Table 3-8 , S. 3-11)

    0xEF60_0600 0xEF60_0601 OPB-arbiter register (see 405GP-Manual Table 3-9 , S. 3-12)

    0xEF60_0700 0xEF60_077F GPIO-controller register (see 405GP-Manual Table 3-10 , S. 3-13)

    0xEF60_0800 0xEF60_0867 Ethernet register (see 405GP-Manual Table 3-11 , S. 3-14)

    0xF000_0000 0xF000_007F CAN-controller CAN 0

    0xF000_0100 0xF000_017F CAN-controller CAN 1

    0xF010_0000 0xF010_001F IDE/CompactFlash

    0xF020_0000 0xF020_5FFF NVRAM (or NVRAM with RTC)Free: User Space (24 Kbyte)

    0xF020_6000 0xF020_6FFFNVRAM (or NVRAM with RTC)Reserved: VxWorks and esd internal use (4 Kbyte)

    0xF020_7000 0xF020_7FFF

    NVRAM (or NVRAM with RTC)Reserved: PPCBoot/U-Boot environment variables (4 Kbyte)

    Option NVRAM with RTC: RTC: Register start address end address

    0xF020_7FF8 0xF020_7FFF

    0xF040_0000 0xF04F_FFFF FPGA internal registers

    0xFFC0_0000 0xFFDF_FFFF Flash-EPROM bank 0 (SST39VF160)

    0xFFE0_0000 0xFFFF_FFFF Flash-EPROM bank 1 (SST39VF160)

    Table 3.1.1: Addresses* The UARTS are 16550-compatible.

  • Description of Units

    CPCI-405 Hardware Manual Rev. 3.4 15

    3.1.3 Interrupt Settings

    Interrupt External IRQ Circuit Level Detection

    IRQ 25 EXT IRQ 0 CAN0 low active, level sensitive

    IRQ 26 EXT IRQ 1 CAN1 low active, level sensitive

    IRQ 27 EXT IRQ 2 PCI-INT_A high active, level sensitive

    IRQ 28 EXT IRQ 3 PCI-INT_B high active, level sensitive

    IRQ 29 EXT IRQ 4 PCI-INT_C low active, level sensitive

    IRQ 30 EXT IRQ 5 PCI-INT_D low active, level sensitive

    IRQ 31 EXT IRQ 6 CompactFlash high active, level sensitive

    Table 3.1.2: Interrupt Setting

    All other interrupt sources are PowerPC405-internal. They are described in the PowerPC405-manual.

  • Description of Units

    CPCI-405 Hardware Manual Rev. 3.416

    3.2 Serial Interface

    3.2.1 Default Setting

    The default setting for both serial interfaces is the following:

    Bit rate: 9600 BaudData bits: 8Parity: noStop bits: 1Handshake: none

    3.2.2 Configuration

    The serial interfaces are controlled by the microcontroller PowerPC405GPr. The bit rate of theinterfaces can be configured. The serial controller integrated in the PowerPC405GPr and the RS-232driver used for interface SER 0 support bit rates of up to 115.200 kbit/s.

    The bit rate can be changed by means of software. The procedure to change the bit rate depends on theoperating system, it is therefore advisable to refer to the manual of the operating system.

  • Description of Units

    CPCI-405 Hardware Manual Rev. 3.4 17

    TxD

    CTS

    RTS

    GND

    RxDTxD

    RxD

    RTS

    CTS

    2

    3

    8

    7

    5GND

    2

    3

    4

    5

    6

    localsignal terms

    pin numbers of the 9 pole DSUB connector, if the adapter cable RJ12-DSUB9 is connected

    pin numbers of the 6 pole RJ12 connector

    e.g. PC(Terminal, DTE)

    CPCI-Board(Modem, DCE)

    Adapter CableRJ12DSUB9-Female

    3.2.3 Connecting the RS-232-Interface SER 0

    The diagram is used to explain the short terms for signals as used in the chapter (ConnectorAssignments). The signal terms are exemplary for the connection of the CPCI-405 as a modem (DCE)via the adapter cable RJ12-DSUB9.

    Fig. 3.2.1: Connection diagram for RS-232 operation

    3.2.4 Connecting the Serial Interface SER 1 with TTL-Level

    If another serial interface is required, an adapter, for instance, which converts TTL-signals into RS-232-signals can be connected to interface SER 1 via the 6-pin post connector X710 and flat ribbon cable.

    Attention: The signals at the pins 3 and 6 will not only be used as TxD- and RxD-Signals. In theboot sequence of the PowerPC 405 these signals are used to define the setting of theoperation mode (Strapping Pins). The level is defined by high-impedance local resistorson the board.Therefore the user has to ensure, that no pull-up or pull-down resistors with valuessmaller than 10 kohm will be connected at the lines TxD-S1/STR17 or RxD-S1/STR18.This could be happen with some modem types !

  • Description of Units

    CPCI-405 Hardware Manual Rev. 3.418

    3.3 Function of Coding Switch

    3.3.1 Overview

    Coding switchbit Function Default setting at delivery

    1 no special function / general purpose OFF

    2 no special function / general purpose OFF

    3 no special function / general purpose OFF

    4 switching the boot Flash-EPROM boot from Flash-EPROM U600

    Table 3.3.1: Assignment of coding switch bits

    The state of the DIP switches can be read at address 0xF040 0002. Each switch’s state is representedin the least significant bits.

    3.3.2 Switching the Boot-Flash-EPROM via Coding Switch Bit 4

    The local operating system is booted from the Flash-EPROM U600 per default (chip select CS0 ofPowerPC 405GP). By means of the coding switch the chip select signal can be switched so that theFlash-EPROM U610 will be accessed.

    This switching can be used, for instance, to boot an ‘Emergency Operating System’ in the second FlashEPROM, if the board does not boot up again after a change in the default Flash-EPROM.

    Position of codingswitch bit 4 Function

    0 Memory area of Flash-EPROM U610 is at CS0

    1 Memory area of Flash-EPROM U600 is at CS0(default setting)

    Table 3.3.2: Meaning of coding switch bits 4

  • Description of Units

    CPCI-405 Hardware Manual Rev. 3.4 19

    3.4 CAN/DeviceNet Unit

    3.4.1 General

    The CPCI-405 has got two independent CAN-channels. Each of these CAN-channels has got its ownSJA1000 controller.

    CAN-channel CAN0 can be accessed via 9-pin DSUB connector X1000 in the front panel. An82C250/82C251 is used as driver unit. The differential CAN-bus signals are electrically insulated fromother potentials.

    The signals of CAN-channel CAN1 are at post connector X1010 in the form of TTL-signals. The TTL-signals of CAN0 are also led to this connector. By means of a flat ribbon cable two adapter boards canbe connected to X1010. These adapter boards are available with the physical layer for CAN (ISO11898with DSUB-connector), or with the physical layer for DeviceNet (Combicon socket). The flat ribboncable for the connection of adapter boards can be fed through from one board to the next. Thisminimizes the wiring within the case.

    Note: If the option of the external CAN or DeviceNet interface is used for CAN-channel CAN0via the adapter board, the local CAN-interface cannot be used anymore, because it wouldrequire a change in the equipping!

  • Description of Units

    CPCI-405 Hardware Manual Rev. 3.420

    VCCin

    IN

    GNDin

    VCCout

    OUT

    ENABLE

    GNDout

    VCCin

    IN

    GNDin

    VCCout

    OUT

    ENABLE

    GNDout

    +5V

    10K

    RX0-C0#

    +5V

    VDD

    TX

    R/GND

    BUSL

    RX BUSH

    +5V

    CAN_L

    CAN_H

    5V

    ++

    - -

    +5V

    CAN_GND

    DC/DCR05ET05

    2

    7

    TX0-C0# GND

    VCC

    GND

    5V

    VCC

    CAN_GND3, 6

    1, 4, 8, 9n.c.

    GNDOptocouplerHCPL7710

    OptocouplerHCPL7710

    GND

    VC05D150

    10µF

    2,2M

    2,2nF/250V~

    toCAN Controller

    CAN Transceiver82C25o/82C251

    5Shield

    DSUB9male

    VCCin

    IN

    GNDin

    VCCout

    OUT

    ENABLE

    GNDout

    VCCin

    IN

    GNDin

    VCCout

    OUT

    ENABLE

    GNDout

    +5V

    RX00*

    +5V

    VDD

    TX

    R/GND

    BUSL

    RX BUSH

    +5V

    CAN-

    CAN+

    3

    2

    4

    TX00*

    GND

    VCC GNDOptocouplerHCPL7710

    OptocouplerHCPL7710

    GND

    22µF/35V

    CAN Transceiver82C251

    5

    1

    +VSense

    Comp

    SC CAP

    -V

    PRLL5819

    220pFDC

    SE

    CAN_GND

    V-

    V+

    1R

    3K6/1%

    1K2/1%

    100µ

    H

    PRLL5819

    MC34063A

    CombiconMSTB2,5/5-5,08

    Shield

    CombiconMSTB2,5/5-5,08

    VC05D150

    +5V

    2

    4

    1

    10

    10-pole post connector

    3.4.2 Interface Circuits

    The following diagram represents the principal circuit of the CAN-interface. The local CAN-interfaceof CAN0 is identically constructed to the CAN-interface on the adapter board.

    Fig. 3.4.1: Circuit of CAN-interface

    Fig. 3.4.2: Circuit of the DeviceNet interface on the adapter board

  • Connector Assignment

    CPCI-405 Hardware Manual Rev. 3.4 21

    1 2 3 4 5 6

    4. Connector Assignment

    4.1 Serial Interfaces

    For details on the connection of serial interfaces please refer also to chapter ‘Serial Interfaces’ onpage 15. From the principle circuit diagrams represented in that chapter, you will be able to clearlydetermine the signal direction (Rx Tx).

    4.1.1 SER 0: Assignment of the RJ12 Socket X700

    Pin Position:

    Cut-out forfastening lever

    Pin Assignment:

    Pin Local Signal Names1 +5 V

    2 TxD-S0Data Output

    3 RxD-S0Data Input

    4 RTS-S0Handshake Output

    5 CTS-S0Handshake Input6 GND

    The data direction of the signals is given as viewed from the CPCI-405 board.

  • Connector Assignment

    CPCI-405 Hardware Manual Rev. 3.422

    1,5 m

    RxD

    GND

    5 4 3 2 1

    9 8 7 6

    1

    2

    3

    4

    5

    6

    TxDTxD

    RxD

    GND

    P1:

    PCP2:

    CPCI-405

    RTS

    CTS

    1

    2

    3

    4

    5

    6

    7

    8

    9

    1

    6

    +5V

    CTS

    RTS

    P1DSUB female

    9-pole

    P2RJ12 (6P6C),

    6-Pol.

    local signalnames usedat CPCI-405

    4.1.2 SER 0: Connection Cable RJ12-DSUB9

  • Connector Assignment

    CPCI-405 Hardware Manual Rev. 3.4 23

    4.1.3 SER 0: DSUB-Socket when Using the Adapter Cable RJ12-DSUB9

    Pin Position:

    Pin Assignment:

    Signal Pin Signal

    n.c. 16 n.c.

    RxD-S0 (output) 27 RTS-S0 (input)

    TxD-S0 (input) 38 CTS-S0 (output)

    n.c. 49 n.c.

    GND 5 9-pin DSUB female

    n.c. ... not connected

    The names of the signals are specified as seen from the terminal (PC). The signal direction specifiedin brackets is shown as seen from the CPCI-405 board.

  • Connector Assignment

    CPCI-405 Hardware Manual Rev. 3.424

    4.1.4 SER 1: Assignment of the 6-pin Post Connector X710

    The signals of the serial interface SER 1 at X710 have TTL-Level!

    Signal Connector pin Signal

    +5 V 1 2 RxD

    TxD-S1/STR17 3 4 GND

    CTS 5 6 RTS-S1/STR18

    Attention: The signals at the pins 3 and 6 will not only be used as TxD- and RxD-Signals. In theboot sequence of the PowerPC 405 these signals are used to define the setting of theoperation mode (Strapping Pins). The level is defined by high-impedance local resistorson the board.Therefore the user has to ensure, that no pull-up or pull-down resistors with valuessmaller than 10 kohm will be connected at the lines TxD-S1/STR17 or RxD-S1/STR18.This could be happen with some modem types !

  • Connector Assignment

    CPCI-405 Hardware Manual Rev. 3.4 25

    4.2 CAN-Bus Interface (X1000)

    The position of the signals in the DSUB-connector of CAN-channel CAN0 (X1000) in the front panel,and the DSUB-connector on the optional adapter board are identical.

    Pin Position:

    Pin Assignment:

    Signal Pin Signal

    1 reservedCAN0_GND 6

    2 CAN0_LCAN0_H 7

    3 CAN0_GNDreserved 8

    4 reservedreserved 9

    5 shield 9-pin DSUB male

    Signal Description:

    CAN0_L, CAN0_H... CAN-signal lines (generated from the CAN-controller TTL-signals Tx0-CAN0* and Rx0-CAN0*)

    CAN0_GND ... reference potential of the local CAN-physical layer

    shield ... potential of connector case

    reserved ... reserved for future applications

  • Connector Assignment

    CPCI-405 Hardware Manual Rev. 3.426

    4.3 CAN-TTL Signals (X1010)

    Connector X1010 has been assigned with the Rx/Tx-signals of both CAN-controllers. The signals areon TTL-level and are not electrically insulated from the microcontroller units!

    X1010 has been designed for the connection of the optional adapter boards to the physical layer forCAN or DeviceNet.

    Signal name Pin Signal name

    +5V 1 2 Tx0-CAN1*

    Tx1-CAN1* 3 4 Rx0-CAN1*

    Rx1-CAN1* 5 6 Tx0-CAN0*

    Tx1-CAN0* 7 8 Rx0-CAN0*

    Rx1-CAN0* 9 10 GND

    Note: If the option of the external CAN or DeviceNet interface is used for CAN-channel CAN0via the adapter board, the local CAN-interface cannot be used anymore, because it wouldrequire a change in the equipping!This concerns the signals Tx0-CAN0* and Rx0-CAN0*.

  • Connector Assignment

    CPCI-405 Hardware Manual Rev. 3.4 27

    12345

    4.4 Option: DeviceNet-Adapter Boards

    Both CAN-channels can be connected to two adapter boards by means of connector X1010. When usingthe DeviceNet option the adapter boards are equipped with Phoenix-Combicon connectors MSTB 2.5/-GF-5.08 (or equal).

    The DeviceNet interface has been constructed in accordance with the ‘DeviceNet CommunicationModel and Protocol, Rel. 2.0’. The power for the CAN-bus driver is here supplied externally.

    Pin Position: Pin Assignment:

    Pin Signal

    1 V-

    2 CAN-

    3 shield

    4 CAN+

    5 V+

    Signal Description:

    V+... power supply (UVCC = 24 V ± 4%)

    V-... reference potential to V+ and CAN+/CAN-

    CAN+, CAN-... CAN-signal lines

    shield... shield(connected to ground via high-impedance RC-member)

  • Connector Assignment

    CPCI-405 Hardware Manual Rev. 3.428

    INOUT

    INOUT

    X1010

    CAN-CPCI/405

    Case Panel

    CAN/DeviceNetAdapter 1CAN Net 0

    CAN/DeviceNetAdapter 2CAN Net 1

    Ribbon Cable

    FixingBrackets

    DSUB9 orDeviceNetConnector

    8,2o 3.2

    10,725,3

    27,836,0

    9,0

    10,3

    42,55

    7,3

    o 3.8

    20,5

    11,4

    25,0

    The DeviceNet option includes the CPCI-405, the DeviceNet-adapter board, the flat ribbon cable, thefastening angles and all screws, nuts and securing plates required.

    Fig. 4.3.1: Wiring of adapter boards

    The dimensions specified in the following diagrams are in millimetres.

    Fig. 4.3.2: Cut-out in the case wall for adapterboards with DeviceNet connector

    Fig. 4.3.3: Cut-out in the case wall for adapterboards with DSUB9-connector

  • Connector Assignment

    CPCI-405 Hardware Manual Rev. 3.4 29

    5,0 5,0

    15,0

    15,0

    20,0

    40,0

    56,0

    15,0

    4,0

    27,0

    27,0

    max. 4,0

    Fig. 4.3.4: Recommended space at the externalcase wall for adapter boards withDeviceNet connector (considers forinstance the following Phoenix Combiconconnector groups:MSTB, MSTBP, MVSTBR, MVSTBW,TMSTBP)

    Fig. 4.3.5: Recommended space at the externalcase wall for adapter boards withDSUB9 connector

    Fig. 4.3.6: Minimum required space within the casefor adapter boards with DeviceNet orDSUB9 connectors

  • Connector Assignment

    CPCI-405 Hardware Manual Rev. 3.430

    1 2 3 4 5 6 7 8

    4.5 ETHERNET 10/100BaseT Connection (X1200)

    Pin Position:

    Cut-out forfastening lever

    Pin Assignment:

    Pin Signal

    12345678

    TP01 (TxD+)TP02 (TxD-)TP03 (RxD+)TP04TP05TP06 (RxD-)TP07TP08

    8-pin RJ45-socket

  • Connector Assignment

    CPCI-405 Hardware Manual Rev. 3.4 31

    123456789

    10111213141516

    123456789

    10111213141516

    TDOn.c.TDITRST*n.c.

    TCKn.c.TMSn.c.HALTn.c.n.c.Key (n.c.)n.c.GND

    to X72016-pole SMD-Strip

    JTAG Connector16-pole Post Connector

    10k Pull-Up to 3.3V

    4.6 Debug Port X720

    With the debug port e.g. firmware updates can be executed. It can be connected via a SMD-pin contactstrip connector. It is recommended to build a simple adapter from the SMD-pin contact strip connectorto a 16-pin post connector to connect the port.

    At the CPCI-405 board of the first series (PCB-rev. 1.x) a SMD-pin contact strip connector with 16 pinsis used. Later series of the CPCI-405 (from PCB-rev. 2.x) carry an 8-pin SMD-pin contact stripconnector.

    Attention: The SMD-pin contact strip connector case has no polarity! Take care to insert it intothe correct position. The orientation of the pins of X720 is shown at page 5.

    4.6.1 Signal Alignment of the 16-pole SMD-Strip and JTAG-Adapter (PCB-Rev. 1.x)

    Example of anAdapter (Uncasted)

    Connectors to build adapter: SMD-pin contact strip: Fa. Samtec, ‘modified pin contact strip’, order-no. MTMS-116-52-T-S-205

    2.54 mm post connector: i.e. Fa. Harting, 16-pole, straight, order-no. 09185167324

  • Connector Assignment

    CPCI-405 Hardware Manual Rev. 3.432

    12345678

    123456789

    10111213141516

    TDOTDITRST*

    n.c.TCKTMS0

    n.c.

    HALT

    n.c.n.c.Keyn.c.

    GND

    n.c.

    n.c.

    10k Pull-Up to 3.3V

    to X7208-pole SMD-Strip

    JTAG Connector16-pole Post Connector

    4.6.2 Signal Alignment of 8-pole SMD-Strip and JTAG-Adapter (from PCB-Rev. 2.x)

    Example of anAdapter (Uncasted)

    Connectors to build adapter: SMD-pin contact strip: Fa. Samtec, ‘modified pin contact strip’, order-no. MTMS-108-58-T-S-485

    2.54 mm post connector: i.e. Fa. Harting, 16-pole, straight, order-no. 09185167324

  • Special Designs with CPCI-CAN-ISO11898 Add-On

    CPCI-405 Hardware Manual Rev. 3.4 33

    5. Special Designs: CPCI-405 with CPCI-CAN-ISO11898 Add-On

    In the special designs the add-on CPCI-CAN-ISO11898 (I.2301.03) is already integrated in theCPCI-405 module which comes with a 8 HP front panel (I.2306.49) or a 6 U front panel (I.2306.47).The interfaces are easy to access as RS-232 interface (SER1) and as CAN interface (CAN1) directlyvia the front panel. In this chapter only the additional connectors of the CPCI-405 special designs aredescribed. Refer to the previous chapters for the description of the connectors X700, X1000, X1200 andthe LED-display.

    5.1 CPCI-405-2 PowerPC Host with 8 HP Front Panel (I.2306.49)

    In this design the adapter board CPCI-CAN-ISO11898 is connected directly to the CPCI-405.

    (Fig. shows CPCI-405-2-Design up to S/N BC882)

    Fig. 5.1.1: CPCI-405-2 with adapter board and 8 HP front panel

  • Special Designs with CPCI-CAN-ISO11898 Add-On

    CPCI-405 Hardware Manual Rev. 3.434

    CAN

    0SER

    0

    CPCI-405

    SER1

    CAN

    1

    1 1

    6 6

    1 1

    5 5

    6 6

    9 9

    1

    6

    L ETH

    R

    CA

    NR

    UN

    US

    R10/100

    RS-232 Interface Ser0X700

    CAN Interface CAN0X1000

    Ethernet InterfaceX1200

    EjectLever

    CAN Interface CAN1P200

    Serial Interface Ser1P100

    5.1.1 Front Panel view of CPCI-405-2 with Adapter Board and 8 HP Front Panel

    The assignment and display function of the LEDs and the position and assignment of connector X700,X1000 and X1200 are the same as described for the CPCI-405.

    Fig. 5.1.2: Front panel view

  • Special Designs with CPCI-CAN-ISO11898 Add-On

    CPCI-405 Hardware Manual Rev. 3.4 35

    5.2 CPCI-405-A PCI-Adapter with 6 U Front Panel (I.2306.47)

    In this design the adapter board CPCI-CAN-ISO11898 is connected to the CPCI-405 via ribbon cable.

    (Fig. shows CPCI-405-A-design up to S/N BC882)

    Fig. 5.2.1: CPCI-405-A PCI-adapter with adapter board and 6 U front panel

  • Special Designs with CPCI-CAN-ISO11898 Add-On

    CPCI-405 Hardware Manual Rev. 3.436

    CAN

    0SER

    0C

    AN1

    SER1

    1

    1

    1

    1

    1

    5

    5

    6

    6

    6

    6

    6

    9

    9

    L ETH

    R

    CA

    NR

    UN

    US

    R10/100

    EjectLever

    EjectLever

    Serial Interface Ser1P100

    CAN Interface CAN1P200

    RS-232 Interface Ser0X700

    CAN Interface CAN0X1000

    Ethernet InterfaceX1200

    5.2.1 Front Panel view of the CPCI-405-A PCI-Adapter with 6 U Front Panel

    The assignment and display function of the LEDs and the position and assignment of connector X700,X1000 and X1200 are the same as described for the CPCI-405.

    Fig. 5.2.2: Front panel view of the CPCI-405 with 6 U Front panel

  • Special Designs with CPCI-CAN-ISO11898 Add-On

    CPCI-405 Hardware Manual Rev. 3.4 37

    TxD

    CTS

    RTS

    RxDTxD

    RxD

    RTS

    CTS

    2

    3

    8

    7

    5GND

    2

    3

    4

    5

    6

    CPCI-405

    X710 X100 P100RJ12

    DSUB9

    GND

    RxD

    TxD

    RTS

    CTS

    TxD-S1/STR17

    RxD-S1

    RTS-S1/STR18

    CTS-S1

    GND

    EPPC-CAN-ISO

    localsignal terms

    pin numbers of the 9 pole DSUB connector, if the adapter cable RJ12-DSUB9 is connected

    pin numbers of the 6 pole RJ12 connector

    e.g. PC(Terminal, DTE)

    Adapter CableRJ12DSUB9-Female

    ConnectionX710X100

    TxD

    CTS

    RTS

    RxDTx+

    Tx -

    GND

    2

    4

    6

    CPCI-CPU405

    X710 X100

    P100RJ12

    GND

    RxD

    TxD

    RTS

    RxD

    TxDRx-5

    Rx+3

    TxD-S1/STR17

    RxD-S1

    RTS-S1/STR18

    CTS-S1

    GND

    EPPC-CAN-ISO

    localsignal terms

    pin numbers of the 6 pole RJ12 connector P100

    communicationpartner

    ConnectionX710X100

    5.3 Serial Interface

    The serial Interface SER1 is per default configured for RS-232 operation. The interface can beconfigured as RS-422 or RS-485 interface via the solder bridges LB100 - LB103 (page 39). The following figures explain the code designation of the signals used in the connector assignments.

    5.3.1 RS-232 InterfaceThe Figure exemplifies the connection of the CPCI-405 via the adapter cable RJ12 DSUB-socketto a terminal. The names of the signals of the adapter cable are chosen correspondingly.

    Fig. 5.3.1: Connection scheme of RS-232 operation

    5.3.2 RS-422 interface

    Fig. 5.3.2: Connection scheme for RS-422 operation

  • Special Designs with CPCI-CAN-ISO11898 Add-On

    CPCI-405 Hardware Manual Rev. 3.438

    TxD

    CTS

    RTS

    RxDRx/Tx-

    Rx/Tx +

    GND

    4

    2

    6

    CPCI-405X710 X100

    P100RJ12

    ConnectionX710X100

    GND

    RxD

    TxD

    DE

    RxD

    TxD

    TxD-S1/STR17

    RTS-S1/STR18

    RxD-S1

    CTS-S1

    GND

    localsignal terms

    pin numbers of the 6-pin RJ12 connector

    EPPC-CAN-ISOcommunication

    partner

    TxD

    Stop-Bit

    t

    DE(RTS-S1)

    Data

    5.3.3 RS-485 interface

    Fig. 5.3.3: Connection scheme for RS-485 operation

    For the RS-485 interface the data direction (receive/transmit) of the driver component has to beswitched by software. The data direction can be switched with the RTS-signal, which is connected withthe data enable (DE) of the driver component.

    receive: DE(RTS) has to be set to ‘0’transmit: DE(RTS) has to be set to ‘1’ and reset with stop-bit

    Fig. 5.3.4: Set RTS to transmit and receive

  • Special Designs with CPCI-CAN-ISO11898 Add-On

    CPCI-405 Hardware Manual Rev. 3.4 39

    P200

    LB102

    LB103

    LB101

    LB100

    5.3.4 Solder Bridges for the Configuration of the Serial Interface SER1

    The serial interface SER1 can be configured with the solder bridges LB100 - LB103.

    Fig. 5.3.5: Position of the solder bridges on the board (detail drawing)

    Configuration of the serial interface SER1 with the solder bridges LB100-LB102:

    solderbridge

    RS-232interface

    RS-422interface

    RS-485interface

    LB100 closed open open

    LB101 closed closed open

    LB102 open closed open

    Table 5.3.1: Configuration of the serial interface SER1

    With the solder bridge LB103 the FAST control pin can be set. The FAST control pin is used to selectthe slew-rate limiting of the RS-232 transmitters and the RS-485/422 driver. With the solder bridgeLB103 (FAST unasserted), the RS-232 transmitters and the RS-485/-422 driver are slew-rate limitedto reduce disturbances by electromagnetic impulses (EMI).For further information, please refer to the datasheet of the serial driver MAX3160: www.maxim.de

  • Special Designs with CPCI-CAN-ISO11898 Add-On

    CPCI-405 Hardware Manual Rev. 3.440

    5.4 Connector Assignments of the Special Designs

    5.4.1 CAN-Interface CAN 1

    Pin Position:

    Pin Assignment:

    Signal Pin Signal

    1 reservedCAN1_GND 6

    2 CAN1_LCAN1_H 7

    3 CAN1_GNDreserved 8

    4 reservedreserved 9

    5 Shield 9-pin DSUB connector

    Signal Description:

    CAN1_L, CAN1_H... CAN-signal lines (generated from the CAN-Controller TTL-signals Tx0-CAN1* and Rx0-CAN1*)

    CAN1_GND ... reference potential of the local CAN-physical layer

    Shield ... potential of the connector case

    reserved ... reserved for future applications

  • Special Designs with CPCI-CAN-ISO11898 Add-On

    CPCI-405 Hardware Manual Rev. 3.4 41

    1 2 3 4 5 6

    5.4.2 SER1: Assignment of the RJ12 Socket P100

    The serial interface SER1 of the adapter board can be configured as RS-232, RS-422 or RS-485interface. The configuration via the solder bridges is described in the previous chapter (see page 39).

    For notes on the connection of serial interfaces please refer to chapter ‘Serial Interfaces’ on page 37.From the principle circuit diagrams represented in that chapter, you will be able to clearly determinethe signal direction (RxTx).

    Pin Position:

    Cut-out forfastening lever

    Pin Assignment:

    PinSignal

    RS3232 RS422 RS4851 n.c. n.c. n.c.

    2 TxD-S1Data Output Tx- Tx/Rx-

    3 RxD-S1Data Input Rx+ n.c.

    4 RTS-S1Handshake Output Tx+ Tx/Rx+

    5 CTS-S1Handshake Input Rx- n.c.

    6 GND GND GND

    The data direction of the signals is given as viewed from EPPC-CAN-ISO adapter board.The signal direction does not switch automatically for the RS-485 interface! The signal direction mustbe set by software via RTS-control. An example for the assignment of a connection cable RJ12 DSUB9 for RS-232 operation isdescribed on page 21.

  • Special Designs with CPCI-CAN-ISO11898 Add-On

    CPCI-405 Hardware Manual Rev. 3.442

    This page is intentionally left blank.

  • Wiring

    CPCI-405 Hardware Manual Rev. 3.4 43

    9

    1

    4567

    9

    23

    8

    1

    4567

    23

    8

    CAN_L

    CAN_H

    CAN_GND

    Shielded wire withtransposed wires

    CAN_L

    CAN_H

    CAN_GND(at wire shield)

    120

    Ohm

    120

    Ohm

    earth (PE)

    Wire structure Signal assignment of wire and connection of earthing and terminator

    n.c.

    n.c.

    n.c.

    n.c.

    n.c.

    n.c.

    n.c.

    n.c.

    n.c.

    n.c.

    n.c.

    n.c.

    n.c.

    n.c.

    n.c. = not connected

    DSUB9 connector(female or male)pin designation

    connector case connector case

    DSUB9 connector(female or male)pin designation

    CAN wire with connectors

    6. Correctly Wiring Electrically Isolated CAN NetworksGenerally all instructions applying for wiring regarding an electromagnetic compatible installation,wiring, cross sections of wires, material to be used, minimum distances, lightning protection, etc. haveto be followed.

    The following general rules for the CAN wiring must be followed:

    1.A CAN net must not branch (exception: short dead-end feeders) and has to be terminatedby the wave impedance of the wire (generally 120 W ±10%) at both ends (between thesignals CAN_L and CAN_H and not at GND)!

    2.A CAN data wire requires two twisted wires and a wire to conduct the reference potential(CAN_GND)! For this the shield of the wire should be used!

    3. The reference potential CAN_GND has to be connected to the earth potential (PE) at onepoint. Exactly one connection to earth has to be established!

    4. The bit rate has to be adapted to the wire length.

    5. Dead-end feeders have to kept as short as possible (l < 0.3 m)!

    6. When using double shielded wires the external shield has to be connected to the earthpotential (PE) at one point. There must be not more than one connection to earth.

    7. A suitable type of wire (wave impedance ca. 120 ±10%) has to be used and the voltageloss in the wire has to be considered!

    8. CAN wires should not be laid directly next to disturbing sources. If this cannot be avoided,double shielded wires are preferable.

    Figure: Structure and connection of wire

  • Wiring

    CPCI-405 Hardware Manual Rev. 3.444

    l < 0,3 m

    CAN_L

    CAN_GND

    CAN_H

    PE

    l < 0,3 m

    CAN-CBM-AI4

    CAN-CBM-COM1

    CAN-CBM-DIO8

    l < 0,3 ml < 0,3 ml < 0,3 m

    Female Connector

    Male Connector

    e.g.CAN-SPS InterfaceCSC595/2orCAN-PC Board

    Terminator

    Male Terminator(Order-no.: C.1302.01)

    Connecting CAN_GND toProtective Conductor PE

    Terminatorwith PE Connector

    Female Terminator(Order-no.: C.1301.01)

    T-ConnectorC.1311.03

    CAN-CableOrder-no.: C.1323.03

    Net 2

    Net 1 e.g. PCI/405,CAN-USB,

    VME-CAN2, etc.

    CAN-CableOrder-no.: C.1323.03

    CAN-CableOrder-no.: C.1323.03

    T-ConnectorC.1311.03

    T-ConnectorC.1311.03

    T-ConnectorC.1311.03

    CAN-Board

    T-ConnectorOrder-no.: C.1311.03

    Cabling

    for devices which have only one CAN connector per net use T-connector and dead-end feeder(shorter than 0.3 m) (available as accessory)

    Figure: Example for correct wiring (when using single shielded wires)

    Terminal Resistance

    use external terminator, because this can later be found again more easily!

    9-pin DSUB-terminator with male and female contacts and earth terminal are available asaccessories

    Earthing

    CAN_GND has to be conducted in the CAN wire, because the individual esd modules areelectrically isolated from each other!

    CAN_GND has to be connected to the earth potential (PE) at exactly one point in the net!

    each CAN user without electrically isolated interface works as an earthing, therefore: do notconnect more than one user without potential separation!

    Earthing CAN e.g. be made at a connector

  • Wiring

    CPCI-405 Hardware Manual Rev. 3.4 45

    Wire Length

    Optical couplers are delaying the CAN signals. By using fast optical couplers and testing eachboard at 1 Mbit/s, however, esd CAN guarantee a reachable length of 37 m at 1 Mbit/s for mostesd CAN modules within a closed net without impedance disturbances like e.g. longer dead-endfeeders. (Exception: CAN-CBM-DIO8, -AI4 and AO4 (these modules work only up to 10 m with1 Mbit/s))

    Bit rate[Kbit/s]

    Typical values of reachablewire length with esd

    interface lmax [m]

    CiA recommendations(07/95) for reachable wire

    lengths lmin [m]

    1000 800

    666.6 500

    333.3 250 166 125 100

    66.6 50

    33.3 20

    12.5 10

    375980

    130180270420570710

    100014002000360054007300

    2550

    -100

    -250

    -500650

    -1000

    -2500

    -5000

    Table: Reachable wire lengths depending on the bit rate when using esd-CAN interfaces

  • Wiring

    CPCI-405 Hardware Manual Rev. 3.446

    Examples for CAN Wires

    Manufacturer Type of wire

    U.I. LAPP GmbHSchulze-Delitzsch-Straße 2570565 StuttgartGermanywww.lappkabel.de

    e.g.UNITRONIC ®-BUS CAN UL/CSA (UL/CSA approved)UNITRONIC ®-BUS-FD P CAN UL/CSA (UL/CSA approved)

    ConCab GmbHÄußerer Eichwald74535 MainhardtGermanywww.concab.de

    e.g.BUS-PVC-C (1 x 2 x 0.22 mm²) Order No.: 93 022 016 (UL appr.)BUS-Schleppflex-PUR-C (1 x 2 x 0.25 mm²) Order No.: 94 025 016 (UL appr.)

    SAB Bröckskes GmbH&Co. KGGrefrather Straße 204-212b41749 ViersenGermanywww.sab-brockskes.de

    e.g.SABIX® CB 620 (1 x 2 x 0.25 mm²) Order No.: 56202251CB 627 (1 x 2 x 0.25 mm²) Order No.: 06272251 (UL appr.)

    Note: Completely configured CAN wires can be ordered from esd.

  • CAN-Bus Troubleshooting Guide

    CPCI-405 Hardware Manual Rev. 3.4 47

    120

    CAN_H

    CAN_GND

    CAN_LCAN_L

    CAN_H

    CAN_GND

    V

    120

    2 3

    1

    V

    1

    7. CAN-Bus Troubleshooting GuideThe CAN-Bus Troubleshooting Guide is a guide to find and eliminate the most frequent hardware-errorcauses in the wiring of CAN-networks.

    Figure: Simplified diagram of a CAN network

    7.1 Termination

    The termination is used to match impedance of a node to the impedance of the transmission line beingused. When impedance is mismatched, the transmitted signal is not completely absorbed by the loadand a portion is reflected back into the transmission line. If the source, transmission line and loadimpedance are equal these reflections are eliminated. This test measures the series resistance of theCAN data pair conductors and the attached terminating resistors.

    To test it, please

    1. Turn off all power supplies of the attached CAN nodes.2. Measure the DC resistance between CAN_H and CAN_L at the middle and ends of

    the network (see figure above).

    The measured value should be between 50 and 70 . The measured value should be nearly the sameat each point of the network.

    If the value is below 50 , please make sure that:- there is no short circuit between CAN_H and CAN_L wiring- there are not more than two terminating resistors - the nodes do not have faulty transceivers.

    If the value is higher than 70 , please make sure that:- there are no open circuits in CAN_H or CAN_L wiring - your bus system has two terminating resistors (one at each end) and that they are 120 each.

  • CAN-Bus Troubleshooting Guide

    CPCI-405 Hardware Manual Rev. 3.448

    2

    3

    7.2 CAN_H/CAN_L Voltage

    Each node contains a CAN transceiver that outputs differential signals. When the networkcommunication is idle the CAN_H and CAN_L voltages are approximately 2.5 volts. Faultytransceivers can cause the idle voltages to vary and disrupt network communication. To test for faulty transceivers, please

    1. Turn on all supplies. 2. Stop all network communication.3. Measure the DC voltage between CAN_H and GND (see figure above).

    4. Measure the DC voltage between CAN_L and GND (see figure above).

    Normally the voltage should be between 2.0 V and 4.0 V. If it is lower than 2.0 V or higher than 4.0 V, it is possible that one or more nodes have faultytransceivers. For a voltage lower than 2.0 V please check CAN_H and CAN_L conductors forcontinuity. For a voltage higher than 4.0 V, please check for excessive voltage.

    To find the node with a faulty transceiver please test the CAN transceiver resistance (see next page).

    7.3 Ground

    The shield of the CAN network has to be grounded at only one location. This test will indicate if theshielding is grounded in several places.

    To test it, please

    1. Disconnect the shield wire from the ground. 2. Measure the DC resistance between Shield and ground. 3. Connect Shield wire to ground.

    The resistance should be higher than 1 M . If it is lower, please search for additional grounding of theshield wires.

  • CAN-Bus Troubleshooting Guide

    CPCI-405 Hardware Manual Rev. 3.4 49

    4

    5

    6

    CAN_H

    CAN_GND

    CAN_L

    5 6

    4

    4

    Power

    CAN-Transceiver

    Disconnect Power !

    Disconnect CAN !

    CAN-node

    7.4 CAN Transceiver Resistance Test

    CAN transceivers have one circuit that controls CAN_H and another circuit that controls CAN_L.Experience has shown that electrical damage to one or both of the circuits may increase the leakagecurrent in these circuits.

    To measure the current leakage through the CAN circuits, please use an resistance measuring deviceand:

    1. Disconnect the node from the network. Leave the node unpowered (see figure below).

    2. Measure the DC resistance between CAN_H and CAN_GND (see figure below).

    3. Measure the DC resistance between CAN_L and CAN_GND (see figure below).

    Normally the resistance should be between 1 M and 4 M or higher. If it is lower than this range,the CAN transceiver is probably faulty.

    Figure: Simplified diagram of a CAN node