PEP CP381 User manual

CP381
30 Channel CompactPCI
Digital Input Controller
Manual ID: 24107, Rev. Index 01
February 2002
The product described in this manual is
in compliance with all applied CE stan-
dards.

Preface CP381
Page ii © 2002 PEP Modular Computers GmbH ID 24107, Rev. 01
Revision History
Imprint
Copyright © 2002 PEP Modular Computers GmbH. All rights
reserved. This manual may not be copied, photocopied,
reproduced, translated or converted to any electronic or machine-
readable form in whole or in part without prior written approval of
PEP Modular Computers GmbH.
This manual was realized by: TPD/Engineering, PEP Modular Computers GmbH.
Manual/Product Title: CP381
Manual ID Number: 24107
Rev.
Index Brief Description of Changes Board Index Date of
Issue
01 Initial Issue 00 Feb. 2002
DISCLAIMER:
PEP Modular Computers GmbH rejects any liability for the correctness
and completeness of this manual as well as its suitability for any partic-
ular purpose.

CP381 Preface
ID 24107, Rev. 01 © 2002 PEP Modular Computers GmbH Page iii
Table of Contents
Revision History ........................................................................................................ ii
Imprint ....................................................................................................................... ii
Table of Contents ..................................................................................................... iii
List of Figures ......................................................................................................... vii
List of Tables ............................................................................................................ ix
Proprietary Note ....................................................................................................... xi
Trademarks .............................................................................................................. xi
Environmental Protection Statement ....................................................................... xi
Explanation of Symbols .......................................................................................... xii
For Your Safety ...................................................................................................... xiii
High Voltage Safety Instructions ........................................................................ xiii
Special Handling and Unpacking Instructions ................................................... xiii
General Instructions on Usage .............................................................................. xiv
Two Year Warranty ................................................................................................. xv
Chapter 1
1. Introduction ................................................................................................. 1 - 3
1.1 System Overview .................................................................................. 1 - 3
1.2 Product Overview .................................................................................. 1 - 4
1.3 Board Overview ..................................................................................... 1 - 5
1.3.1 Board Introduction ........................................................................ 1 - 5
1.3.2 Board Specific Information ............................................................ 1 - 5
1.4 System Relevant Information ................................................................ 1 - 6
1.4.1 System Configuration ................................................................... 1 - 6
1.4.2 Driver Software ............................................................................. 1 - 6
1.5 Board Diagrams .................................................................................... 1 - 7
1.5.1 System Level Interfacing .............................................................. 1 - 7
1.5.2 Front Panel ................................................................................... 1 - 8
1.5.3 Board Layout ................................................................................ 1 - 8
1.6 Technical Specifications ...................................................................... 1 - 9
1.7 Applied Standards ............................................................................... 1 - 10
1.8 Related Publications ........................................................................... 1 - 10

Preface CP381
Page iv © 2002 PEP Modular Computers GmbH ID 24107, Rev. 01
Chapter 2
2. Functional Description ................................................................................ 2 - 3
2.1 General Information ............................................................................... 2 - 3
2.1.1 Signal Conditioning ....................................................................... 2 - 3
2.1.2 DI ProComm Controller ................................................................. 2 - 3
2.1.3 System Interfaces ......................................................................... 2 - 4
2.1.4 Monitor and Control ....................................................................... 2 - 4
2.1.5 Software ........................................................................................ 2 - 4
2.2 Board Level Interfacing Diagram ........................................................... 2 - 5
2.3 System Interfaces .................................................................................. 2 - 6
2.3.1 Digital Input Interface .................................................................... 2 - 6
2.3.2 CompactPCI Interface and Pinout ................................................. 2 - 8
2.3.3 Test and Program Development ................................................... 2 - 9
2.3.3.1 JTAG/ISP Interface and Pinout ................................................. 2 - 9
2.4 CapROM EEPROM ............................................................................... 2 - 9
2.5 Monitor and Control (M/C) ................................................................... 2 - 10
2.5.1 Pre-Operation M/C ...................................................................... 2 - 10
2.5.2 Operation M/C ............................................................................ 2 - 10
Chapter 3
3. Installation ................................................................................................... 3 - 3
3.1 Hardware Installation ............................................................................. 3 - 3
3.1.1 Safety Requirements ..................................................................... 3 - 3
3.1.2 Installation Procedures .................................................................. 3 - 4
3.1.3 Removal Procedures ..................................................................... 3 - 5
3.2 Software Installation .............................................................................. 3 - 5

