He said that i should keep on clearing the PIC in order to make time advance...
i dunno what does this mean but there is no "CLEAR" port on the 16f628A datasheet......
He said that i should keep on clearing the PIC in order to make time advance...
i dunno what does this mean but there is no "CLEAR" port on the 16f628A datasheet......
I will check later in the day when I have a few minutes spare... some of us have more important commitments and have to work for a living too...
I have downloaded the MN1307 program from the MeLabs website.
I have breadboarded the hardware and wired it per instructions with the exception that I've wired the LCD using DB4 thru 7 rather than DB0 thru 3.
I have run the program.
I have verified that it works as advertised.
I have posted proof here that it works. I have an MPEG video of it ticking away... you want me to email that you?
I don't post programs that don't work.
Now your problem...
It doesn't tick, then the software is just a simple loop that reads the RTC and displays the results on the LCD... this means your RTC isn't working. Also, if on initial first-time power-up it doesn't immediately jump into set-up, then that tells me the RTC isn't communicating with the PIC.
so...
1. Verify that SCL and SDA are wired correctly and you haven't swapped them over and you've not got any shorts.
2. Make sure you have pull-up Resistors on those pins. 10K will work, 4K7 with hindsight is probably better.
3. Make sure you have a Battery Connected.
4. If you haven't got a Battery, then connect the Battery pin to Vss.
5. Make sure your 32kHz Crystal is connected - and it's a good one. Steal one from your average genuine 99-cent Rolex wristwatch if you have any problems.
6. Ensure you have a good RTC chip.
If it still doesn't work, go back to step 1 and start over.
Hurry back, because we're all going to miss you when you're gone......i'll pass a whooooooole month in the Carribean!
__________________________________________________ ______________Originally Posted by Melanie
You know?
i always have found your replies cool. You seem too much easy going and from the calm type.This is wonderful!
till now, i'm still thinking about that 99 cents watch! From where do you bring all those stupid jokes?
Keep on the good job!
Here we reached more than 1000 people who checked this thread! is it enough or we make them 2000?
Best regards.... ;-)
Thirty years ago when I was in the same position as Eng444, at University working on projects for my Bsc in Civil Engineering, I used a stop watch.
A mechanical one at that.
I am realy intrigued as to why any one has gone to so much trouble to re invent the wheel, or egg timer in this case.
I work in instrumentation and RTC are used extensively because we need to log data with a time and date stamp, and if I was going to build a data logger then I would use a RTC, but then I would not build one because I can buy a very good tested and reliable datalogger for £240.
Puzzled
Steve
Steve
It's 23:58:43 on 28th February... You need a three-minute egg... you're in a panic because PAUSE 180000 exceeds a WORD variable. Do you stop the clock at 12:01:43am or at 00:01:43, and will it be on the 29th February or on the 1st March? Deep down, you KNOW the DS1307 was built by Maxim/Dallas just to provide you with these very answers.
Melanie
Bookmarks