Hi, I have tried both of your examples or links.
The first one you only need to input the frequency on the T1CLK pin. Basically you clear timer 1, start tmr1
then pause for 10ms, 100ms or 1s then stop timer1. Read the contents of TMR1L and TMR1H which is your frequency. This method is not very accurate using a pause statement for your time base.
The second, this circuit was designed and sold as a kit by Terry Weeder many years ago. It used the RTCC with a elaborate scheme to gate the input pin on and off then pulsed the rtcc 256 time to purge the result or remainder. This was a very stable and accurate. This used three pins, freq in, gate and purge
http://www.piclist.com/techref/piclist/weedfreq.htm
So to answer your question the code in your first post will not work with the Weeder schematic. There is no timer1 in a pic1684. I started porting the assembly code to PBP at one time, but never finished. Look for the hex file for the pic16f84 and just program a new chip.
Bookmarks