I2C Slave with a PIC


Closed Thread
Results 1 to 40 of 130

Hybrid View

  1. #1
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    Pedro, I am not sure to understand your question correctly, but I try to answer

    Master remain master. Slave will not return your 4 bytes without a proper request. When you want the 4 bytes back to the master then you make the request with:
    Code:
    I2CRead SDA,SCL,I2Caddress,[str YourBuffer\4], bogus
    and you will find the four bytes into the array YourBuffer that you have properly declared in your MASTER.

    Al.
    All progress began with an idea

  2. #2
    Pedro Pinto's Avatar
    Pedro Pinto Guest


    Did you find this post helpful? Yes | No

    Default

    Good morning Al

    Thank You, now i understand it

    Best regards
    Pedro

  3. #3


    Did you find this post helpful? Yes | No

    Default

    I've been wondering... And it's just out of curiosity...

    We are sending and receiving bytes, right?

    Is it possible to send and receive words?

    Thanks!

    Daniel.

  4. #4
    Join Date
    Oct 2008
    Location
    Southern California
    Posts
    17


    Did you find this post helpful? Yes | No

    Cool

    I've been wondering the same thing - I need to move words and was just willing to break them up into two bytes, but maybe it's worth tracking it down to get a final answer.

Similar Threads

  1. Problem with PICto PIC I2C MASTER-SLAVE
    By juanen19 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 11th June 2013, 03:58
  2. PIC as I2C Slave
    By Mainul in forum General
    Replies: 4
    Last Post: - 5th January 2013, 14:23
  3. I2C Slave, config Vref - + in pic with ADC
    By sebapostigo in forum PBP Wish List
    Replies: 4
    Last Post: - 5th March 2007, 04:21
  4. Pic as an i2c slave
    By Robert Soubie in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 25th January 2007, 22:11
  5. Use pic as slave in I2C
    By robert0 in forum General
    Replies: 2
    Last Post: - 3rd February 2006, 20:26

Members who have read this thread : 2

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