Go Back   Home > Forums > >
Home Forums Rules Articles diyAudio Store Blogs Gallery Wiki Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

Digital Source Digital Players and Recorders: CD , SACD , Tape, Memory Card, etc.

Frequency Counter Project Help
Frequency Counter Project Help
Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Thread Tools Search this Thread
Old 20th November 2007, 04:54 AM   #1
Bengali is offline Bengali  United States
diyAudio Member
Join Date: Oct 2006
Default Frequency Counter Project Help


I built this 50Mhz Frequency Counter Circuit:


I download the source code at the bottom of the page.
It contains both .asm and .hex files.

I'm using the same exact chip, PIC16F84A. I'm using MPLAB 7 and the Olimex ICD2. I have programmed the pic, verfied it it has programmed. tried a blank check, erased the part.

When I power up the circuit, I get no text. I'm using a 16x2 character LCD module. The pinouts are exactly the same as the 16x1.

At this point, I'm not sure if I have programmed the chip properly.
I open the hex file, set the device to PIC16F84A, OSC XT, Watchdog OFF, next two settings ON,ON.

I have tried opening the .asm file and compiled it but I get bank 0 errors. I don't know any assembly to fix these bank errors.

Also, the schematic says Adjust R3 for 5Volts here. I'm not sure which point they are referring to and I think they meant R5?

Thanks for your help!
  Reply With Quote
Old 20th November 2007, 07:03 AM   #2
Bengali is offline Bengali  United States
diyAudio Member
Join Date: Oct 2006

okay, I got it sort of working. I just need help on the assembly code, some minor tweeks.

When I power up circuit, the LCD comes up with a 'P' ,00 IHx,
the Hx instead of Hz.

It is able to display the frequency but only 4 digits, example:

1491 Hx

I'm using a 16x2 display so something is off. Here is the link to the 16x2 module:


Attached is the source code.

Thanks for your help.
Attached Files
File Type: txt 50mhz.txt (18.2 KB, 16 views)
  Reply With Quote


Frequency Counter Project HelpHide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Waveform Generator & Frequency Counter PCB's ANDYLASER Swap Meet 1 13th November 2009 12:35 PM
Miida Digipet-60 160 Frequency Counter ccm347 Everything Else 0 29th December 2008 08:25 AM
HeathKit Frequency Counter Coulomb Swap Meet 3 10th April 2006 02:50 AM
Heath Zenith Hand Held Frequency Counter Coulomb Swap Meet 3 2nd March 2005 10:05 PM
BPM counter kinser Digital Source 0 18th January 2004 02:36 PM

New To Site? Need Help?

All times are GMT. The time now is 05:35 PM.

Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 15.79%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Copyright ©1999-2017 diyAudio