I2C issue


Results 1 to 17 of 17

Thread: I2C issue

Threaded View

  1. #1
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107

    Default I2C issue

    I'm trying to use the uChip MCP4561 EEPOT. I can read from it just fine, I just can't do a write using I2CWRITE, and Microchip tells me that the device must have a NACK at the end of each data transfer in order to work properly.

    For example:

    If I want to WRITE two bytes tp address 0x5D, I use the code

    I2CAddress = $5D

    I2CWRITE SDA,SCL,I2CAddress, Command,[Byte1,Byte2]

    PBP sends out the WRITE request to the Address and gives an ACK
    It sends out the command and gives an ACK
    It sends byte 1 and gives an ACK
    It sends byte 2 and gives an ACK <- should give NACK here, since this is the last byte of the transfer.

    The MCP4561 holds the data bus low (forever). Is this a fault in PBP or my logic? In any case, does anyone know what I should try next?
    Last edited by Charles Linquis; - 17th October 2011 at 15:44.
    Charles Linquist

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