WinSystems PCM-DSPIO User manual

OPERATIONS MANUAL
PCM-DSPIO
PCM-J1708
WinSystems reserves the right to make changes in circuitry
and specifications at any time without notice.
© Copyright 1996 WinSystems®. All Rights Reserved.

REVISION HISTORY
P/N 403-0247-000
ECO Number Date Code Revision
ORIGINATED 960508 A
98-88 980826 A1
98-105 981117 A2
WinSystems- "The Embedded Systems Authority"

TABLE OF CONTENTS
Section Paragraph Title Page
Visual Index – Quick Reference
1 General Information 1-1
1.1 Features 1-1
1.2 General Description 1-1
1.3 Specifications 1-2
2 PCM-DSPIO Technical Reference 2-1
2.1 Introduction 2-1
2.2 Serial I/O Address Selection 2-1
2.3 Serial Interrupt Selection 2-2
2.4 RS- 232 Mode Configuration 2-2
2.5 RS- 422 Mode Configuration 2-3
2.6 RS- 485 Mode Configuration 2-5
2.7 SAE J1708 Mode Configuration 2-7
2.8 Parallel Port I/O Address Selection 2-8
2.9 Parallel Port Direction Control 2-9
2.10 Parallel Port Interrupt Routing Selection 2-9
2.11 Parallel Port I/O Connector Pinout 2-9
2.12 PC/104 Bus Connectors 2-10
2.13 Connector/Jumper Summary 2-11
APPENDIX

Visual Index – Quick Reference
For the convenience of the user, a copy of the Visual Index has been provided with direct links to
connector and jumper configuration data.
J1
SERIAL I/O
CONNECTOR
J2 , J3
CHANNEL 2 RS-485/J1708
CONFIGURATION JUMPER
J5, J6
CHANNEL 1 RS-485/J1708
CONFIGURATION JUMPER
J4
PARALLEL PORT
I/O CONNECTOR
J8
PARALLEL PORT
BI-DIRECTIONAL MODE
CONTROL JUMPER
J9
SERIAL I/O MAP
SELECTION JUMPER
J10
PARALLEL PORT
I/O ADDRESS
SELECTION JUMPER
J7
INTERRUPT ROUTING
HEADER
J11
PC/104 8-BIT
BUS CONNECTOR
J12
PC/104 16-BIT
BUS CONNECTOR
981117 PCM-DSPIO/J1708 OPERATIONS MANUAL

1GENERAL INFORMATION
1.1FEATURES
nPC/104 compliant dual serial/parallel I/O module
nTwo fully 16550 compatible async serial channels
nA fully compatible Centronics parallel port
n16-byte serial transmit/receive FIFO
nFull RS-232 Modem control line support
nProgrammable Baud rates from 50 to 115,200 bps
nFour Jumper selectable serial I/O maps
nTwo jumper selectable Parallel port addresses
nSupports optional RS-422, RS-485, and SAE J1708 on both channels
nDual mode bi-directional parallel printer port
n+5 Volt only operation
n-40° to +85° C operating temperature range
1.2GENERAL DESCRIPTION
ThePCM-DSPIOisasmalllow-cost,add-onmoduleforPC/104basedsystemsthatpro-
videstwoPC compatibleserial portsand aPCcompatibleparallelprinterport. Both serial
channels come standard supporting RS-232 including all standard Modem control lines.
Eitherorbothchannelscanoptionallybeconfigured for RS-422orRS-485interfaceleve ls.
A factory configured option allows for support of SAE J1708 on both serial channels. The
programmable 16-byte transmit and receive FIFOs allow for multiple channels of high
speed serial I/O without excessive processor bottlenecking. The PC compatible parallel
port can be used as a primary or secondary printer port or can be used for general purpose
digital I/O with its bi-directional capability.
981117 PCM-DSPIO/J1708 OPERATIONS MANUALPage 1-1

1.3SPECIFICATIONS
1.3.1 Electrical
Bus Interface : PC/104 8-Bit (optional 16-bit connector available for expanded interrupt capability)
VCC : +5V +/-5% @ 90mA. typ. all channels RS-232
120ma typ. all channels RS-422
I/O Addressing : PLD Controlled I/O address uses 10-bit address. Each serial channel requires 8
consecutive I/O port addresses.
Parallel port requires 4 consecutive I/O port addresses.
1.3.2Mechanical
Dimensions : 3.8" X 3.8" X 0.5"
PC Board : FR4 Epoxy Glass, with 2 signal layers with screened component legend,and plated
through holes.
Jumpers : 0.025" square posts on 0.10" centers
Serial I/O Connector : 20 pin 0.10" grid RN type IDH-20-LP
Parallel I/O Connector : 26 pin 0.10" grid RN type IDH-26-LP
1.3.3Environmental
Operating Temperature : -40° to +85°C
Non-Condensing Relative Humidity : 5% to 95%
Page 1-2PCM-DSPIO/J1708 OPERATIONS MANUAL981117
WinSystems- "The Embedded Systems Authority"

2PCM-DSPIO TECHNICAL REFERENCE
2.1Introduction
This section of the manual is intended to provide sufficient information regarding the
configuration and usage of the PCM-DSPIO module. WinSystems maintains a Technical
SupportGroup to helpanswerquestionsregarding configuration and programming of the
board.For answers to questions not adequately addressed in this manual, contact Techni-
cal Support at (817) 274-7553 between 8AM and 5PM Central Time. Technical support
may also be requested via FAX at (817) 548-1358. Appendix C contains the complete re-
printoftheStartech16C552datasheetandisprovidedtotheprogrammerasasourceofin-
formation for all UART registers and parallel port register details.
2.2Serial I/O Address Selection
The PCM-DSPIOmapsthetwo serial channels to anyof 4 pairs ofaddresses as defined
in the illustration below.
981117 PCM-DSPIO/J1708 OPERATIONS MANUALPage 2-1
1 o o 2
3 o o 4
5 o o 6
7 o o 8
9 o o10
11 o o12
13 o o14
15 o o16
17 o o18
19 o o20
1 o o 2
3 o o 4
J9J7
Serial Address Select jumper J9
Interrupt Routing Header J7
1 o o2
3 o o4 1 o o2
3 o o4 1 o o2
3 o o4 1 o o2
3 o o4
J9J9J9J9
CH1 - 3F8H
CH2 - 2F8HCH1 - 3E8H
CH2 - 2E8HCH1 - 3A8H
CH2 - 2A8HCH1 - 380H
CH2 - 280H

2.3Serial Interrupt Selection
Bothserialchannelscanbeprogrammed to generate interruptsonTransmitterempty,
Receive character ready, or Line status changes. Each channel's interrupt output can be
routedtoan IRQ pin onthePC/104 bus via the jumperblockat J7. Note that eachchannel
is repeated throughout the jumper block several times allowing access to most any of the
bus interrupts. Jumpers may be placed vertically or horizontally to route the serial inter -
rupt to the bus. The illustrationbelow shows the J7 header and its corresponding pin defi-
nitions.
2.4RS-232 Mode Configuration
Full RS-232 signal levelsare standard on both serial channels. The two serial channels
are terminated at J1 and a dual DB9 cable is available from WinSystems under part
number CBL-173-1. The following illustrations show the correct jumpering, driver IC in-
stallation,andDB9I/Oconnectorpin-outforRS-232oneachchannel.RefertoAppendixD
for pin definitions when not using the CBL-173-1 cable.
Page 2-2PCM-DSPIO/J1708 OPERATIONS MANUAL 981117
WinSystems- "The Embedded Systems Authority"
1 o o 2
3 o o 4
5 o o 6
7 o o 8
9 o o 10
11 o o 12
13 o o 14
15 o o 16
17 o o 18
19 o o 20
J7
CH1
IRQ3
CH1
IRQ5
CH1
IRQ10
CH1
IRQ12
CH1
LPT
IRQ2
CH2
IRQ4
CH2
IRQ7
CH2
IRQ11
CH2
IRQ15
CH2
1 o
2 o
3 o
U6U4
U2U1
U5U3
J6 J2
J3
J5
Serial configuration
jumpers J2, J3, J5, J6
RS-232 Line Drivers U1, U2
RS-422/RS-485/J1708
Line Drivers U3, U4, U5, U6
1 o
2 o
3 o
1 o
2 o
3 o
1 o
2 o
3 o

2.4.1Channel 1 - RS-232
2.4.2 Channel 2 - RS-232
2.5RS-422 Mode Configuration
RS-422 signal levels are supported on either or both serial channels with the installa-
tion of the optional “Chip Kit” part number CK-75176-2. This kit provides the driver ICs
necessary for a single channel of RS-422. If two channels of RS-422 are required then two
kit will be needed. RS-422 is a 4-wire point to point full-duplex interface allowing much
longer runs than are possible with RS-232. The differential transmitter and receiver
twisted-pairsoffera high degree of noiseimmunity.RS-422usuallyrequiresthat the lines
beterminatedatbothends.Thisterminationcanbeaccomplished eitheronthecableorby
installing resistors on the board in locationsreserved for them. The methodology in det er-
miningthe correct resistor values isbeyond the scope of this document but we recommend
trial values of 100 Ohms in all three locations at the receiver end. The following illustra -
tions show the correct jumpering, driver IC installation, DB-9 I/O connector pin-out, and
termination resistor locations for each of the channels when used in RS-422 mode.
981117PCM-DSPIO/J1708 OPERATIONS MANUALPage 2-3
WinSystems- "The Embedded Systems Authority"
1 o
2 o
3 o
U2 - Installed
U5 - Not Installed
U6 - Not Installed
1 o o6
2 o o7
3 o o8
4 o o9
5 o
J5 J6 CH1 DB9
Jumper PositionsDriver IC StatusI/O Connector Pin Defs
CD
RX Data
TX Data
DTR
GND
DSR
RTS
CTS
RI
1 o
2 o
3 o
U1 - Installed
U3 - Not Installed
U4 - Not Installed
1 o o6
2 o o7
3 o o8
4 o o9
5 o
J2 J3 CH2 DB9
Jumper PositionsDriver IC StatusI/O Connector Pin Defs
CD
RX Data
TX Data
DTR
GND
DSR
RTS
CTS
RI
1 o
2 o
3 o
1 o
2 o
3 o

2.5.1Channel 1 - RS-422
2.5.2 Channel 2 - RS-422
Page 2-4PCM-DSPIO/J1708 OPERATIONS MANUAL981117
WinSystems- "The Embedded Systems Authority"
U2 - Not Installed
U5 - Installed
U6 - Installed
1 o o6
2 o o7
3 o o8
4 o o9
5 o
J5 J6 CH1 DB9
Jumper PositionsDriver IC StatusI/O Connector Pin Defs
N/C
TX+
TX-
N/C
GND
RX+
RX-
N/C
N/C
1 o
2 o
3 o
1 o
2 o
3 o
U1 - Not Installed
U3 - Installed
U4 - Installed
1 o o6
2 o o7
3 o o8
4 o o9
5 o
J2 J3 CH2 DB9
Jumper PositionsDriver IC StatusI/O Connector Pin Defs
N/C
TX+
TX-
N/C
GND
RX+
RX-
N/C
N/C
1 o
2 o
3 o
1 o
2 o
3 o
RS-422NOTE : WhenusedinRS-422
modethe transmitter must be enabledvia
softwareby setting the RTS bitintheMo-
dem Control register (Bit 1).
RS-422NOTE :WhenusedinRS-422
modethe transmitter must be enabledvia
softwareby setting the RTS bitintheMo-
dem Control register (Bit 1).
R7
R5
R6
RX+
RX-
vcc
R10
R11
R12
RX+
RX-
vcc

