Architecture,
Assembly
Language,
And
Hardware
Interfacing
(Paperback)
8-bit
Time
Mode
(mode 2)
Timer
mode "2"
is an
8-bit
auto-reload
mode.
What is
that,
you may
ask?
Simple.
When a
timer is
in mode
2, THx
holds
the
"reload
value"
and TLx
is the
timer
itself.
Thus,
TLx
starts
counting
up. When
TLx
reaches
255 and
is
subsequently
incremented,
instead
of
resetting
to 0 (as
in the
case of
modes 0
and 1),
it will
be reset
to the
value
stored
in THx.