Help with a stop watch.
Posted: Fri Oct 27, 2006 4:18 pm
I'm wanting to build a stop watch with a relolution of .001. I was planning on useing a 16f88. Can anybody point me in the right direction to start this thing? Should I use a different chip? Is .001 accuracy realistic? etc.
edit- a little more detail about the project. I have a piston with two normally open switches, one on the top and one on the bottom. When the piston is depressed it will make an input or close a switch(#1) at which time it resets or zeros the stop watch. when the piston is release and starts to travel the switch(#1) opens and the stopwatch starts. When the pistion is extended i want to close another switch(#2) and stop the clock. then I need to display the results on a lcd. Keep in mind I don't need the lcd to count, i just need it to show the final time value. By the way the longest this will ever take is 1.5 seconds so I don't need minute or hour logic.
Pretty simple, I just need to figure out how to make the 1/1000th clock accurate.
edit- a little more detail about the project. I have a piston with two normally open switches, one on the top and one on the bottom. When the piston is depressed it will make an input or close a switch(#1) at which time it resets or zeros the stop watch. when the piston is release and starts to travel the switch(#1) opens and the stopwatch starts. When the pistion is extended i want to close another switch(#2) and stop the clock. then I need to display the results on a lcd. Keep in mind I don't need the lcd to count, i just need it to show the final time value. By the way the longest this will ever take is 1.5 seconds so I don't need minute or hour logic.
Pretty simple, I just need to figure out how to make the 1/1000th clock accurate.