I2C write - value too big


Results 1 to 20 of 20

Threaded View

  1. #14


    Did you find this post helpful? Yes | No

    Default

    Well, i think i just fixed one problem and found a new one

    I have sucessfuly use the code " I2CREAD SDA,SCL,CTW,ADDR,[tempe] ".

    After several changes i tryed Mister-e's suggestion and removed the OSCTUNE=0 line.

    It doesnt make sense to me ( or does it ? ), but it's working this way now.

    The new problem that i found is that while debugging i found out that the problem related with getting low values passed the 120'ich mark IS NOT related with the eeprom/low-highbytes.

    I got a variable resistor to simulate the LM35 and was changing the value while recording, and i could see that the value captured dropped after the conversion and before recording to the eeprom.

    this is the capture while increasing the variable resistor
    Code:
    111,3
    111,3
    111,8
    112,3
    112,3
    112,7
    112,7
    113,2
    113,7
    114,2
    114,7
    115,2
    115,7
    116,2
    117,6
    118,1
    118,6
    118,6
    118,6
    118,6
    119,1
    121
    121,5
    122
    122,5
    122,5
    122,5
    122,5
    0,4
    0,9
    0,4
    0,9
    0,4
    0,9
    0,4
    0,9
    0,4
    0,9
    now i'm lost

    .
    Last edited by ruijc; - 6th April 2008 at 12:37.

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. Replies: 5
    Last Post: - 29th May 2008, 18:03
  4. PIC16F877 I2C programme
    By cooqo in forum mel PIC BASIC
    Replies: 3
    Last Post: - 21st April 2008, 10:02
  5. I2C Master Slave issues.
    By cpayne in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 29th March 2008, 19: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