User manual
33 Chapter 2
2.12.5 Counter Clock Source
There are two clock sources available
for the user counters by
setting
counter clock control bits -
CTR0CLKSet and CTR1CLKSet.
2.12.6 Counter Internal Clock
There are four
frequency
options to choose
according to applications, and
it’s set by internal
clock control
bits - S0
and S1.
2.12.7
Counter Gate Source
The gate
sources you select determine what
kind of gate input signal
to
enable your counter/timer when receiving
clock input. There are two
gate
sources available for the
user counters by setting gate
source control bits -
CTR0GateSet and CTR1GateSet.
Table 2.20: Counter Clock Source Control Bit
CTR0CLKSet 0 Internal clock (default)
1 External clock from digital input 1 (DI1) channel
CTR1CLKSet 0 Internal clock (default)
1 External clock from digital input 3 (DI3) channel
Table 2.21: Counter Internal Clock Control Bit
S1 S0 Time base
0 0 100 KHz (default)
0 1 10 KHz
1 0 1 KHz
1 1 100 Hz
Table 2.22: Counter Gate Source Control Bit
CTR0GateSet 0 Gate source from “CTR0Gate” control bit (Default)
1 Gate source from digital input 0 (DI0) channel
CTR1GateSet 0 Gate source from “CTR1Gate” control bit (Default)
1 Gate source from digital input 2 (DI2) channel










