ds1307 i2c


Results 1 to 7 of 7

Thread: ds1307 i2c

Threaded View

  1. #3
    Join Date
    May 2008
    Posts
    10


    Did you find this post helpful? Yes | No

    Default thanks for your reply

    the problem is that I can read data and also I manage to send data to eeprom and ds1307
    but sometimes is says data collision and reset program ...
    it does nor importtant how long I use pause 10 20 50 does not matter ...

    Code:
         i2cread  SDA,scl,$D0,0,[sec,mnt,hour,day,month]
        pause 25 
               if amper>8 then
               Adres = Adres +4 
    
    
               I2CWRITE SDA,SCL,$A0,Adres,[hour,mnt,sec,amper],hatavar
               
                 pause 25
           endif
    
    hatavar:
    		LCDOut $fe,1, "wrt timed out"	' I2C command timed out
    		Pause 100
            RETURN
    Last edited by tamertokgoz; - 13th June 2008 at 10:19. Reason: because of prononciation mistakes

Similar Threads

  1. I2C Master/Slave 16F88/16F767 working code
    By DanPBP in forum Code Examples
    Replies: 2
    Last Post: - 23rd October 2012, 22:31
  2. HARDWARE I2C SAMPLE CODE question
    By Michael Wakileh in forum Code Examples
    Replies: 2
    Last Post: - 16th June 2009, 21:07
  3. I2C Master Slave issues.
    By cpayne in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 29th March 2008, 19:33
  4. I2C eeprom and DS1307 @40MHz problem
    By ius01 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 20th July 2007, 07:41
  5. Please help with i2cslave i2c slave
    By cycle_girl in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 1st December 2005, 13:55

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