71M6403
Electronic Trip Unit
SEPTEMBER 2006
Page: 31 of 75
©
2006 TERIDIAN Semiconductor Corporation
REV 1.0
Timer/Counter Control register (TCON)
MSB LSB
TF1 TR1 TF0 TR0 IE1 IT1 IE0 IT0
Table 39: The TCON Register
Bit
Symbol
Function
TCON.7
TF1
Timer 1 overflow flag
TCON.6
TR1
Not used for interrupt control
TCON.5
TF0
Timer 0 overflow flag
TCON.4
TR0
Not used for interrupt control
TCON.3
IE1
External interrupt 1 flag
TCON.2
IT1
External interrupt 1 type control bit
TCON.1
IE0
External interrupt 0 flag
TCON.0
IT0
External interrupt 0 type control bit
Table 40: The TCON Bit Functions
Interrupt Request register (IRCON)
MSB
LSB
EX6 IEX5 IEX4 IEX3 IEX2
Table 41: The IRCON Register
Bit
Symbol
Function
IRCON.7 -
IRCON.6 -
IRCON.5
IEX6
External interrupt 6 edge flag
IRCON.4
IEX5
External interrupt 5 edge flag
IRCON.3
IEX4
External interrupt 4 edge flag
IRCON.2
IEX3
External interrupt 3 edge flag
IRCON.1
IEX2
External interrupt 2 edge flag
IRCON.0 -
Table 42: The IRCON Bit Functions
Note: Only TF0 and TF1 (timer 0 and timer 1 overflow flag) will be automatically cleared by hardware when the service routine is
called (Signals T0ACK and T1ACK – port ISR – active high when the service routine is called).
electronic components distributor