2.6RS-485 Mode Configuration
TheRS-485 multi-drop interface is supportedonbothserialchannelswiththe installa-
tionofthe optional “Chip Kit”,WinSystemspart number CK-75176-2. A single kit is suffi-
cient to configureboth channels for RS-485. RS-485 is a 2 wire multi-drop interface where
onlyone station at a time talks(transmits)whileall others listen (receive).RS-485usual ly
requiresthatthe line-pair be terminated at each end of the run. The required termination
show the correct jumpering, driver IC installation, DB9 I/O connector pin-out, and termi-
nation resistor locations for each of the channels when used in the RS-485 mode.
2.6.1Channel 1 - RS-485
981117 PCM-DSPIO/J1708 OPERATIONS MANUAL Page 2-5
WinSystems- "The Embedded Systems Authority"
U2 - Not Installed
U5 - Installed
U6 - Not Installed
1 o o6
2 o o7
3 o o8
4 o o9
5 o
J5 J6 CH1 DB9
Jumper PositionsDriver IC StatusI/O Connector Pin Defs
N/C
TX/RX+
TX/RX-
N/C
GND
TX/RX+
TX/RX-
N/C
N/C
1 o
2 o
3 o
1 o
2 o
3 o
RS-485 NOTE : Because RS-485 uses
a single twisted-pair, all transmitters are
connected in parallel. Only one station
may transmit, or have its transmitter en-
abled at a time. The transmitter En-
able/Disable is controlled by Bit 1 in the
Modem Controlregister (RTS).Whenset,
the transmitter is enabled, when cleared
(the normal state) the transmitter is dis-
abled and the receiver is enabled. Note
that it is necessaryto allow someminimal
settling time after enabling the transmit-
ter before transmitting the first charac-
ter. Likewise, following a transmission, it
is necessary to be sure that all characters
have been completely shifted out of the
UART (Check bit 6 in the Line status reg-
ister) before disabling the transmitter to
avoid chopping off the last character.
R15
R16
R17
TX/RX+
TX/RX-
vcc

2.6.2 Channel 2 - RS-485
Page 2-6PCM-DSPIO/J1708 OPERATIONS MANUAL 981117
WinSystems- "The Embedded Systems Authority"
U1 - Not Installed
U3 - Installed
U4 - Not Installed
1 o o6
2 o o7
3 o o8
4 o o9
5 o
J2 CH2 DB9
Jumper PositionsDriver IC StatusI/O Connector Pin Defs
N/C
TX/RX+
TX/RX-
N/C
GND
TX/RX+
TX/RX-
N/C
N/C
1 o
2 o
3 o
1 o
2 o
3 o
J3
R2
R3
R4
TX/RX+
TX/RX-
vcc
RS-485 NOTE :Because RS-485 uses
a single twisted-pair, all transmitters are
connected in parallel. Only one station
may transmit, or have its transmitter en-
abled at a time. The transmitter En-
able/Disable is controlled by Bit 1 in the
Modem Controlregister (RTS).Whenset,
the transmitter is enabled, when cleared
(the normal state) the transmitter is dis-
abled and the receiver is enabled. Note
thatitis necessary toallow some minimal
settling time after enabling the transmit-
ter before transmitting the first charac-
ter. Likewise, following a transmission, it
is necessary to be sure that all characters
have been completely shifted out of the
UART (Check bit 6 in the Line status reg-
ister) before disabling the transmitter to
avoid chopping off the last character.

2.7SAE J1708 Configuration
TheSocietyofAutomotiveEngineers(SAE)J1708interfaceisavariationoftheRS-485
interfacewhichisusedfor“SerialDataCommunicationsbetweenMicrocomputerSystems
inHeavyDuty Vehicle Applications”. It is beyond the scope of this document to go into de-
tail on the J1708 specification. The PCM-DSPIO must be factory configured for J1708 us-
agethroughtheinstallationofanumberofrequiredterminationandfilteringcomponent s.
Thefollowingillustrationsshowthecorrectjumpering,driverICinstallation,DB9I/Ocon-
nectorpindefinitions,andtermination network detailsforeachofthechannelswhenused
in J1708 mode.
2.7.1 Channel 1 - SAE J1708
981117 PCM-DSPIO/J1708 OPERATIONS MANUAL Page 2-7
WinSystems- "The Embedded Systems Authority"
U2 - Not Installed
U5 - Installed
U6 - Not Installed
Jumper PositionsDriver IC StatusI/O Connector Pin Defs
N/C
TX/RX+
TX/RX-
N/C
GND
TX/RX+
TX/RX-
N/C
N/C
1 o
2 o
3 o
1 o
2 o
3 o
1 o o 6
2 o o 7
3 o o 8
4 o o 9
5 o
J5 J6 CH1 DB9
R15
R16
R17
TX/RX+
TX/RX-
R14
R9
4.7K
4.7K
4.7 OHM
4.7 OHM
C15 .0022 ufd
C11 .0022 ufd
Absent
vcc

2.7.2Channel 2 - SAE J1708
2.8Parallel Port I/O Address Selection
TheparallelportonthePCM-DSPIOcanbeI/Omappedateitherof2baseaddressesas
determined by jumper block J10. The following illustration shows the J10 jumpering for
each of the two supported addresses.
Page 2-8PCM-DSPIO/J1708 OPERATIONS MANUAL 981117
WinSystems- "The Embedded Systems Authority"
U1 - Not Installed
U3 - Installed
U4 - Not Installed
1 o o6
2 o o7
3 o o8
4 o o9
5 o
J2 J3 CH2 DB9
Jumper PositionsDriver IC StatusI/O Connector Pin Defs
N/C
TX/RX+
TX/RX-
N/C
GND
TX/RX+
TX/RX-
N/C
N/C
1 o
2 o
3 o
1 o
2 o
3 o
R2
R3
R4
TX/RX+
TX/RX-
R8
R1
4.7K
4.7K
4.7 OHM
4.7 OHM
C7 .0022 ufd
C3 .0022 ufd
Absent
1 o o 2
1 o o 2
J8
J10
Parallel Port Configuration
Jumpers J8, J10
vcc

2.9 Parallel Port Direction Control
The parallel port on the PCM-DSPIO is capable of bi-directional data transfer. The
jumperblockatJ8definesthemethod(s)availabletoconvertbetween inputmodeandout-
put mode. The table below shows the relationship between the J8 jumper installation and
theI/Oselectionmodesavailable.ForadditionaldetailsonI/Odirectioncontrolrefertothe
Startech 16C552 reprint in Appendix C.
2.10Parallel Port Interrupt Routing
The parallel port on the PCM-DSPIO, like those on standard PC printer ports, is capa-
ble of generating an interrupt on printer acknowledge. This feature is not used by a PC
BIOS and is rarely used by PC software. In the event this interrupt is desired, it may be
routed to the bus using a jumper wire from pin 19 on J7 to the desired bus interrupt. The
pin definitions for the J7 interrupt routing header are shown below :
2.11Parallel Port I/O Connector Pinout
The parallel port on the PCM-DSPIO terminates at connector J4. An interface cable
WinSystems part number CBL-102-1 is available which connects to J4 and then presents
the standard DB25 female connector to which PC printer cables may be attached. If using
981117PCM-DSPIO/J1708 OPERATIONS MANUAL Page 2-9
WinSystems- "The Embedded Systems Authority"
1 o o 2 1 o o 2
J10J10
BASE ADDRESS 378HBASE ADDRESS 3BCH
Control Register Bit
5J8 JumperI/O Select
Register Port Direction
XONAA HexInput Mode
XON 55 HexOutput Mode
0OFFXOutput Mode
1OFFXInput Mode
1 o o 2
3 o o 4
5 o o 6
7 o o 8
9 o o10
11 o o12
13 o o14
15 o o16
17 o o18
19 o o20
J7
CH1
IRQ3
CH1
IRQ5
CH1
IRQ10
CH1
IRQ12
CH1
LPT
IRQ2
CH2
IRQ4
CH2
IRQ7
CH2
IRQ11
CH2
IRQ15
CH2

the parallel port for custom I/O or for reference, the following illustration shows the pin
definitions for J4.
2.12PC/104 Bus Connectors
ThePCM-DSPIOplugsontothePC/104bususingtheconnectorsatJ11andJ12(PCM-
DSPIO-16 only). The PC/104 bus pin definitions are shown here for reference.
Page 2-10 PCM-DSPIO/J1708 OPERATIONS MANUAL981117
WinSystems- "The Embedded Systems Authority"
1 o o 2
3 o o 4
5 o o 6
7 o o 8
9 o o 10
11 o o 12
13 o o 14
15 o o 16
17 o o 18
19 o o 20
21 o o 22
23 o o 24
25 o o 26
/STB
PD0
PD1
PD2
PD3
PD4
PD5
PD6
PD7
/ACK
BUSY
PE
SLCT
/AFD
/ERROR
/INIT
/SLIN
GND
GND
GND
GND
GND
GND
GND
GND
N/C
J4
B1 o o A1
B2 o o A2
B3 o o A3
B4 o o A4
B5 o o A5
B6 o o A6
B7 o o A7
B8 o o A8
B9 o o A9
B10 o o A10
B11 o o A11
B12 o o A12
B13 o o A13
B14 o o A14
B15 o o A15
B16 o o A16
B17 o o A17
B18 o o A18
B19 o o A19
B20 o o A20
B21 o o A21
B22 o o A22
B23 o o A23
B24 o o A24
B25 o o A25
B26 o o A26
B27 o o A27
B28 o o A28
B29 o o A29
B30 o o A30
B31 o o A31
B32 o o A32
GND
RESET
+5V
IRQ2
-5V
DRQ2
-12V
0WS
+12V
GND
SMEMW
SMEMR
IOW
IOR
DACK3
DRQ3
DACK1
DRQ1
DACK0
CLK
IRQ7
IRQ6
IRQ5
IRQ4
IRQ3
DACK2
T/C
BALE
+5V
OSC
GND
GND
IOCHK
SD7
SD6
SD5
SD4
SD3
SD2
SD1
SD0
IOCHRDY
AEN
SA19
SA18
SA17
SA16
SA15
SA14
SA13
SA12
SA11
SA10
SA9
SA8
SA7
SA6
SA5
SA4
SA3
SA2
SA1
SA0
GND
C0 o o D0
C1 o o D1
C2 o o D2
C3 o o D3
C4 o o D4
C5 o o D5
C6 o o D6
C7 o o D7
C8 o oD8
C9 o o D9
C10 o o D10
C11 o o D11
C12 o o D12
C13 o o D13
C14 o o D14
C15 o o D15
C16 o o D16
C17 o o D17
C18 o o D18
C19 o o D19
GND
SBHE
LA23
LA22
LA21
LA20
LA19
LA18
LA17
MEMR
MEMW
SD8
SD9
SD10
SD11
SD12
SD13
SD14
SD15
KEY
GND
MEMCS16
IOCS16
IRQ10
IRQ11
IRQ12
IRQ15
IRQ14
DACK0
DRQ0
DACK5
DRQ5
DACK6
DRQ6
DACK7
DRQ7
+5V
MASTER
GND
GND
J12
J11

2.13Connector/Jumper Summary
Connector/PurposePage
JumperReference
J1 Serial I/O Connector2-2
J2Channel 2 RS-485/J1708 configuration jumper2-3
J3Channel 2 RS-486/J1708 configuration jumper2-3
J4Parallel Port I/O connector2-9
J5Channel 1 RS-485/J1708 configuration jumper2-3
J6Channel 1 RS-485/J1708 configuration jumper2-3
J7Interrupt routing header2-2
J8Parallel Port Bi-directional mode control jumper2-9
J9Serial I/O Map select jumper2-1
J10Parallel Port I/O address select jumper 2-8
J11PC/104 8-bit Bus connector 2-10
J12 PC/104 16-bit Bus connector2-10
981117 PCM-DSPIO/J1708 OPERATIONS MANUALPage 2-11
WinSystems- "The Embedded Systems Authority"

APPENDIX
Startech 16C522 Datasheet Reprint
Printable datasheet in PDF format DP83905_ ATLANTIC .pdf
Cables
Software
Simple C routine that uses receive interrupt 8250INTA.ZIP
Part Number Description
CBL-101-3 26-pin ribbon to 25-pin male “D” connector parallel adapter cable
CBL-173-1 20-pin ribbon to two male 9-pin “D” connector adapter cable
981117 PCM-DSPIO/J1708 OPERATIONS MANUAL
This manual suits for next models
1
Table of contents
Other WinSystems Control Unit manuals
Popular Control Unit manuals by other brands

VAT
VAT 655 Series Installation, operating, & maintenance instructions

Sentiotec
Sentiotec PRO-B3 Instructions for installation and use

Honeywell
Honeywell Satronic TFI 812 Series quick start guide

Broadcom
Broadcom SDGOB-1091 user guide

Riello UPS
Riello UPS EnergyManager Installation and configuration

Denkovi
Denkovi smartDEN IP-16R-MT user manual