I2C write - value too big


Results 1 to 20 of 20

Threaded View

  1. #13


    Did you find this post helpful? Yes | No

    Default

    Hello sayzer, Mister-e and Acetronics

    1. You have two "goto" s one after the other. When the first one runs, the second one will not run!
    this is true. I sampled this section from the hole code to test your help but there are some " ' " missing there.

    However, removing the missing links and compiling errors the final result is the same.


    Code:

    I2CREAD SDA,SCL,CTW,ADDR.highbyte,addr.lowbyte,[tempe]

    Why do you split addr in 2 ?
    Code:

    I2CREAD SDA,SCL,CTW,ADDR,[tempe]

    This have to be changed in ALL I2CREAD AND I2CWRITE lines
    This is my biggest problem. What you suggested was my first written code and it didnt worked.

    This was my problem in the past and resolved with the help of Skimask.
    (see post...)
    http://www.picbasic.co.uk/forum/showthread.php?t=8153

    Frankly,i didnt understood then as i still dont now, but it worked.

    The problem now is that it's not returning good values after the 127 mark and i believe that it's related with 1111111 going to 10000000 since that i read nothing but 000.x from there.

    ( see attached pic )

    .
    Attached Images Attached Images  

Similar Threads

  1. I2C Master/Slave 16F88/16F767 working code
    By DanPBP in forum Code Examples
    Replies: 2
    Last Post: - 23rd October 2012, 23:31
  2. HARDWARE I2C SAMPLE CODE question
    By Michael Wakileh in forum Code Examples
    Replies: 2
    Last Post: - 16th June 2009, 22:07
  3. Replies: 5
    Last Post: - 29th May 2008, 19:03
  4. PIC16F877 I2C programme
    By cooqo in forum mel PIC BASIC
    Replies: 3
    Last Post: - 21st April 2008, 11:02
  5. I2C Master Slave issues.
    By cpayne in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 29th March 2008, 20:33

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