Parameterising 2/4xcounter module
2 × 32 bit counter with GATE and RES level-triggered (mode 12 and 13)
12
Parameter setting
12.4
12.4.7
l
12.4-16
EDSPM-TXXX-3.0-04/2004
12.4.7 2 × 32 bit counter with GATE and RES level-triggered (mode 12 and 13)
epm-t082
Fig. 12.4-23 Terminal assignment of the 2/4xcounter in the modes 12 and 13
In the modes 12 and 13, 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 haveing different counting directions:
Mode 12: Upcounter.
Mode 13: Downcounter
If a HIGH level is applied to input IN3 / IN6 (GATE), the counter is incremented or
decremented by 1 with each LOW/HIGH edge.
During the counting process, a LOW level must be applied to input IN1 / IN4 (RES).
A HIGH level deletes the counter.
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
GATE/CLK signal
RES signal
OUT signal