
EZ-USB FX2 Technical Reference Manual
Page 14-4 EZ-USB FX2 Technical Reference Manual v2.1
Table 14-2. TMOD Register — SFR 0x89
Bit Function
TMOD.7 GATE1 - Timer 1 gate control. When GATE1 = 1, Timer 1 will clock only when INT1 = 1 and
TR1 (TCON.6) = 1. When GATE1 = 0, Timer 1 will clock only when TR1 = 1, regardless of
the state of INT1.
TMOD.6 C/T
1 - Counter/Timer select. When C/T1 = 0, Timer 1 is clocked by CLKOUT/4 or CLKOUT/
12, depending on the state of T1M (CKCON.4). When C/T
1 = 1, Timer 1 is clocked by high-
to-low transitions on the T1 pin.
TMOD.5 M1 - Timer 1 mode select bit 1.
TMOD.4 M0 - Timer 1 mode select bit 0.
M1
M0 Mode
0 0 Mode 0 : 13-bit counter
0 1 Mode 1 : 16-bit counter
1 0 Mode 2 : 8-bit counter with auto-reload
1 1 Mode 3 : Timer 1 stopped
TMOD.3 GATE0 - Timer 0 gate control, When GATE0 = 1, Timer 0 will clock only when INT0
= 1 and
TR0 (TCON.4) = 1. When GATE0 = 0, Timer 0 will clock only when TR0 = 1, regardless of
the state of INT0.
TMOD.2 C/T
0 - Counter/Timer select. When C/T0 = 0, Timer 0 is clocked by CLKOUT/4 or CLKOUT/
12, depending on the state of T0M (CKCON.3). When C/T
0 = 1, Timer 0 is clocked by high-
to-low transitions on the T0 pin.
TMOD.1 M1 - Timer 0 mode select bit 1.
TMOD.0 M0 - Timer 0 mode select bit 0.
M1
M0 Mode
0 0 Mode 0 : 13-bit counter
0 1 Mode 1 : 16-bit counter
1 0 Mode 2 : 8-bit counter with auto-reload
1 1 Mode 3 : Two 8-bit counters
Comentarios a estos manuales