Forum Discussion
Altera_Forum
Honored Contributor
16 years agoI got a problem on DE2-TV,I2C_controller
I2C_SCLK begins at SD_COUNTER 4 and ends at SD_COUNTER 30,while I2C_SDAT begins at SD_COUNTER 3 and ends at SD_COUNTER 29.Why don's they transfer data in the same time. IN addation ,I2C_SDA...
Altera_Forum
Honored Contributor
16 years ago --- Quote Start --- the first couple of counts sets up the start condition for the write process and the last couple of counts are the end condition. I2C_DAT is the program data coming into this module and I2C_SDAT is the serial data going to the codec. Hope this helps --- Quote End --- Thanks for your help.According to your explanation I understand it. And I hope you can help me to solve another problem: wire I2C_SDAT=SDO?1'bz:0 ; It is the above problem too.It looks like that, the data does not transferred to the slave chip.When the data is "0",the controller writes 0 to I2C_SDAT,but when it is "1",the controller writes "z" to I2C_SDAT ,so writing is shut up. It is about I2C_BUS. Thank you very much!