ARM Technical Support Knowledge Articles

MY TIMER DOESN'T WORK AS EXPECTED

Applies to: General Topics

Answer


Information in this article applies to:


QUESTION

I'm new to 8051 and I'm having problems to work with timers. My Timer0 doesn't work as expected. What could be wrong?

ANSWER

There are several things that may cause problems with timers.

  1. Your Timer0 configuration may be wrong.
  2. Your Timer0 values ( TH0 and TL0 ) may be wrong.
  3. Your Target XTAL frequency may not be correct.
  4. You selected a reduced machine instruction cycle mode 8051 derivative.

RESOLUTION

Check all the mentioned possibilities, correct what might be wrong, and your timer will work as expected.

MORE INFORMATION

You may consult a 8051 datasheet to get more information about timer/counter.

SEE ALSO

Article last edited on: 2005-07-09 09:49:35

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential