Skip to main content
luter
Associate III
August 24, 2005
Question

can not set MOE bit in MCRA

  • August 24, 2005
  • 5 replies
  • 747 views
Posted on August 24, 2005 at 07:35

can not set MOE bit in MCRA

This topic has been closed for replies.

5 replies

gaetano
Visitor II
May 17, 2011
Posted on May 17, 2011 at 10:17

Hi,

have you effectively verified that the ouputs are not enabled when you set MOE bit equal to 1, although the debugger shows a value frozen to 0?

Please, verify it and let me know.

Tanio

luter
luterAuthor
Associate III
May 17, 2011
Posted on May 17, 2011 at 10:17

Hello.

Setting MOE(motor outputs) bit in MCRA register i get always 0. this means outputs cannot be enabled. even manual setting using debuger st7 peripheral registers window gives no effect. it stays 0. what could be a problem?

Tnx.

luter
luterAuthor
Associate III
May 17, 2011
Posted on May 17, 2011 at 10:17

yes, i verified all 6 outputs using different settings. i even tried different mc. example from st7 gives the same result.

luter
luterAuthor
Associate III
May 17, 2011
Posted on May 17, 2011 at 10:17

i found the reason. due to wrong wiring MCES pin was kept as 0.

gaetano
Visitor II
May 17, 2011
Posted on May 17, 2011 at 10:17

Just for verification, try to put MOE, CKE and DAC bits all equals to 1 and then force the outputs by using MPHST register. Do this test firstly in debug mode and then in normal running mode.