Ds1602
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
·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
bs2

3K
Comments
DQ_DIR VAR DIR2
should be
DQ_DIR VAR DIR13
Jeff T.
Jeff T.