I have a component that uses a 16-bit register write, and I'm a bit unsure if the BP is writing and reading correctly.
Does this look correct? (from a terminal session) There doesn't look like there's any distinction when I write a 0x000A or a 0x010A.
I2C>[0x34 0x000A 0x47 0x81]
I2C START BIT
WRITE: 0x34 NACK
WRITE: 0x0A NACK
WRITE: 0x47 NACK
WRITE: 0x81 NACK
I2C STOP BIT
I2C>[0x34 0x010a 0x47 0x81]
I2C START BIT
WRITE: 0x34 NACK
WRITE: 0x0A NACK
WRITE: 0x47 NACK
WRITE: 0x81 NACK
I2C STOP BIT
I believe the code only supports 8bit I2C registers. Sjaak added adjustable bits to the code though, so he would be the final word.
Do you have a datasheet for the chip?
Standard does the buspirate 8bit read/writes. you can send more bits with the ; postfix, i.e. 0x55AA;16 after this all subsequent read/writes are 16 bits. with i2c a 16 bits can also be written as two 8bits: 0x55 0xAA
btw everything is nacked, so please check your coonnections. I guess you forgot the the pullups..