nios ii and interfacing of ITG-3200 using i2cbus

General suggestions or questions about the SparkFun Electronics website

Moderators: phalanx, CS Paul

Post Reply
NAIWRITA DEY
Posts: 3
Joined: Mon Oct 15, 2012 11:38 pm

nios ii and interfacing of ITG-3200 using i2cbus

Post by NAIWRITA DEY » Tue Oct 16, 2012 1:56 am

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

fll-freak
Support Volunteer
Posts: 1518
Joined: Tue May 12, 2009 8:23 am
Location: New Hampshire, USA
Contact:

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

Post by fll-freak » Tue Oct 16, 2012 6:31 am

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.

User avatar
leon_heller
Support Volunteer
Posts: 5734
Joined: Sun May 01, 2005 11:20 am
Location: St. Leonards-on-Sea, E. Sussex, UK.

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

Post by leon_heller » Tue Oct 16, 2012 6:51 am

Try the Altera forum.
Leon Heller
G1HSM

NAIWRITA DEY
Posts: 3
Joined: Mon Oct 15, 2012 11:38 pm

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

Post by NAIWRITA DEY » Tue Oct 16, 2012 10:25 pm

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?

User avatar
leon_heller
Support Volunteer
Posts: 5734
Joined: Sun May 01, 2005 11:20 am
Location: St. Leonards-on-Sea, E. Sussex, UK.

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

Post by leon_heller » Tue Oct 16, 2012 11:02 pm

Of course you can!
Leon Heller
G1HSM

NAIWRITA DEY
Posts: 3
Joined: Mon Oct 15, 2012 11:38 pm

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

Post by NAIWRITA DEY » Thu Oct 18, 2012 4:51 am

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.

fll-freak
Support Volunteer
Posts: 1518
Joined: Tue May 12, 2009 8:23 am
Location: New Hampshire, USA
Contact:

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

Post by fll-freak » Thu Oct 18, 2012 5:43 am

Google "bit bang I2C". First two hits are resonable websites.

Post Reply