Functions of the board
APCI-3xxx
40
Allocation to counters/timers/triggers:
As option a part of the TTL I/O can be used for counter, timer and trigger
(see table below)
Table 8-2: TTL inputs and outputs
Channel
Description
0 (output)
Timer 0 / Counter 0
1 (output)
Timer 1 / Counter 1
2 (output)
Timer 2 / Counter 2
8 (input)
Counter 0 / Trigger for analog acquisition
9 (input)
Counter 1
10 (input)
Counter 2
8.5
Timer
The 16-bit timer is a downwards counter that can generate after the reload
value (timeout) an interrupt. With the timer a time base is provided
independent from the PC clock, with which for example operations can be
synchronized.
The status of the counter value and of the reload value as well as the status
and interrupt register can be read back through software.
The operation states can be read back. As time bases for the timer three
different clock signals (
μ
s, ms, s) can be used.
8.6
Counter
On the
APCI-3xxx
3 x 16-bit counter inputs are available. Each of these
counters can be programmed through software.
The counter inputs are called by the channels 0 to 2. If the counter function
is not used, the channels are available as standard digital inputs.
Each counter has the following characteristics:
-
2 counting modes: The counter is programmed as upwards or downwards
counter.
-
After reaching the reload value or when the counter ran off, an interrupt
can be generated.
-
Reload value: 16-bit
-
Clock: The counter counts at positive or negative edge or with each edge.