How can I initiate i2c


Closed Thread
Results 1 to 2 of 2
  1. #1
    icaotyr's Avatar
    icaotyr Guest

    Question How can I initiate i2c

    Im working with two pics in the I2C mode to communicate coth, the one that I have problems is the master cuase i dont know why but I cant initiate the communication. Im working with the MPLAB im a begginer. I think that theres some part of the code that im missing but I dont know what. Please help
    Attached Files Attached Files

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959

    Default

    Hi icaotyr,

    Most of your ASM statements are backwards.
    For instance,

    BTFSS SSPIF,PIR1

    should be

    BTFSS PIR1,SSPIF
    DT

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. PIC16F877 I2C programme
    By cooqo in forum mel PIC BASIC
    Replies: 3
    Last Post: - 21st April 2008, 10:02
  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 : 1

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