Resumo do conteúdo contido na página número 1
USER MANUAL
CANpro/104
CTIM-00043 (0.02) - January 15, 2010
Resumo do conteúdo contido na página número 2
CANpro/104 User Manual Table of Contents Copyright Notice ................................................................................................................................................ 4 Trademark Acknowledgement ............................................................................................................................ 4 Revision History ...............................................................................................................
Resumo do conteúdo contido na página número 3
CANpro/104 User Manual J3A .......................................................................................................................................................... 16 J3B .......................................................................................................................................................... 17 J3C ............................................................................................................................................
Resumo do conteúdo contido na página número 4
CANpro/104 User Manual Copyright Notice The information contained in this document is subject to change without notice. Connect Tech Inc. shall not be liable for errors contained herein or for incidental consequential damages in connection with the furnishing, performance, or use of this material. This document contains proprietary information that is protected by copyright. All rights are reserved. No part of this document may be photocopied, reproduced, or translated to anoth
Resumo do conteúdo contido na página número 5
CANpro/104 User Manual Introduction CANpro/104 combines the power of two independent NXP SJA1000 CAN controllers with the compact size and rugged stability of PC/104. CANpro/104 is ideal for industrial control applications exposed to harsh conditions or environments. CANpro/104 Opto models feature 2.5 kV of data and power isolation. Features ● Two independent, industry standard NXP SJA1000 CAN controllers ● PC/104 compliant ● 16MHz input clock (24MHz build option available)
Resumo do conteúdo contido na página número 6
CANpro/104 User Manual Hardware Installation – Rev C & Later The Connect Tech CANpro/104 board provides two (2) industry standard SJA1000 CAN Bus controllers in a PC/104 board format which supports both I/O and Memory mapping configurability. All the configuration options are setup with jumpers, identified as J1, J2, J3A, J3B, J3C, J4 and J5. Jumpers are always oriented as indicated in the drawing below. The jumper positions are numbered on the PCB (and are shown in the above
Resumo do conteúdo contido na página número 7
CANpro/104 User Manual I/O Space This region is supported by all PC/104 CPU System board vendors, and commonly consists of I/O Addresses from 0x000 to 0x3FF, although some System boards support I/O addresses beyond 0x3FF. (Note: Some I/O mapped PC/104 expansion boards only decode the lowest 10 bits of the I/O address, therefore these boards restrict the usable I/O space to 0x3FF). CTI CANpro/104 Spaces Memory Space The CTI CANpro/104 board can be configured to operate in the CPU
Resumo do conteúdo contido na página número 8
CANpro/104 User Manual Secondly, the Memory Space can be enabled by Application or Driver software, after the Operating system has started. This can be accomplished by writing a data value to an I/O Space Address which is decoded by the following J3B Jumper settings. Only one byte of the I/O Space is decoded at this I/O Address, and the location is Write Only. J3B I/O Address Position #5 Position #6 Position #7 Removed Removed Removed 0x200 Removed Removed Installed 0x240 Remov
Resumo do conteúdo contido na página número 9
CANpro/104 User Manual 1. X = Address bit is ignored (and the corresponding Jumper is Not Used). 2. When Memory Space is selected, PC/104 Address bits 20 and 21 are always decoded as logical “0”. To determine which Jumpers to install and which to remove, the desired Address needs to be broken down into a binary number, all the Jumpers that correspond to “1-bits” must be installed, and all Jumpers corresponding to “0-bits” must be removed. The remaining lower bits of the PC/104 B
Resumo do conteúdo contido na página número 10
CANpro/104 User Manual PeliCAN vs BasicCAN Addressing Modes The SJA1000 can operate in 2 different modes, the PeliCAN mode which has extended features and additional registers and which consume 128 bytes of address space per device (there are 2 devices on this board). And, the BasicCAN mode which has reduced functionality but only consumes 32 bytes of register space per device. Note: The mode of operation of the SJA1000 is performed by changing Bit-7 of the Clock Divider Register
Resumo do conteúdo contido na página número 11
CANpro/104 User Manual Example #2: Memory Address 0x0C8000 (this address is below the 1-Meg boundary) 0x0C8000 = 0000.1100.100X.XXXX.CJJJ.JJJJ (binary) Address Bit J3A or J3B Installed Bit Value Position or Removed 23 0 J3A-2 Removed 22 0 J3A-3 Removed 21 0 Address Bit always decoded as “0” 20 0 Address Bit always decoded as “0” 19 1 J3A-4 Installed 18 1 J3A-5 Installed 17 0 J3A-6 Removed 16 0 J3B-1 Removed 15 1 J3B-2 Installed 14 0 J3B-3 Removed 13 0 J3B-4 Removed Table
Resumo do conteúdo contido na página número 12
CANpro/104 User Manual CAN Controller Addressing Table Once the Base Memory or I/O Address is setup, the 2 SJA1000 CAN controllers are accessed at the following address offsets. Offset from Base Address I/O Space Accessed Resource Memory Space BasicCAN mode PeliCAN mode CAN-0 Port (SJA1000) 0x000 0x07F 0x000 0x01F 0x000 0x07F CAN-1 Port (SJA1000) 0x080 0x0FF 0x020 0x03F 0x080 0x0FF Memory Enable Bit At the I/O Address setup N/A N/A with JB3 Positions 5,6,7 Table
Resumo do conteúdo contido na página número 13
CANpro/104 User Manual Common Memory Space Address Selections Most System boards allow the PC/104 Bus stack to be allocated a portion of the memory address located in the 256K region of memory just below the 1-Meg address boundary (Addresses 0x0C0000 to 0x0FFFFF). Different BIOS’s allow different sized regions to the allocated. The CANpro/104 board requires 8K (8192 bytes) of memory space. The following table shows the Jumpers required to set up the Base Memory Address within this
Resumo do conteúdo contido na página número 14
CANpro/104 User Manual Performance Enhancement PC/104 Memory and I/O Bus cycles are typically about 700 nS long in total, but the access speed of the SJA1000 is considerably faster. The PC/104 Bus allows Memory and I/O Bus cycles to be shortened by the assertion of the SRDY* signal at the appropriate time in the Bus Cycle. This shortening of the PC/104 Bus Cycle can yield some significant performance improvements is some applications. The CTI CANpro/104 board allows the PC/104 Bus
Resumo do conteúdo contido na página número 15
CANpro/104 User Manual Single Interrupt Mode This mode routes the interrupt signal from both SJA1000 CAN controllers to one PC/104 Bus Interrupt signal. This mode is set up by installing Jumper J1/J2 Position “S” (either the CAN-0 or the CAN-1 “S” position can be used). When this jumper is installed, the Interrupt signal occurs on the “CAN-0 row” of J1 and J2 (red box). Dual Interrupt Mode This mode routes the interrupt signal from the CAN-0 SJA1000 CAN controller to the CAN-0 PC
Resumo do conteúdo contido na página número 16
CANpro/104 User Manual Security ID Feature Some users may wish to associate the operation of their software with a particular hardware installation. To support this ability, an ID mechanism is available which uses a simple, somewhat unusual (but predictable) Write/Read mechanism by which software can determine that the CTI CANpro/104 board is installed. This feature is only available when the CANpro/104 board is operated in “Memory Mode”. Contact CTI Technical Support for information
Resumo do conteúdo contido na página número 17
CANpro/104 User Manual J3B Function Position Jumper Installed Jumper Removed 1 Mem Addr[16] or I/O Addr[9] = 1 Mem Addr[16] or I/O Addr[9] = 0 2 Mem Addr[15] or I/O Addr[8] = 1 Mem Addr[15] or I/O Addr[8] = 0 3 Mem Addr[14] = 1 Mem Addr[14] = 0 or or I/O Addr[7] = 1 (BasicCAN mode only) I/O Addr[7] = 0 (BasicCAN mode only) 4 Mem Addr[13] = 1 Mem Addr[13] = 0 or or I/O Addr[6] = 1 (BasicCAN mode only) I/O Addr[6] = 0 (BasicCAN mode only) 5 Memory Space Enable Bit-2 [Note 1] 6
Resumo do conteúdo contido na página número 18
CANpro/104 User Manual Hardware Installation – Rev A & B Before you begin, take a minute to ensure that your package includes the required components that should have shipped with your CANpro/104. ● One CANpro/104 CAN controller board ● One CD containing documentation If any of these components is missing, contact Connect Tech (See Contact Details) or your reseller. Also, visit the Download Zone of the Support Center on the Connect Tech website for the latest product manuals,
Resumo do conteúdo contido na página número 19
CANpro/104 User Manual Interrupts and Memory I/O Range Selection CANpro/104’s interrupt lines and I/O ranges are jumper assignable. Interrupt Selection J1 and J2 are used for interrupt selection. Interrupt selection for the first CAN controller is achieved via the upper and centre rows of pins on the connector. The lower and center rows of pins allow selection of interrupts for the second CAN controller. Please refer to Figure 1 to locate jumper blocks J1 and J2. CANpro/104
Resumo do conteúdo contido na página número 20
CANpro/104 User Manual Address Mode and Range Selection The first five jumper locations of jumper block J3 are used for board address selection. The first jumper location (Addr Mode) selects the number of address bits to use for the decoding of the board address. The next four jumpers configure the actual board address. If you intend to configure both of the board’s controllers in BasicCAN mode, install a jumper in the Addr Mode location. This configures the board to respond to a