FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

DE2-70 adv7180

Altera_Forum
Honored Contributor II
1,032 Views

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?

0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
105 Views

Wrong address? Check read and write addresses.

Altera_Forum
Honored Contributor II
105 Views

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 

The address is (according to de2 manual) 0x40. One bit shift to the left + write bit = 0x80. Also, when i register the isr, the first interrupt occures because of arbitration lost it might mean something or simply core bug i don't know.
Altera_Forum
Honored Contributor II
105 Views

Usually, the read/write depends on the last bit, so should be 0x40/0x41?

Reply