Datasheet
         71M6521DE/DH/FE Data Sheet 
Page: 26 of 107    Rev 3   
In counter mode, the register is incremented when the falling edge is observed at the corresponding input signal T0 
or T1 (T0 and T1 are the timer gating inputs derived from certain DIO pins, see the DIO Ports chapter). Since it takes 
2 machine cycles to recognize a 1-to-0 event, the maximum input count rate is 1/2 of the oscillator frequency. There 
are no restrictions on the duty cycle, however to ensure proper recognition of 0 or 1 state, an input should be stable 
for at least 1 machine cycle. 
The timers/counters are controlled by the TCON Register 
Timer/Counter Control Register (TCON) 
MSB  LSB 
TF1  TR1  TF0  TR0  IE1  IT1  IE0  IT0 
Table 19: The TCON Register 
Bit  Symbol  Function 
TCON.7  TF1 
The Timer 1 overflow flag is set by hardware when Timer 1 overflows. This flag 
can be cleared by software and is automatically cleared when an interrupt is 
processed. 
TCON.6  TR1 
Timer 1 Run control bit. If cleared, Timer 1 stops. 
TCON.5  TF0 
Timer 0 overflow flag set by hardware when Timer 0 overflows. This flag can be 
cleared by software and is automatically cleared when an interrupt is 
processed. 
TCON.4  TR0 
Timer 0 Run control bit. If cleared, Timer 0 stops. 
TCON.3  IE1 
Interrupt 1 edge flag is set by hardware when the falling edge on external pin 
int1 is observed. Cleared when an interrupt is processed. 
TCON.2  IT1 
Interrupt 1 type control bit. Selects either the falling edge or low level on input 
pin to cause an interrupt. 
TCON.1  IE0 
Interrupt 0 edge flag is set by hardware when the falling edge on external pin 
int0 is observed. Cleared when an interrupt is processed. 
TCON.0  IT0 
Interrupt 0 type control bit. Selects either the falling edge or low level on input 
pin to cause interrupt. 
Table 20: The TCON Register Bit Functions 










