Jump to content
43oh

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
Link to post
Share on other sites
  • 2 months later...
  • Replies 36
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

There's a trick with I2C port 3 on the LaunchPads LM4F120 and TM4C123.     Just remove R9 and R10.

Well I had similar problems with my ADXL345 module (with 5v to 3.3v regulator). Both with SPI and I2C. First I wrongly connected the 5v supply to the 3.3v rail. So I ended up replacing the IC on the m

Thanks for all help, I got it work:   #include <Wire.h>  #include <LiquidCrystal_I2C.h>   LiquidCrystal_I2C lcd(0x27,16,2);  // set the LCD address to 0x27 for a 16 character, 2 line dis

Posted Images

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.

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.
Link to post
Share on other sites
  • 1 month later...

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