cant tick DS1307 please help......


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: cant tick DS1307 please help......

    When you write to the seconds register location 0 with $10, then you are clearing the bit automatically as the byte will be in binary 00010000, so bit 7 will be a zero and the clock will run.

    The shape of the crystal is not important, it is the specification that is important. Do you have any specification of the crystal you have ?

    If the crystal has a different load capacitance (CL) greater or smaller than 12.5pF, the chip will either not run or if it does run then the speed may not be 32768.

    Which PIC are you using ? and what speed is it running at ?

    Depending on the Pic and speed you may have to put the following DEFINE in your program.

    The timing of the I2C instructions is set so that standard speed devices (100KHz) will be accessible at clock speeds up to 8MHz. Fast mode devices (400KHz) may be used up to 20MHz. If it is desired to access a standard speed device at above 8MHz, the following DEFINE should be added to the program:
    DEFINE I2C_SLOW 1

  2. #2
    Join Date
    Dec 2011
    Posts
    5


    Did you find this post helpful? Yes | No

    Default Re: cant tick DS1307 please help......

    thank U friend again!!
    my pic is a 16f877 4Mhz xtal....
    i think that my ds107 crystal is the problem...as i have note in youtube videos only cylindrical xtal are using...!!!!
    and when i press mine the lcd snow up one sec!!!!
    my xtal is a Hosonic 32768 B221....
    the problem is now that....in my small town i cant find cylidrical xtals!!!

  3. #3
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default Re: cant tick DS1307 please help......

    Check if DS1307 work with one LED, like in picture !
    Attached Images Attached Images  

  4. #4
    Join Date
    Dec 2011
    Posts
    5


    Did you find this post helpful? Yes | No

    Default Re: cant tick DS1307 please help......

    Fratello no it does not.....but i have news i almost destroy my crystal and with a small weight on it...it working!!!!!
    not so good is true..but my lcd is changing numbers at last!!!
    i think that my crystal is the problem.... i think a cylictrical xtal is nessesary to work ds1307...in youtube videos
    every crystal i saw is a small cylidrical....
    now how seconds are change and the led is not flashing...i dont know!!!!!!
    thank 4 the reply

  5. #5
    Join Date
    Dec 2011
    Posts
    5


    Did you find this post helpful? Yes | No

    Default Re: cant tick DS1307 please help......

    .....ok.............
    i bought a 32768 Mhz xtal instead of a 32768 Khz?????????????????
    YES!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    thanks folks for all replies!!!
    happy new years day!! with many electro-cookings!!!!

  6. #6


    Did you find this post helpful? Yes | No

    Default Re: cant tick DS1307 please help......

    Hi Did you get your code eventually working ??? Do you mind sending me the code I am trying to get the very similar thing going only want to sent the time out via Rs232

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