Jump to content
rycco1426459928

I2C on Stellaris Launchpad

Recommended Posts

Have you tried the NXP PCF2129A instead?

 

The PCF2129A operates at 3.3V, embeds the quartz crystal and requires no passive components, except the 10kΩ pull-up resistors for the I²C bus.

 

Actually, the LM4F120 / TM4C123 already includes a RTC, but the battery power line for LPM is connected to the main power line.

 

I got it all up and running with 1307, just as I wrote: Vbus as supply (5V) and with 3.3V on pullup i2c resistors. PCF is not available in DIP, while DS1307 is. Thanks for the hint anyway.

 

Addendum: Besides, the DS1307 features an NVRAM. Comes handy for the project I am working on right now: newtonian telescope controller: store mount specific configuration instead of compile-in.

Edited by sq7bti

Share this post


Link to post
Share on other sites

Just have a look at the datasheet of the LaunchPad Stellaris - Tiva C. When you remove the shunts, I²C is no longer redirected to pins 14 and 15.

 

I²C on pins 14 and 15 complies with the old BoosterPack standard, where MSP430 MCUs bring SPI and I²C to those pins. So main benefit is you use SPI on pins 14 and 15 without sacrificing an I²C port on pins 23 and 24. Please note this is only valid for the LaunchPad Stellaris LM4F120 - Tiva C TM4C123.

 

On today's standard for BoosterPacks, I²C is on pins 9 and 10.

Share this post


Link to post
Share on other sites

Just have a look at the datasheet of the LaunchPad Stellaris - Tiva C. When you remove the shunts, I²C is no longer redirected to pins 14 and 15.

 

I²C on pins 14 and 15 complies with the old BoosterPack standard, where MSP430 MCUs bring SPI and I²C to those pins. So main benefit is you use SPI on pins 14 and 15 without sacrificing an I²C port on pins 23 and 24. Please note this is only valid for the LaunchPad Stellaris LM4F120 - Tiva C TM4C123.

 

On today's standard for BoosterPacks, I²C is on pins 9 and 10.

 

Yes I have figured that out the hard way.

 

Anyways, now my mpu9150Lib port to energia is working better. I get:

 

Init MPU9150.
Setting up compass.
Compass sens: 298 299 312
Loading DMP firmware
Firmware loaded
46
47
45
46
49
47
 
But the sensor rate will not go less than 45ms. on arduino nano, I can get 100hz (10ms) reading from this sensor, making it really nice.
 
Previously, I had those shunt resistors, that was making dmp load some of the time and not some of the time. Now I fixed them and there is the speed problem.
 
I am looking at the MPU9150Lib code, and see that no micros used, (only millis for timing)
 
I am sure it is a clocking problem, because, when i run the same library in arduino due, i get the same exact problem. it has to be an i2c quirk.
 
Best Regards,
C.A.

Share this post


Link to post
Share on other sites

I've one SensorHub BoosterPack with a MPU9150. I could give a try: would you mind posting the link to the library you're using and to the part of your sketch relevant to the IMU configuration and management? Thank you.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...