Author Topic: Need help on implementing a Timer  (Read 7136 times)

houman

  • Guest
Need help on implementing a Timer
« on: July 09, 2003, 07:16:13 am »
hi...
i need help on implementing a timer on the Min-Max/51 micro-controller.  Specifically what i like to do is to implement a timer that will terminate a program after a pre-specified time has elapsed.  My existing program waits for user input.  i want the program to terminate if there was no user entry after sometime and go back to its listening mode.
i\'m new to this so any help will be greatly appriciated.

thanks in advance,

Houman

Hivva Technologies
Ottawa, Ontario
(613)592-4407 ext. 15

Oz

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Need help on implementing a Timer
« Reply #1 on: October 14, 2003, 06:51:44 am »
There are example timer projects that come with the 8051 Development System ( http://www.bipom.com/8051dev.htm ). These are called int0 ( assembly example ) and int51 ( C example ).
These examples for C Compiler.

For Basic ( http://www.bipom.com/bascom.htm ), there are also timer examples:

timer0
timer2
timer2a
timer2b
timer2c

:)