Skip to main content
This topic has been closed for replies.

2 replies

stefano239955_stm1_stmicro
Associate III
May 17, 2011
Posted on May 17, 2011 at 09:42

Hi,

I have a strange behaviour with the MC.

In my board, when I switch on the power supply

the MC controller doesn't work: no pwm in the outputs

I don't use the emergency input( I didn't configured this pin).

Have I to pull up the P67?

Any suggestion?

stefano239955_stm1_stmicro
Associate III
May 17, 2011
Posted on May 17, 2011 at 09:42

hi,

I think to have find a solution....

reading the errata I saw that there could be some problems

to start the mc pwm...

I add to my init code the following line as suggested in the

errata troubleshooting :

while ( MC->IPR & 0x0080 );

MC->ESC = 0x4321;

MC->ESC = 0x0000;

and now the mc is working!

Anyone could let me know if this piece of code

have to be inserted in every MC initialization?