The MMA8452Q Accelerometer module expects an I2C transaction to stay active (i.e. not send the stop bit) in order to read from a register. Reading occurs in 2 transactions:
- Write transaction where the data byte is the address of the register you want to read, and
stayActive = 1 (the processor will not send a stop bit)
- Read transaction where
stayActive = 0 (send stop bit after this)
This functionality has been added to i2c.c but it has only been implemented in hal_i2c.c for the MSP430F5529. In order to use the Accelerometer module, this functionality will have to be added to hal_i2c.c for every processor.
The MMA8452Q Accelerometer module expects an I2C transaction to stay active (i.e. not send the stop bit) in order to read from a register. Reading occurs in 2 transactions:
stayActive = 1(the processor will not send a stop bit)stayActive = 0(send stop bit after this)This functionality has been added to i2c.c but it has only been implemented in hal_i2c.c for the MSP430F5529. In order to use the Accelerometer module, this functionality will have to be added to hal_i2c.c for every processor.