I2C problems


Closed Thread
Results 1 to 3 of 3

Thread: I2C problems

  1. #1
    Mad_Labs's Avatar
    Mad_Labs Guest

    Default I2C problems

    Hi All,

    I'm having trouble with I2C. I am trying to communicate with a MAX6953, which is a 5x7 LED matrix display driver. I have had the device up and running with a Stamp, but can't get it to work with a PIC.

    The PIC I am using is the 16F88. I am using the internal OSC at 8mHz. I am using portb.0 for SDA and portb.1 for SCL. I have tried using the DEFINE I2C_Slow.

    Any ideas what could be causing the problem?

    Thanks,

    Jonathan

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Defines should all be in UPPERCASE and ensure you check your SPELLINGS of them, as they may not flag errors in any compilation...

    http://www.picbasic.co.uk/forum/showthread.php?t=558

    I2CREAD and I2CWRITE are really easy to fly with no issues providing you follow the rules in the PICBasic manual...

    http://www.picbasic.co.uk/forum/showthread.php?t=587

    Please do check the FAQ's...

  3. #3
    Mad_Labs's Avatar
    Mad_Labs Guest


    Did you find this post helpful? Yes | No

    Default

    Melanie,

    I had checked the FAQ, your posts and the book. The problem turned out to be (after mucho hair pulling) a bum PIC pin.

    Thanks for the help tho!

    Jonathan

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 Read/Write problems
    By Dispersion123 in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 5th April 2008, 15:11
  4. I2C Master Slave issues.
    By cpayne in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 29th March 2008, 19:33
  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