Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/27/04 23:55
Read: times


 
#73242 - RE: calculation of time gap b/w two events
Responding to: ???'s previous message
Hi Lokesh, I assume by your use of the english language that your primary language is not english. If you knew how the phrase "give me" sounds to us true english speakers you would have tried to choose a different way of asking for help.

I have only just began programming microcontroller units in the last 6 months or so and learned almost all from the tutorials. What you request is very easy to do and can be accomplished multiple ways.

You need to determine what values you want to intialially set the clock to so you can calculate exact time interval before an overflow occurs. You can have the clocks autoload the initial value or use code to set the value again after the overflow. Once the stop bit occurs you can turn the clock off and check the register you stored the overflows in.

This is so easy to figure out in the tutorials that I would be doing you a disservice by giving you the code, as opposed to you reading up on your own to get a better understanding of what is happening.

I hope this leads you in the right direction.

Regards

James

I reserve the right to plead ignorance because I am still a newbee, if any of the above information is incorrect :)



List of 3 messages in thread
TopicAuthorDate
calculation of time gap b/w two events            01/01/70 00:00      
   RE: calculation of time gap b/w two events            01/01/70 00:00      
   RE: calculation of time gap b/w two events            01/01/70 00:00      

Back to Subject List