Interfacing with RTC chips like NJU6355


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1

    Default Interfacing with RTC chips like NJU6355

    Does anyone have some sample code to interface
    with NJU6355 RTC. I have a good supply of them
    and I’d like to put them to use.

    Nick

  2. #2


    Did you find this post helpful? Yes | No

    Default

    I found a way to "talk" to NJU6355 RTC chip.
    Here are read and write subs for it:

    settime:
    IO = 1
    CE = 1
    ShiftOut SDATA, CLK, LSBFIRST, [rtcyear, rtcmonth, rtcdate, rtcday\4, rtchr, rtcmin]
    CE = 0
    Return
    gettime:
    IO = 0
    CE = 1
    ShiftIn SDATA, CLK, LSBPRE, [rtcyear, rtcmonth, rtcdate, rtcday\4, rtchr, rtcmin, rtcsec]
    CE = 0
    Return

    Nick

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Now, I understand that I can send the values of
    time (hours, minutes and seconds) serially as HEX2 values to a terminal.
    I also understand that the RTC chip will show a string of "E"s if
    the time is not set.
    How can I catch that?
    What do I need to do to be able to use logical operators and make sure
    I'm comparing aples with aples?
    Should I start a new thread or keep this one?

    Nick

Similar Threads

  1. example code for DS1337
    By TONIGALEA in forum mel PIC BASIC Pro
    Replies: 25
    Last Post: - 8th December 2009, 21:16
  2. PIC 16F877 I2C communications
    By sigmoideng in forum General
    Replies: 7
    Last Post: - 13th July 2007, 10:28
  3. 4 EEPROM Chips Recording Routine
    By Tom Gonser in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 15th August 2006, 21:11
  4. X1226 RTC - Help
    By charudatt in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 14th August 2006, 17:54
  5. Interfacing RTC (DS1302) with pic16F676
    By Andrew_A in forum Off Topic
    Replies: 1
    Last Post: - 14th February 2006, 08:49

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts