Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 18th March 2005, 03:32 AM   #1
Default timer on 16f877

My 16f877 is running at 4 mhz. I want to use it as a speedometer. I need some way of measuring the elasped time between pulses. I was thinking of useing timer1, but even with the prescaler it will time less than 5 seconds...,or are my calculation incorrect? What is a good way to accomplish this?
goodpickles is offline  
Old 18th March 2005, 08:59 AM   #2
Default Re: timer on 16f877

Quote:
Originally Posted by goodpickles
My 16f877 is running at 4 mhz. I want to use it as a speedometer. I need some way of measuring the elasped time between pulses. I was thinking of useing timer1, but even with the prescaler it will time less than 5 seconds...,or are my calculation incorrect? What is a good way to accomplish this?
A speedometer is basically a frequency counter - if you check the MicroChip application notes there's a very old one for a auto-ranging frequency counter.

Or you could check the EPE website, they did a project for a speedometer a number of years ago.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Reply

Tags
timer

Thread Tools
Display Modes




All times are GMT. The time now is 11:10 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker