Connect Tech Multi-I/O User manual

Xtreme/Multi-I/O
Users Guide
Connect Tech Inc.
42 Arrow Road
Guelph, ON CANADA
N1K 1S6
Tel: 519.836.1291
Toll Free: 800.426.8979 (North America Only)
Fax: 519.836.4878
Email: [email protected]
Web: www.connecttech.com
CTIM-00116 Revision: 0.02, Apr. 14, 2015

Connect Tech - Xtreme/Multi-I/O - Users Guide
Document: CTIM-00116
Revision: 0.02 0.02
Page 2 of 50
Connect Tech Inc. Proprietary Information
Date: Apr. 14, 2015
Table of Contents
Table of Contents................................................................................................................................2
Customer Support Overview .............................................................................................................4
Contact Information............................................................................................................................4
Limited Lifetime Warranty..................................................................................................................5
Copyright Notice.................................................................................................................................5
Trademark Acknowledgment.............................................................................................................5
Revision History..................................................................................................................................6
Introduction.........................................................................................................................................7
Configuration.......................................................................................................................................8
USB Configuration File Method..................................................................................................................8
USB Virtual COM Port Configuration Method ........................................................................................11
Serial Port Configuration Method.............................................................................................................13
Configuration Commands................................................................................................................14
Memory vs IO Spaces................................................................................................................................14
Memory Space .................................................................................................................................14
I/O Space ..........................................................................................................................................14
Board Address Decoding Capabilities ..........................................................................................14
Command Groups......................................................................................................................................14
Serial Ports (UARTS).................................................................................................................................15
Serial Ports Enable / Disable....................................................................................................................16
Serial Port Clocking....................................................................................................................................16
Serial Port DTR DSR Wrapback..........................................................................................................16
RS422/485 (Port-5) Settings.....................................................................................................................17
CAN Ports (SJA1000)................................................................................................................................18
CAN Port Clocking......................................................................................................................................19
Board Configuration ...................................................................................................................................19
J1708 Configuration...................................................................................................................................19
Misc Configuration......................................................................................................................................20
IO Address Ranges set with IOD command................................................................................20
Testing / Debugging...................................................................................................................................20
Operation...........................................................................................................................................21
MultiTech Modules .....................................................................................................................................21
Serial Ports (Uarts).....................................................................................................................................22
Uart Registers...................................................................................................................................22
RS232 Serial Ports..........................................................................................................................23
RS422/RS485 Serial & J1708 Port ...............................................................................................24
CAN Ports (SJA1000)................................................................................................................................25
CAN Port Registers .........................................................................................................................26
LED Header.................................................................................................................................................27
Board Control/Status Registers................................................................................................................28
INTR_STAT Register (Offset 0x00, read-only)............................................................................28
RESET_CONT Register (Offset 0x00, write-only)......................................................................28
PC104 Bus Test..............................................................................................................................................................28
LED_CONT Register (Offset 0x01, read-write)...........................................................................29
J1708 Bus Interface ..........................................................................................................................30

Connect Tech - Xtreme/Multi-I/O - Users Guide
Document: CTIM-00116
Revision: 0.02 0.02
Page 3 of 50
Connect Tech Inc. Proprietary Information
Date: Apr. 14, 2015
Operation.....................................................................................................................................................30
Receiver............................................................................................................................................30
Transmitter........................................................................................................................................31
Detecting Transmission Errors or Potential Problems............................................................................................... 31
Transmission Success................................................................................................................................................... 31
J1708 Interrupts ...............................................................................................................................32
Command, Control, Status Registers......................................................................................................33
Command Register (Offset: 0x00).................................................................................................33
Restart J1708 Bus SYNC..............................................................................................................................................33
Abort TX...........................................................................................................................................................................33
TX Kick............................................................................................................................................................................. 33
Control Register (Offset: 0x01, Mem=0x04)................................................................................34
Mask Reception of Good Transmitted Bytes .............................................................................................................. 34
TX Priority Register (Offset: 0x02)................................................................................................................................ 34
TX Problem Limit Register (Offset: 0x03).....................................................................................34
J1708 Interrupt Status Register (Offset: 0x04)............................................................................35
FIFO Status Register (Offset: 0x05)..............................................................................................35
RX EOM Level Register (Offset: 0x06).........................................................................................36
RX Almost Full Level Register (Offset: 0x07)..............................................................................36
User-Ta Register (Offset: 0x08)....................................................................................................37
Data FIFO’s.......................................................................................................................................37
J1708 IO.......................................................................................................................................................37
IO Connector & Jumper Locations .................................................................................................38
Serial Port-8 to Module GPIO Configuration..................................................................................39
Location of Resistors..................................................................................................................................39
FPGA Configuration Registers via SPI...........................................................................................40
Configuration Enhancements ...................................................................................................................40
FPGA Configuration Registers .................................................................................................................41
PORT_CONFIG[N] (Reg 0 10)..................................................................................................43
IRQ_CONFIG[N] (Reg 12 16) ...................................................................................................46
MEM_CONFIG (Reg 17).................................................................................................................47
MISC_CONFIG (Reg 18)................................................................................................................49
FPGA_VERSION (Reg 19).............................................................................................................50

