nypoy.blogg.se

Wire library energia
Wire library energia








wire library energia
  1. WIRE LIBRARY ENERGIA CODE
  2. WIRE LIBRARY ENERGIA TRIAL

This is a trial, I've adapted it from a code example in the web. I've been taking a look to the "Bare metal example project", but i prefer to start with an ultra basic example if possible. I case you don't, I'll ask you please to send me the example for whatever MCU you use, and I'll try to translate it. I know you are not TI technical representative, but would ask you if you have a basic example (read who_am_i) for this microprocessor. Today I know that the hardware is ok, because it worked fine with a Energia code example.īut it has been imposible to me to find, adapt or write a native code for a MSP430G2553. I remind you I have a MMA8652, a MSP430G2553 MCU and I use Code Composer Studio. On the other hand I know that MSP430G2553 is working ok because I succesfully communicated it via i2c with other MSP430G2553. You can see into the image how I've connected the accelerometer to the launchpad (it is ok VCC=3.56V ?) Please I'm asking for a very basic working code example which gets a response from the accelerometer. I used two accelerometers in two different boards and nothing, I don't actually know if they are alive.

wire library energia

I've also read about wire.h, but I understand it is for Arduino board. Many blogs mention i2c.h library, but I couldn find it specifically for G2553 microprocessor, the examples into CCS don't use it. In particular I took the examples for I2C communication that come with the Code Composer Studio, changing the slave address to the WHO_AM_I address ( UCB0I2CSA = 0x0d) and I've also tried to read several other adresses. I've searched for information in the web and tried lots of examples but never got a response from the accelerometer.

wire library energia

WIRE LIBRARY ENERGIA TRIAL

In my first trial with accelerometers, I just want to get a "Hello World" from an MMA8652 via I2C mastered from a MSP430G2553 which is into the ti launchpad (not Arduino).










Wire library energia