Shop OBEX P1 Docs P2 Docs Learn Events
Ds1602 — Parallax Forums

Ds1602

Mike15Mike15 Posts: 109
edited 2007-03-19 02:19 in BASIC Stamp
I want to add the DS1602 RTC to an existing project.

·I only have pin 13 - 15 open

The attachment is the example code I have.

These constants need to be change to correspond diffrent pins?

··································
RST·········· CON···· 0········RST··· CON· 15···
CLK·········· CON···· 1·········CLK··· CON·· 14
DQ··········· CON···· 2·········DQ···· CON·· 13

And this has to be changed?


DIRS = $f0ff
DQ_OUT VAR OUT2··············· DQ_OUT VAR OUT13
DQ_IN VAR IN2····················· DQ_IN VAR IN13
DQ_DIR VAR DIR2·················· DQ_DIR VAR DIR13


But when I make these changes all that is dispayed in the debug is:

0
0
0
0
0
0
0

Is there something I am missing?






Post Edited (Mike15) : 3/19/2007 2:06:56 AM GMT

Comments

  • UnsoundcodeUnsoundcode Posts: 1,532
    edited 2007-03-19 01:58
    Hi Mike, if you are changing the pin assignments on the left to those on the right one thing I see is

    DQ_DIR VAR DIR2

    should be

    DQ_DIR VAR DIR13

    Jeff T.
  • Mike15Mike15 Posts: 109
    edited 2007-03-19 02:07
    Just a mistake in the post I had it right in the program. So I still need suggestions
  • UnsoundcodeUnsoundcode Posts: 1,532
    edited 2007-03-19 02:19
    Another point is you can only nest gosubs to 4 levels, looks like you have 5 in your program.

    Jeff T.
Sign In or Register to comment.