Connect Tech - Xtreme/Multi-I/O - Users Guide
Document: CTIM-00116
Revision: 0.02 0.02
Page 4 of 50
Connect Tech Inc. Proprietary Information
Date: Apr. 14, 2015
Customer Support Overview
If you experience difficulties after reading the manual and/or using the product, contact the Connect Tech
Inc. reseller from which you purchased the product. In most cases the reseller can help you with product
installation and difficulties.
In the event that the reseller is unable to resolve your problem, our highly qualified support staff can
assist you. Our support section is available 24 hours a day, 7 days a week on our website at:
www.connecttech.com/sub/support/support.asp.See the contact information section below for more
information on how to contact us directly. Our technical support is always free.
Contact Information
Mail/Courier
Connect Tech Inc.
Technical Support
42 Arrow Road, Guelph, ON
Canada N1K 1S6
Email/Internet
www.connecttech.com
Note:
Please go to the Download Zone or the Knowledge Database in the Support Center on the Connect Tech
Inc. website for product manuals, installation guides, device driver software and technical tips.
Submit your technical support questions to our customer support engineers via the Support Center on the
Connect Tech Inc. website.
Telephone/Facsimile
Technical Support Representatives are ready to answer your call Monday through Friday, from 8:30 a.m.
to 5:00 p.m. Eastern Standard Time. Our numbers for calls are:
Toll Free: 800-426-8979 (North America only)
Telephone: 519-836-1291 (Live assistance available 8:30 a.m. to 5:00 p.m. EST, Monday to Friday)
Facsimile: 519-836-4878 (online 24 hours)

Connect Tech - Xtreme/Multi-I/O - Users Guide
Document: CTIM-00116
Revision: 0.02 0.02
Page 5 of 50
Connect Tech Inc. Proprietary Information
Date: Apr. 14, 2015
Limited Lifetime Warranty
Connect Tech Inc. provides a lifetime warranty for all of our products. Should this product, in Connect
Tech Inc.’s opinion, fail to be in good working order during the warranty period, Connect Tech Inc. will,
at our option, repair or replace this product at no charge, provided that the product has not been subjected
to abuse, misuse, accident, disaster or non Connect Tech Inc. authorized modification or repair.
You may obtain warranty service by delivering this product to an authorized Connect Tech Inc. business
partner or directly to Connect Tech Inc. along with proof of purchase. Product returned to Connect Tech
Inc. must be pre-authorized by Connect Tech Inc. with an RMA (Return Material Authorization) number
marked on the outside of the package and sent prepaid, insured and packaged for safe shipment. Connect
Tech Inc. will return this product by prepaid ground shipment service.
The Connect Tech Inc. lifetime warranty is defined as the serviceable life of the product. This is defined
as the period during which all components are available. Should the product prove to be irreparable,
Connect Tech Inc. reserves the right to substitute an equivalent product if available or to retract lifetime
warranty if no replacement is available.
The above warranty is the only warranty authorized by Connect Tech Inc. Under no circumstances will
Connect Tech Inc. be liable in any way for any damages, including any lost profits, lost savings or other
incidental or consequential damages arising out of the use of, or inability to use, such product.
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 another language without the prior written consent of Connect Tech Inc.
Copyright
2013 by Connect Tech Inc.
Trademark Acknowledgment
Connect Tech Inc. acknowledges all trademarks, registered trademarks and/or copyrights referred to in
this document as the property of their respective owners.
Not listing all possible trademarks or copyright acknowledgments does not constitute a lack of
acknowledgment to the rightful owners of the trademarks and copyrights mentioned in this document.

