Sicness
Posts: 2
Joined: Sat Mar 02, 2013 7:16 am

I2C stop OR communicate with MPL115a2

Sat Mar 02, 2013 7:29 am

Hello.
I'm trying to connect MPL225A2 to raspberry pi via I2C.
In documentation wrote, I should regulary shut down main circuits and clock. In any working examples for any microcontrolles used i2c.start and i2c.stop. For example:

Code: Select all

 Wire.beginTransmission(MPL115A2_ADDRESS);
  i2cwrite((uint8_t)MPL115A2_REGISTER_STARTCONVERSION);
  i2cwrite((uint8_t)0x00);
  Wire.endTransmission();
I should to stop clock in I2C for 3-5 ms after command STARTCONVERSION, but how can I do it?
I use smbus library.

User avatar
j35570
Posts: 7
Joined: Thu Oct 18, 2012 5:45 am

Re: I2C stop OR communicate with MPL115a2

Sun Mar 03, 2013 7:27 pm

Are you referring to the RST pin?
The I2C RST function that can be seen in the pin connection, prevents the I2C circuits from drawing power while the I2C inputs
are active. Ideally this is accomplished by removing power from the I2C I/O circuits. The part ignores I2C communications when
RST is asserted and does not draw additional power due to transitions on the I2C connections. Drive line low to disable I2C
communications. I2C pins are high impedance and communications are ignored. If RST is asserted during an I2C transmission
then the transmission is aborted (and lost). All other internal functions operate normally. No other functions or registers are reset
as a result of asserting this function.
I think you need to connect it to a separate free GPIO pin and control it that way.

/j35570

http://raspify.stockenstrand.com

Return to “Interfacing (DSI, CSI, I2C, etc.)”