+ Reply to Thread
Results 1 to 2 of 2

Thread: timer on 16f877

  1. #1
    goodpickles Newbie
    Join Date
    Aug 2003
    Location
    New York
    Posts
    148

    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?


  2. #2
    Super Moderator Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent
    Join Date
    Nov 2003
    Location
    Derbyshire, UK
    Posts
    29,775

    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

+ Reply to Thread

Tags for this Thread