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>
Bookmarks