CP381 Preface
ID 24107, Rev. 01 © 2002 PEP Modular Computers GmbH Page v
Chapter 4
4. Configuration .............................................................................................. 4 - 3
4.1 Jumper Settings .................................................................................... 4 - 3
4.2 Digital Input Signal Requirements. ........................................................ 4 - 3
4.2.1 Channels ....................................................................................... 4 - 3
4.2.2 Signal Characteristics ................................................................... 4 - 3
4.2.3 Channel Configuration .................................................................. 4 - 4
4.3 Programming Interface .......................................................................... 4 - 6
4.3.1 Access Control Logic (Address Decoder) ..................................... 4 - 6
4.3.2 Reading Input Data ....................................................................... 4 - 7
4.3.3 Debouncing Inputs ........................................................................ 4 - 8
4.3.4 Detecting Input Events .................................................................. 4 - 9
4.3.5 Latching on Input Events ............................................................ 4 - 10
4.3.6 Comparing Input Patterns ........................................................... 4 - 10
4.3.7 Hardware Debug/Test Registers ................................................ 4 - 11
4.3.8 Generating Interrupts .................................................................. 4 - 12
4.3.9 Programming the Board Capability ROM ................................... 4 - 13
Chapter 5
5. System Considerations ............................................................................... 5 - 3
5.1 Introduction ........................................................................................... 5 - 3
5.2 General ................................................................................................. 5 - 3
5.3 Shielding ............................................................................................... 5 - 3
5.4 Debouncing ........................................................................................... 5 - 4
5.5 Process-side Signal Conditioning ......................................................... 5 - 4
5.6 Cable Interfacing ................................................................................... 5 - 4

Preface CP381
This page was intentionally left blank.
Page vi © 2002 PEP Modular Computers GmbH ID 24107, Rev. 01

CP381 Preface
ID 24107, Rev. 01 © 2002 PEP Modular Computers GmbH Page vii
List of Figures
1-1 CP381 System Level Interfacing Diagram ............................................... 1 - 7
1-2 CP381 Front Panel .................................................................................. 1 - 8
1-3 CP381 Board (Front View) ....................................................................... 1 - 8
2-1 CP381 Board Level Interfacing ................................................................ 2 - 5
2-2 Pin Layout of the Digital Input Interface Connector CON2 ..................... 2 - 6
2-3 CPCI Connector CON1 (J1) ..................................................................... 2 - 8
2-4 JTAG Connector (CON3) ......................................................................... 2 - 9
4-1 Voltage Ranges ........................................................................................ 4 - 3
4-2 Input Configuration (Example for Channel 0) ........................................... 4 - 4
4-3 Configuration Diagram for All Channels ................................................... 4 - 4
4-4 Configuration Diagram for All Channels ................................................... 4 - 5

Preface CP381
This page was intentionally left blank.
Page viii © 2002 PEP Modular Computers GmbH ID 24107, Rev. 01

CP381 Preface
ID 24107, Rev. 01 © 2002 PEP Modular Computers GmbH Page ix
List of Tables
1-1 CP381 Product Overview ......................................................................... 1 - 4
1-2 System Relevant Information ................................................................... 1 - 6
1-3 CP381 Main Specifications ...................................................................... 1 - 9
1-5 Applied Standards .................................................................................. 1 - 10
1-6 Related Publications .............................................................................. 1 - 10
1-4 CP381 Analog Input Specifications ........................................................ 1 - 10
2-1 Pinout of the Digital Input Interface Connector CON2 ............................. 2 - 7
2-2 CompactPCI Connector CON1 (J1) ......................................................... 2 - 8
2-3 JTAG Connector (CON3) Pinout .............................................................. 2 - 9
2-4 System Status Indicators ....................................................................... 2 - 10
2-5 Function Modes of the CP381 ............................................................... 2 - 10
4-1 Backend Register Address Map .............................................................. 4 - 6
4-2 Input Data Register Bit Map ..................................................................... 4 - 7
4-3 Transparent Input Data Register Bit Map ................................................ 4 - 7
4-4 Input Control Register .............................................................................. 4 - 8
4-5 Programmable Input Sample Rates ......................................................... 4 - 8
4-6 Input Event Mask Register, Bit Map ......................................................... 4 - 9
4-7 Input Event Polarity Register, Bit Map ..................................................... 4 - 9
4-8 Input Status Register, Bit Map ................................................................. 4 - 9
4-9 Input Latch-on-Event Register, Bit Map ................................................. 4 - 10
4-10 Input Pattern Mask Register, Bit Map .................................................... 4 - 10
4-11 Input Pattern Compare Register, Bit Map .............................................. 4 - 10
4-12 Hardware Debug Register Bit Map ........................................................ 4 - 11
4-13 Hardware Status Register Bit Map ......................................................... 4 - 11
4-14 General Interrupt Enable Register, Bit Map ........................................... 4 - 12
4-15 General Interrupt Pending Register, Bit Map ......................................... 4 - 12
4-16 Input IRQ Enable Register, Bit Map ....................................................... 4 - 12
4-17 ROM Command Register Bit Map ......................................................... 4 - 13
4-18 ROM Control Register Bit Map .............................................................. 4 - 13
4-19 Opcodes and Commands ...................................................................... 4 - 14
4-20 ROM Status Register Bit Map ................................................................ 4 - 14
4-21 ROM Data Register Bit Map .................................................................. 4 - 14

