16F630 and MCP3221 I2C


Results 1 to 13 of 13

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    badcock,

    The datasheet for the MCP3221 is a bit ambiguous. While the graphic in figure 5-2 shows the device code as 1001. The text in section 5.2 says that it's 1010.

    I've never used that part before, so I don't know which one it really is, but you might try ...

    cont con %10101010

    Also, the first byte sent (B1) is the highbyte. So the A/D value will have to be greater than 1280 (1.56V) to satisfy the B1 > 2 condition.

    And, don't forget the pull-up resistors on SDA and SCL.<br><br>
    Last edited by Darrel Taylor; - 18th August 2005 at 09:40.
    DT

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