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) #36

Open
robertinant opened this issue Aug 30, 2017 · 5 comments
Open

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

robertinant opened this issue Aug 30, 2017 · 5 comments

Comments

@robertinant
Copy link
Member

From @rei-vilo on October 21, 2013 14:53

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

Copied from original issue: energia/Energia#282

@robertinant
Copy link
Member Author

From @Luis-R-A on October 21, 2013 15:11

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/

@robertinant
Copy link
Member Author

From @rei-vilo on October 21, 2013 15:45

Thanks.

For both, as mentioned in the labels.

@robertinant
Copy link
Member Author

From @dspdon on January 22, 2016 20:12

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).

@robertinant
Copy link
Member Author

From @rei-vilo on January 22, 2016 20:16

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).

@robertinant
Copy link
Member Author

From @dspdon on January 23, 2016 2:41

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...

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

No branches or pull requests

1 participant