PC Programming and Interfacing > 16f628 internal cloc

Status
Not open for further replies.

felipetanaweb

Junior Member level 1
Joined
Jan 5, 2005
Messages
18
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
185
pic16f628a

Hello!

Please help me. I mounted a project of Frequency meter that it uses a PIC 16F628-04/P but I have the PIC 16F628A-I/P and when I programmed the PIC the project did not function,what it will have to be moved in the code? The code is annexed here, my oscilator is external 4MHz, JDM Programmer was used and icprog or winpic, the hp with the project is this:

http://py2rlm.sites.uol.com.br/freq.html

Thank You!
 

16f628 frequency counter

Hi,

These are the changes in PIC16F628A from PIC16F628:

Additional Features
Low voltage programming
Low speed Clock mode
Programmable BOR
4MHz internal oscillator
Programmable VREF
128 bytes of EEPROM
Data Memory
ICD

Better, check your programming configuration not the code itself for corrections.

Glenjoy
 

pic16f628a project

Thank You!

In mine case the configurations are:
__CONFIG _CP_OFF&_PWRTE_ON&_WDT_OFF&_XT_OSC&_BODEN_OFF&_LVP_OFF

The configuration PWRTE is equal between 628A and the 628?
 

py2rlm

Have you forgotten to configure MCLR? I think MCLR can be disabled on PIC16F6X8A series.
 

frequency counter 16f628

Thank You! But the circuit with this and other modifications also do not function, the first line of LCD it is with the 16 characters in black color and nothing in the second line.
 

16f628a frequency projects

Have you emailed the author of that design? Have you simulated it first before making the actual? Have tested it on a breadboard or you directly created the PCB layout?

These things must be considered before doing actual of designs.

If you already had the PCB check the PCB layout first if correct, most schematic in the net are quite tricky and has some errors put by the aithor to at least the viewer who wants to copy the design will have to contact them first.

Try your design in proteus maybe you can at least simulate its output.

Check your contrast also.
 

16f628a i/p

Did the asm file assembled correctly with MPLAB? I see it requires the
additional file 'vdisplay.inc' which includes display subroutines like
LcdInit, ShowLoad, ShowName, ShowHello, LcdClear, ShowName,
LcdLocate, LcdSendData. I couldn't find this file in the site you
posted. BTW I couldn't get asm file from there too?
 

16f628a fuse settings

Thank You GlenJoy! Yes, we test the project with the author and it functioned perfectly with this Layout and with the PIC16F628-04/P but it does not function with PIC 16F628A-I/P, therefore I asked if it had differences between the two.

Added after 3 minutes:

Thank You Vitko! The .asm and .inc file they are in this link:

http://www.acessolivre.net/arquivos/
 

16f628a-i/p

usually its enough to disable analog comparators to switch from 16F84 code to 16F628 code
some other functions have to be re-written (eeprom interrupts for example)
 

16f628a freq counter

Thank You tgq I am inexperienced and I don't know as well as making the modifications, because the code is not mine, if somebody will be able to help I would be been thankful to me!
 

pic16f628a projects

hi

here is modified code for 16F628A i/p i have tested and working fine also in archive i also attached fuse setting used this fuse setting to program the pic hex file also included
 

Attachments

  • freq3.zip
    35.4 KB · Views: 200

16f628a lcd example

Thank You Fragrance! Now it functioned perfect! If somebody now to want to mount this Frequency Meter with the PIC16F628A-I/P can use this code that functions perfectly.
 
Re: PIC 16F628A-I/P

Saludos a todos..!! tengo un problema similar con un asm 16f628 y necesito arreglarlo para un 16f628a.... agradeciendo su ayuda..!!
 

Re: pic16f628a


Yes I know it is a long time from the first post, but:
Is there any change that I become de hex-file of the Frequency meter that it uses a PIC 16F628-04/P .

http://py2rlm.sites.uol.com.br/Freq1.htm

THX
 

Re: pic16f628a projects

hi

here is modified code for 16F628A i/p i have tested and working fine also in archive i also attached fuse setting used this fuse setting to program the pic hex file also included

Dear Fragrance,

Hello,

Recently I have assembled a Frequency Counter using PIC16F628A and LCD display. Unfortunately the same is not working properly. The problem is the with the display. It shows only 8 rectangular patterns instead of characters. On contacting the vendor of the display module they have advised that it is a problem with the program.
I think the code was written for 16F628 and I have used 16F628A. From one of the threads in www.edaboard.com, from where I got your details, it is mentioned that some modifications are to be done for running 628 program in 628A. I am attaching the code herewith. Would you kind enough to modify the same to suit 16F628A. I will be very much obliged to u

Thanking u

Pulimath
 

Attachments

  • fllcopy.zip
    3.2 KB · Views: 116
Last edited:

Re: pic16f628a projects

It shows only 8 rectangular patterns instead of characters. On contacting the vendor of the display module they have advised that it is a problem with the program.

They are right. In 99% cases (at least amongst cases which i've seen) black blocks on hd44780 lcd mean software problem. I would suspect something inside lcd initialization routine.
 

Fragrances counter displays good with old Hong Kong 2x16 LCD ,format 00,00000 MHZ, grounded R/W, PIC16F628 and 4Mhz clock. Thank You Fragrance.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…