Shop OBEX P1 Docs P2 Docs Learn Events
Still keeping time? — Parallax Forums

Still keeping time?

ArchiverArchiver Posts: 46,084
edited 2002-11-26 13:23 in General Discussion
I was able to get the lcd to display what i inputed via the debug
screen. I had to change this line:
'I2COUT I2Cpin,Wr8583,2,[noparse][[/noparse]STR regSecs\5]

to these lines:
I2COUT I2Cpin,Wr8583,2,[noparse][[/noparse]STR regSecs]
I2COUT I2Cpin,Wr8583,3,[noparse][[/noparse]STR regMins]
I2COUT I2Cpin,Wr8583,4,[noparse][[/noparse]STR regHrs]
I2COUT I2Cpin,Wr8583,5,[noparse][[/noparse]STR regMoDay]
I2COUT I2Cpin,Wr8583,6,[noparse][[/noparse]STR regYrDate]

And i did the similar thing with this line:
'I2CIN I2Cpin,Rd8583,0,[noparse][[/noparse]STR regCtrl\7]

But now the time does not increment, the time is always whatever i
inputed.

Thanks for your help

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-11-26 13:23
    Either syntax should work. The STR modifier sends multiple bytes, starting
    at the variable specified. If your clock is not incrementing, you may have a
    crystal connection problem.

    -- Jon Williams
    -- Parallax


    In a message dated 11/26/02 3:41:35 AM Central Standard Time,
    engrmaps@y... writes:


    > I was able to get the lcd to display what i inputed via the debug
    > screen. I had to change this line:
    > 'I2COUT I2Cpin,Wr8583,2,[noparse][[/noparse]STR regSecs\5]
    >
    > to these lines:
    > I2COUT I2Cpin,Wr8583,2,[noparse][[/noparse]STR regSecs]
    > I2COUT I2Cpin,Wr8583,3,[noparse][[/noparse]STR regMins]
    > I2COUT I2Cpin,Wr8583,4,[noparse][[/noparse]STR regHrs]
    > I2COUT I2Cpin,Wr8583,5,[noparse][[/noparse]STR regMoDay]
    > I2COUT I2Cpin,Wr8583,6,[noparse][[/noparse]STR regYrDate]
    >
    > And i did the similar thing with this line:
    > 'I2CIN I2Cpin,Rd8583,0,[noparse][[/noparse]STR regCtrl\7]
    >
    > But now the time does not increment, the time is always whatever i
    > inputed.
    >
    > Thanks for your help
    >




    [noparse][[/noparse]Non-text portions of this message have been removed]
Sign In or Register to comment.