This document contains information proprietary to Kontron Modular Computers GmbH. It may
not be copied or transmitted by any means, disclosed to others, or stored in any retrieval
system or media without the prior written consent of Kontron Modular Computers GmbH or one
of its authorized agents.
Kontron Modular Computers GmbH reserves the right to change, modify, or improve this
document or the product described herein, as seen fit by Kontron Modular Computers GmbH
without further notice.
Environmental Protection Statement
This product has been manufactured to satisfy environmental protection requirements where
possible. Many of the components used (structural parts, printed circuit boards, connectors,
batteries, etc.) are capable of being recycled.
Final disposition of this product after its service life must be accomplished in accordance with
applicable country, state, or local laws or regulations.
P R E L I M I N A R Y
RevNr. = CP384 - 31440_01 - 060503/144226
ID 31440, Rev. 01 Kontron Modular Computers GmbH
Page xi
Page 12
PrefaceCP384
Explanation of Symbols
CE Conformity
This symbol indicates that the product described in this manual is in
compliance with all applied CE standards. Please refer also to the
section “Applied Standards” in this manual.
Caution, Electric Shock!
This symbol and title warn of hazards due to electrical shocks (> 60V)
when touching products or parts of them. Failure to observe the precautions indicated and/or prescribed by the law may endanger your
life/health and/or result in damage to your material.
Please refer also to the section “High Voltage Safety Instructions” on
the following page.
Warning, ESD Sensitive Device!
This symbol and title inform that electronic boards and their components are sensitive to static electricity. Therefore, care must be taken
during all handling operations and inspections of this product, in
order to ensure product integrity at all times.
Please read also the section “Special Handling and Unpacking
Instructions” on the following page.
Warning!
This symbol and title emphasize points which, if not fully understood
and taken into consideration by the reader, may endanger your health
and/or result in damage to your material.
Note ...
This symbol and title emphasize aspects the reader should read
P R E L I M I N A R Y
through carefully for his or her own advantage.
Page xii
RevNr. = CP384 - 31440_01 - 060503/144226
Kontron Modular Computers GmbHID 31440, Rev. 01
Page 13
CP384Preface
For Your Safety
Your new Kontron product was developed and tested carefully to provide all features
necessary to ensure its compliance with electrical safety requirements. It was also designed
for a long fault-free life. However, the life expectancy of your product can be drastically reduced
by improper treatment during unpacking and installation. Therefore, in the interest of your own
safety and of the correct operation of your new Kontron product, you are requested to conform
with the following guidelines.
High Voltage Safety Instructions
Warning!
All operations on this device must be carried out by sufficiently skilled
personnel only.
Caution, Electric Shock!
Before installing your new Kontron product into a system always
ensure that your mains power is switched off. This applies also to the
installation of piggybacks.
Serious electrical shock hazards can exist during all installation,
repair and maintenance operations with this product. Therefore,
always unplug the power cable and any other cables which provide
external voltages before performing work.
Special Handling and Unpacking Instructions
ESD Sensitive Device!
Electronic boards and their components are sensitive to static electricity. Therefore, care must be taken during all handling operations
and inspections of this product, in order to ensure product integrity at
all times.
Do not handle this product out of its protective enclosure while it is not used for operational
purposes unless it is otherwise protected.
P R E L I M I N A R Y
RevNr. = CP384 - 31440_01 - 060503/144226
Whenever possible, unpack or pack this product only at EOS/ESD safe work stations. Where
a safe work station is not guaranteed, it is important for the user to be electrically discharged
before touching the product with his/her hands or tools. This is most easily done by touching a
metal part of your system housing.
It is particularly important to observe standard anti-static precautions when changing piggybacks, ROM devices, jumper settings etc. If the product contains batteries for RTC or memory
backup, ensure that the board is not placed on conductive surfaces, including anti-static plastics or sponges. They can cause short circuits and damage the batteries or conductive circuits
on the board.
ID 31440, Rev. 01 Kontron Modular Computers GmbH
Page xiii
Page 14
PrefaceCP384
General Instructions on Usage
In order to maintain Kontron’s product warranty, this product must not be altered or modified in
any way. Changes or modifications to the device, which are not explicitly approved by Kontron
Modular Computers GmbH and described in this manual or received from Kontron’s Technical
Support as a special handling instruction, will void your warranty.
This device should only be installed in or connected to systems that fulfill all necessary
technical and specific environmental requirements. This applies also to the operational
temperature range of the specific board version, which must not be exceeded. If batteries are
present, their temperature restrictions must be taken into account.
In performing all necessary installation and application operations, please follow only the
instructions supplied by the present manual.
Keep all the original packaging material for future storage or warranty shipments. If it is
necessary to store or ship the board, please re-pack it as nearly as possible in the manner in
which it was delivered.
Special care is necessary when handling or unpacking the product. Please consult the special
handling and unpacking instruction on the previous page of this manual.
P R E L I M I N A R Y
Page xiv
RevNr. = CP384 - 31440_01 - 060503/144226
Kontron Modular Computers GmbHID 31440, Rev. 01
Page 15
CP384Preface
Two Year Warranty
Kontron Modular Computers GmbH grants the original purchaser of Kontron’s products aTWO
YEAR
LIMITEDHARDWAREWARRANTYas described in the following. However, no other warran-
ties that may be granted or implied by anyone on behalf of Kontron are valid unless the consumer has the express written consent of Kontron Modular Computers GmbH.
Kontron Modular Computers GmbH warrants their own products, excluding software, to be free
from manufacturing and material defects for a period of 24 consecutive months from the date
of purchase. This warranty is not transferable nor extendible to cover any other users or longterm storage of the product. It does not cover products which have been modified, altered or
repaired by any other party than Kontron Modular Computers GmbH or their authorized agents.
Furthermore, any product which has been, or is suspected of being damaged as a result of negligence, improper use, incorrect handling, servicing or maintenance, or which has been damaged as a result of excessive current/voltage or temperature, or which has had its serial
number(s), any other markings or parts thereof altered, defaced or removed will also be excluded from this warranty.
If the customer’s eligibility for warranty has not been voided, in the event of any claim, he may
return the product at the earliest possible convenience to the original place of purchase, together with a copy of the original document of purchase, a full description of the application the
product is used on and a description of the defect. Pack the product in such a way as to ensure
safe transportation (see our safety instructions).
Kontron provides for repair or replacement of any part, assembly or sub-assembly at their own
discretion, or to refund the original cost of purchase, if appropriate. In the event of repair, refunding or replacement of any part, the ownership of the removed or replaced parts reverts to
Kontron Modular Computers GmbH, and the remaining part of the original guarantee, or any
new guarantee to cover the repaired or replaced items, will be transferred to cover the new or
repaired items. Any extensions to the original guarantee are considered gestures of goodwill,
and will be defined in the “Repair Report” issued by Kontron with the repaired or replaced item.
Kontron Modular Computers GmbH will not accept liability for any further claims resulting
directly or indirectly from any warranty claim, other than the above specified repair,
replacement or refunding. In particular, all claims for damage to any system or process in which
the product was employed, or any loss incurred as a result of the product not functioning at any
given time, are excluded. The extent of Kontron Modular Computers GmbH liability to the
customer shall not exceed the original purchase price of the item for which the claim exists.
Kontron Modular Computers GmbH issues no warranty or representation, either explicit or
implicit, with respect to its products’ reliability, fitness, quality, marketability or ability to fulfil any
particular application or purpose. As a result, the products are sold “as is,” and the
responsibility to ensure their suitability for any given task remains that of the purchaser. In no
event will Kontron be liable for direct, indirect or consequential damages resulting from the use
of our hardware or software products, or documentation, even if Kontron were advised of the
possibility of such claims prior to the purchase of the product or during any period since the
date of its purchase.
P R E L I M I N A R Y
RevNr. = CP384 - 31440_01 - 060503/144226
Please remember that no Kontron Modular Computers GmbH employee, dealer or agent is
authorized to make any modification or addition to the above specified terms, either verbally or
in any other form, written or electronically transmitted, without the company’s consent.
ID 31440, Rev. 01 Kontron Modular Computers GmbH
Page xv
Page 16
PrefaceCP384
This page has been intentionally left blank.
P R E L I M I N A R Y
Page xvi
Kontron Modular Computers GmbHID 31440, Rev. 01
RevNr. = CP384 - 31440_01 - 060503/144226
Page 17
IntroductionCP384
Chapter1
1
Introduction
RevNr. = CP384 - 31440_01 - 060503/144227
ID 31440, Rev. 01 Kontron Modular Computers GmbH
P R E L I M I N A R Y
Page 1 - 1
Page 18
IntroductionCP384
This page has been intentionally left blank.
P R E L I M I N A R Y
Page 1 - 2
Kontron Modular Computers GmbHID 31440, Rev. 01
RevNr. = CP384 - 31440_01 - 060503/144227
Page 19
IntroductionCP384
1.Introduction
1.1System Overview
The CompactPCI board described in this manual operates with the PCI bus architecture to support additional I/O and memory-mapped devices as required by various industrial applications.
For detailed information concerning the CompactPCI standard, please consult the complete
Peripheral Component Interconnect (PCI) and CompactPCI Specifications. For further information regarding these standards and their use, visit the home page of the PCI Industrial Comput-
er Manufacturers Group (PICMG).
Many system relevant CompactPCI features that are specific to Kontron Modular Computers
CompactPCI systems may be found described in the Kontron CompactPCI System Manual.
Please refer to the section “Related Publications” at the end of this chapter for the relevant ordering information.
The CompactPCI System Manual includes the following information:
•Common information that is applicable to all system components, such as safety information, warranty conditions, standard connector pinouts etc.
•All the information necessary to combine Kontron’s racks, boards, backplanes, power
supply units and peripheral devices in a customized CompactPCI system, as well as configuration examples.
•Data on rack dimensions and configurations as well as information on mechanical and
electrical rack characteristics.
•Information on the distinctive features of Kontron CompactPCI boards, such as functionality, hot swap capability. In addition, an overview is given for all existing Kontron CompactPCI boards with links to the relating data sheets.
•Generic information on the Kontron CompactPCI backplanes, such as the slot assignment, PCB form factor, distinctive features, clocks, power supply connectors and signalling environment, as well as an overview of the Kontron CompactPCI standard backplane
family.
•Generic information on the Kontron CompactPCI power supply units, such as the input/
output characteristics, redundant operation and distinctive features, as well as an overview of the Kontron CompactPCI standard power supply unit family.
P R E L I M I N A R Y
RevNr. = CP384 - 31440_01 - 060503/144227
ID 31440, Rev. 01 Kontron Modular Computers GmbH
Page 1 - 3
Page 20
IntroductionCP384
1.2Product Overview
The CP384 Digital Input and Digital Output Controller is part of a comprehensive concept to
provide CompactPCI system integrators with a complete range of CompactPCI I/O products
which include the functions of analog input, analog output, digital input, and digital output implemented as separate individual boards. This concept ensures a maximum degree of system
design flexibility thus allowing efficient and effective usage of available resources.
As an enhancement to this concept, the CP384 combination board has been designed to implement digital input and digital output functions on one board. The CP384 is a 3U/4HP CompactPCI board which provides 24 channels that are organized into two separate clusters, one
cluster consisting of 16 channels for digital input, and one cluster consisting of 8 channels of
relay switched (SPDT) digital output.
The basic functions of this board are on the one hand to provide interfacing to the application
(process), perform D/D signal conversions, and to make raw digitized data available for further
processing via the 16 input channels, and on the other hand to provide a large number of automatically controlled, flexible digital outputs within a ruggedized board. The digital output cluster requires external input voltages (process side) for operation, both for the outputs as well as
the supply voltage for the relay coils.
The major components involved in these processes are the front end (process side) signal conditioning (digital input and digital output), the relays for the digital outputs, and the Digital Input
and Output Process and Communications (DIO ProComm) Controller which is realized in a
field-programmable gate array (FPGA). The DIO ProComm Controller is designed to provide
effective and efficient control of the digital input and output processes as well as interfacing to
the CPCI system controller.
P R E L I M I N A R Y
Page 1 - 4
RevNr. = CP384 - 31440_01 - 060503/144227
Kontron Modular Computers GmbHID 31440, Rev. 01
Page 21
The following table provides a quick overview of the CP384 board.
Table 1-1: CP384 Product Overview
CP384 FEATURESDESCRIPTION
IntroductionCP384
Digital Input and Output
Board
Digital Input Channel• Input Signals:Voltage range:low: -3V to +5V
Digital Output ChannelsOne cluster of 8 channels of relay switched digital outputs
• CompactPCI: 3U, 4HP
• 33 MHz system clock
• 32-bit address and data bus
• Designed for Plug and Play
• Complies with the CPCI specification
high: +11V to +30 V (+24V standard)
Maximum current: 5 mA
• Channel Isolation: The input channels are isolated from the system side and do
not share common GND or VCC.
• Output Data:A maximum of 16 measured digital values
Interrupt messages (optional)
Programmable registers (read/ write, compare, event and
latch)
Each channel has its own set of single pole, double throw relay contacts: common,
normally open, and normally closed.
The cluster permits only one supply voltage (24V ± 20%) for the relay coils. The
relay contacts may be supplied with different voltages within the allowable range.
The output channels are galvanically isolated from the system side and from each
other within the CP384.
External Interfaces2 external interfaces: the digital input and output interface connector (CON2) on the
front panel and a single CompactPCI connector (CON1( J1)) at the rear.
The digital input and output interface connector supports up to 16 digital input and 8
3-pin digital output channels. The connector pins are subdivided into 2 clusters or
groups.
The CompactPCI connector is the standard CPCI type connector for CON1.
IndicatorsOne green LED (Run) and one red LED (Fail) which are user configurable
Temperature RangeThe board is qualified to operate over a wide range of temperatures as follows:
• Operational:0ºC to +60ºC Standard
-40ºC to +85ºC E2
• Storage:-40ºC to +115ºC
1.3Board Overview
1.3.1Board Introduction
The CP384 is a digital input and digital output board which provides 24 channels grouped into
one digital input cluster consisting of 16 channels and one digital output clusters consisting of
8 channels.
P R E L I M I N A R Y
RevNr. = CP384 - 31440_01 - 060503/144227
ID 31440, Rev. 01 Kontron Modular Computers GmbH
Page 1 - 5
Page 22
IntroductionCP384
1.3.1.1Board Introduction - Digital Input
The digital input cluster consists of 16 input channels. The source of the digital inputs must be
a voltage generator. The board accepts only differential voltages up to a maximum of +30V.
The input current is limited to 5 mA over the specified input voltage range.
Input signal processing begins with the presentation of the signal to the front panel connector.
Signal conditioning prior to the signal reaching the DIO ProComm Controller includes: overvoltage protection, ESD, low-pass filtering, inverse polarity protection, defined low and high ranges, current limitation, optoisolation and buffering.
After signal conditioning, all parallel digital data is routed to the DIO ProComm Controller,
where the control and status registers are set.
The DIO ProComm Controller controls the interface with the CompactPCI bus and the dedicated software.
Input signal types and ranges are as follows:
•Edge frequency:
•Maximum 10 kHz
•Voltage Ranges:
•High range: +11V to +30V (+24V nominal)
•Low range: -3V to +5V
•Channel isolation
•The input channels are isolated from the system side and do not share common GND
or VCC.
•Differential input
Output data
The following outputs are routed from the DIO ProComm Controller to the CompactPCI bus:
•Input data for all channels as a 32-bit value (each bit from 0 - 15 represents the status of
•Flag set information from the control and status registers
•Interrupts
P R E L I M I N A R Y
1.3.1.2Board Introduction - Digital Output
The digital output clusters consist of 8 output channels. The digital output requests from the
system controller are processed accordingly by the DIO ProComm Controller and are then routed to the relay drivers which switch the relays on or off using the external supply voltage as the
relay coil power source.
:
the respective input channel)
An external input can be provided to simultaneously switch off all of the relays in the cluster and
to connect Com (common) pin with NC (normally connected) pin on all of the relays. The same
operation may be done using the internal reset signal generated by the system side.
This reset can be used by the application to keep the inputs low after a fault condition occurs.
Page 1 - 6
Kontron Modular Computers GmbHID 31440, Rev. 01
RevNr. = CP384 - 31440_01 - 060503/144227
Page 23
IntroductionCP384
1.3.2Board Specific Information
Specific board components involved in the digital output process:
•One front panel connector (62-pin, female, D-sub type)
•16 channels of input signal conditioning
•8 channels of output signal conditioning: 8 single pole, double throw (SPDT) 3 circuit re-
lays: common (COM), normally open (NO), normally closed (NC)
•Optoisolation for each input and output channel from the system side
•One FPGA (the DIO ProComm Controller)
•One CompactPCI bus connector (CON1, board to backplane, 132-pin, female, six row)
•One EEPROM (CapROM)
1.4System Relevant Information
The following system relevant information is general in nature but should still be considered
when developing applications using the CP384.
Table 1-2: System Relevant Information
SUBJECTINFORMATION
System ConfigurationThe CP384 operates with a system clock frequency of 33 MHz.
The number of CP384s which can be installed in any one system depends
solely on the number of available slots within the system.
Master/ Slave FunctionalityThe CP384 functions only as a slave. As such it requires a System Master for
servicing.
System ControllerThe CP384 cannot function as a system controller.
Digital Inputs
Digital OutputsThe voltage source for the digital outputs of CP384 must conform with the
Digital inputs to the CP384 must be conform to the inputs specifications set
forth in this manual for the CP384. In most cases, some form of signal conditioning will be required on the process side prior to a signal being presented
to the CP384.
specifications set forth in this manual.
1.4.1System Configuration
When implementing applications, precautions must be taken to ensure that the input signals
presented to the CP384 comply with the specifications set forth in this manual. For this reason
it will be necessary for most applications to provide signal conditioning prior to presenting the
digital inputs to the CP384.
The external supply voltage (VCC) used to supply the output cluster relay coils must be within
the specified supply voltage range. In addition, it should be a DC supply with good ripple and
noise characteristics. Please refer to chapters 4 and 5 for further information.
P R E L I M I N A R Y
RevNr. = CP384 - 31440_01 - 060503/144227
1.4.2Driver Software
The CP384 is supplied with appropriate driver software which provides software interfacing
with the System Master.
ID 31440, Rev. 01 Kontron Modular Computers GmbH
Page 1 - 7
Page 24
IntroductionCP384
1.5Board Diagrams
The following diagrams illustrate board functionality and component layout.
1.5.1System Level Interfacing
Figure 1-1: CP384 System Level Interfacing Diagram
CompactPCI System
System Master
CPCI BUS
Digital Input
and Output
System
CP384
1
P R E L I M I N A R Y
digital
input
16 max
1
digital
input
digital
output
8 max
n
CP384
digital
input
16 max
1
digital
input
digital
output
8 max
Page 1 - 8
digital
output
digital
output
1
RevNr. = CP384 - 31440_01 - 060503/144227
1
Kontron Modular Computers GmbHID 31440, Rev. 01
Page 25
1.5.2Front Panel
Figure 1-2: CP384 Front Panel
IntroductionCP384
CP 384
RUN FAIL
A green “Run” LED and a red “Fail” LED have been placed on the
front panel, to cater for the most likely use of these LEDs. However,
they are user configurable and may be employed for user defined
purposes.
1.5.3Board Layout
Figure 1-3: CP384 Board (Front View)
LED1
Digital Input Signal Conditioning
Channels 0 ... 15
DIGIN Cluster
C
O
N
2
Digital Output Signal Conditioning
RelayRelay
RelayRelay
RelayRelay
RelayRelay
Channels
0 ... 7
DIGOUT Cluster
O
P
T
O
O
P
T
O
O
P
T
O
O
P
T
O
O
P
T
O
O
P
T
O
CON3
210
19
DIO
ProComm
Controller
CapROM
P R E L I M I N A R Y
25
C
O
N
1
OPTO
1
RevNr. = CP384 - 31440_01 - 060503/144227
ID 31440, Rev. 01 Kontron Modular Computers GmbH
Page 1 - 9
Page 26
IntroductionCP384
1.6Technical Specifications
Table 1-3: CP384 Main Specifications
GROUP/
INTERFACE
DIO ProComm
Controller and
Related
Peripheral
Memory
CompactPCI
Interface
(See note at foot
of table)
Digital Input and
Output Interface
TYPEDESCRIPTION
FPGA Logic DeviceProvides CompactPCI interfacing and IO control logic
CapROM4 kbit (512 byte) EEPROM
Realized on 132-pin,
female, six row connector (standard CPCI type
connector for CON1)
Software Driver Information
PCI InterfaceVI/O voltage is neither relevant nor used
Master/ Slave Functionality
One 62-pin, female,
three row, D-sub connector
Bus Width: 32-bit, Bus Speed: 33 MHz
64 kB memory space, non-prefetchable
Utilizes interrupt line INTA
PCI Header:
Device ID: 0x5555
Vendor ID: 0x1556
Class Code: 0x110000
Subsystem Device ID: 0x0121
Subsystem Vendor ID:0x1518
Only slave functionality provided
Supports up to 16 digital input channels and 8 digital output
channels
IndicatorsFront Panel LEDsOne green and one red LED to indicate operational status
Form Factor3U, 4HP
MechanicalConforms with IEEE 1101.1
System Power Con-
P R E L I M I N A R Y
General
sumption
Temperature RangeOperational:0ºC to+60ºC Standard
Climatic Humidity93 % RH at 40°C, non-condensing (acc. to IEC 60068-2-78)
Dimensions100 mm x 160 mm single height Eurocard
Board Weight180 grams
only + 3.3V: maximum 600 mW (all IO channels activated)
Storage:-40ºC to +115ºC
Note ...
The Device ID and Vendor ID refer to the chip manufacturer. In the Class Code
value given, “11” relates to the data acquisition and signal processing controllers and “0000” relates to the DPIO modules. Subsystem Device ID and Subsystem Vendor ID are defined by Kontron.
Page 1 - 10
RevNr. = CP384 - 31440_01 - 060503/144227
Kontron Modular Computers GmbHID 31440, Rev. 01
Page 27
IntroductionCP384
Table 1-4: CP384 Digital Input Specifications
TYPEDESCRIPTION
Input Voltage RangeLow:-3V to +5V
High: +11V to +30V
Channels16 channels isolated from the system side. They do not share common GND
or VCC.
Channel Connections2 pins per channel; differential input
Input Filter (edge frequency)10 kHz
Input Protection8 kV ESD
Isolation2 kV process to system
Input ImpedanceMinimum:1.5 k ohm
Maximum:6 k ohm at 30V
Table 1-5: CP384 Digital Output Specifications
TYPEDESCRIPTION
Channels8 channels of relay switched digital outputs grouped into one cluster
Channel ConnectionsEach channel is comprised of a single pole, double throw set of relay contacts:
• COM (common):relay middle pole
• NO (normally open):when the relay is switched off this pin is not connected to the COM pin
• NC (normally closed):when the relay is switched off this pin is connected
to the COM pin
All relay contacts are routed to the front panel connector.
Within the CP384 each relay and its contacts are galvanically isolated from the
system and from the other relays and their contacts.
External ResetAll digital output channels of a cluster can be collectively switched to the
normally closed (NC) position by using one of the following methods:
• externally via the EXTRESET signal
• internally on request from the application via the DIO ProComm
controller
This results in all outputs being switched to the NC position irrespective of the
input data for these channels.
Switching Voltage Range
(Resistive Load)
Switch Contact Resistance
The CP384 is designed to switch up to 250V DC/AC and up to 0.5A of current,
but the total power per contact being switched must be less then 15W.
A relay’s life time is about 2x10
switching current 0.5A.
< 50 milliohms
6
switches at switching voltage 24V and
P R E L I M I N A R Y
RevNr. = CP384 - 31440_01 - 060503/144227
Switching Delay TimeT
Switching Bounce TimeT
= 3 ms ( typical at 24V )
on
T
= 2 ms (typical at 24V with no coil suppression)
off
= 3 ms (typical at 24V)
bounce
ID 31440, Rev. 01 Kontron Modular Computers GmbH
Page 1 - 11
Page 28
IntroductionCP384
Table 1-5: CP384 Digital Output Specifications (Continued)
TYPEDESCRIPTION
External Supply Voltage (VCC)+ 24V ± 20% (working range)
External Supply Current (VCC)All relays ON:
• 90 mA at 19.2V
• 110 mA at 24.0V
• 130 mA at 28.8V
Signal Output
Over Current Protection
External Power SupplyFor proper operation of the output channels the external power supply voltage
Output RC unitsThere are capacitor filters connected to the output channel pins: COM, NO,
Isolation2 kV process to system
No over current protection is provided by the CP384 for the digital outputs. If
over current protection is required, it must be provided by the application system.
(EXTVCC) must be within the range: + 19.2 V to 28.8 V DC.
If the EXTVCC is below or above the specified range, proper operation of the
output channels is not guaranteed.
For invalid values of EXTVCC, the output cluster is forced into the reset state
resulting in all relays being switched off and the outputs switched to the NC
position.
NC.
1.7Software Support
The CP384 is supplied with appropriate driver software which provides software interfacing to
the System Master. The CP384 supports Windows XP
VxWorks
and Linux.
, Windows NT 4.0, Windows 2000,
P R E L I M I N A R Y
Page 1 - 12
RevNr. = CP384 - 31440_01 - 060503/144228
Kontron Modular Computers GmbHID 31440, Rev. 01
Page 29
IntroductionCP384
1.8Applied Standards
The Kontron Modular Computers’ CP384 board complies with the requirements of the following
standards:
Table 1-6: Applied Standards
COMPLIANCETYPESTANDARDTEST LEVEL
CEEmissionEN55022
EN61000-6-3
ImmissionEN55024
EN61000-6-2
Electrical SafetyEN60950-1--
MechanicalMechanical Dimensions IEEE 1101.10--
Transport and StorageIEC 61131-2--
Environmental and
Health Aspects
Vibration (sinusoidal)IEC60068-2-6--
ShockIEC60068-2-27--
BumpIEC60068-2-29--
Vibration, broad-band
random (digital control)
and guidance
Climatic HumidityIEC60068-2-7893% RH at 40°C, non-condensing
IEC60068-2-64--
1.9Related Publications
--
--
Table 1-7: Related Publications
ISSUED BYDOCUMENT
CompactPCI
Systems
CP384
PICMGCompactPCI Specification, V. 2.0, Rev. 3.0
Kontron Modular ComputersCompactPCI Systems Manual (ID 19953)
American ZettlerAZ832 polarized DIP relay single side stable
P R E L I M I N A R Y
RevNr. = CP384 - 31440_01 - 060503/144228
ID 31440, Rev. 01 Kontron Modular Computers GmbH
Page 1 - 13
Page 30
IntroductionCP384
This page has been intentionally left blank.
P R E L I M I N A R Y
Page 1 - 14
Kontron Modular Computers GmbHID 31440, Rev. 01
RevNr. = CP384 - 31440_01 - 060503/144228
Page 31
Functional DescriptionCP384
Chapter1
2
Functional Description
RevNr. = CP384 - 31440_01 - 060503/144228
ID 31440, Rev. 01 Kontron Modular Computers GmbH
P R E L I M I N A R Y
Page 2 - 1
Page 32
Functional DescriptionCP384
This page has been intentionally left blank.
P R E L I M I N A R Y
Page 2 - 2
Kontron Modular Computers GmbHID 31440, Rev. 01
RevNr. = CP384 - 31440_01 - 060503/144228
Page 33
Functional DescriptionCP384
2.Functional Description
The following chapters present more detailed, board level information about the CP384 Digital
Input and Digital Output Controller whereby the board components and their basic functionality
are discussed in general.
2.1General Information
The CP384 is comprised basically of the following:
•Digital input signal conditioning
•Digital output signal conditioning (2 Form C relays), external supply for the output cluster
•Optocouplers
•DIO ProComm Controller
•Controls digital inputs and outputs
•Provides interfacing to the CompactPCI bus
•System interfaces for:
•Front panel
•16 channels of digital input and 8 channels of 3-pin digital output
•External supply connection for the digital output cluster
•External hardware reset for the digital output cluster
•Two operational status LEDs for user-defined purposes
•External reset
•Output failure indicators
•Software
RevNr. = CP384 - 31440_01 - 060503/144228
2.2Board Level Interfacing Diagram
The following figure demonstrates the interfacing structure between the internal processing
modules of the CP384 and other major CP384 system components. Where CP384 system elements have common interfacing they are grouped into a block. Interfacing common to only
one element of a block is indicated with a direct connecting line. The interfacing lines are shown
in white where they are onboard and in black for board external interfacing.
ID 31440, Rev. 01 Kontron Modular Computers GmbH
Page 2 - 3
P R E L I M I N A R Y
Page 34
Functional DescriptionCP384
Figure 2-1: CP384 Board Level Interfacing
CP384 Digital Input and
Digital Output Controller
CPCI Interface
DIO ProComm Controller
Optoisolation
DIGOUT
CLUSTER
Signal
Cond.
RELAYS
P R E L I M I N A R Y
Outputs
0 ... 7
Reset &
Supply Voltage
DIGIN
CLUSTER
Signal
Cond.
Inputs
0 ... 15
Page 2 - 4
Digital Output
Digital In put
RevNr. = CP384 - 31440_01 - 060503/144228
Kontron Modular Computers GmbHID 31440, Rev. 01
Page 35
Functional DescriptionCP384
2.3Digital Input Signal Conditioning
The digital input signal conditioning consists of the following:
•Overvoltage protection
•Low-pass signal filtering
•Current limitation
•Inverse polarity protection
•Input signal high-low determination
•Output signal stabilization buffering
2.4Digital Output Signal Conditioning
The major element of the digital output signal conditioning is the 2 Form C relay which is able
to switch inductive, capacitive or resistive loads. The 2 Form C relays are double pole, double
throw relays with a common single coil where one set of three contacts (COM, NC, NO) are
available to the application and the other set of three contacts is reserved.
For proper operation the relay requires a minimum coil supply voltage of 18V. The voltage supervisor monitors the input supply voltage to the coil for under/over voltage condition, and, if
detected, switches the coil input suppy off. Under voltage cutoff is 18,6V with 0,3V of hysteresis. Overvoltage cutoff is 29,7V with a histeresis of 0,4V. Within the range of 19,2V to 28,8V
proper operation is guaranteed.
The digital output relays are driven by the DIO ProComm Controller via optocoupler devices.
2.5Optoisolation
The process side is galvanically isolated from the system side. The process side of the board
is separated from the system side by a bank of optocouplers which serve to protect the system
side from any excess voltages or voltage spikes.
2.6DIO ProComm Controller
The DIO ProComm Controller is responsible for supervising and controlling the digital acquisition and the digital data output process, and maintaining communication with the CompactPCI
System Master. Applications address the CP384 through its software driver interface within the
System Master whereby the controller accepts requests from the driver and executes them accordingly. Digital data from the signal conditioning is processed through the DIO ProComm
Controller and then made available to the System Master. Digital data from the System Master
is processed through the DIO ProComm Controller and then routed to the relay drivers.
2.7System Interfaces
The CP384 provides interfacing capability for the following system elements:
•Front panel connector
•CompactPCI bus
P R E L I M I N A R Y
RevNr. = CP384 - 31440_01 - 060503/144228
Digital inputs, digital outputs, external voltage, and external reset are routed via the CON2 connector. Interfacing to the CompactPCI bus is accomplished via the CON1 connector. Test and
program development is supported by the CON3 connector.
ID 31440, Rev. 01 Kontron Modular Computers GmbH
Page 2 - 5
Page 36
Functional DescriptionCP384
The connection for the external supply (+24V DC ± 20%) is realized by reserved/ defined pins
within the output cluster at the front panel connector CON2.
Note ...
The external power is supplied only to the relay coils. Within the CP384, the
external supply power is galvanically isolated from all digital output pins on
CON2
At power up, all digital outputs are switched off (NC). In the course of operation they can be
collectively switched off, either by software (RESET) or by the application via the EXTRESET
signal to the CON2 connector.
2.7.1Digital Input and Output Interface
The digital input and output interface is routed through the CON2 connector. The following figure and table indicate the pin layout and pinout of this connector.
Figure 2-2: Pin Layout of the Digital Input and Output Interface Connector CON2
1+
2-
4+
CP 383
RUN FAIL
Channel 0
Channel 1
P R E L I M I N A R Y
Channel 2
Channel 3
Channel 4
Channel 5
Channel 6
Channel 7
KEY
10+
11-
13+
14-
NO
NO
NO
NO
NO
NO
NO
NO
5-
7+
8-
11+
12-
14+
15-
NC
NC
NC
NC
NC
NC
NC
NC
+
= GND
R = Reset
+ = VCC
Pin 43
C = relay common pin COM
NC = relay normally closed pin NC
Pin 22
NO = relay normally open pin NO
0+
0-
1-
2+
3+
3-
4-
5+
6+
6-
7-
8+
9+
9-
10-
12+
13-
15+
C
C
C
C
C
C
C
C
+
+
R
DIGIN
CLUSTER
DIGOUT
CLUSTER
Pin 1
Page 2 - 6
RevNr. = CP384 - 31440_01 - 060503/144228
Kontron Modular Computers GmbHID 31440, Rev. 01
Page 37
Functional DescriptionCP384
Table 2-1: Pinout of the Digital Input and Output Interface Connector CON2
CLUSTERPINSIGNALPINSIGNALPINSIGNAL
42DIN0-21DIN0+
62DIN1+41DIN2+20DIN1-
61DIN2-40DIN3-19DIN3+
60DIN4+39DIN5+18DIN4-
59DIN5-38DIN6-17DIN6+
DIGIN
DIGOUT
58DIN7+37DIN8+16DIN7-
57DIN8-36DIN9-15DIN9+
56DIN10+35DIN11+14DIN10-
55DIN11-34DIN12-13DIN12+
54DIN13+33DIN14+12DIN13-
53DIN14 - 32DIN15-11DIN15+
52DOUT0_NO31DOUT0_NC10DOUT0_Com
51DOUT1_NO30DOUT1_NC9DOUT1_Com
50DOUT2_NO29DOUT2_NC8DOUT2_Com
49DOUT3_NO28DOUT3_NC7DOUT3_Com
48DOUT4_NO27DOUT4_NC6DOUT4_Com
47DOUT5_NO26DOUT5_NC5DOUT5_Com
46DOUT6_NO25DOUT6_NC4DOUT6_Com
45DOUT7_NO24DOUT7_NC3DOUT7_Com
RevNr. = CP384 - 31440_01 - 060503/144228
44EXTVCC23EXTVCC2EXTVCC
43EXTGND22EXTRESET1EXTGND
ID 31440, Rev. 01 Kontron Modular Computers GmbH
P R E L I M I N A R Y
Page 2 - 7
Page 38
Functional DescriptionCP384
2.7.2CPCI Interface and Pinout
The CPCI interface is based on the specification PICMG 2.0 R 3.0, 10/1/99. The following figure and table indicate the pin layout and pinout of the CPCI connector, CON1 (J1).
Figure 2-3: CPCI Connector CON1 (J1)
F EDCBA
25
CON1
1
P R E L I M I N A R Y
Page 2 - 8
RevNr. = CP384 - 31440_01 - 060503/144229
Kontron Modular Computers GmbHID 31440, Rev. 01
Page 39
Table 2-2: Pinout of the CPCI Connector CON1 (J1)
Functional DescriptionCP384
PIN
PIN ROW
ABCDEF
1NCNCNCNCNCGND
2NCNCNCTDOTDIGND
3INTA#NCNCNCNCGND
4NCGNDNCNCNCGND
5NCNCRSTGNDNCGND
6NCGND3.3VCLKAD[31]GND
7AD[30]AD[29]AD[28]GNDAD[27]GND
8AD[26]GNDNCAD[25]AD[24]GND
9C/BE[3]IDSELAD[23]GNDAD[22]GND
10AD[21]GND3.3VAD[20]AD[19]GND
11AD[18]AD[17]AD[16]GNDC/BE[2]GND
12-14 Key Area
153.3VFRAME#IRDY#GNDTRDY#GND
16DEVSEL# GNDNCSTOP#LOCK#GND
173.3VNCNCGNDPERR#GND
18SERR#GND3.3VPARC/BE[1]GND
193.3VAD[15]AD[14]GNDAD[13]GND
20AD[12]GNDNCAD[11]AD[10]GND
213.3VAD[9]AD[8]M66ENC/BE[0]GND
22AD[7]GND3.3VAD[6]AD[5]GND
233.3VAD[4]AD[3]NCAD[2]GND
24AD[1]NCNCAD[0]NCGND
25NCNCNC3.3VNCGND
P R E L I M I N A R Y
RevNr. = CP384 - 31440_01 - 060503/144229
ID 31440, Rev. 01 Kontron Modular Computers GmbH
Page 2 - 9
Page 40
Functional DescriptionCP384
2.8CapROM EEPROM
The CapROM is a 4 kbit (512 byte) EEPROM which provides the capability to store board control relevant information to allow software configuration of the CP384.
2.9Monitor and Control (M/C)
Various monitor and control functions are available for the operation of the CP384. The front
panel of the board is equipped with two LEDs for user-defined purposes. One green (RUN) and
one red (FAIL) have been placed on the front panel in anticipation of their most likely use. However they are freely programmable, the indicators being selected by the System Master (access
to the hardware debug register (hdr)).
The following table describes the digital input function modes of the CP384.
Table 2-3: Digital Input Function Modes of the CP384
MODEDESCRIPTION
Event hitThe CP384 monitors the input ports and detects any change in their state:
- Whenever individual input channels are enabled they are monitored.
- The direction of the change-of-state may be set.
- A status register reports the detected events.
Latch hitIn addition to standard event detection (i.e. event-hit) there is a latch mode exten-
sion. This mode is used in the event that it is necessary to capture the inputs when
a defined event has occurred.
Compare hitIt is possible to detect a complete input pattern automatically. The input vector is
continuously compared with the content of the mask register. Single inputs may also
be individually masked out.
The system failure indicators regarding undervoltage and overvoltage are made available to
the DIO ProComm Controller, and are automatically reset by the voltage supervisor circuit once
the condition has been corrected.
An input signal (Reset) is available to set an inactive state for each individual output cluster and
also to shut down each individual output cluster during operation as necessary.
P R E L I M I N A R Y
2.10Software
Driver software is available for the System Master application software.
Page 2 - 10
RevNr. = CP384 - 31440_01 - 060503/144229
Kontron Modular Computers GmbHID 31440, Rev. 01
Page 41
InstallationCP384
Chapter1
3
Installation
RevNr. = CP384 - 31440_01 - 060503/144229
ID 31440, Rev. 01 Kontron Modular Computers GmbH
P R E L I M I N A R Y
Page 3 - 1
Page 42
InstallationCP384
This page has been intentionally left blank.
P R E L I M I N A R Y
Page 3 - 2
Kontron Modular Computers GmbHID 31440, Rev. 01
RevNr. = CP384 - 31440_01 - 060503/144229
Page 43
InstallationCP384
3.Installation
The CP384 has been designed for easy installation. However, the following standard precautions, installation procedures, and general information must be observed to ensure proper installation and to preclude damage to the board or injury to personnel.
3.1Hardware Installation
The product described in this manual can be installed in any available 3U slot of a CompactPCI
system except for the system master slot.
3.1.1Safety Requirements
The board must be securely fastened to the chassis using the two front panel retaining screws
located at the top and bottom of the board to ensure proper grounding and to avoid loosening
caused by vibration or shock.
In addition, the following electrical hazard precautions must be observed.
Caution, Electric Shock Hazard!
Ensure that the system main power is removed prior to installing or removing
this board. Ensure that there are no other external voltages or signals being
applied to this board or other boards within the system. Failure to comply with
the above could endanger your life or health and may cause damage to this
board or other system components including process-side signal conditioning
equipment.
ESD Equipment!
This Kontron board contains electrostatically sensitive devices. Please
observe the following precautions to avoid damage to your board:
Discharge your clothing before touching the assembly. Tools must be discharged before use.
Do not touch any onboard components, connector pins, or board conductive
circuits.
If working at an anti-static workbench with professional discharging equipment, ensure compliance with its usage when handling this product.
P R E L I M I N A R Y
RevNr. = CP384 - 31440_01 - 060503/144229
ID 31440, Rev. 01 Kontron Modular Computers GmbH
Page 3 - 3
Page 44
InstallationCP384
3.1.2Installation Procedures
To install the board proceed as follows:
1. Ensure that the safety requirements indicated above are observed.
Warning!
Failure to comply with the instruction below may cause damage to the
board or result in improper system operation. Please refer to chapters
4 and 5 for configuration information.
2. Ensure that the board is properly configured for operation before installing.
Note ...
Care must be taken when applying the procedures below to ensure
that when the board is inserted it is not damaged through contact with
other boards in the system.
3. To install the board perform the following:
1. Prior to installation of the board disengage the insertion/extraction handle by first unlocking the handle and pressing it down.
2. Insert the board into an appropriate slot, and, using the insertion/ extraction handle,
ensure that it is properly seated in the backplane. (Front panel is flush with the rack
front; the insertion/extraction handle is locked.)
4. Fasten the front panel retaining screws.
5. Connect external interfacing cables to the board as required.
6. Ensure that the interfacing cables are properly secured.
Warning!
Proper and safe operation of the CP384 Digital Input and Digital Output
Controller depends on the correct configuration of the external voltage and
loads. System integrators must ensure that all voltages presented to the CP384
comply with the specifications set forth in this manual.
P R E L I M I N A R Y
Failure to comply with the above may cause damage to the board or result in
improper system operation. Please refer to chapters 4 and 5 for configuration
information.
Page 3 - 4
RevNr. = CP384 - 31440_01 - 060503/144229
Kontron Modular Computers GmbHID 31440, Rev. 01
Page 45
InstallationCP384
3.1.3Removal Procedures
To remove the board proceed as follows:
1. Ensure that the safety requirements indicated above are observed.
Warning!
Care must be taken when applying the procedures below to
ensure that when the board is removed it is not damaged
through contact with other boards in the system.
2. Disconnect any interfacing cables that may be connected to the board.
3. Loosen both of the front panel retaining screws.
4. To remove the board from the backplane perform the following:
1. Unlock the insertion/extraction handle by pressing down on the grey locking mechanism in the middle of the handle. (This should be achievable with a minimum of force.
If necessary lift the handle up slightly while pressing down on the grey locking mechanism.)
2. Disengage the board from the backplane by pressing down on the insertion/extraction
handle and pull the board out of the slot ensuring that the board does not make contact
with adjacent boards. (If the handle does not move, it is not unlocked. Repeat the unlocking procedure above and try again. Do not use force!)
5. Dispose of the board as required observing applicable environmental regulations governing the handling and disposition of this type of product.
3.2Software Installation
Installation of the CP384 driver software is a function of the application operating system. For
further information refer to the appropriate software documentation.
P R E L I M I N A R Y
RevNr. = CP384 - 31440_01 - 060503/144230
ID 31440, Rev. 01 Kontron Modular Computers GmbH
Page 3 - 5
Page 46
InstallationCP384
This page has been intentionally left blank.
P R E L I M I N A R Y
Page 3 - 6
Kontron Modular Computers GmbHID 31440, Rev. 01
RevNr. = CP384 - 31440_01 - 060503/144230
Page 47
ConfigurationCP384
Chapter1
4
Configuration
RevNr. = CP384 - 31440_01 - 060503/144230
ID 31440, Rev. 01 Kontron Modular Computers GmbH
P R E L I M I N A R Y
Page 4 - 1
Page 48
ConfigurationCP384
This page has been intentionally left blank.
P R E L I M I N A R Y
Page 4 - 2
Kontron Modular Computers GmbHID 31440, Rev. 01
RevNr. = CP384 - 31440_01 - 060503/144230
Page 49
ConfigurationCP384
4.Configuration
This chapter provides information for configuring the CP384 board for operation.
4.1Jumper Settings
The CP384 does not have any jumpers which require configuring.
4.2Digital Input Signal Requirements
In addition to the input signal type and its range, which have been specified in table 1-4, system
integrators must be aware of certain input configuration requirements for the CP384. The following paragraphs provide information regarding individual connection configuration requirements.
4.2.1Channels
The CON2 connector of the CP384 provides two input pins per channel. This allows each channel to be configured separately as required. This is illustrated in figure 2-2, which shows the
front panel connector pinout, with the 16 input channels shown starting at the top of the connector with channel 0 (DIGIN cluster).
The following sections address the basic requirements.
4.2.2Signal Characteristics
The signals are differential and the specified voltage ranges illustrated in the following figure
should be observed.
Figure 4-1: Voltage Ranges
+30V Maximum
+24V
standard
HIGH
+11V
INDETERMINATE ZONE
HIGH is > +11V
P R E L I M I N A R Y
RevNr. = CP384 - 31440_01 - 060503/144230
+5V
LOW
-3V
ID 31440, Rev. 01 Kontron Modular Computers GmbH
LOW is < +5V
Page 4 - 3
Page 50
ConfigurationCP384
4.2.3Channel Configuration
The following figure illustrates the typical schematic of an input channel.
Figure 4-2: Input Channel Schematic
SystemInput Cluster
to system
Signal inputs are required to be connected: plus to plus, minus to ground as shown in figure
4-3 below.
Figure 4-3: Input Configuration (Example for Channel 0)
D
JFET
G
S
CP384
+
Voltage
Source
V
DIGIN0+
Pin21
P R E L I M I N A R Y
Signal
Input
Page 4 - 4
DIGIN0Pin42
CON2
RevNr. = CP384 - 31440_01 - 060503/144230
Kontron Modular Computers GmbHID 31440, Rev. 01
Page 51
Figure 4-4: Configuration Diagram for All Input Channels
ConfigurationCP384
V
Digital Sensors
CON2
Ch 0
+
Ch n
Ch 15
CP384
4.3Digital Output Signal Properties
In addition to the output signal type and its range, which have been specified in table 1-5, system integrators must be aware of certain output configuration requirements for the CP384. The
following paragraphs provide some information regarding individual connection configuration
requirements.
4.3.1Channels
The CON2 connector of the CP384 provides two output pins per channel. This is illustrated in
figure 2-2, which shows the front panel connector pinout with the 8 output channels shown
starting at the middle of the connector with channel 0.
The following sections address the basic requirements.
4.3.2Connection of External Supply
The CP384 requires an external voltage for operation. This external power source supplies the
board internal circuits for the relay coils, their drivers, and the voltage supervisor. The digital
output channels are galvanically isolated from the external power supply.
The input connection for this voltage is realized via the 62-pin front panel connector CON2. The
pinout of this connector is provided in table 2-1.
P R E L I M I N A R Y
RevNr. = CP384 - 31440_01 - 060503/144230
ID 31440, Rev. 01 Kontron Modular Computers GmbH
Page 4 - 5
Page 52
ConfigurationCP384
4.3.3Channel Connection
The following diagrams illustrate the external connection of the CP384 to the application.
Figure 4-5: Digital Output Connectionr
CON2
Supply Voltage
ExtVCC
External
VCC
External GND
+
V
Figure 4-6: Digital Output Circuit
Supply Voltage
L
O
A
D
L
O
A
D
CON2
NC
C
Channel 0
NO
NC
C
Channel 7
NO
ExtGND
CP384
External VCC
P R E L I M I N A R Y
External
VCC
+
V
L
O
A
D
External GND
Page 4 - 6
Kontron Modular Computers GmbHID 31440, Rev. 01
NO
NC
C
Ch 0
NCNO
C
EXTGND
CP384
relay
coil
relay
driver
RevNr. = CP384 - 31440_01 - 060503/144230
Page 53
Figure 4-7: External Reset Connection
Supply Voltage
CON2
0
ConfigurationCP384
VCC
Ch 0
External
VCC
+
V
digital output
channels
{
Ch 7
7
R
Reset
EXTGND
CP384
External GND
Note ...
The voltage source for the cluster is an external supply in the range 24V DC ±
20%, and it supplies only the power to drive the relay control circuits, but not the
output channels themselves.
The channel output pins are galvanically isolated from the VCC within the
CP384 board.
RevNr. = CP384 - 31440_01 - 060503/144230
ID 31440, Rev. 01 Kontron Modular Computers GmbH
P R E L I M I N A R Y
Page 4 - 7
Page 54
ConfigurationCP384
4.4Programming Interface
4.4.1Access Control Logic (Address Decoder)
All the resources of the CP384 are mapped within the 64 kB PCI memory address space which
itself is set in the PCI configuration register BAR0. The port size of all local or backend registers
is 32-bit by default. The address map of the registers is as follows.
Table 4-1: Backend Register Address Map
BASE ADDRESS
SIZEFUNCTION
(BAR0)
+ 0x00004 kBCOMMON BOARD REGISTER
0x040032 bit g_irq General Interrupt Enable Register
0x080032 bit hsrHardware Status Register
0x080432 bit i_penGeneral Interrupt Pending Register
0x0C0032 bit hdrHardware Debug Register
+ 0x10004 kBCAPABILITY ROM, SERIAL EEPROM
0x100032 bit r_cmdCommand Register
0x140032 bit r_ctlControl Register
0x180032 bit r_staStatus Regsiter
0x1C0032 bit r_datData Register
+ 0x20004 kB DIGOUT CLUSTER
0x240032 bit o_ctl_a Output Control Register
0x280032 bit o_sta_a Output Status Register
0x2C0032 bit o_dat_a Output Data Register
+ 0x40004 kBDIGIN CLUSTER
0x440032 bit i_ctlInput Control Register
P R E L I M I N A R Y
Page 4 - 8
0x440832 bit i_irquen Input Irq Enable Register
0x440C32 bit e_polInput Event Polarity Register
0x441032 bit e_mskInput Event Mask Register
0x441432 bit e_lenInput Latch-on Event Register
0x441832 bit c_cmpInput Pattern Compare Register
0x441C32 bit c_mskInput Pattern Mask Register
0x480032 bit i_event Input Status Register
0x4C0032 bit d_inInput Data Register
0x4C0432 bit inputTransparent Input Data
+ 0x500044 kBReserved
Kontron Modular Computers GmbHID 31440, Rev. 01
RevNr. = CP384 - 31440_01 - 060503/144230
Page 55
ConfigurationCP384
4.4.2Reading Input Data
The input ports are made visible via the Input Data Register. This register reflects the inputs
after them having passed the digital programmable debouncer. An active input appears there
as a logical "1" whereas an open or inactive input port appears as a logical "0". The bit ordering
naturally corresponds with the numbering of the input ports at the connector.
Table 4-2: Input Data Register
BITSTYPEDEFAULTFUNCTION
31-16r0Reserved
15-0r-Input (debounced)
Note ...
Where the enhanced features such as interrupts, pattern or event detection are
not required, only the input data register is relevant.
Table 4-3: Transparent Input Data Register
BITSTYPEDEFAULTFUNCTION
31-16r0Reserved
15-0r-Input (transparent)
Note ...
In addition to the Input Data Register, there is a second non-latched input register (debouncer bypassed).
4.4.3Debouncing Inputs
By default, all inputs are filtered through a passive analog low-pass filter placed immediately
behind the input connector. Additionally, the CP384 provides a programmable digital debouncer which is common for all inputs. The input ports are sampled at a programmable sample rate
which is derived from PCI bus clock. Two consecutive samples must be equal before being
stored in the input data register. By this means, bouncing and spikes on inputs can be filtered
out. For example, with a selected input sample rate of 500 Hz, input pulses which are shorter
than 2 ms are filtered out.
Table 4-4: Input Control Register
BITSTYPEDEFAULTFUNCTION
P R E L I M I N A R Y
RevNr. = CP384 - 31440_01 - 060503/144231
31-8R/W0RESERVED
7r/w0Input enable
6r/w0Event detect enable
5r/w0Latch mode enable
4r/w0Pattern detect enable
3r/w0Reserved
2-0r/w000Debounce control deb [2 ... 0]
ID 31440, Rev. 01 Kontron Modular Computers GmbH
Page 4 - 9
Page 56
ConfigurationCP384
Note ...
The inputs are sampled through the debouncer after the Input Enable bit is set.
Additional features such as event and pattern detection and latch mode are also
enabled in the input control register, after being configured within the corresponding mode registers.
Table 4-5: Programmable Input Sample Rates
deb [2 ... 0]
000133 MHz30 ns
001
0102^1032 KHz32 µs
0112^128 KHz128 µs
1002^142 KHz0.5 ms
1012^160.5 KHz2 ms
1102^18125 Hz8 ms
1112^2031 Hz32 ms
CLOCK
DIVIDER
2^8
Note ...
The clock divider default value is 1. In addition to the choice of debouncing filters, there is an analog filter implemented on the board with an edge frequency
at 10 kHz.
INPUT SAMPLE CLOCK
@ 33MHz PCI
128 KHz8 µs
INPUT SAMPLE PERIOD
@ 33MHz PCI
4.4.4Detecting Input Events
Detecting events on input means that the CP384 hardware can supervise the input ports upon
their changing state and without being continuously polled. This mode is controlled by three
control registers. In the Input Event Mask Register, individual input events can be enabled
which should be monitored. In the Input Polarity Register the direction of the change-of-state
is set. Detected events are reported in the corresponding Input Event Status Register.
Table 4-6: Input Event Mask Register
P R E L I M I N A R Y
BITSTYPEDEFAULTFUNCTION
31-16r/w0Not used
15 - 0r/w1Input event mask bits
Note ...
A set bit means that event detection is disabled for the corresponding input port.
Page 4 - 10
Kontron Modular Computers GmbHID 31440, Rev. 01
RevNr. = CP384 - 31440_01 - 060503/144231
Page 57
Table 4-7: Input Event Polarity Register
BITSTYPEDEFAULTFUNCTION
31-16r/w0Not used
15 - 0r/w0Input event polarity bits
Note ...
A bit setting of 0 bit means that an event is detected when the input port
changes from 0 to 1 whereas a setting of 1 means that an event is detected
when the input changes from 1 to 0.
Table 4-8: Input Status Register
BITSTYPEDEFAULTFUNCTION
31r/w0Input latch-on-event status flag
30r/w0Input compare status flag
ConfigurationCP384
15 - 0r/w0Input event status flags
Note ...
A set bit means that an event was detected on the corresponding input port.
Events must be cleared by writing a "1" to the corresponding input event flag.
Otherwise, consecutive events on the same input would no longer be detected.
4.4.5Latching on Input Events
In addition to the standard event detection described above, there is a latch mode extension.
This mode is used in cases where it is necessary to capture the inputs when one of the defined
events occurs.
Table 4-9: Input Latch-on-Event Register
BITSTYPEDEFAULTFUNCTION
31-16r0Not used
15 – 0r0Latch on event, enable bits to activate
Note ...
A set bit means that a detected event on the corresponding input is latched. If
all bits are enabled, all inputs are latched immediately. To switch back from latch
mode into active mode, all detected events and the input latch-on-event status
flag have to be reset by writing a "1" to the corresponding bits in the Input Status
Register.
P R E L I M I N A R Y
RevNr. = CP384 - 31440_01 - 060503/144231
ID 31440, Rev. 01 Kontron Modular Computers GmbH
Page 4 - 11
Page 58
ConfigurationCP384
4.4.6Comparing Input Patterns
In addition to the Event Detection Mode, it is also possible to detect a complete input pattern
automatically. In this mode the input vector is continuously compared with the content of the
Input Pattern Compare Register. In the case of a match a flag is set within the Input Status Register. Single inputs can also be masked out individually in the Input Pattern Mask Register.
Table 4-10: Input Pattern Mask Register
BITSTYPEDEFAULTFUNCTION
31-16r/w0Not used
15 - 0r/w1Input event mask bits
Note ...
A set bit means that the corresponding input is masked out for pattern recognition. There is no special enable for pattern recognition since it is switched off by
default as long as all mask bits are set.
Table 4-11: Input Pattern Compare Register
BITSTYPEDEFAULTFUNCTION
31-16r/w0Not used
15 - 0r/w1Input pattern compare bits
Note ...
This register stores the input compare data. A compare match is reported within
the Input Status Register (Bit 31). To reset a compare match, the status flag
must be reset by writing a "1" to it and also the match condition must cease.
4.4.7Writing Output Data
Table 4-12: Output Data Register
BITSTYPEDEFAULTFUNCTION
P R E L I M I N A R Y
31-8r/w0Reserved
7-0r/w0Data, 8-bit digit
Note ...
Output data is 8 bit; this register is read/write enable.
Page 4 - 12
RevNr. = CP384 - 31440_01 - 060503/144232
Kontron Modular Computers GmbHID 31440, Rev. 01
Page 59
Table 4-13: Output Control Register
BITSTYPEDEFAULTFUNCTION
31-2r/w0Reserved
1r/w0irqen
0r/w1Reset
Note ...
irqen is for enabling of a diagnostic interrupt.
The reset bit should be set to 0 to activate the cluster.
Table 4-14: Output Status Register
BITSTYPEDEFAULTFUNCTION
31r0Fail
30r0Diag
29-0r0Reserved
ConfigurationCP384
Note ...
The Diag status flag is the diagnostic bit from the external voltage supervisor; Fail is the latched Diag status flag.
4.4.8Hardware Debug/Test Registers
These registers are for internal test and debug only. The Common Status Register contains
logic version and PCB version. The Common Debug Register is a read/write register without
any further functionality besides the front panel monitor and control LEDs.
Table 4-15: Hardware Debug Register
BITSTYPEDEFAULTFUNCTION
31-2r/w0Reserved
1r/w0FAIL
0r/w0RUN
Table 4-16: Hardware Status Register
BITSTYPE
31-16r0Reserved
15-8r00Reserved
DEFAULT
*
FUNCTION
P R E L I M I N A R Y
RevNr. = CP384 - 31440_01 - 060503/144232
7-0r01Logic Version
ID 31440, Rev. 01 Kontron Modular Computers GmbH
Page 4 - 13
Page 60
ConfigurationCP384
4.4.9Generating Interrupts
For digital outputs, a detected fail flag set in the register can trigger an interrupt. For digital
inputs, a detected event or in other words any event flag set in the Input Status Register can
trigger an interrupt. Thus, any input can be enabled individually for interrupt generation.
Independent of the interrupt cause, a board interrupt is handled on the hardware level always
in the same way.
After having set the input control registers where compare data and events are defined, interrupts can be enabled individually within the Input IRQ Enable Register. Within the interrupt service routine, interrupts should be handled as follows.
1. Check if the board is the cause of the interrupt (General Interrupt Pending is set).
2. If yes, check the reason for the interrupt by reading the fail flag in the output status register and by reading the digital input status register.
3. Reset the corresponding Flag by writing a "1" to a set status bit (fail) or to the Input Event
Flag.
4. Reset the board’s IRQ by resetting the General Interrupt Pending Bit by writing a "1" to
that status bit.
5. Return from Interrupt.
Note ...
The board will continue issuing an interrupt until all interrupt sources are handled completely and no interrupt condition remains.
Table 4-17: General Interrupt Enable Register
BITSTYPEDEFAULTFUNCTION
31r/w0Board Interrupt Enable
30 - 0r/w0Reserved
Note ...
A set bit means that the board’s interrupt is enabled.
P R E L I M I N A R Y
Table 4-18: General Interrupt Pending Register
BITSTYPEDEFAULTFUNCTION
31r/w0Board Interrupt Pending
29 - 0r/w0Reserved
Page 4 - 14
Note ...
A set bit means that the board’s interrupt is pending. A board interrupt must be
cleared by writing a "1" to the corresponding output irqen event flag.
RevNr. = CP384 - 31440_01 - 060503/144232
Kontron Modular Computers GmbHID 31440, Rev. 01
Page 61
Table 4-19: Output Status Register
BITSTYPEDEFAULTFUNCTION
31r0Fail
30r0Diag
29 - 0r0Reserved
Table 4-20: Input IRQ Register
BITSTYPEDEFAULTFUNCTION
31r/w0Not used
30r/w0Input compare interrupt enable
29 - 0r/w0Input event interrupt enable
ConfigurationCP384
4.4.10Programming the Board Capability ROM
The Board Capability ROM contains all the board data necessary to identify board, version, optional features, etc., and to setup the basic software. The BCR is implemented using a 4 kbit
serial EEPROM of the type Microchip 93LC66.
(The contents list of the BCR is not described here.)
The serial interface of the device has been realized in hardware resulting in a very simple register based programming interface with command, control, status and data registers. All protocol and serial timing specifications are resolved by hardware.
Programming of the BCR is undertaken as follows: The control word is written into the ROM
Control Register including command opcode and internal address. Then optional data (in case
of Write action) is written into the ROM Data Register. Command execution is started by setting
the Startbit in the ROM Command Register. Then Ready/Busy must be polled in the ROM Status Register. After reaching Ready status, the next command can be set up and data (in case
of Read action) can be fetched from the ROM Data Register.
Table 4-21: ROM Command Register
BITSTYPEDEFAULTFUNCTION
31r/w0Startbit
30-0r/w00Reserved
P R E L I M I N A R Y
RevNr. = CP384 - 31440_01 - 060503/144233
Note ...
The Startbit will be automatically reset as soon as an action is completed.
ID 31440, Rev. 01 Kontron Modular Computers GmbH
Page 4 - 15
Page 62
ConfigurationCP384
Table 4-22: ROM Control Register
BITSTYPEDEFAULTFUNCTION
31-19r/w0Reserved
17-16r/w00Opcode
15-8r/w00Reserved
8-0r/w00Internal address (A8 ... A0)
Note ...
The commands READ, EWEN (Write Enable) and WRITE are sufficient for all
purposes.
Table 4-23: Opcodes and Commands
OPCODEA8 ... A0COMMAND
0011xxxxxxxEWEN
10xxxxxxxxxREAD
01xxxxxxxxxWRITE
Note ...
The EWEN (Erase and Write Enable) command must be executed once before
the first write.
Table 4-24: ROM Status Register
BITSTYPEDEFAULTFUNCTION
31r/w0Busy/Ready
30-0r/w00Reserved
P R E L I M I N A R Y
Note ...
As soon as the Startbit is set the Busy/Ready bit becomes active (Busy=1). It
remains set as long as the command is executed and is reset when command
execution is complete.
Table 4-25: ROM Data Register
BITSTYPEDEFAULTFUNCTION
31-8r/w0Reserved
7-0r/w0Data (for data read and write commands)
Page 4 - 16
Kontron Modular Computers GmbHID 31440, Rev. 01
RevNr. = CP384 - 31440_01 - 060503/144233
Page 63
System ConsiderationsCP384
Chapter1
5
System Considerations
RevNr. = CP384 - 31440_01 - 060503/144233
ID 31440, Rev. 01 Kontron Modular Computers GmbH
P R E L I M I N A R Y
Page 5 - 1
Page 64
System ConsiderationsCP384
This page has been intentionally left blank.
P R E L I M I N A R Y
Page 5 - 2
Kontron Modular Computers GmbHID 31440, Rev. 01
RevNr. = CP384 - 31440_01 - 060503/144233
Page 65
System ConsiderationsCP384
5.System Considerations
5.1Introduction
In addition to the basic specification requirements for the CP384 which have been addressed
in chapter 4, system integrators need to be aware of the overall system environment and the
application needs when designing the interfacing to the CP384. The following chapters address
a number of more apparent considerations which should be addressed, but certainly not all of
the possible situations which may be encountered. Many of the considerations presented here
are recommendations, but some are definite requirements if the CP384 is to successfully
achieve its purpose.
5.2General
Care must be taken to ensure that proper grounding concepts are followed, and that the integrity of the grounding system within the application be maintained.
Input wire routing should avoid proximity to high voltage or current sources.
Where possible input wiring length should be kept as short as possible.
5.3Shielding
Input cable shielding in general is recommended.
The requirements for shielding can be seen primarily as a function of the system design and
environment, but empirical results must also be considered.
The CON2 connector has a metal housing which is connected to the CP384 shield and is isolated from the system ground.
Ensure that if shielding is used that it is not in anyway connected to the system ground.
5.4Debouncing for Digital Inputs
On the CP384 it is possible to select from a number of debouncing times, dependant on the
type of switches/sensors in use. For example, when using mechanical switches or relays to
switch the input, bouncing will always occur and therefore debouncing is necessary. A debounce period may be selected from a range of values available, accessible via software in the
register depending on the settle time. Where it is known that an application does not generate
bouncing problems, the debounce period may be set to the default value.
P R E L I M I N A R Y
RevNr. = CP384 - 31440_01 - 060503/144233
ID 31440, Rev. 01 Kontron Modular Computers GmbH
Page 5 - 3
Page 66
System ConsiderationsCP384
Table 5-1: Debouncing Periods
CLOCK DIVIDER
1 (default value - see note below)33 MHz30 ns
2^8128 kHz8 µs
2^1032 kHz32 µs
2^128 kHz128 µs
2^142 kHz0.5 ms
2^160.5 kHz2 ms
2^18125 Hz8 ms
2^2031 Hz32 ms
Note ...
The clock divider default value is 1. In addition to the choice of debouncing filters, there is an analog filter implemented on board with an edge frequency at
10 kHz.
INPUT SAMPLE CLOCK
@ 33 MHz PCI CLK
INPUT SAMPLE PERIOD
@ 33 MHz PCI CLK
5.5Process-Side Signal Conditioning for Digital Inputs
Input signals presented to the CP384 must be within the ranges specified for signals in table 14 or erroneous results will occur as well as possible damage to the CP384.
5.6External Power Supply for Digital Outputs
Voltage sources presented to the CP384 must be within the ranges specified in table 1-5 or
erroneous results will occur as well as possible damage to the CP384.
In addition to the external supply of the input voltage for the relay logic parts which are linked
to the digital outputs, the operational voltages for the outputs must also be supplied externally.
P R E L I M I N A R Y
5.7Cable Interfacing
No modification to the CP384 itself is permitted.
If necessary, cabling to the CP384 CON2 connector should be physically fixed to prevent strain
on the CON2 connector.
Warning!
Each channel has a maximum current of 0.5 A. In situations where many channels are carrying a high current, separate, larger gauge cables for the external
power supply should be used.
Page 5 - 4
RevNr. = CP384 - 31440_01 - 060503/144233
Kontron Modular Computers GmbHID 31440, Rev. 01
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.