Connect Tech - Xtreme/Multi-I/O - Users Guide
Document: CTIM-00116
Revision: 0.02 0.02
Page 6 of 50
Connect Tech Inc. Proprietary Information
Date: Apr. 14, 2015
Revision History
Revsion
Date
Changes
0.01
June 11, 2013
Original
0.02
Apr. 14, 2015
Add/revise information in the “Configuration” section, to clarify some important
points.

Connect Tech - Xtreme/Multi-I/O - Users Guide
Document: CTIM-00116
Revision: 0.02 0.02
Page 7 of 50
Connect Tech Inc. Proprietary Information
Date: Apr. 14, 2015
Introduction
Connect Tech’s Xtreme/Multi-I/O features dual SJA1000 CANbus controllers, isolated serial and CAN ports, and
two MultiTech Universal compatible sockets on a single PC/104 board design. This high density communication
board offers an all-in-one communication solution, optimizing Size, Weight, and Performance requirements. This
innovative product takes full advantage of the latest technologies in jumperless configuration, high voltage isolation
and advanced communication functionality.
ESD Warning
Electronic components and circuits are sensitive to
ElectroStatic Discharge (ESD). When handling any circuit
board assemblies including Connect Tech COM Express
carrier assemblies, it is recommended that ESD safety
precautions be observed. ESD safe best practices include,
but are not limited to:
Leaving circuit boards in their antistatic packaging
until they are ready to be installed.
Using a grounded wrist strap when handling circuit
boards, at a minimum you should touch a grounded
metal object to dissipate any static charge that may
be present on you.
Only handling circuit boards in ESD safe areas,
which may include ESD floor and table mats, wrist
strap stations and ESD safe lab coats.
Avoiding handling circuit boards in carpeted areas.
Try to handle the board by the edges, avoiding
contact with components.

Connect Tech - Xtreme/Multi-I/O - Users Guide
Document: CTIM-00116
Revision: 0.02 0.02
Page 8 of 50
Connect Tech Inc. Proprietary Information
Date: Apr. 14, 2015
Configuration
This product can be configured for operation by 3 different modes.
1. In or Out of the target system, via a USB connection, using a configuration file.
2. In or Out of the target system, via a USB connection, using the Virtual COM port interface.
3. In the target system using an on-board serial port (which is usually accessed from the target system by
a Serial Port Driver software).
When the board is not installed in the target system, and then plugged into a USB port, a portion of the board’s
circuits are powered from the USB port which causes a (very small) USB Mass Storage Device and a Virtual
COM port interface to be available to the computer.
It is highly recommended that the USB port be used for configuring the board due to its simplicity.
USB Configuration File Method
When connected to a Windows computer the USB Plug&Play mechanism will automatically detect the
Xtreme/Multi-I/O as a small Mass Storage Device. This allows the board’s settings to be defined by a file
which is “placed” onto the storage device implemented on the product. The storage space is very limited
(about 8K bytes) and is only intended for the files related to the board’s setup.
The product is shipped with a default CONFIG.TXT file which has been placed there when the unit was tested.
This file is a good starting point for any customer desired settings.
Copy this file to some other folder on your computer system.
Edit the copy, and save it.
Delete the CONFIG.TXT file from the folder on the Xtreme/Multi-I/O board.
Copy the file back to the folder on the Xtreme/Multi-I/O board.
This file is processed (and the settings stored in non-volatile memory) as the file is streamed to the
board from the USB interface. The file cannot be edited directly on the device.
Remember, to change the configuration file, first delete it from the Xtreme/Multi-I/O board , then
copy a new file to the folder on the board.
If the board is “in” the target system (powered by the target system), then that system must be reset
(shutdown and powered back up) so that all the configuration changes will take effect.
If the board is “out of” the target system, then the settings are just retained for use when the board is
installed in the target system.
On power-up the on-board FPGA applies defaults for all configuration settings, and then, within 500
mS, the PIC32 applies all the settings that have been stored.
Three files are used
CONFIG.TXT
oIs the file that contains the configuration commands (see sample on install disk).
oThis file is processed as soon as the file is “placed” onto the USB drive, with results placed
into the ERRORS.TXT file.
ERRORS.TXT
oA file that shows results of processing the CONFIG.TXT file (after it has been read and
processed).
README.TXT
oA short reminder file about how to perform the configuration.

Connect Tech - Xtreme/Multi-I/O - Users Guide
Document: CTIM-00116
Revision: 0.02 0.02
Page 9 of 50
Connect Tech Inc. Proprietary Information
Date: Apr. 14, 2015

