I've got a frequency counter with 6 * 7 segment display, which seems to work fine. What I would like to do is interface this with my pic 16f690 so that it displays frequency (Hz). To do this I am thinking of setting the pic microcontroller to detect a leading edge input on RA1 and then output a pulse to the frequency counter via RC0. This process then has to stop after 1 second so that the stable frequency can be read. Then after 1 second repeat....
So I just need the pic code lol. I'm not having a lot of success through google and I'm puzzled about the interrupt prescaler which I believe can give me a 1.1 second interrupt, how could I code a 1 second interrupt?
I'm only interested in reading frequencies from 20kHz to 50kHz. Any help appreciated.
So I just need the pic code lol. I'm not having a lot of success through google and I'm puzzled about the interrupt prescaler which I believe can give me a 1.1 second interrupt, how could I code a 1 second interrupt?
I'm only interested in reading frequencies from 20kHz to 50kHz. Any help appreciated.