PDA

View Full Version : DS1307 + max232 + hyperterminal



mabauti
- 25th January 2008, 06:33
Hi , I'm new to Pic Basic and I'd like a program to interface a DS13707 and PC in order to configure time & date on the DS1307 using the PC's keyboard.

something like this, but using a PIC16f628 instead

http://www.sixca.com/micro/pic/ds1307/connect.gif


t.i.a. :)

ronjodu
- 26th January 2008, 16:09
I've done similar with the DS1302 and found almost everything I needed is already here.

http://www.picbasic.co.uk/forum/search.php?searchid=441378

mabauti
- 26th January 2008, 21:32
link doesn't work :(

I tried this program it but doesn't work
http://www.microengineeringlabs.com/resources/samples/submitted/MN1307.txt

circuit:
http://img176.imageshack.us/img176/6125/schematicth9.gif

Darrel Taylor
- 26th January 2008, 22:20
That program was written by Melanie Newman.
There's no way it doesn't work.

Your schematic has a couple problems though...

The LCD's data buss should go to DB4-DB7 on the LCD. Not 0-3.
And the Vo pin is grounded. There should be a 10K pot there.
<br>

Archangel
- 26th January 2008, 22:47
,<font color=red>That program was written by Melanie Newman.
There's no way it doesn't work.

</font color>
<br>
<font color=red><b>
FACT !</b>
</font color>
However it is configured to use PM Assembler, <B> AND IF</b> you are trying to compile using MPASM, <b>THEN</b> it will not compile.

mabauti
- 27th January 2008, 04:33
Maybe that's not for standard LCDs http://www.picbasic.co.uk/forum/images/icons/icon4.gif

I modified the schematic and it is working now.
http://img526.imageshack.us/img526/3032/schematic2yr5.gif


Anyway I'll try the first circuit by myself

Thank you for the help gentlemen! :)

sinoteq
- 27th January 2008, 15:28
In your drawing pin 3 on the DS-chip is not connected. This is not a wise thing to do, if this pin is left floating the DS can stop to work. Depending on current leakage in the chip and other varoius sources for charge a voltage can be built up on this pin if left floating and the safety functions for low battery voltage in the DS can be trigged. You do not want that.

Connect a suitable battery or ground the pin! You can find this information in the datasheet under the description of each pin. They put it there for a reason and they do not joke.....