Connect Tech - Xtreme/Multi-I/O - Users Guide
Document: CTIM-00116
Revision: 0.02 0.02
Page 10 of 50
Connect Tech Inc. Proprietary Information
Date: Apr. 14, 2015
Typical CONFIG.TXT file:
U1P=0x300
U2P=0x320
U1I=10
U2I=10
RS1=E
RS2=E
RS3=E
RS4=E
RS5=E
RS6=E
RS7=E
RS8=E
UPD
Resulting ERRRORS.TXT file:
U1P = (IO) 0x0300
U2P = (IO) 0x0320
U1I interrupt set to 10
U2I interrupt set to 10

Connect Tech - Xtreme/Multi-I/O - Users Guide
Document: CTIM-00116
Revision: 0.02 0.02
Page 11 of 50
Connect Tech Inc. Proprietary Information
Date: Apr. 14, 2015
USB Virtual COM Port Configuration Method
When the Xtreme/Multi-I/O USB port is connected to a Windows computer and combined with the supplied
inf file it will create a virtual serial port that can be accessed using a serial terminal program like putty,
realterm, or equivalent, to configure the port settings interactively.
This method is great for doing experiments with the board’s setup for your application. The final setting
choices could then the committed to a CONFIG.TXT file so that the settings can be applied to other boards
using the Configuration File Method (described above).
NOTE: Port settings like baud rate, bits etc. do not matter when configuring the board via the virtual serial
port
Setup commands are entered by typing them on the terminal application’s used interface, or by using the file
sending (or transfer) facility of that application.
Each command is processed upon pressing “ENTER” key (CR character) and feedback is given in an “OK” or
“ERROR” with details format.
IMPORTANT: In order to have the settings committed to Non Volatile memory the “UPD” command must be
the last command executed. Certain settings will take effect as soon as the UPD command is executed, but
some settings (which affect the PC/104 IO or Memory address settings or interrupt settings) will not take effect
until the board is reset (or powered down then up again).

Connect Tech - Xtreme/Multi-I/O - Users Guide
Document: CTIM-00116
Revision: 0.02 0.02
Page 12 of 50
Connect Tech Inc. Proprietary Information
Date: Apr. 14, 2015
Typical programming sequence:
CFG?
Xtreme/Multi-I/O Configuration
Firmware Version V1.00
FPGA Version A
Decode IO region is 10 bits
U1
U1P1 = (IO) 0x0300, 10
U1P2 = (IO) 0x0308, 10
U1P3 = (IO) 0x0310, 10
U1P4 = (IO) 0x0318, 10
U2
U2P1 = (IO) 0x0320, 10
U2P2 = (IO) 0x0328, 10
U2P3 = (IO) 0x0330, 10
U2P4 = (IO) 0x0338, 10
Uart Clock Setting = Mode 3 (1.8432MHz)
Uart 1 is ENABLED
Uart 2 is ENABLED
Uart 3 is ENABLED
Uart 4 is ENABLED
Uart 5 is ENABLED
Uart 6 is ENABLED
Uart 7 is ENABLED
Uart 8 is ENABLED
Port 5 termination enable/disable setting = T
Uart 1 DTR/DSR wrapback is CONNECTED
Uart 2 DTR/DSR wrapback is CONNECTED
Uart 3 DTR/DSR wrapback is CONNECTED
Uart 4 DTR/DSR wrapback is CONNECTED
Uart 5 DTR/DSR wrapback is CONNECTED
S1R?
Socket 1 RESET = NO
S2R?
Socket 2 RESET = NO
C1?
CAN1 = (IO) 0x0000, 255
CAN1 is DISABLED
C2?
CAN2 = (IO) 0x0000, 255
CAN2 is DISABLED
CM?
BASIC
Port 5 mode of operation set to J1708_MODE
Board base = (IO) 0x0ffe
CAN clock rate is currently set to 24MHz
J?
J1708 = (MEM) 0x00ff80, 255
Temperature is 301.65 K (28.50 C)
OK
DIS?
Invalid Command
RS8=D
OK
RS8?
Uart 8 is DISABLED
OK
SER?
SER
U1P1 = (IO) 0x0300, 10
U1P2 = (IO) 0x0308, 10
U1P3 = (IO) 0x0310, 10
U1P4 = (IO) 0x0318, 10
U2P1 = (IO) 0x0320, 10
U2P2 = (IO) 0x0328, 10
U2P3 = (IO) 0x0330, 10
U2P4 = (IO) 0x0338, 10
OK
UPD
OK

