
Secure Microcontroller User’s Guide
38 of 187
Timer Mode Register
TMOD, 089H
C/
C/
R = Unrestricted Read Access, W = Unrestricted Write Access, T = Timed-access Write Only, n = Value after Reset, * = Special: see description
TMOD.7 (Timer 1);
TMOD.3 (Timer 0) GATE
Gate Control When set to 1 with TRn = 1, timer/counter’s input count pulses are only
delivered while a 1 is present on the
pin. When cleared to 0, count pulses
are always received by the timer/counter a long as TRn = 1.
TMOD.6 (Timer 1);
TMOD.2 (Timer 0) C/T
Counter/Timer Select When set to 1, the counter function is selected for the associated timer; when
cleared to 0, the timer function is selected.
TMOD.5-4 (Timer 1);
TMOD.1-0 (Timer 0) M1, M0
Mode Select These bits select the operating mode of the associated timer/counter as
follows:
Mode 0: 8 bits with 5-bit prescale
Mode 1: 16 bits with no prescale
Mode 2: 8 bits with auto-reload
1 1
Mode 3: Timer 0 - Two 8-bit timers, Timer 1 -
Stopped
Commentaires sur ces manuels