Kontron PB-TIM2 User Manual

PB-TIM2 User’s Manual Preface
PB-TIM2
General Purpose 16+8 bit
Timer Piggyback
Order No. 14257
User’s Manual
Issue 1 Preliminary
Unpacking and Special Handling Instructions
Observe standard anti-static precautions when changing piggybacks, 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 plastics or sponges. These can cause shorts and damage to the batteries or tracks on the board.
When installing the board, switch off the power mains to the chassis. Do not disconnect the mains as the ground connection prevents the chassis from static voltages, which can damage the board as it is inserted.
Furthermore, do not exceed the specified operational temperature ranges of the board version ordered. If batteries are present, their temperature restrictions must be taken into account.
Keep all the original packaging material for future storage or warranty shipments. If it is necessary to store or ship the board, re-pack it as it was originally packed.
July 30, 1997 © 1996 PEP Modular Computer Page 0-1
Preface PB-TIM2 User’s Manual
R EVISION HISTORY
Revision History Manual/Product Title PB-TIM2 Publication Number 14257
Issue Brief Description of Changes Rev. Date of issue
1 First release of Issue 1 manual 1 19th Mar. 1996
Date of issue = the release date of the issue. This date does not necessarily reflect the date the improvements were first made.
This document contains proprietary information of PEP Modular Computers. It may not be copied or transmitted by any means, passed to others, or stored in any retrieval system or media, without the prior consent of PEP Modular Computers or its authorized agents.
The information in this document is, to the best of our knowledge, entirely correct. However, PEP Modular Computers cannot accept liability for any inaccuracies, or the consequences thereof, nor for any liability arising from the use or application of any circuit, product, or example shown in this document.
PEP Modular Computers reserve the right to change, modify, or improve this document or the product described herein, as seen fit by PEP Modular Computers without further notice.
Page 0-2 © 1996 PEP Modular Computers July 30, 1997
PB-TIM2 User’s Manual Preface
r
f
PEP Modular Computers® Two Year Limited Warranty
We grant the original purchaser of PEP products the following hardware warranty. No other warranties that may be granted o 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 defects in workmanship and materials for a period of 24 consecutive months from the date of purchase. This warranty is not transferable nor extendible to cover any other consumers or long term storage of the product.
This warranty does not cover products which have been modified, altered, or repaired by any other party than PEP Modular Computers or their authorized agents. Furthermore, any product which has been, or is suspected of being damaged as a result of negligence, misuse, incorrect handling, servicing or maintenance; or has been damaged as a result of excessive current/voltage or temperature; or has had its serial number(s), any other markings, or parts thereof altered, defaced, or removed will also be excluded from this warranty.
A customer who has not excluded his eligibility for this warranty may, in the event of any claim, return the product at the earliest possible convenience, together with a copy of the original proof of purchase, a full description of the application it is used on, and a description of the defect; to the original place of purchase. Pack the product in such a way as to ensure safe transportation (we recommend the original packing materials), whereby PEP undertakes to repair or replace any part, assembly
or sub-assembly at our discretion; or, to refund the original cost of purchase, if appropriate.
In the event of repair, refund, 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 o goodwill, and will be defined in the "Repair Report" returned from PEP with the repaired or replaced item.
Other than the repair, replacement, or refund specified above, PEP Modular Computers will not accept any liability for any further claims which result directly or indirectly from any warranty claim. We specifically exclude any claim 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. The extent of PEP Modular Computers liability to the customer shall not be greater than the original purchase price of the item for which any claim exists.
PEP Modular Computers makes no warranty or representation, either express or implied, with respect to its products, reliability, fitness, quality, marketability or ability to fulfill 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 the purchaser's.
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 we were advised of the possibility of such claims prior to the purchase of, or during any period since the purchase of the product.
Please remember that no PEP Modular Computers employee, dealer, or agent are authorized to make any modification or addition to the above terms, either verbally or in any other form written or electronically transmitted, without consent.
July 30, 1997 © 1996 PEP Modular Computer Page 0-3
Preface PB-TIM2 User’s Manual
TABLE OF CONTENTS
Chapter/Section/Sub-section Page
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1
1.1 Product Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1
1.2 Ordering Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1
1.3 Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2
1.4 Board Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3
1.5 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3
2. Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1
2.1 Normal Timer Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2
2.2 Board Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3
2.3 Timer Operating Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3
2.3.1 Hardware Single Shot (Retrigerable) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4
2.3.2 Hardware Single Shot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4
2.3.3 TIC Generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4
2.3.4 Period Measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5
2.3.5 Frequency Measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5
2.3.6 Square Wave Generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5
2.3.7 PWM Generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5
2.3.8 Input Signal Edge Sampling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5
2.3.9 Event Signal Duration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5
3. Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1
3.1 Board Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1
3.1.1 Input Electrical Specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2
3.1.1.1 Input Voltage Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2
3.1.1.2 Input Frequency Response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3
3.1.1.3 Input EMI Protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3
3.1.2 Output Electrical Specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 -4
3.1.3 MODPACK Timing Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4
4. Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1
4.1 VMEbus Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1
4.1.1 PB-TIM2 Address Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1
4.2 Register Allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2
4.2.1 Channel Control Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2
4.2.2 Channel Mode Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2
4.2.3 Channel Interrupt Pending Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-3
4.2.4 Channel Interrupt Clear Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4- 4
4.2.5 Channel Interrupt Authorization Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-4
4.2.6 Prescaler Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-4
4.2.7 Counter Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-5
4.2.8 Comparator Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-5
4.2.9 Common Control Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-6
4.2.10 Common Interrupt Pending Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-6
4.2.11 Common Interrupt Authorization Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-7
4.2.12 Interrupt Vector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-7
4.2.13 Write EEPROM Access Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-8
4.2.14 Read EEPROM Access Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-8
4.2.15 Software ID Byte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-8
4.2.16 Hardware ID Byte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-9
Page 0-4 © 1996 PEP Modular Computers July 30, 1997
PB-TIM2 User’s Manual Preface
5. Pinouts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1
5.1 Main Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1
5.1.1 ST100 Connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2
5.1.2 ST101 Connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2
5.1.3 ST102 Connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-3
5.1.4 ST102 VMOD-2(D)/IMOD Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-4
July 30, 1997 © 1996 PEP Modular Computer Page 0-5
Preface PB-TIM2 User’s Manual
This page has been left blank intentionally.
Page 0-6 © 1996 PEP Modular Computers July 30, 1997
PB-TIM2 User’s Manual Chapter 1 Introduction
1
1. INTRODUCTION
1.1 Product Overview
The PB-TIN2 is an optoisolated, general purpose timer piggyback for the VMOD-2 and CXM-IMOD range of PEP boards. Three independent timers with 16+8 bit resolution and possessing 9 modes of operation are galvanically isolated from the process. Three inputs and an output per counter may be software configured.
1.2 Ordering Information
Product Description Order Nr.
PB-TIM2 Modpack with 3 independently configurable timers possessing 3
optoisolated 24V DC filtered inputs and 1 optoisolated 24V DC, 200mA output per counter.
PB-TIM2 Modpack with 3 independently configurable timers possessing 3
optoisolated 12V DC filtered inputs and 1 optoisolated 24V DC, 200mA output per counter.
PB-TIM2 Modpack with 3 independently configurable timers possessing 3
optoisolated 5V DC filtered inputs and 1 optoisolated 24V DC, 200mA output per counter.
13745
13746
13747
July 30, 1997 © 1996 PEP Modular Computers Page 1-1
Chapter 1 Introduction PB-TIM2 User’s Manual
1.3 Specifications
Timer 16-bit up/down synchronous counter
16-bit preset register 16-bit comparator 16-bit zero detection 16-bit last value latch 8-bit prescaler 1-bit toggle register
Input Channels Trigger, gate and clear together with a common
clear. All optoisolated and protected against reverse polarity
Output Channels 1 digital output per counter, 24V DC @ 200mA with
inductive load protection, high-side switch Input Voltage 5V, 12V(15V) or 24V Input Current 15mA typically Switching Level 2V, 7.4V or 18.6V respectively Input Frequency Up to 300 kHz, embedded filter Output Frequency Up to 10 kHz Isolation Voltages 1500V DC I/O to system, 100V DC between inputs
Timer Clock 4 MHz (250 ns) derived from 16 MHz System Clk. DTACK-Generation On-board generation Environment Operating Temperature 0ºC to 70ºC Extended Temperature -40ºC to +85ºC Storage Temperature -55ºC to +85ºC Humidity 0 to 95% non-condensing Piggyback Size Width : 48 mm
Length : 102 mm
Depth : 10 mm Modpack Interface 16-Bit data bus
Page 1-2 © 1996 PEP Modular Computers July 30, 1997
PB-TIM2 User’s Manual Chapter 1 Introduction
1.4 Board Overview
ROM
Optoisolation
Stage
FPGA
1.5 Features
• 3 independent timers
• 16 bit resolution
• 8-bit prescaler
• 9 different modes
• 3 inputs per timer, software defined
• 1 output per timer, software defined
• common clear, software defined
• 1 EEPROM (2 kbit) for software driver / parameter backup (for future use)
• inputs with optoisolation, RC filters and configurable thresholds
• input frequency up to 300 kHz
• outputs with optoisolation and open collector source circuitry (high-side switch)
• output frequency up to 10 kHz
• board ID: $E1
• software ID: $01
• full interrupt handling
July 30, 1997 © 1996 PEP Modular Computers Page 1-3
Chapter 1 Introduction PB-TIM2 User’s Manual
This page has been left blank intentionally.
Page 1-4 © 1996 PEP Modular Computers July 30, 1997
PB-TIM2 User’s Manual Chapter 2 Functional Description
2
2. FUNCTIONAL DESCRIPTION
In timer mode, the PB-TIM2 requires that input (A) be used as a trigger, input (B) as a gate and input (C) as a clear. The block diagram of the piggyback is provided in figure 2.0.1.
Figure 2.0.1 Block diagram of the PB-TIM2 piggyback
VMOD-ST VMOD-STFPGA
Control
ISYSCLK ISYSRES IIR/W IDS0 IDS1 CS INTA IA1..IA7 UDTACK INT ID0..ID15
Address
Data
Decoding
and
Timing
Logic
ID
SW
Board
ID
IRQ
Vector
Control
Logic
and
Status
Channel
1
Channel
2
Channel
3
RC +
Schmitt
RC +
Schmitt
OPTO
OPTO
OPTO
OPTO
A, B, C Inputs
Output
A, B, C Inputs
Output
Serial
Decoder
Configuration
PROMEEPROM
RC +
Schmitt
RC +
Schmitt
OPTO
OPTO
OPTO
A, B, C Inputs
Output
Common Clear
July 30, 1997 © 1996 PEP Modular Computers Page 2-1
+ 25 hidden pages