Jump to content
Forum sending old emails Read more... ×
w2sqr

Are USB and I2C ports compatible?

Recommended Posts

I'm in the middle of a project using the f5529 launchpad and Energia.  I'm trying to use both the USB and the I2C port at the same time.  I can initialize the USB and see it enumerate in the windows device manager and I can read/write to it and it works properly.  But as soon as I try to enable the I2C port using the USCI_B1 the USB dies and can no longer be read or written to. 

 

The example codes in Energia work for both the USB examples and for the TMP006 example, so the harware is OK.  But trying to get them both to play at the same time is a nogo.

 

What am I missing?

 

#include <USBSerial.h>
#include "tmp006.h"
#define USE_USCI_B1

USBSerial mySerial(1); // USB
tmp006 tmp006;

void setup()
  {
  // open the USBSerial port
  mySerial.begin();
  mySerial.println("setup!");

  // Setup the temperature sensors
  //The following line is killing the USB port
  tmp006.begin(FOUR_SAMPLES);    // Takes 4 averaged samples for measurement
  }

void loop()
  {
  mySerial.println("loop!");
  }
 

Share this post


Link to post
Share on other sites

OK, Responding to my own question :-)

 

The MSP430-USB com port does eventually start working, it takes about 40 seconds to start.

Why this is so is still a mystery.

 

This is pretty unacceptable behavior for a system to have.

 

Anyone have any ideas?

 

Will

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×