cancel
Showing results for 
Search instead for 
Did you mean: 

can not set MOE bit in MCRA

luter
Associate II
Posted on August 24, 2005 at 07:35

can not set MOE bit in MCRA

5 REPLIES 5
luter
Associate II
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.

gaetano
Associate II
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

gaetano
Associate II
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.

luter
Associate II
Posted on May 17, 2011 at 10:17

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

luter
Associate II
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.