Frequency Counter Project Help

Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.
Hi,

I built this 50Mhz Frequency Counter Circuit:

http://www.sixca.com/eng/articles/fc50/


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!
 
Hi,

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:

http://character-lcd-lcds.shopeio.com/inventory/details.asp?id=932&cat=Lcds&sub=Character Lcd

Attached is the source code.

Thanks for your help.
 

Attachments

  • 50mhz.txt
    18.2 KB · Views: 42
Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.