Connect Tech - Xtreme/Multi-I/O - Users Guide
Document: CTIM-00116
Revision: 0.02 0.02
Page 13 of 50
Connect Tech Inc. Proprietary Information
Date: Apr. 14, 2015
Serial Port Configuration Method
When the Xtreme/Multi-I/O is installed into a computer and Serial Port 8 is enabled, a terminal program can be
used to access the settings of the board much like the Virtual Serial Port method using the OS running on the
PC/104 stack. Use a terminal program like qtalk, minicom, realterm, etc to configure the port settings
interactively.
This method is also applicable to situations where the application needs to change certain settings dynamically
as part of the application’s operation. However, the primary PC/104 Bus settings (like IO/Memory addresses or
interrupts) would not be candidates for any dynamic operations.
NOTE: Because this method requires some settings to already be enabled, we do not recommend this as a
primary way to configure the board, but rather suggest using the USB port.
Each command is processed upon pressing “ENTER” key (CR character) and feedback is given in an “OK” or
“ERROR” with details format.

Connect Tech - Xtreme/Multi-I/O - Users Guide
Document: CTIM-00116
Revision: 0.02 0.02
Page 14 of 50
Connect Tech Inc. Proprietary Information
Date: Apr. 14, 2015
Configuration Commands
Memory vs IO Spaces
The first decision to make when configuring this board, is to determine whether the board will operate within
the Memory or I/O address Space of the computer system in which the board is installed. First, a quick
description of the two different Spaces.
Memory Space
Most (but not all) PC/104 CPU System board vendors provide one or more regions of Memory Addresses that
can be configured (or allocated) to the PC/104 Expansion bus connector(s) on CPU System board. This setup
may be performed via the BIOS setup or via jumpers or switches on the System board. This memory region is
usually located at addresses below the 1-Meg CPU memory address (commonly referred to as the Upper
Memory addresses), although some System boards allow the PC/104 Expansion Bus to be allocated to blocks of
addresses within the first 16-Meg of memory.
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, some even support
the full 16 bit IO range (0x0000 to 0xFFFF). (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).
Board Address Decoding Capabilities
All the ports (Uart, CAN, J1708) of this board can be setup to reside in either IO or MEMORY space.
However, in most situations the Uart Serial Ports will be setup in IO space due to software limitations, and the
CAN Ports in MEMORY space because the SJA1000 devices have too many registers to fit easily in IO space.
The J1708 Port could be in either IO or MEMORY space as desired.
Command Groups
Group
Comment(s)
Serial Ports (UARTS)
Commands that set, or show, the Base Address (IO or Memory) or the IRQ assignments of
the UART Serial Ports.
Serial Ports Enable / Disable
Commands that allow individual serial ports to be Enabled or Disabled.
Serial Port Clocking
Commands that select, or show, a clock source for all Uart Serial Ports.
Serial Port DTR DSR
Wrapback
Commands that setup, or show the DTR to DSR wrapback on the chosen Port.
RS422/485 Port Settings
Commands that setup and show the RS422/485 Port settings.
CAN Ports (SJA1000)
Commands that set, or show, the Base Address (IO or Memory) or the IRQ assignments of
the CAN Ports.
CAN Ports Clocking
Commands that select, or show, a clock source for the CAN Ports.
Board Configuration
Commands to set, show the Base IO Address for the Board Control/Status Register.
J1708 Configuration
Commands to set, show the Base Address (IO or Memory) or the IRQ assignments of
J1708 Port.
Misc Configuration
Command to set, show a variety of miscellaneous settings.
Testing / Debugging
Commands that are used to test/debug the SPI interface between the PIC32 and FPGA.
Mainly used by software developers.

