AnsweredAssumed Answered

TWI driver artefact

Question asked by pfeifferc on Apr 13, 2010
Latest reply on Apr 13, 2010 by pfeifferc

Hi !

I'm using the TWI driver for BF537 to communicate with different I2C devices on I2C/TWI bus.

So no i have a codec with I2C address 9E.

But driver eliminates MSB as master for address. (see code snippet take from adi_twi.c)

 

// grab the address for the transfer from the buffer
drv->twi->master_addr.reg=(u8)(((u32)buffer->pAdditionalInfo)&0x7F);

 

So i'm not able to communicate with this device without modification of the twi-driver,

is there another solution to communicate via driver and I2C addresses >$7F  ?

 

i'm using pAdditionalInfo to set the SlaveAddr.

e.g buffer.pAdditionalInfo = (void*)0x9E;

 

regards chris

Outcomes