There are also a few control bits that might need configuring - 12/24 hour mode, square wave output & rate, and a whopping 56 bytes of "NV"RAM for you to use... guess those could also fall into the "program" category :-)
Arch
There are also a few control bits that might need configuring - 12/24 hour mode, square wave output & rate, and a whopping 56 bytes of "NV"RAM for you to use... guess those could also fall into the "program" category :-)
Arch
>A Professor here said that i am obliged to program it... one of us is stupid so who is it?
Have you read the DS1307 Datasheet?
If you haven't then GO DO IT before you ask questions like the one above.
You will discover that when you first Power-Up a DS1307 for the first time (regardless if you have a Battery Backup connected or not), it sits there and DOES NOTHING until you enable it by clearing the CH (Clock Halt) bit in one of it's Registers (which Bit in which Register I leave you to discover by READING the device Datasheet). That Sir is called "programming" - apart from that, how's the chip supposed to know what the current Time and Date is from which to continue timing? Telepathy?
People who can't be bothered to read Datasheets or Manuals and expect everyone else to do their work for them usually get short changed on this forum.
He apologised today... he meant by "programming" the real meaning and not as many expected.. Simply, he meant that i should put all the program inside DS1307.... i think he didn't have any idea about this DS...
anyway, life continues.... i'm about to present my project on friday.Still delaying this matter of timer because it makes me nervous! have i ever said that i designed a new instrument that analyzes blood, saliva and bones at the same time?
It's so useful and i am working now on reducing it's size... i'm using MEMS technlogy in case anyone is interested.
This is why i'm so squeezed by time and do not have time to read any discover new and silly datasheets.... time is treasure and i cannot lose it.
So if this timer does not work it doesn't matter but i just hope it will work so that i can display time and date on the screen or maybe put a timer to be used by patients.
It is located at:
http://www.melabs.com/resources/samp...ted/MN1307.txt
for those who are interested.
No more fabrication of PIC 16F628 or 16F876, and this is worldwide done. It's same case for other PICs. They are being replaced by 16F628A and 16F876A.
so, can this program be used directly on a pic 16F628A without facing any problem or changing any code?
I will try it on a 4-line LCD but i just want to know about the PIC... yesterday, Melanie gave me a way to stop the comparators on 16F876A. So should something be done for this 16F628A?
thank you.
Somewhere at the Microchip website you'll find some 'silly' documents about migrating to new (or improved) devices. Oh no... one more thing to read =:-0
Arch
Eng4444:What kind of Engineer will you be if all you want to do is copy someone elses work as pass it off as your own?,Why would any company want to hire someone who has this mindset?...You are trying to run before you can walk.Melanie and others in this forum have bent over backwards trying to help you,a lack of preparation on your part has gotten you into this situation,As a Bio-med engineer you should have a little more enthusiasm about learning some basic programming techniques in order to complete your academic assignments.
Get to Work!!!
R.C
In the program located at http://www.melabs.com/resources/samp...ted/MN1307.txt
should i change something in the code if i wanna use PIC16F628A? because i already read somewhere in the forum a certain discussion that there shouldn't be difference but i just want to be sure.
best regards.
Bookmarks