MMA8451Q What to do after unexpected MCU reset?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MMA8451Q What to do after unexpected MCU reset?

ソリューションへジャンプ
1,084件の閲覧回数
mma8451q
Contributor I

MMA8451Q.

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

ラベル(1)
0 件の賞賛
返信
1 解決策
932件の閲覧回数
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 返答(返信)
932件の閲覧回数
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

932件の閲覧回数
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 件の賞賛
返信
933件の閲覧回数
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 件の賞賛
返信