
10
P/N:PM0762
REV. 1.0, MAY. 22, 2003
MX10F202FC
Specifications subject to change without notice, contact your sales representatives for the most update information.
Table. 5 Description of TMOD bits
MNEMONIC
POSITION
FUNCTION
TIMER 1
GATE
TMOD.7
Timer 1 gating control : when set, Timer/counter '1' is enabled only while 'Int1'
pin is high and 'tr1' control bit is set. when cleared, Timer/counter '1' is enabled
whenever 'tr1' control bit is set.
C/T
TMOD.6
Timer or counter selector: cleared for Timer operation (input from internal
system clock). set for counter operation (input from 'T1' input pin).
M1
TMOD.5
Operation mode: see table 6.
M0
TMOD.4
Operation mode: see table 6.
TIMER 0
GATE
TMOD.3
Timer 0 gating control: when set, Timer/Counter '0' is enabled only while 'Int0'
pin is high and 'tr0' control bit is set. when cleared, Timer/counter '0' is enabled
whenever 'tr0' control bit is set.
C/T
TMOD.2
Timer or counter selector: cleared for Timer operation (input from internal
system clock). set for counter operation (input from 'T0' input pin).
M1
TMOD.1
Operation mode: see table 6.
M0
TMOD.0
Operation mode: see table 6.
Table. 6 TMOD M1 and M0 operating modes
M1
M0
FUNCTION
0
8-bit Timer/counter : 'THx' with 5-bit prescaler.
0
1
16-bit Timer/counter : 'THx' and 'TLx' are cascaded, there is no prescaler.
1
0
8-bit autoload Timer/counter : 'THx' holds a value which is to be reloaded into 'TLx' each time it
overflows.
1
Timer 0: TL0 is an 8-bit Timer/counter controlled by the standard Timer 0 control bits. TH0 is an 8-
bit Timer controlled by Timer 1 control bits.
1
Timer 1 : Timer/counter 1 stopped.
TCON : TIMER/COUNTER CONTROL REGISTER
This register is located at address 88H.
Table. 7 TCON SFR (88H)
76
5
4
3
2
1
0
TF1
TR1
TF0
TR0
IE1
IT1
IE0
IT0
(MSB)
(LSB)
keep the above table with the following table