hi Hristijan,

you'll have to reset the bus for each target device transition. so, run the full spi init routine when you go to the sd card, and run the full i2c initialization when you use the magnetometer.

if you dig down into the msp430 usart bus driver layers, you'll see that each mode completely clears the bus in preparation for its use.

-steve

On 01/06/2012 10:24 AM, Hristijan Gjoreski wrote:
Hello,

I have additional sensor attached on the inside connector of the
Shimmer. The simple application that reads the data from this sensor and
sends through Bluetooth works perfectly.

Now I would like to combine this application with JustFatLogging
application.
I know that the SD card and this additional sensor use the same bus. I
tried to do something like it is done for the Magnetometer data.

Thus, I tried with enabling and disabling this bus before each reading
from the additional sensor.

HplMsp430I2C.setModeI2C(&msp430_i2c_my_config);

HplMsp430I2C.disableI2C();


But this doesn't work. After the first reading from the additional
sensor, the sensor gets stuck.

How can I make the additional sensor and the SD module work together?

Regards,
Hristijan Gjoreski



_______________________________________________
Shimmer-users mailing list
[email protected]
https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users
_______________________________________________
Shimmer-users mailing list
[email protected]
https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users

Reply via email to