I have just built a jumbo LED clock from a design on Jose Pino's web page that uses a 16F628 and when I got to the stage of programming the PIC I found to my dismay that the packet I had it in was mislabled, the actual PIC is a 16F628"A".
All the research I did on the net seemed to point to the "A" being compatible with the code from a non"A". But on trying the code I am not getting much activity except the minutes digits showing capital "C"s but backwards.
I have tried various configurations of the fuses but that was the most I got. Is there a way of setting the configuration bits that would help me. I just wish I had a non "A" instead of the "A" version so I could rule out the differences.
Jose's page does not mention any special setting of the fuses and I have tried a good few combinations, but there are 7 fuses plus the protection one to choose and I doubt that the PICs legs will stand that many changes.
May I suggest sending an email to Jose? He was kind enough to answer one of my emails a couple years ago. Be sure to ask what fuse settings he used (I'm not sure there are any fuse settings in that hex file).
May I suggest sending an email to Jose? He was kind enough to answer one of my emails a couple years ago. Be sure to ask what fuse settings he used (I'm not sure there are any fuse settings in that hex file).
There are fuse settings in the HEX file, PUT is set, code protect is set, and osc is set to HS. The same value works on the 628A as well.
It's a pretty bizzare HEX file though?, rather strangely it includes all the blank addresses as well as the programmed ones (it doesn't use much of the 628's memory).
There is your problem.... If the chip is set to use HS instead of the recommended XT.. The XTAL caps may be giving you a problem... Running this in ISIS appears to work. So it must be to do with the osc setting.
May I suggest sending an email to Jose? He was kind enough to answer one of my emails a couple years ago. Be sure to ask what fuse settings he used (I'm not sure there are any fuse settings in that hex file).
There are fuse settings in the HEX file, PUT is set, code protect is set, and osc is set to HS. The same value works on the 628A as well.
It's a pretty bizzare HEX file though?, rather strangely it includes all the blank addresses as well as the programmed ones (it doesn't use much of the 628's memory).
There is your problem.... If the chip is set to use HS instead of the recommended XT.. The XTAL caps may be giving you a problem... Running this in ISIS appears to work. So it must be to do with the osc setting.
It makes VERY little difference, every example I've tried has worked perfectly regardless of the setting being XT or HS.
But you can simply set the fuse settings in your programmer before you blow the chip, HS for the oscillator, and PUT on, I wouldn't bother setting code protect on, it's a waste of time and effort.
The scan seems to be ok mate. The schematic I used is the last one on the page, credited to Flash Gordon. I can't copy it mate!
My circuit is exact except that I am powering the 4050s from 12v instead of from the 5v rail. My segments are each 5x red 5 x 2 leds and at 25mm each look really good as they are diffused LEDs.
I have tested the segments and all are ok.
I have always wanted a large LED clock for my workshop and now my neck is getting worse I can't look up at my regular clock! So I thought I would finally get around to making one. I did attempt to start from scratch but my coding skills are definately not up to it and I just kept getting confused with the interrupts and timings (well most of it really) hehehe