Hello. I can not initialize the adv7180 adc over i2c - no akcnowledgement returns when i write its address. The "reset" is tied to '1', also tried to follow datasheet (5ms reset -> program) it does not affect. Any ideas what can be wrong?
Link Copied
Wrong address? Check read and write addresses.
IOWR_8DIRECT(I2C_BASE,OC_I2C_TXR,0x80); //write slave address+write bit
IOWR_8DIRECT(I2C_BASE,OC_I2C_CR,0x90); //set STA, set WR
Usually, the read/write depends on the last bit, so should be 0x40/0x41?
For more complete information about compiler optimizations, see our Optimization Notice.