title: The I2C communication is not giving me a ACK bit
body: <p>I am trying to communicate with the Barometric sensor MS5611, using the I2C protocol. My micro is STM32f3discovery. The address of the sensor is send, but not the command. The code is stucked in the while loop waiting for TXIE bit to be set. The reason why TXIE is not "one", is because the acknowledge bit from the MS5611 is not showing up. Also the I2C status register is setting the NACK (not acknowledge), STOPF (stop flag) bit. </p>
  
  <p>The address of the MS5611 sensor is 11101100. This can be seen in the datasheet on the page 12.In my case the value of CSB is zero.</p>
  
  <p><a href="http://www.meas-spec.com/downloads/MS5611-01BA03.pdf" rel="nofollow">Datasheet MS5611</a></p>
  
  <p>But the O-scope shows me a different picture. I have try it in both ways, CSB zero in CSB one, but no success. </p>
  
  <p>CSB zero:<a href="http://s1378.photobucket.com/user/esovo/media/Newfile1_zps0461710c.jpeg.html" rel="nofollow">O-scope picture 1</a></p>
  
  <p>CSB one: somewhere in my comments :)</p>
  
  <p>...I can't paste a picture or a link because I don't have enough reputation points:-/</p>
  
  <p>I have been thinking in this way:
  Could be that my timing is off. The reason I am thinking this is because of the stop condition that is at the 9th SCL pulse. At this place the ACK bit should kick in and not the STOP bit. </p>
  
  <p>So, why is the 9th pulse high? 
  and who is giving the 9th pulse, micro or sensor?</p>
  
  <p><strong><em>Edition number uno</em></strong>: Till now, I have tried to send the read command, with both combinations (11101101 or 11101111), changed to other I2C devices. This controller has two I2C modules (I2C1 and I2C2), changed the pins(from PB6,PB7 to PA9 and PA10). With no success.</p>
  
  <p>On the other hand, I have addressed the mems acellometer sensor  on the st board with the same pins(PB6,PB7) and the same code. The only difference was the timing values in I2C timing register and the address. Worked like a charm.</p>
  
  <p>My conclusion, obviously, are that something is wrong with my timing values or with sensor I2C protocol. However I used the example of timing settings in ST reference manual.</p>
  
  <p>So, I have no other alternative that to go in debugger mode and to dig more deeper about the I2C timing values. </p>
  
  <p>I would appreciate any additional information and thanks for the help :)   </p>