Software > Software
? timer uC
(1/1)
henry:
how to get a time of interupt in uC??
example : I make the first interupt..and then the second....
I want to know the time between the first and the second interupt...
thanks
henry
iNFINITE:
Use a timer, set a proper prescale
Set the Timer counter(e.g TCNT) to zero in the first interrupt.
Read the timer counter value in the 2nd interrupt, which will give you the time inbetween the interrupts..
Admin:
first, what uC?
second, google for source code . . .
Navigation
[0] Message Index
Go to full version