Preface CP381
This page was intentionally left blank.
Page x © 2002 PEP Modular Computers GmbH ID 24107, Rev. 01

CP381 Preface
ID 24107, Rev. 01 © 2002 PEP Modular Computers GmbH Page xi
Proprietary Note
This document contains information proprietary to PEP Modular Computers. It may not be cop-
ied or transmitted by any means, disclosed to others, or stored in any retrieval system or media
without the prior written consent of PEP Modular Computers GmbH or one of its authorized
agents.
The information contained in this document is, to the best of our knowledge, entirely correct.
However, PEP Modular Computers cannot accept liability for any inaccuracies or the conse-
quences thereof, or for any liability arising from the use or application of any circuit, product, or
example shown in this document.
PEP Modular Computers reserves the right to change, modify, or improve this document or the
product described herein, as seen fit by PEP Modular Computers without further notice.
Trademarks
PEP Modular Computers, the PEP logo and, if occurring in this manual, “CXM” are trade marks
owned by PEP Modular Computers GmbH, Kaufbeuren (Germany). In addition, this document
may include names, company logos, and trademarks which are registered trademarks and are,
therefore, proprietary to their respective owners.
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.

Preface CP381
Page xii © 2002 PEP Modular Computers GmbH ID 24107, Rev. 01
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 pre-
cautions 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 compo-
nents 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
through carefully for his or her own advantage.

CP381 Preface
ID 24107, Rev. 01 © 2002 PEP Modular Computers GmbH Page xiii
For Your Safety
Your new PEP 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 PEP product, you are requested to conform with the fol-
lowing guidelines.
High Voltage Safety Instructions
Special Handling and Unpacking Instructions
Do not handle this product out of its protective enclosure while it is not used for operational
purposes unless it is otherwise protected.
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 piggy-
backs, ROM devices, jumper settings etc. If the product contains batteries for RTC or memory
back-up, ensure that the board is not placed on conductive surfaces, including anti-static plas-
tics or sponges. They can cause short circuits and damage the batteries or conductive circuits
on the board.
Warning!
All operations on this device must be carried out by sufficiently skilled
personnel only.
Caution, Electric Shock!
Before installing your new PEP product into a system always ensure
that your mains power is switched off. This applies also to the instal-
lation 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.
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.

Preface CP381
Page xiv © 2002 PEP Modular Computers GmbH ID 24107, Rev. 01
General Instructions on Usage
In order to maintain PEP’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 PEP Modular
Computers and described in this manual or received from PEP 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 techni-
cal 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 in-
structions supplied by the present manual.
Keep all the original packaging material for future storage or warranty shipments. If it is neces-
sary 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.

CP381 Preface
ID 24107, Rev. 01 © 2002 PEP Modular Computers GmbH Page xv
Two Year Warranty
PEP Modular Computers grants the original purchaser of PEP products a TWO YEAR LIMITED
HARDWARE WARRANTY as described in the following. However, no other warranties that may be
granted or implied by anyone on behalf of PEP are valid unless the consumer has the express
written consent of PEP Modular Computers.
PEP Modular Computers warrants their own products, excluding software, to be free from man-
ufacturing and material defects for a period of 24 consecutive months from the date of pur-
chase. This warranty is not transferable nor extendible to cover any other users or long-term
storage of the product. It does not cover products which have been modified, altered or re-
paired by any other party than PEP Modular Computers or their authorized agents. Further-
more, any product which has been, oris 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 partsthereof altered, defaced or removedwill also be excluded from this war-
ranty.
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, togeth-
er 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).
PEP provides for repair or replacement of any part, assembly or sub-assembly at their own dis-
cretion, 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 PEP
Modular Computers, 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 PEP with the repaired or replaced item.
PEP Modular Computers will not accept liability for any further claims resulting directly or indi-
rectly 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 em-
ployed, or any loss incurred as a result of the product not functioning at any given time, are
excluded. The extent of PEP Modular Computers liability to the customer shall not exceed the
original purchase price of the item for which the claim exists.
PEP Modular Computers 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. Asa result, the products aresold“as is,” andthe responsibilityto ensure
their suitability for any given task remains that of the purchaser. In no event will PEP be liable
for direct, indirect or consequential damages resulting from the use of our hardware or software
products, or documentation, even if PEP 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.
Please remember that no PEP Modular Computers 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.

