Timer mode register tmod, 089h – Maxim Integrated Secure Microcontroller User Manual
Page 38

Secure Microcontroller User’s Guide
38 of 187
Timer Mode Register
TMOD, 089H
D7
D6
D5
D4
D3
D2
D1
D0
GATE
C/
T
M1
M0
GATE
C/
T
M1
M0
RW-0
RW-0
RW-0
RW-0
RW-0
RW-0
RW-0
RW-0
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
INT
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:
M1
M0
CONDITION
0
0
Mode 0: 8 bits with 5-bit prescale
0
1
Mode 1: 16 bits with no prescale
1
0
Mode 2: 8 bits with auto-reload
1
1
Mode 3: Timer 0 - Two 8-bit timers, Timer 1 -
Stopped