Author :
Craig
Steiner
Source :
8052.com
Book :
The
8051/8052
Microcontroller:
Architecture,
Assembly
Language,
And
Hardware
Interfacing
(Paperback)
The 8051 comes equipped with two timers, both of which may
be
controlled,
set,
read,
and
configured
individually.
The 8051
timers
have
three
general
functions:
1)
Keeping
time
and/or
calculating
the
amount
of time
between
events,
2)
Counting
the
events
themselves,
or 3)
Generating
baud
rates
for the
serial
port.
The
three
timer
uses are
distinct
so we
will
talk
about
each of
them
separately.
The
first
two uses
will be
discussed
in this
chapter
while
the use
of
timers
for baud
rate
generation
will be
discussed
in the
chapter
relating
to
serial
ports.
How does
a timer
count?
>>>
Enter
here for
detail
on
"Timers"
<<<