This PepCard product is carefully designed for a long and fault-free life; nonetheless, its life expectancy can be drastically
reduced by improper treatment during unpacking and installation.
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.
Revision History
Manual/Product TitlePB-TIM2
Publication Number14257
IssueBrief Description of ChangesRev.Date of issue
1First release of Issue 1 manual119th 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 ModularComputers or its authorized agents.
The information in this document is, to the best of our knowledge, entirely correct. However, PEP ModularComputers 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.
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 ModularComputers.
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 PEPModular 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 PEPModular 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.
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
ProductDescriptionOrder Nr.
PB-TIM2Modpack with 3 independently configurable timers possessing 3
optoisolated 24V DC filtered inputs and 1 optoisolated 24V DC,
200mA output per counter.
PB-TIM2Modpack with 3 independently configurable timers possessing 3
optoisolated 12V DC filtered inputs and 1 optoisolated 24V DC,
200mA output per counter.
PB-TIM2Modpack with 3 independently configurable timers possessing 3
optoisolated 5V DC filtered inputs and 1 optoisolated 24V DC,
200mA output per 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 ChannelsTrigger, gate and clear together with a common
clear. All optoisolated and protected against reverse
polarity
Output Channels1 digital output per counter, 24V DC @ 200mA with
inductive load protection, high-side switch
Input Voltage5V, 12V(15V) or 24V
Input Current15mA typically
Switching Level2V, 7.4V or 18.6V respectively
Input FrequencyUp to 300 kHz, embedded filter
Output FrequencyUp to 10 kHz
Isolation Voltages1500V DC I/O to system, 100V DC between inputs
Timer Clock4 MHz (250 ns) derived from 16 MHz System Clk.
DTACK-GenerationOn-board generation
Environment
Operating Temperature0ºC to 70ºC
Extended Temperature-40ºC to +85ºC
Storage Temperature-55ºC to +85ºC
Humidity0 to 95% non-condensing
Piggyback SizeWidth : 48 mm
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
With reference to the single channel block diagram of figure 2.1.0 below, the input line (A) is used as a trigger, input
line (B) functions as a gate that disables the timer when active and the third input (C) may be used as a clear input. An
additional clear input is common to all three timers. The output line acts as either non-zero detection or as a toggle
function on zero detection.
After power-up, all outputs are passive and all registers are cleared including the interrupt registers. Prescalers are set to
divide by one and the counters are disabled. Input (A) operates as a trigger responding to a rising edge signal, input (B)
operates as a gate that enables the counters when a voltage is applied, input (C) is initialized as a timer clear and the
common clear signal is disabled on all three timers.
Under normal operation, the timers are able to be read transparently with continuous comparisons being made between the
current timer value and zero or a preset value. The timer outputs may be activated if the comparison shows a non-zero
value or may be toggled when the timer passes through zero. The timers may be reloaded with a preset value through the
use of the (A) input; timer operation may be blocked by using the (B) or gate input while the counter(s) may be reset
using the local (C) clear input or common clear.
The software allows the prescaler value(s) to be set; enables or clears the timer(s); defines the edge selection on the trigger
input (A) and whether the (B) gate input is edge or level sensitive. In addition, it gives interrupt authorization on
comparison; zero detect; input (A) or (B) and identifies/clears pending interrupts and configures the timer as a ring
counter; sets the counter direction (up or down) and defines when or from which source the timer should be reloaded.
When accessing the board registers, the piggyback will generate a DTACK on each memory location; reading a location
that is not registered in the address map will produce irrelevant data ($FF). Timer and comparator values are 16-bit and
may be accessed as either 3 consecutive bytes or as 2 consecutive words.
Upon initialization, the process should verify the board’s hardware and software IDs.
2.3 Timer Operating Modes
Table 2.3.1 summarizes the timer possibilities indicating the input and output functions, the interrupt possibilities, the
measurement results and the timer modes.
With reference to table 2.3.1, a ‘v’ on its own represents an edge; 1v indicates the first edge and 2v represents the second
edge.
2.3.1 Hardware Single Shot (Retrigerable)
In this mode, the timer always counts down, the pulse duration is stored in the comparator register and the output acts as
zero detection with input (A) used to load/reload the timer with the preset/comparator register.
2.3.2 Hardware Single Shot
This mode is the same as the one described in 2.3.1 above except that the software starts the period directly by writing the
bits ENABLE and LOAD in the Channel Control Register.
2.3.3 TIC Generation
The period is stored in the preload/comparator register and upon zero detection, the timer is reloaded and an event IRQ is
generated (IRQ plus flag).
The timer is cleared by the software which also authorizes counting. When input (B) is valid (level sensitive gate) i.e.
goes high, the timer starts counting until input (B) goes low again at which point an event interrupt is generated (IRQ
plus flag).
2.3.5 Frequency Measurement
The mode is the same as the one described in 2.3.4 above except that input (B) toggles on the rising and falling edges.
2.3.6 Square Wave Generation
The value of half the square wave period is stored in the comparator/preload register with the timer being reloaded and the
output toggling on each zero detection.
2.3.7 PWM Generation
For this mode, two of the three timers are required with each providing one part of the signal. The timer modes need to be
set to single shot with an internal link between the two timers. This procedure is explained in more detail in the section
on programming.
2.3.8 Input Signal Edge Sampling
After a reset, the timer operates in free run mode. At each edge detection on the (A) input, the current timer value is stored
in the counter register and an event interrupt is generated (IRQ and flag).
2.3.9 Event Signal Duration
After a reset, the timer operates in free run mode when the (B) gate input is active. A preset value can be placed in the
preset/comparator register that will react when the gate has been active for a given number of cycles. The counter value
returns the cumulated time of the active input (B) and in the event of an overrun, an external event interrupt can be
generated (IRQ and flag).
The 10 inputs (3 per counter and one common) are all optoisolated from the supply with a rating of 1500V. Isolation
between the inputs is rated at 100V. The inputs (A), (B) and (C) all have separated differential inputs while the common
clear is referenced to V-. The inputs are protected against reverse voltage and sink typically 15mA.
Note
For those customers possessing the PB-TIM2 without optoisolation for improved speed performance,
the TTL inputs need to be inverted to maintain the characteristics laid down in this manual.
The inputs may be configured to cater for different operational voltages and frequency limits.
3.1.1.1 Input Voltage Selection
The following table shows the association between component values and operational voltages.
To reduce the cut-off frequency, larger capacitor values should be used. The values provided in the table are provided as an
example and have been simulated over the full operating temperature range.
3.1.1.3 Input EMI Protection
30 kHz300 kHz *1 MHz
* Default
The design allows for additional enhanced EMI protection by replacing the following components with a suitable SMD
coil.
The three outputs are all optoisolated from the supply with a rating of 1500V. These channels use the common V+ and
V- supply rails and are equipped with an open collector circuitry that is capable of sourcing up to 200mA at a voltage
difference of 24V between the V+ and V- inputs. The outputs are inductive load protected and function correctly within a
voltage range between 5V and 30V.
3.1.3 MODPACK Timing Specifications
DTACK is generated on board and assuming a 16 MHz system clock and 4 MHz timer clock, is generated 5 cycles after
Chip Select and Data Strobes. This condition is valid for both read and write cycles.
Where • CH x :A 1 in this position authorizes interrupts from the corresponding timer
4.2.12 Interrupt Vector
Write Only Register
Address$6D
Bit7
Function V7V6V5V4V3V2IS1IS0
After Reset 000000xx
6543210
6543210
Where • V2-V7 :Programmable interrupt vector bits
Upon receipt of an INTACK signal, the interrupt vector register is placed on the data bus
• IS0 & IS1 :Shows the interrupt source as in the following table
IS1IS0Interrupt Source
01Channel 0
10Channel 1
11Channel 2
If an interrupt is generated, a vector is placed on the data bus during the INTACK signal. The upper 6 bits of this vector
are user definable while the two lower bits define the interrupt source. Pending interrupts are latched in a corresponding
register and an interrupt may be cleared by writing a bit in the Interrupt Clear Register. In the event that several
interrupts have been generated, the signals will remain active until all have been serviced.
Where • WDATA :This contains the bit that has to be written to the EEPROM
• CS :The status of the EEPROM chip select (0 = disabled, 1 = enabled)
• CLK :Value of the SPI clock pin to access the EEPROM
Data is written to the EEPROM at one bit at a time and only then when the EEPROM is chip selected. This serial bit
transfer is clocked with the SPI clock.
4.2.14 Read EEPROM Access Register
Read Only Register
Address$7E
Bitb7
After Reset xxxx xxx0
b6b5b4b3CLKCSWDATA
b6b5b4b3CLKCSRDATA
Where • RDATA :This shows the current value of the SPIDI (SPI data input)
4.2.15 Software ID Byte
Read Only Register
Address$79
Bitb7
After Reset00000001
The value is $01 and allows identification of the FPGA program version. Changes in the FPGA program will be
reflected in this ID byte such that the software can automatically adjust.
The PB-TIM2 has three sets of connectors. ST100 with 15 pins is the left-most with reference to the diagram below,
ST101 sits to the right with 30 pins and ST102 with 26 pins is on the far right.
The ST100 connector fits the BU0A or BU0B sockets on the IMOD or VMOD-2 range of PEP MODPACK carrier
boards. The table shown below shows the signals related to this connector.
The ST101 connector fits the BU1A or BU1B sockets on the IMOD or VMOD-2 range of PEP MODPACK carrier
boards. The table shown below shows the signals related to this connector.
The ST102 connector fits the BU2A or BU2B sockets on the IMOD or VMOD-2 range of PEP MODPACK carrier
boards. The table shown below shows the signals related to this connector.
An optional 50-way header behind the front-panel connector has an identical pin-out to the front-panel connector. It is
provided for applications where the flat-band cable is to be routed internally or where an alternative front panel is to be
fitted and used. In some cases, cables can be routed through the systems interior i.e. To the back panel (from this
optional connector) and some from the external connector on the front-panel. In doing so, take care not to exceed the fanout ability of the piggyback’s driver circuits.
Note
With systems that have more than one of this type of connector or which use several VMOD-2 or
IMODs with various piggybacks, it is advisable to put a drop of paint on the back of the mating
connector and on the front panel of the VMOD-2 or IMOD to indicate connections. The connector
splits virtually in half (pins 1 to 24 and 27 to 50) for connection to the piggybacks B and A
respectively. For more information on the VMOD-2/IMOD series of PEP MODPACK carrier boards,
refer to the relevant manual.