I2C clock code with tiny problem


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default Re: I2C clock code with tiny problem

    just if ... by greatest hazards ...

    DS1337C ONLY
    The DS1337C integrates a standard 32,768Hz crystal in the package. Typical accuracy at nominal VCC and +25°C is approximately +10ppm. Refer to Application Note 58 for information about crystal accuracy vs. temperature.
    that checked ...


    Bit 7: Enable Oscillator (EOSC). This active-low bit when set to logic 0 starts the oscillator. When this bit is set to logic 1, the oscillator is stopped. This bit is enabled (logic 0) when power is first applied
    that states the device should run by itself @ power up ...

    IF it's not accidentally overwritten ...

    now ... did you notice the very low Xtal charge capacitance value ???

    Alain
    Last edited by Acetronics2; - 25th October 2013 at 18:30.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  2. #2
    Join Date
    Apr 2011
    Location
    Welches, Oregon
    Posts
    198


    Did you find this post helpful? Yes | No

    Default Re: I2C clock code with tiny problem

    With each post I, again, verify without prejudice. Chip is DS1337, "Special" registers report valid (functioning) values before being written, and verify valid values after first write (as described in RTFM). I did not notice low capacitor values, rather stuck a crystal in the appropriate holes without consideration for any value but frequency, yet it has worked without glitch for several days until after I thought I loaded "perfect" version of code.

    I will see what I can do with that... though ordering crystals is as time consuming as ordering chips and, I still don't know if/ why it worked so well and stopped so suddenly.

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default Re: I2C clock code with tiny problem

    after years ( or not ! ) Xtals die without any announcements ...

    I already experienced that ... ( with R/C Models : Ayayayay ... )

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  4. #4
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Re: I2C clock code with tiny problem

    Quote Originally Posted by Acetronics2 View Post
    after years ( or not ! ) Xtals die without any announcements ...

    I already experienced that ... ( with R/C Models : Ayayayay ... )

    Alain
    Good information to know, thanks Alain.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  5. #5
    Join Date
    Apr 2011
    Location
    Welches, Oregon
    Posts
    198


    Did you find this post helpful? Yes | No

    Default Re: I2C clock code with tiny problem

    I double checked both RTFM and crystal specs; they match, but as a precaution, I replaced it... and perfect! Time advances normally. Perhaps static? One again, I am stymied by the smallest thing, but different eyes (or minds) offer resolution. Thank you again, good to know my coding is correct.

    All the best--

    Amoque

Similar Threads

  1. i2c clock speed on 16F887
    By robertpoll in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 29th April 2010, 10:52
  2. Tiny Bootloader 18F2420
    By ultiblade in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 31st March 2010, 18:32
  3. I2C function... clock pin?
    By Qacer in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 2nd February 2006, 23:09
  4. I2C clock frequency?
    By Qacer in forum Serial
    Replies: 8
    Last Post: - 27th January 2006, 15:40
  5. Tiny bootloader and 18F4525
    By Najim in forum Off Topic
    Replies: 1
    Last Post: - 11th January 2006, 12:43

Members who have read this thread : 1

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