Part Number Hot Search : 
KE02RXGR F1206 KI4559EY CS461 EHS16B1 2SB0835 HD14071 1AA04
Product Description
Full Text Search
 

To Download AN1129 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  AN1129/0600 1/15 AN1129 application note pwm management for bldc motor drives using the st72141 by microcontroller division applications introduction brushless dc motors are efficient, quiet and can provide a very high starting torque, this is partly due to the built-in permanent magnet. for these reasons they are used more and more in a large range of applications like hard disk drives, fans, pumps, compressors, etc... how- ever brushless dc motors run properly only as synchronous motors: they need electronic cir- cuitry to run, including rotor position sensors, switching devices and a control unit. in most cases the switching devices are mosfet transistors or igbts and are organized in a three-phase bridge with free-wheeling diodes as shown in figure 1. traditionally hall sensors are used by the control unit to detect rotor position before changing motor coil to which the power applied. stmicroelectronics has introduced the st72141 microcontroller which is based on an industry standard architecture and is especially designed for driving bldc motors. one of the major advantages of the st72141 is that, without using sensors, it is capable of controlling motors precisely by reading the back electromotive force (bemf). instead of using expensive hall sensors, three resistors connecting the three windings directly to the st72141 input ports, pro- vide the microcontroller with the rotor position information. the microcontroller replaces the standard control unit and the rotor position sensors. however, the st72141 can be used with sensors as well. although using sensorless mode has big advantages in terms of cost and size, it makes the motor drive a little bit more complicated. the purpose of this application note is to explain in which cases the st72141 motor control unit can directly read the bemf voltage and how to quickly set up its control registers in order to use all the advanced features of this product. 1
2/15 pwm management for bldc motor drives using the st72141 figure 1. st72141 microcontroller with a three-phase bridge c a b hv t4 t1 t0 t3 t2 t5 d0 d2 d4 d3 d5 d1 low side outputs high side outputs st72141 rotor position inputs m 5v level shifter 2
3/15 pwm management for bldc motor drives using the st72141 1 six-step, 120 drive and pwm power control in order to be able to read the bemf information, the phase switching has to include a dead time during which no current flows in one of the motor windings. as shown in figure 3, in six-step, 120 drives, power is removed from each winding every three steps. during this dead-time phase it is possible to detect the bemf zerocrossing (see figure 2 for an example). with this method, the bemf voltage is referred to point m of the motor and not to ground. be- cause this point is at high voltage, the microcontroller cannot read its value directly. in order to control the speed, the torque or the power applied to the motor, a pwm signal is usually anded with the switch control signals. this control is implemented by modifying the duty cycle of the pwm. if the free-wheeling diodes are managed carefully, it is possible to change the m potential to a favorable value and allow the st72141 to sample the bemf voltage during the dead-time as explained in the next paragraph. figure 2. reading the bemf (step s 4 ) c a b hv t4 t1 t0 t3 t2 t5 d0 d2 d4 d3 d5 d1 read bemf on phase c be m f m
4/15 pwm management for bldc motor drives using the st72141 figure 3. six step, 120 drive: control signal on the transistor gate t0 t1 t2 t3 t4 t5 a b c node step s 1 s 2 s 3 s 4 s 5 s 6 s 1 s 2 s 3 hv 0 hv 0 hv 0 switch bemf voltage on off on off on off on off on off on off note: voltages are represented without any pwm or demagnetization effect.
5/15 pwm management for bldc motor drives using the st72141 2 managing the free-wheeling diodes and reading the bemf the pwm is used to control the power applied to the motor. it can either control the voltage on the motor with a fixed pwm duty cycle or the current by means of an integrated current control circuitry. it can be applied in three ways: on the high side: the pwm is applied only on the high side switch, the low side is on during the complete step. on the low side: the pwm is applied only on the low side switch, the high side is on during the complete step. on both sides: the high side and the low side are switched off together during each pwm off period. figure 4. current during pwm on time the 2 switches t2 and t3 are on c a b hv t4 t1 t0 t3 t2 t5 hv 2 d0 d2 d4 d3 d5 d1 m
6/15 pwm management for bldc motor drives using the st72141 2.1 pwm on the high side when the related switches are on the current passes through the two switches and two motor windings (these are switches t2 and t3 in the example in figure 4). the potential on point m is hv/2 and the bemf cannot be read by the st72141 because the voltage is too high to be read by the microcontroller. when the high side is switched off, the current inside the motor continues to flow in the same direction (figure 5). while the switch is off the current can only use the diode (d5 in our ex- ample). in this case the potential in a is the von of t3 switch, the potential in b is -vf of d5 and the po- tential of in m is (von-vf)/2. it is close to zero because in most cases von = vf. in this case the microcontroller can read the complete bemf voltage referred to the ground terminal on the phase c. this is the configuration that must be used with the st72141 to take advantage of the sensor- less function. figure 5. pwm on high side: current during off time c a b t4 t1 t0 t3 t2 t5 pwm pwm on t2 free-wheeling 0v diode: d5 d0 d2 d4 d3 d5 d1 m
7/15 pwm management for bldc motor drives using the st72141 2.2 pwm on the low side when the related switches are on (example of figure 4) the current passes trough the two switches and two motor windings. when the low side is switched off, the current inside the motor continues to flow in the same direction (figure 6). while the switch is off the current can only use the diode (d0 in our ex- ample). in this case the potential at a is (hv+vf), the potential at b is (hv-von) and the potential of in m is (2xhv+von-vf)/2. we can consider it is hv (because in most case von = vf). in this case the microcontroller cannot read the bemf voltage neither in the pwm on time or the pwm off time. ? von is the turn on voltage of the switch ? vf is the forward voltage of a diode figure 6. pwm on low side: current during off time c a b hv t4 t1 t0 t3 t2 t5 pwm hv pwm on t3; free-wheeling diode d0 d0 d2 d4 d3 d5 d1 m
8/15 pwm management for bldc motor drives using the st72141 2.3 pwm on both sides when the switches are on (see example in figure 4) the current goes through the two switches and two motor windings. then both the high side and the low side are switched off, the current inside the motor con- tinues to go in the same direction (figure 5). while the switches are off, the current can only use the diodes (d5 & d0 in our example). in this case the potential in a is the (hv+vf), the potential in b is -vf and the potential in m is hv/2. the microcontroller cannot read the bemf voltage either in the pwm on time or in the pwm off time. figure 7. pwm on both sides: current during off time c a b hv t4 t1 t0 t3 t2 t5 pwm on t2 & t3 free-wheeling pwm pwm hv 2 diodes: d5 & d0 d0 d2 d4 d3 d5 d1 m
9/15 pwm management for bldc motor drives using the st72141 2.4 notes on configuring the st72141 if the st72141 microcontroller is referred to the ground terminal, the only way to detect the bemf without sensors is: to generate a pulse width modulation with enough off time to read the bemf voltage. this requirement can be obtained by setting the pwm duty cycle of timer a in voltage mode or the ot1-0 bits (register mcrb) in current mode. apply this pwm only on the high side switches. you have to configure the microcontroller with the correct pwm configuration. in order to configure all the registers, follow this sequence: split the switches in two parts by means of the even/odd configuration: the low side and the high side. (mpar register, eo0-5 bits) for example: t1, t3, t5 even for the low side t0, t2, t4 odd for the high side. select the group you want to read the bemf from by programming the reo bit (register mpar): the high side has to be selected. in our example: read on odd (high side), reo=1. select the pwm direction after d (os1-0 bits, register mcrb): the pwm has to be applied only on the high side. in our example: os1-0 = 01, pwm on odd channels. you can make use of the free-wheeling diodes in order to accelerate the demagnetization time as explained in the next paragraph.
10/15 pwm management for bldc motor drives using the st72141 3 winding demagnetization when the microcontroller switches from one step to the next, the non-excited winding needs a certain demagnetization time. during this time, the current in the winding continues in the same direction but decreases to zero. it is not possible to see the bemf voltage as long as this current is still present, because during this time the voltage on the winding is tied to 0v or hv by the free-wheeling diode. due to the winding self-induction, the demagnetization time decreases if the reverse voltage on the winding increases. let's look at an example. figure 8 shows step s4 with the normal current and the free-wheeling current (dotted line) used to read the bemf during the pwm off time. figure 8. step s4 hv t4 t1 t0 t3 t2 t5 c a b d0 d2 d4 d3 d5 d1 m normal current free-wheeling current for bemf reading
11/15 pwm management for bldc motor drives using the st72141 when switching from step s4 to step s5 , a free-wheeling, decreasing demagnetization current is still present through the b terminal (dashed line) and an increasing magnetization current appears through the c terminal (dotted line). figure 9 shows these two currents during the pwm on time. figure 9. step s5 during the demagnetization pwm on time this means, during the pwm on time: the potential of b is zero the potential of m is close to hv/2 as for the bemf reading, during the pwm off time, we can choose which switch to direct the pwm to, in order to accelerate the demagnetization of the non-excited winding (b). hv t4 t1 t0 t3 t2 t5 c a b pwm on t2 d0 d2 d4 d3 d5 d1 m f free wheeling demagnetization current normal mode magnetization current
12/15 pwm management for bldc motor drives using the st72141 figure 10. acceleration of demagnetization during pwm off time in our example, during step s4, the v mb voltage on the mb winding was positive. at the begin- ning of step s5 , the voltage on terminal b will be tied to 0v and the shortest demagnetization configuration is the one that provides the higher voltage at point m. it is easy to verify that the higher voltage (hv) is obtained when the pwm is applied only on the low side switch (configuration shown in figure 10). otherwise this voltage is either 0 (if the pwm applied on the high side) or hv/2 (if the pwm applied on the low side). the st72141 allows you to program different pwm configurations in current/sensorless mode in order to minimize the demagnetization time, the st72141 allows you to modify the pwm di- rection between the step commutation and the end of demagnetization. in current/sensorless mode the os2 bit in register mcrb enables the pwm on the odd or even channels. in voltage mode this configuration does not exist: the best solution is to use the aalternateo fea- ture. in this mode the pwm configuration changes at each period, and alternately uses the odd and the even channels. the best solution for speeding up demagnetization will be se- lected only once for every second pwm period. this mode is selected by setting the os2 bit. a c b hv t4 t1 t0 t3 t2 t5 pwm d0 d2 d4 d3 d5 d1 normal current demagnetization current m
13/15 pwm management for bldc motor drives using the st72141 4 configuration example this section gives a configuration example for a six step 120 motor drive for a pmdc motor in sensorless, current and autoswitched mode. the configuration registers can be divided in two parts: table 1 general configuration regis- ters lists the configuration bits that only need to be written once, table 2 step configuration registers gives the step-dependent configuration bits. the registers in table 2 must be up- dated within each commutation interrupt routine in order to select the configuration for the next step. table 1. general configuration registers register value comments 76543210 mpar zvd reo oe5 oe4 oe3 oe2 oe1 oe0 read on odd channels, the high side switches are odd. 01010101 mcra moe rst sr dac v0c1 swa cff dcb the motor runs in autoswitched mode, current mode, sensorless mode. 100011xx mcrb vr1 vr0 cpb hdm sdm os2 os1 os0 pwm after end of demagnetization: on odd channels. xxssss01 mphst is1 is0 oo5 oo4 oo3 oo2 oo1 oo0 input selection and output data change at each step. ssssssss notes: - bits marked with x depend on the motor and / or the application: cff depends on the noise present on the current feedback pin, dcb depends on the motor symmetry; vr1-0 depend on the noise level on the bemf input pins. - bits marked with s have to be modified after each commutation (step dependent configuration). these bits are summarized in table 1 general configuration registers. those bits are taken in account only at the next commutation event.
14/15 pwm management for bldc motor drives using the st72141 table 2. step configuration registers step s 1 s 2 s 3 s 4 s 5 s 6 current direction a to b a to c b to c b to a c to a c to b high side t0 t0 t2 t2 t4 t4 low side t5 t1 t1 t3 t3 t5 oo<5-0> output bits 100001 000011 000110 001100 011000 110000 measure done on terminal: cbacba connected to pin mcic mcib mcia mcic mcib mcia is<1:0> selection bits value 10 01 00 10 01 00 mphst 10100001 01000011 00000110 10001100 01011000 00110000 back emf shape falling rising falling rising falling rising cpb value for bemf detection (zvd=0) 010101 voltage on measured point at the start of demagnetization 0v hv 0v hv 0v hv transition at end of demagnetization 0v->bemf (rising) hv->bemf (falling) 0v->bemf (rising) hv->bemf (falling) 0v->bemf (rising) hv->bemf (falling) hardware demagnetization always possi- ble not always possible always possi- ble not always possible always possi- ble not always possible hdm-hdm bit value (hard - soft demagnetization mask bits) 10 11 10 11 10 11 pwm side selection for accelerating demagnetization low side (even) high side (odd) low side (even) high side (odd) low side (even) high side (odd) driver selection for accelerating demagnetization t5 t0 t1 t2 t3 t4 os2bit 010101 mcrb xx010001 xx111101 xx010001 xx111101 xx010001 xx111101
15/15 pwm management for bldc motor drives using the st72141 othe present note which is for guidance only aims at providing customers with information regarding their products in order for them to save time. as a result, stmicroelectronics shall not be held liable for any direct, indirect or consequential damages with respect to any claims arising from the content of such a note and/or the use made by customers of the information contained herein in connexion with their products.o information furnished is believed to be accurate and reliable. however, stmicroelectronics assumes no responsibility for the consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. no license is granted by implication or otherwise under any patent or patent rights of stmicroelectronics. specifications mentioned in this publication are subject to change without notice. this publication supersedes and replaces all information previously supplied. stmicroelectronics products are not authorized for use as critical components in life support devices or systems without the express written approval of stmicroelectronics. the st logo is a registered trademark of stmicroelectronics ? 2000 stmicroelectronics - all rights reserved. purchase of i 2 c components by stmicroelectronics conveys a license under the philips i 2 c patent. rights to use these components in an i 2 c system is granted provided that the system conforms to the i 2 c standard specification as defined by philips. stmicroelectronics group of companies australia - brazil - china - finland - france - germany - hong kong - india - italy - japan - malaysia - malta - morocco - singapore - spain sweden - switzerland - united kingdom - u.s.a. http:// www.st.com


▲Up To Search▲   

 
Price & Availability of AN1129

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X