General > 8051 Development Tools

Need help on implementing a Timer

(1/1)

houman:
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:
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

:)

Navigation

[0] Message Index

Go to full version