I2C Read/Write problems


Results 1 to 24 of 24

Threaded View

  1. #9
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Not sure... sure i misunderstand what you said.
    Code:
            addr var word
            CTL CON $A0
            addr=$F0F0
    
    SendIt:
            I2CWRITE PORTD.6, PORTD.7,CTL,addr,[$F1F2]
            pause 50
            goto sendit
    will looks like...
    <img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=2461&stc=1&d=120717761 2">

    But yeah.. on some device, the Address can be mixed with the ControlByte. EEPROMs such as some 24C04, c08 and c16 work like that.
    <img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=2462&stc=1&d=120717799 9">

    They call it page select (sort of)... those Px bits...

    NOTE: well it's not a 24lc64screenshot but anyways.
    Attached Images Attached Images   
    Last edited by mister_e; - 3rd April 2008 at 00:30. Reason: Datasheet 24Cxx
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

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 slave
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 16th March 2008, 03:46
  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