Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow I²C 400-kHz Fast-mode (Fm) #282

Closed
rei-vilo opened this issue Oct 21, 2013 · 6 comments · May be fixed by #343
Closed

Allow I²C 400-kHz Fast-mode (Fm) #282

rei-vilo opened this issue Oct 21, 2013 · 6 comments · May be fixed by #343

Comments

@rei-vilo
Copy link
Member

Allow I²C 400-kHz Fast-mode (Fm)

@Luis-R-A
Copy link

Is this for the msp430 or for stellaris?
For stellaris you can use: http://forum.stellarisiti.com/topic/1592-energia-library-i2c-api-on-energia/

@rei-vilo
Copy link
Member Author

Thanks.

For both, as mentioned in the labels.

@dspdon
Copy link

dspdon commented Jan 22, 2016

I realize this Issue is 2+ yrs old ... I'm failing to compile legacy Arduino code that calls Wire.setClock(400000U) to achieve Fm I2C with Energia IDE. I'm using (trying to use) RBL CC3200 WiFi device. The branch #343 seems specific to Stellaris, not the CC3200 I'm using (e.g., the Wire lib I just installed doesn't have the setClock definition).

@rei-vilo
Copy link
Member Author

If you're using I²C in slave mode, it sets itself automatically to standard mode (100 kHz), fast mode (400 kHz) and fast mode plus (1 MHz).

@dspdon
Copy link

dspdon commented Jan 23, 2016

Right: an I2C slave (e.g., a sensor such an accelerometer) reacts to the clock generated by an I2C master. But an I2C master (e.g., a CC3200 talking to the sensor) generates the clock and must have that rate explicitly specified if it's not the default. That's what Wire.setClock(rate) does, and is missing from Energia CC3200 Wire lib. If you've set 400kHz or higher I2C rates on this platform, let me know how you achieved that. That would be the code needed to implement setClock...

@robertinant
Copy link
Member

This issue was moved to energia/tivac-core#36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment