2005-08-23 10:35 PM
can not set MOE bit in MCRA
2011-05-17 01:17 AM
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.2011-05-17 01:17 AM
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. Tanio2011-05-17 01:17 AM
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.
2011-05-17 01:17 AM
i found the reason. due to wrong wiring MCES pin was kept as 0.
2011-05-17 01:17 AM
yes, i verified all 6 outputs using different settings. i even tried different mc. example from st7 gives the same result.