Parameterising 2/4xcounter module
2 × 32 bit counter with GATE and RES edge-triggered (mode 31 and 32)
12
Parameter setting
12.4
12.4.16
l
12.4-45
EDSPM-TXXX-3.0-04/2004
12.4.16 2 × 32 bit counter with GATE and RES edge-triggered (mode 31 and 32)
epm-t154
Fig. 12.4-62 Terminal assignment of the 2/4xcounter in the modes 31 and 32
In the modes 31 to 32, two 32-bit counters are available, which are controlled via
a gate signal (gate). A starting value and a comparison value can be assigned to
each counter.
The modules differ in having different counting directions:
Mode 31: Upcounter.
Mode 32: Downcounter
A LOW/HIGH edge at input IN1 / IN04 (RES
) clears the counter.
If a HIGH level is applied to input IN3 / IN6 (GATE), the counter is incremented or
decremented by 1 with each LOW/HIGH edge.
Once the counter reaches the value loaded in the ”Compare” register, output
OUT0 / OUT1 is set to HIGH level for at least 100 ms, with the counter continuing
its task.
Terminal assignment
RES signal
GATE/CLK signal
OUT signal