That's what it's telling you. If you don't believe it, take a signal generator and run a test. The PIC isn't exactly a speed demon.
That's what it's telling you. If you don't believe it, take a signal generator and run a test. The PIC isn't exactly a speed demon.
Hi solara,
You had specified Timer1, which is slower than Timer0.
If you use Timer0, you can measure up to 50Mhz, even with a 4Mhz osc.
Using the Prescaler, it actualy works like a 16-bit Counter. It's a little tricky to get the lower 8-bits. But it can be done.
Check out AN592 from Microchip
AN592: Frequency Counter Using PIC16C5x
HTH,
Darrel
Looks like TMR0 is still bound by the same limits as TMR1 on 16F628 (according to datasheets).
Also the AN592 doc is only for PIC 16CXXX, which can measure up to 50MHZ.
Just had another more detailed browse at the 16F628 sheets, and see that with prescaler the high and low pulse widths are min 10ns. Implying period=20ns = 50MHZ.
Thanks everyone.
Bookmarks