What is the preferred or max I2C speed for Gamebuino?

Understanding the language, error messages, etc.

What is the preferred or max I2C speed for Gamebuino?

Postby Zvoc47 » Mon Oct 31, 2016 10:12 pm

I'm working on a project that involves I2C and I would like to know what speed Gamebuino uses. I'm interfacing it with an Arduino Zero.
Zvoc47
 
Posts: 56
Joined: Mon Oct 05, 2015 10:03 pm

Re: What is the preferred or max I2C speed for Gamebuino?

Postby rodot » Tue Nov 01, 2016 8:55 am

Hey,
The Gamebuino is based on Arduino Uno, so it uses it's default 100kHz.

They explain in this Arduino forum post how to increase it to 400kHz, but I doubt it's really necessary.
The advantage of I2C is that you can have many slaves with no extra pins thank to the adresses system. But if you want more speed, you can use the SPI bus (talking about MEGA hertz here, wow!) which is accessible though the 6 pin ISP port on the left of the Gamebuino. Beware, as this bus is shared between the screen and the micro SD, don't leave your slave enabled when not communicating, or it will interfere. You can use the pins from the I2C as outputs to drive the chip select pin of your slave.
User avatar
rodot
Site Admin
 
Posts: 1290
Joined: Mon Nov 19, 2012 11:54 pm
Location: France

Re: What is the preferred or max I2C speed for Gamebuino?

Postby Zvoc47 » Tue Nov 01, 2016 11:37 pm

I need both multiplayer and the Arduino Zero on I2C. How could I achieve that? As the SPI data transfer will be handled by DMA and not the CPU of Zero, how am I supposed to stop the SPI transfer over I2C without the CPU intervening. The CPU will probably be busy with rendering the TV output.

P.S. I'm working on a "pseudo-graphics card" for Gamebuino that would give the games better graphics.
Zvoc47
 
Posts: 56
Joined: Mon Oct 05, 2015 10:03 pm


Return to Programming Questions

Who is online

Users browsing this forum: No registered users and 12 guests

cron