Connect Tech - Xtreme/Multi-I/O - Users Guide
Document: CTIM-00116
Revision: 0.02 0.02
Page 15 of 50
Connect Tech Inc. Proprietary Information
Date: Apr. 14, 2015
Serial Ports (UARTS)
These commands allow the 8 Uart Serial Ports to be configured with Address and IRQ assignments. The
assignments can also be queried.
Command
Operation
Notes
SER?
Query all the Address and IRQ settings for
both Uarts (1 and 2), (Ports 1 through 8)
Un?
Query the Address and IRQ settings for a Port group
n = 1 for Ports 1 through 4
n = 2 for Ports 5 through 8
UnP?
Query the Address setting for a Port group
n = (as above)
UnPx?
Query the Address setting for a specific Port.
n = (as above)
x = 1,2,3,4 for a specific Port
UnI?
Query the IRQ setting for a Port group
n = (as above)
UnIx?
Query the IRQ setting for a specific Port
n and x = (as above)
UnP=v
Set the Address for a group of Ports.
See Note [1] below.
n = (as above)
v= Base Address value can be from:
See the IOD command for setting the IO decoding
width, and the resulting IO address range.
UnI=v
Set the IRQ for a group of Ports.
n = (as above)
v= one of these possible IRQ selections:
3,4,5,6,7,9,10,11,12,14,15
Notes:
1. When the Address is entered as a single value (ie: U1P=0x300), then this is the Base Address for the group of Ports,
with each successive Port being set 0x08 bytes beyond the previous Port. (for this example: 0x300, 0x308, 0x310,
0x318). However, when the Addresses are entered as a comma separated list (ie: U2P=0x200,0x250,0x300,0x410),
then each Port is set to the Address value indicated.
2. Each enabled Port must have a unique Address which is at least 8 bytes away from any other Port’s Address.
3. All Uart Serial Ports can be set to the same IRQ number.
4. Ports are assumed to be IO Space if the address is entered as 3 or 4 HEX digits (ie: 0x300), otherwise Memory Space
if the address is longer (ie: 0xD0000).
5. The “0x” preceding an address value signifies HEX, otherwise decimal is assumed.

Connect Tech - Xtreme/Multi-I/O - Users Guide
Document: CTIM-00116
Revision: 0.02 0.02
Page 16 of 50
Connect Tech Inc. Proprietary Information
Date: Apr. 14, 2015
Serial Ports Enable / Disable
These commands allow the 8 Uart Serial Ports to be enabled or disabled. The assignments can also be queried.
When a port is disabled…
The respective Isolated Line Transceiver is turned-off, to reduce power consumption.
The decoding of the IO or Memory space is disabled.
The Port’s interrupt signal is disconnected (disabled) from asserting the IRQ.
Command
Operation
Notes
RSn?
Query the Enable / Disable state of a Port.
n = 1 through 8
RSn=v
Set the Enable / Disable state of a Port.
n = (as above)
v = ‘E’ to enable the Port
‘D’ to disable the Port
‘C’ to connect port to PIC32 CPU (Port 8 only)
‘S’ to connect port to Module Socket-2 (Port 8 only)
note [2] below.
Notes:
1. The LED Outputs obtain their isolated power from the Port-4 Isolated Line Transceiver, therefore
Port-4 must be Enabled to allow the LED outputs to operate properly.
2. The connections between Serial Port-8 and the GPIO pins of Module Socket-2 are implemented with
zero ohm resistors to select which GPIO pins to use (see the “Serial Port-8 to Module GPIO
Configuration”section for details).
Serial Port Clocking
These commands allow 4 different clock choices for the Uart Serial Ports. Both Uart (all serial ports) are
clocked from the same source.
Command
Operation
Notes
UCD?
Query the Uart clock setting
UCD=v
Set the Uart clock setting
v = 0 (or ‘F’) for 14.7456 MHz
1 for 7.3728 MHz
2 for 3.6864 MHz
3 (or ‘S’) for 1.8432 MHz
Serial Port DTR DSR Wrapback
These commands allow the DTR signal to be wrapped back (connected) to the DSR signal for the first 5 Uart
Serial Ports. When the wrapback is disable, the DSR signal is held at the inactive state.
Command
Operation
Notes
DSRn?
Query the DTR to DSR wrapback.
n = 1 through 5, Port number
DSRn=v
Set the DTR to DSR wrapback.
n = (as above)
v = ‘C’ = connected (enabled)
‘D’= disconnected (disabled)

Connect Tech - Xtreme/Multi-I/O - Users Guide
Document: CTIM-00116
Revision: 0.02 0.02
Page 17 of 50
Connect Tech Inc. Proprietary Information
Date: Apr. 14, 2015
RS422/485 (Port-5) Settings
Command
Operation
Notes
P5?
Query the Port-5 mode of operation
RSZ?
Query the Termination state of Port-5
P5=v
Set the Port-5 mode of operation
v = ‘F’ for Full Duplex
‘H’ for ½ Duplex
‘J’ for J1708 mode
RSZ=v
Set the Termination state of Port-5
v = ‘T’ to enable the Termination
‘O’ to disable the Termination
See note [1] below.

