3.22EjemploDRM007 Co..
3.22EjemploDRM007 Co..
3.22EjemploDRM007 Co..
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Software Design <strong>Co</strong>nsiderations<br />
Application State Diagram<br />
• Main loop:<br />
– Application state machine<br />
– Check push buttons<br />
– Display messages for user menu<br />
– Display actual and desired motor speed<br />
• Initialize motor for running state:<br />
– Load desired speed from look up table<br />
– Charge bootstrap capacitors<br />
– Resume timers for speed control<br />
• Timer A overflow interrupt handler:<br />
– Speed calculation<br />
– Speed PI controller calculation<br />
– Setting of new duty cycle to PWM<br />
– Motor stalled protection<br />
– Load new desired speed from look up table depending on the<br />
washer process being executed<br />
• Timer A Ch1, Timer B Ch0 and Ch1 interrupt handlers:<br />
– Reading the angular motor position<br />
– Spin direction calculation<br />
– Selecting gating signals for MOSFETs<br />
• Timer B Ch1 interrupt handler<br />
– Calculation of period between edges for one Hall effect sensor<br />
BLDC Motor <strong>Co</strong>ntrol Board for Industrial and Appliance Applications<br />
DRM007<br />
MOTOROLA Software Design <strong>Co</strong>nsiderations 87