Chapter 2 Hardware Functionality
1 9
CTR0F & CTR1F: Counter 0 & Counter 1 interrupt flag bit
CTR0Gate & CTR1Gate: Counter 0 and Counter 1 gate control bit
CTR0Out & CTR1Out: Counter 0 and Counter 1 output status bit
CTR0CLKSet & CTR1CLKSet: Counter 0 and Counter 1 clock source
control bit
CTR0GateSet & CTR1GateSet: Counter 0 and Counter 1 gate source
control bit
CTR0OutSet & CTR1OutSet: Counter 0 and Counter 1 output destina-
tion control bit
CTR0IntSet & CTR1IntSet: Counter 0 and Counter 1 interrupt control
bit
S0 & S1: Counter 0 and counter 1 internal clock control bit
CTR32Set: Cascaded 32-bit counter control bit
Counter 0 Function Block
Figure 2-7: Counter 0 function block
DI4
CTR0Gate
CTR0GateSet
Gate
Out
Counter 0
CLK
CTR0OutSet
DO6
CTR0OUT
DI6
CTR0CLKSet
100KHz
10KHz
1KHz
100Hz
S1 S0
CTR0CLKSet=0
CTR0CLKSet=1
CTR0GateSet=0
CTR0GateSet=1
CTR0OutSet=0
Disable
CTR0OutSet=1
Output to DO6
CTR0IntSet
CTR0F
CTR0OutSet=0
Diable Interrupt
CTR0OutSet=1
Enable Interrupt
Interrupt Circuit