Connect Tech - Xtreme/Multi-I/O - Users Guide
Document: CTIM-00116
Revision: 0.02 0.02
Page 18 of 50
Connect Tech Inc. Proprietary Information
Date: Apr. 14, 2015
CAN Ports (SJA1000)
These commands allow the 2 CAN Ports to be configured with Address and IRQ assignments. The
assignments can also be queried.
Command
Operation
Notes
CAN?
Query all the Address and IRQ settings for
both CAN (1 and 2) Ports
Cn?
Query the Address and IRQ settings for a CAN Port
n = 1 for CAN1
n = 2 for CAN2
CnP?
Query the Address setting for a CAN Port
n = (as above)
CI?
Query the IRQ setting for both CAN Ports
CnI?
Query the IRQ setting for a CAN Port
n = (as above)
CD?
Query the CAN Port IO or MEMORY region setting
CM?
Query the CAN decoding mode as BASIC or PELICAN
CSn?
Query the Enable or Disable state of a CAN Ports
n = 1 for CAN1
n = 2 for CAN2
CP=v
Set the Address for a CAN Port
See Note [1] below.
v= Base Address value
See Note [3] below.
CI=v
Set the IRQ for both CAN Ports.
See Note [2] below.
v= IRQ selections:
3,4,5,6,7,9,10,11,12,14,15
CnI=v
Set the IRQ for a specific CAN Port.
n = (as above)
v= IRQ selections:
3,4,5,6,7,9,10,11,12,14,15
CD=v
Set the CAN Port decoding region.
v = ‘P’ for IO region decoded
‘M’ for MEMORY region decoded
CM=v
Set the CAN Port Address decoding mode.
v = ‘B’ for “BASIC” mode (0x20 boundary)
‘P’ for “PeliCAN” mode (0x80 boundary)
See Note [4] below.
CSn=v
Set the Enable / Disable state of a CAN Port
v = ‘E’ to enable the Port
‘D’ to disable the Port
Notes:
1. When the Address is entered as a single value (ie: CP=0x400), then this is the Base Address for the group of Ports,
with the next Port being set Base+0x80 bytes. However, when the Addresses are entered as a comma separated list (ie:
CP=0x400,0x500), then each Port is set to the Address value indicated.
Examples:
oWith CM=B, CP=0x400
CAN Port-1 = 0x400, CAN Port-2 = 0x480 (decoding width = 0x20)
oWith CM=P, CP=0x400
CAN Port-1 = 0x400, CAN Port-2 = 0x480 (decoding width = 0x80)
oWith CP=0x0C0000 (the CM setting is ignored)
CAN Port-1 = 0x0C0000, CAN Port-2 = 0x0C0080 (decoding width = 0x80)
oWith CP=0x0C0000,0x0C2000 (the CM setting is ignored)
CAN Port-1 = 0x0C0000, CAN Port-2 = 0x0C2000 (decoding width = 0x80)
2. When the IRQ is entered as a single value (ie: CI=5), then this IRQ number is applied to both CAN Ports. However,
when the IRQs are entered as a comma separated list (ie: CI=9,11) then each CAN Port is set to the IRQ value
indicated.
3. The value specified for the CP= command implies either IO or Memory Space. When the value for the CP command
is a 3 digit IO address in Hex (0x000 to 0xFE0 or 0xF80), the IO Space is implied. When the value for the CP
command is a 6 digit Hex value (0x000000 to 0xFFFFE0 or 0xFFFF80).
See the IOD command for setting the IO
decoding width, and the resulting IO address range.
4. The address decoding mode is used only when the CAN Ports are mapped into and IO region (with CD=P). The
SJA1000 must be set to operate in the mode that matches this address decoding mode (see the CLOCK DIVIDER
REGISTER in the SJA1000 data sheet for details).