Preface CP381
This page was intentionally left blank.
Page xvi © 2002 PEP Modular Computers GmbH ID 24107, Rev. 01

Introduction
Chapter 1
ID 24107, Rev. 01 © 2002 PEP Modular Computers GmbH Page 1 - 1
CP381 Introduction

Introduction CP381
This page was intentionally left blank.
Page 1 - 2 © 2002 PEP Modular Computers GmbH ID 24107, Rev. 01

CP381 Introduction
ID 24107, Rev. 01 © 2002 PEP Modular Computers GmbH Page 1 - 3
1. Introduction
1.1 System Overview
The CompactPCI board described in this manual operates with the PCI bus architecture to sup-
port 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 informa-
tion regarding these standards and their use, visit the homepageof the PCI Industrial Computer
Manufacturers Group (PICMG).
Many system relevant CompactPCI features that are specific to PEP Modular Computers Com-
pactPCI systems may be found described in the PEP CompactPCI System Manual. Please re-
fer 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 infor-
mation, warranty conditions, standard connector pinouts etc.
• All the information necessary to combine PEP’s racks, boards, backplanes,power supply
units and peripheral devices in a customized CompactPCI system, as well as configura-
tion examples.
• Data on rack dimensions and configurations as well as information on mechanical and
electrical rack characteristics.
• Information on the distinctive features of PEP CompactPCI boards, such as functionality,
hot swap capability. In addition, an overview is given for all existing PEP CompactPCI
boards with links to the relating data sheets.
• Generic information on the PEP CompactPCI backplanes, such as the slot assignment,
PCB form factor, distinctive features, clocks, power supply connectors and signalling en-
vironment, as well as an overview of the PEP CompactPCI standard backplane family.
• Generic information on the PEP CompactPCI power supply units, such as the input/out-
put characteristics, redundant operation and distinctive features, as well as an overview
of the PEP CompactPCI standard power supply unit family.

Introduction CP381
Page 1 - 4 © 2002 PEP Modular Computers GmbH ID 24107, Rev. 01
1.2 Product Overview
The CP381 Digital Input controller is part of a comprehensive concept whose goal is to provide
CompactPCI system integrators with a complete range of CompactPCI I/O products which in-
clude the functions of analog input, analog output, digital input and digital output implemented
on separate individual boards. This concept ensures the maximum degree of system design
flexibility thus allowing for the efficient and effective usage of available resources.
The CP381 is a 3U/4HP CompactPCI board which provides 30 digital input channels and has
some useful optional features (such as debouncing, input event detection, input capture and-
compare).
The basic functions of this board are to provide interfacing to the application (process), perform
D/D signal conversion, and to make the raw digitized data available for further processing.
The major components involved in these processes are the front end (process side) Signal
Conditioning and the Digital Input Process and Communications (DIProcomm) Controller which
is realized within a Field-Programmable Gate Array ( FPGA). The DI ProComm controller is de-
signed to provide effective and efficient control of digital input signal conditioning as well as in-
terfacing with the CPCI system controller.
The following table provides a quick overview of the CP381 board.
Table 1-1: CP381 Product Overview
CP381 FEATURES DESCRIPTION
Digital Input Board CompactPCI: 3U, 4HP
33 MHz system clock
32-bit address and data bus
Designed for Plug&Play
Complies with the CPCI specification
Input Signals Voltage range: low: -3V to +5V
high: +11V to + 30 V (+24V standard)
Maximum current: 5 mA
Output Data A maximum of 30 measured digital values
Interrupt messages (optional)
Programmable registers (writeable compare, event and latch registers)
Debouncing Range of settings available: 33 MHz, 128 kHz, 32 kHz, 8 kHz, 2 kHz, 500 Hz, 125
Hz, 31 Hz (30ns default)
Monitor and Control Two green LED’s: RUN and HIT
DI ProComm controller
System Master driver software
Table of contents
Other PEP I/O System manuals