MMA8451Q What to do after unexpected MCU reset?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

MMA8451Q What to do after unexpected MCU reset?

跳至解决方案
1,034 次查看
mma8451q
Contributor I

MMA8451Q.

What to do after unexpected MCU reset, if i cant power reset of MMA8451Q?

标签 (1)
0 项奖励
回复
1 解答
882 次查看
TomasVaverka
NXP TechSupport
NXP TechSupport

Pavel,

As the MMA8451Q does not have a reset pin, the only way to reset (clear) the I2C bus is to (temporarily) re-assign SCL as a general-purpose I/O pin and then issue clock pulses until the MMA8451Q releases SDA. This is also described in the UM10204 on page 20.

Regards,

Tomas


在原帖中查看解决方案

0 项奖励
回复
3 回复数
882 次查看
TomasVaverka
NXP TechSupport
NXP TechSupport

Pavel,

You can set the RST bit in the CTRL_REG2 register (0x2B) to initiate a software reset. It resets all functional block registers and loads the respective internal registers with their default values. The reset mechanism can be enabled in both standby and active modes.


I hope this helps.


Regards,

Tomas

882 次查看
mma8451q
Contributor I

Thank You, Thomas!

What if after an unexpected reset MCU hung I2C bus?

Some i2c devices for such cases there is a certain sequence of actions. Tell me, please

0 项奖励
回复
883 次查看
TomasVaverka
NXP TechSupport
NXP TechSupport

Pavel,

As the MMA8451Q does not have a reset pin, the only way to reset (clear) the I2C bus is to (temporarily) re-assign SCL as a general-purpose I/O pin and then issue clock pulses until the MMA8451Q releases SDA. This is also described in the UM10204 on page 20.

Regards,

Tomas


0 项奖励
回复