User manual

UNO-2050G User Manual 18
32-bit Counter Function Block (CTR32Set=1)
Figure 2.9: 32-bit Counter Function Block
Counter Clock Source
There are two clock sources available for the user counters by setting
counter clock control bits - CTR0CLKSet and CTR1CLKSet.
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.
Table 2.10: Counter Clock Source Control Bit
CTR0CLKSet 0 Internal clock (default)
1 External clock from digital input 6 (DI6) channel
CTR1CLKSet 0 Internal clock (default)
1 External clock from digital input 7 (DI7) channel
Table 2.11: Counter Internal Clock Control Bit
S1 S0 Time Base
0 0 100 KHz (default)
0 1 10 KHz
101 KHz
1 1 100 Hz
DI5
CTR1 Gat e
CTR 1 Gat e Se t
Gat e
Ou t
Cascaded
32-bit
Counter
CL K
CTR 1 Ou t S et
DO7
CTR 1 OUT
DI7
CTR 1 CL KS et
100KHz
10KHz
1KHz
100Hz
S1 S0
CTR 1CL K Set = 0
CTR 1CL K Set = 1
CTR 1 Gat eS et = 0
CTR 1 Gat eS et = 1
CTR1 Ou t S et = 0
Disab le
CTR1 Ou t S et = 1
Out pu t to DO6
CTR1 I n t Set
CTR 1
F
CTR 1Ou t S et = 0
Diable Interrupt
CTR1 Ou t S et = 1
Enable Interrupt
Interrupt Circuit