21.01.2014 Views

3.22EjemploDRM007 Co..

3.22EjemploDRM007 Co..

3.22EjemploDRM007 Co..

SHOW MORE
SHOW LESS

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 />

5.6.4 Process Washing Machine<br />

The process generates reference speeds, depending on the process<br />

phase being executed of the washer. The user selects the washer<br />

process by a user’s menu.<br />

5.7 Application State Diagram<br />

Reset<br />

Initialization<br />

Interrupts<br />

Main Loop<br />

(State Machine)<br />

Figure 5-8. Application State Diagram<br />

As Figure 5-8 shows, the application state consists of the initialization<br />

routine, followed by a main loop with background tasks. The time critical<br />

functions are calculated by the interrupt routines.<br />

A brief description of the 3-phase BLDC motor control follows:<br />

• Initialization routine:<br />

– PWM initialization<br />

– System timer initialization<br />

– Input capture initialization for position feedback<br />

– Variable initialization for speed measurement<br />

– Character display initialization<br />

– I/O ports initialization<br />

– PLL initialization<br />

– MCU initialization<br />

DRM007<br />

BLDC Motor <strong>Co</strong>ntrol Board for Industrial and Appliance Applications<br />

86 Software Design <strong>Co</strong>nsiderations MOTOROLA

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!