Connect Tech - Xtreme/Multi-I/O - Users Guide
Document: CTIM-00116
Revision: 0.02 0.02
Page 19 of 50
Connect Tech Inc. Proprietary Information
Date: Apr. 14, 2015
CAN Port Clocking
The CAN controller (SJA1000) can be clocked by 2 different frequencies.
Command
Operation
Notes
CC?
Query the CAN clocking selection.
CC=v
Set the CAN clock selection.
v = 16 or 24 (value indicates the frequency in MHz)
Board Configuration
This product contains a group of registers that are used at “run-time” to perform a variety of functions. This
Command sets or shows the Base IO Address setting for these registers.
Command
Operation
Notes
BP?
Query the Board Base IO Address setting.
BP=v
Set the Board Base IO Address setting.
v= Base Address value can be from:
See the IOD command for setting the IO decoding
width, and the resulting IO address range.
J1708 Configuration
On this product the J1708 controller is implemented within the FPGA and is separate from the Uart Serial
Ports. These commands allow the J1708 Port to be configured with Address and IRQ assignments. The
assignments can also be queried.
Command
Operation
Notes
J?
Query the J1708 Base Address and IRQ settings
JP?
Query the J1708 Base Address setting
JI?
Query the J1708 IRQ setting
JS?
Query the Enable / Disable state of the J1708 Port.
JP=v
Set the J1708 Port Base Address.
v= Base Address value
See Note [1] below.
See the IOD command for setting the IO decoding
width, and the resulting IO address range.
JI=v
Set the J1708 Port IRQ.
v= IRQ selections:
3,4,5,6,7,9,10,11,12,14,15
JS=v
Set the Enable / Disable state of the J1708 Port.
v = ‘E’ to enable the Port
‘D’ to disable the Port
See note [2] below
Notes:
1. The value specified for the JP= command varies depending on whether the IO or MEMORY region is desired for the
J1708 Port. When IO region is desired, the value for the JP= command is a 3 digit IO address in Hex (000 to FE0 or
F80). When MEMORY region is desired, the value is a 6 digit Hex value (000000 to FFFFE0 or FFFF80).
2. When the J1708 Port is disabled…
The decoding of the IO or Memory space is disabled.
The Port’s interrupt signal is disconnected (disabled) from asserting the IRQ.

Connect Tech - Xtreme/Multi-I/O - Users Guide
Document: CTIM-00116
Revision: 0.02 0.02
Page 20 of 50
Connect Tech Inc. Proprietary Information
Date: Apr. 14, 2015
Misc Configuration
Command
Operation
Notes
TRD?
Query the board temperature.
Value return is degrees Kelvin
CFG?
Query all configuration settings.
VER?
Query the PIC32 and FPGA firmware version.
PIC32 firmware version appears as “Vx.y”
FPGA version appears as a letter “A”, “B”, “C”, etc.
IOD?
Query the IO Address decoding range (or width).
SnR?
Query the reset state of the Module Sockets
IOD=v
Set the IO Address decoding width.
v = 10, 11 or 12
=10 performs “10-bit” IO decoding.
=11 performs “11-bit” IO decoding.
=12 performs “12-bit” IO decoding.
SnR=v
Set the reset state of the Module Sockets
v = ‘Y’ to Assert the reset
‘N’ to De-assert reset
n = 1 = Apply to Socket #1
2 = Apply to Socket #2
UPD
Write configuration changes to Non-Volatile storage
IO Address Ranges set with IOD command
The IO Address range depends on the IO Address decoding width.
IO
Decode
Width
Base IO Address Range
Uart Ports
CAN Ports
J1708 Port
Board
10
0x000 to
0x3F8
0x000 to 0x3E0 (Basic mode)
0x000 to 0x380 (Pelican mode)
0x000 to
0x3E0
0x000 to
0x3FE
11
0x000 to
0x7F8
0x000 to 0x7E0 (Basic mode)
0x000 to 0x780 (Pelican mode)
0x000 to
0x7E0
0x000 to
0x7FE
12
0x000 to
0xFF8
0x000 to 0xFE0 (Basic mode)
0x000 to 0xF80 (Pelican mode)
0x000 to
0xFE0
0x000 to
0xFFE
Address
Boundaries
0x08
0x20 (Basic mode)
0x80 (Pelican mode)
0x20
0x02
Testing / Debugging
A couple of commands are available that directly write or read the FPGA registers that are accessed via an SPI
port between the PIC32 and the FPGA.
Command
Operation
Notes
SPIR reg
Perform an SPI read operation from the indicated register.
reg is a decimal number 0 to N
SPIW reg value
Perform an SPI write operation to the indicated register.
reg is a decimal number 0 to N
value is a 16 bit HEX number as appropriate
for the register.
This manual suits for next models
1
Table of contents
Other Connect Tech Motherboard manuals