Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

timer on 16f877

Status
Not open for further replies.

goodpickles

New Member
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 said:
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.
 
Status
Not open for further replies.

Latest threads

Back
Top