Quantcast
Channel: MSP430 Technical Forums
Viewing all articles
Browse latest Browse all 2077

I2C acting weird MSP430G2553

$
0
0

Hello,

 

I'v been trying to hook up a MPR121 capacitive touch sensor to the MSP430G2553 via I2C. I have encountered a problem.

 

This is the code for a transmission:

   Wire.beginTransmission(0x5C); //0b1011100
   Wire.write(0x5D); //0b01011101
   Wire.endTransmission(false);
   Wire.requestFrom(0x5C,1, true); 

This is how it should look ( in my opinion ):

START 1011100 0 0 01011101 0 START 1011100 1 0 SENSORDATA 1 STOP

However this is how it looks in reality:

START 1011100 0  0  01011110 0 START 1011100 0 0 START 1011100 1  0 00000000 1 STOP

Why are there 3 START's instead of 2? What kind of a packet is it after the second start?


Viewing all articles
Browse latest Browse all 2077

Trending Articles