Bascom avr timer help

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

Im trying to make a timer to measure lap times to my rc-car. Im using bascom avr and at90s2313 chip.

First of all how do i count the value for the timer1 variable. I use 10MHz oscillator and want it to go in subroutine every 1 sec. Can i just assign that value like Timer1 = 12345 and will it stay that way even it overflows ?.

Then second question,
when i print hour minute and second values on the lcd how can i get it to this format " 12 : 01 : 01 ".

Then my lcd has 4 lines, How do i make it to show 4 last laptimes, and the lap count like this.

4    00 : 05 : 45
5    00 : 04 : 40
6    00 : 02 : 11
7    00 : 01 : 54

Thanks :wink:

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi

Maybe a quick look at
http://www.riccibitti.com/crono.htm

or

http://www.mcselec.com/index.php?option=com_content&task=view&id=83&Itemid=57

Should be able to modify the program to suit your need.

Ken