PIC18F I2C Communication with Arduino


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    2,653


    Did you find this post helpful? Yes | No

    Default Re: PIC18F I2C Communication with Arduino

    try it like this
    Arduino i2c address' are 7bit
    pbp uses 8bit


    ADDR = $26 ' 7bit Arduino I2C address
    addr=addr<<1 ;shift to 8 bitformat



    I2CWrite SDA,SCL,ADDR,[0]
    Warning I'm not a teacher

  2. #2
    Join Date
    May 2016
    Posts
    33


    Did you find this post helpful? Yes | No

    Default Re: PIC18F I2C Communication with Arduino

    Quote Originally Posted by richard View Post
    try it like this
    Arduino i2c address' are 7bit
    pbp uses 8bit


    ADDR = $26 ' 7bit Arduino I2C address
    addr=addr<<1 ;shift to 8 bitformat



    I2CWrite SDA,SCL,ADDR,[0]
    It worked! Thanks alot!

Similar Threads

  1. Interfacing with Arduino I2C LCD
    By norohs in forum Documentation
    Replies: 47
    Last Post: - 30th May 2017, 18:53
  2. I2C lcd ( arduino ) with PICBASIC, help
    By iw2fvo in forum mel PIC BASIC Pro
    Replies: 92
    Last Post: - 10th September 2014, 18:00
  3. EEprom and MCP9801 I2C communication problems
    By aajgss in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 3rd September 2011, 21:45
  4. How do I operate an Arduino I2C LCD
    By menta in forum General
    Replies: 8
    Last Post: - 13th July 2011, 02:28
  5. Replies: 2
    Last Post: - 10th June 2005, 02:34

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