Page 1 of 1

nios ii and interfacing of ITG-3200 using i2cbus

Posted: Tue Oct 16, 2012 1:56 am
by NAIWRITA DEY
Hello everybody,

I want to interface a 3 axis digital gyroscope ITG-32OO through i2c bus to a cyclone fpga kit(EP1C12Q240C8). But this kit does not contain nios ii processor so whether is it possible to interface the gyro through i2c bus with cyclone or not.Is there any other option except nios ii processor which contains i2c controller??
Please help me if anyone knows.Thanh you

Re: nios ii and interfacing of ITG-3200 using i2cbus

Posted: Tue Oct 16, 2012 6:31 am
by fll-freak
It is of course possible to interface, but you will have to either find an I2C VHDL implementation or write it yourself. I assume you wish to initialize the chip, then read the gyro values, integrate them, and make then available via another communication channel to another device? Or perhaps rather than communicating the data, use it directly for some control system?

If you are able to write the VHDL for the integration, and communication/control, I would think you have the skills to write a simple I2C interface. Many people using micros that do not have an I2C peripheral will bit bang an I2C interface. You can do the bit bang approach on your FPGA.

Re: nios ii and interfacing of ITG-3200 using i2cbus

Posted: Tue Oct 16, 2012 6:51 am
by leon_heller
Try the Altera forum.

Re: nios ii and interfacing of ITG-3200 using i2cbus

Posted: Tue Oct 16, 2012 10:25 pm
by NAIWRITA DEY
Hello sir,
Thank you for the Opinion.I don't know VHDL coading.Is it possible to write the i2c interface module also through verilog coading?

Re: nios ii and interfacing of ITG-3200 using i2cbus

Posted: Tue Oct 16, 2012 11:02 pm
by leon_heller
Of course you can!

Re: nios ii and interfacing of ITG-3200 using i2cbus

Posted: Thu Oct 18, 2012 4:51 am
by NAIWRITA DEY
Sir
I have studied "i2c bit banging" but i can not make a clear idea about it.If you kindly send me some link or give any example where bit banging method have been used then i can proceed.

Thank you.

Re: nios ii and interfacing of ITG-3200 using i2cbus

Posted: Thu Oct 18, 2012 5:43 am
by fll-freak
Google "bit bang I2C". First two hits are resonable websites.