UNO-2050E 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
1
0
1 KHz
1
1
100 Hz
DI5
CTR1Gate
CTR1GateSet
Gate
Out
Cascaded
32-bit
Counter
CLK
CTR1OutSet
DO7
CTR1OUT
DI7
CTR1CLKSet
100KHz
10KHz
1KHz
100Hz
S1 S0
CTR1CLKSet=0
CTR1CLKSet=1
CTR1GateSet=0
CTR1GateSet=1
CTR1OutSet=0
Disable
CTR1OutSet=1
Output to DO6
CTR1IntSet
CTR1F
CTR1OutSet=0
Diable Interrupt
CTR1OutSet=1
Enable Interrupt
Interrupt Circuit