21.01.2014 Views

3.22EjemploDRM007 Co..

3.22EjemploDRM007 Co..

3.22EjemploDRM007 Co..

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Software Design <strong>Co</strong>nsiderations<br />

5.6.1 Processes: Latest Position Capture, Period Measuring, and Speed Calculation<br />

The latest position capture, period measuring, and speed calculation<br />

processes relate to the inputs of the Hall sensors. The sensors generate<br />

streams of pulses that are captured (separately for each sensor) by the<br />

input capture (IC) function. The process latest position capture captures<br />

the latest state of the Hall sensors.<br />

The processes period measuring and speed calculation read the time<br />

between the adjacent rising edges of Hall sensor output and calculate<br />

the actual motor speed variable speed.<br />

5.6.2 Process Speed <strong>Co</strong>ntroller<br />

This process calculates the duty cycle of the PWM based on the output<br />

of the speed controller (the PI controller).<br />

5.6.3 Process MOSFET Gating Selection<br />

This process calculates which PWM channel is enabled for PWM<br />

generation. Two commutation schemes are present here. In the file<br />

main.h, a compiler directive allows the programmer to select between<br />

the two MOSFET scheme and the three MOSFET scheme. For the<br />

deadtime insertion there are things which should be noted.<br />

If the three MOSFET commutation scheme is selected by the directive:<br />

#define MOS_3_COM<br />

#undef MOS_2_COM<br />

The PWM module automatically makes deadtime insertion by<br />

hardware.<br />

If the two MOSFET commutation scheme is selected by the directive:<br />

#undef MOS_3_COM<br />

#define MOS_2_COM<br />

Deadtime insertion is done by software and PWM module<br />

configuration.<br />

DRM007<br />

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

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

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

Saved successfully!

Ooh no, something went wrong!