Application Note. Brushless DC Motor Control AN-1114

Similar documents
Application Note. 3-Phase Brushless DC Motor Control with Hall Sensors AN-CM-244

Application Note. Over Current Latch with Low Side Sense AN-CM-223

Application Note. Low Power DC/DC Converter AN-CM-232

Application Note. Servo Overload Protection AN-CM-247

Application Note. Customized Glucometer using GreenPAK AN-CM-222

Application Note. External Oscillator Solutions with GreenPAK AN-CM-233

Application Note. Smart LED Dimmer Controlled via Bluetooth AN-CM-225

Application Note. PWM Control for PC Fans AN-CM-248

iw3627 Off-Line Digital Constant-Voltage LED Driver with Power Factor Correction 1 Description 2 Features 3 Applications

iw1815 Product Summary

AN3134 Application note

AVR443: Sensor-based control of three phase Brushless DC motor. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

LS7362 BRUSHLESS DC MOTOR COMMUTATOR / CONTROLLER

Temperature Monitoring and Fan Control with Platform Manager 2

Driving LEDs with a PIC Microcontroller Application Note

Reference Design EBC iw1760b-00 for 15W Dual Output Home Appliance Switched Mode Power Supply Design

AVR443: Sensorbased control of three phase Brushless DC motor. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AN2581 Application note

SINGLE PHASE HALL EFFECT LATCH SMART FAN MOTOR CONTROLLER

STEVAL-ISA005V1. 1.8W buck topology power supply evaluation board with VIPer12AS. Features. Description. ST Components

Temperature Monitoring and Fan Control with Platform Manager 2

AN2446 Application note

LINEAR IC APPLICATIONS

EVAL6235N. Demonstration board for L6235 DMOS driver for 3-phase brushless DC motor. Description. Features

TS19701A CC/CV Primary-Side PWM Controller

LB11685VH. Specifications Maximum Ratings at Ta = 25 C. Monolithic Digital IC 3-phase sensor less Motor driver

TDA 4700 TDA Control IC for Single-Ended and Push-Pull Switched-Mode Power Supplies (SMPS)

AN Industrial Stepper Motor Driver. Application Note Abstract. Introduction. Stepper Motor Control Method

Helix Semiconductors HS100 Data Sheet

INTEGRATED CIRCUITS. AN1221 Switched-mode drives for DC motors. Author: Lester J. Hadley, Jr.

unit: mm 4130 Parameter Symbol Conditions Ratings Unit Maximum supply voltage 1 V CC 1 max No input signal 50 V Maximum supply voltage 2 V CC

F²MC-8FX/16LX/16FX/FR FAMILY BLDC DRIVE WITH THE PPG

AN-1164 Cycle Stealing Control

Electric Bike BLDC Hub Motor Control Using the Z8FMC1600 MCU

Circuit Applications of Multiplying CMOS D to A Converters

AH5792 SINGLE PHASE HALL EFFECT LATCH SMART FAN MOTOR CONTROLLER. Description. Pin Assignments. Features. Applications

MC33PF8100, MC33PF8200

Pin 19 GPIO. Counters/Delay Generators CNT1 CNT2 CNT3 CNT4 CNT5 CNT6 CNT7 CNT8 CNT9. DFF/Latches. Pin 15 GPIO DFF0 DFF1 DFF2 DFF3 DFF4

PSM Buck Converter with Dynamic Adjustable Output and Bypass Capability

Hardware Design Considerations using the MC34929

ML4818 Phase Modulation/Soft Switching Controller

AVR42778: Core Independent Brushless DC Fan Control Using Configurable Custom Logic on ATtiny817. Features. Introduction. AVR 8-bit Microcontroller

MSK4310 Demonstration

CMOS Schmitt Trigger A Uniquely Versatile Design Component

NJ88C Frequency Synthesiser with non-resettable counters

Improving feedback current accuracy when using H-Bridges for closed loop motor control

STCL1100 STCL1120 STCL1160

W83320S/W83320G Winbond N-Channel FET Synchronous Buck Regulator Controller W83320S W83320G

CHAPTER 4 FUZZY BASED DYNAMIC PWM CONTROL

Advanced Regulating Pulse Width Modulators

TDA7478. Single chip RDS demodulator. Features. Description

AN1449 Application note

AC/DC WLED Driver with External MOSFET Universal High Brightness

AN3332 Application note

200-mA PSM Step Down Converter with Bypass Capability

AN4269. Diagnostic and protection features in extreme switch family. Document information

STSR30 SYNCHRONOUS RECTIFIER SMART DRIVER FOR FLYBACK

AN4999 Application note

Brushless 5 click. PID: MIKROE 3032 Weight: 25 g

Using a Pulse Width Modulated Output with Semiconductor Pressure Sensors

Application Note, V1.0, Oct 2006 AP08019 XC866. Sensorless Brushless DC Motor Control Using Infineon 8-bit XC866 Microcontroller.

AN1756 Application note

Speed Control Of Transformer Cooler Control By Using PWM

Micromouse Meeting #3 Lecture #2. Power Motors Encoders

Current Mode PWM Controller

L4964 HIGH CURRENT SWITCHING REGULATOR

1X6610 Signal/Power Management IC for Integrated Driver Module

EDEM3-Programmable EconoDual TM Electrical Series

Application note for the ZXBM1004 and ZXBM2004 variable speed motor controllers - Interfacing to the motor windings

PE4302 CCM PFC controller Power Factor Correction

SG2524 SG3524 REGULATING PULSE WIDTH MODULATORS

W588AXXX Data Sheet. 8-BIT MCU WITH VOICE SYNTHESIZER (PowerSpeech TM Series) Table of Contents-

Design Document. Analog PWM Amplifier. Reference: DD00004

LP3943/LP3944 as a GPIO Expander

TDA1180P TV HORIZONTAL PROCESSOR

MiniSense 100 Analog PCB

AN2961 Application note

AN457 APPLICATION NOTE

AH5794 SINGLE PHASE HALL EFFECT LATCH FAN MOTOR DRIVER. Description. Pin Assignments NEW PRODUCT. Applications. Features. (Top View) O2 3 V SS TSOT26

L9914. All silicon voltage regulator. Features. Description. Multiwatt8

LM2903W. Low-power, dual-voltage comparator. Features. Description

EUP V/12V Synchronous Buck PWM Controller DESCRIPTION FEATURES APPLICATIONS. Typical Application Circuit. 1

400 ma nano-quiescent synchronous step-down converter with digital voltage selection and Power Good

L E C T U R E R, E L E C T R I C A L A N D M I C R O E L E C T R O N I C E N G I N E E R I N G

PreLab 6 PWM Design for H-bridge Driver (due Oct 23)

AN1258 Application note

BLOCK DIAGRAM OF THE UC3625

AN1114 APPLICATION NOTE

AN2810 Application note

Sensors and Sensing Motors, Encoders and Motor Control

Hello, and welcome to this presentation of the FlexTimer or FTM module for Kinetis K series MCUs. In this session, you ll learn about the FTM, its

LM723CN. High precision voltage regulator. Features. Description

L4975A 5A SWITCHING REGULATOR

AN1007 APPLICATION NOTE L BASED SWITCHER REPLACES MAG AMPS IN SILVER BOXES

HB-25 Motor Controller (#29144)

Description. Order code Package Packing

Features. Application

Implementation of Brushless DC motor speed control on STM32F407 Cortex M4

PULSE CONTROLLED INVERTER

Using the High Voltage Physical Layer In the S12ZVM family By: Agustin Diaz

Transcription:

Application Note AN-1114 Abstract In this application note a GreenPAK configuration applicable for a single-phase BLDC motor is introduced. This application note comes complete with design files which can be found in the References section.

Contents Abstract... 1 Contents... 2 Figures... 2 Terms and Definitions... 3 1 References... 3 2 Introduction... 4 3 Power On... 5 4 Clock Synchronization... 8 5 Soft Start Operation... 9 6 Constant PWM Duty Cycle Operation... 9 7 Soft Stop Operation... 9 8 PWM Control Configuration... 9 9 Protection Features... 9 10 Waveforms... 11 11 Conclusion... 12 Revision History... 13 Figures Figure 1: DC Motor and Brushless DC Motor... 4 Figure 2: Hall Sensor Output... 4 Figure 3: BLDC Motor Driver Configuration Example... 5 Figure 4: Start-Up Sequence... 6 Figure 5: PLL Lock-in Operation at Start Up... 6 Figure 6: 5 Hz Detection Timing... 7 Figure 7: PLL and 5Hz Detection... 8 Figure 8: PWM Soft Start/Stop Timings... 8 Figure 9: PWM Control with DCMPs... 10 Figure 10: Rotation Stuck and Overcurrent Protection... 10 Figure 11: PWM 50% Duty... 11 Figure 12: PWM Soft Start/Stop... 11 CFR0014 2 of 14 2018 Dialog Semiconductor

Terms and Definitions VCO POR LPF PLL PWM PCMP TSD Voltage controlled oscillator Power on reset Low pass filter Phase-locked loop Pulse-width modulation Phase comparator Thermal shut down 1 References For related documents and software, please visit: https://www.dialog-semiconductor.com/configurable-mixed-signal. Download our free GreenPAK Designer software [1] to open the.gp files [2] and view the proposed circuit design. Use the GreenPAK development tools [3] to freeze the design into your own customized IC in a matter of minutes. Dialog Semiconductor provides a complete library of application notes [4] featuring design examples as well as explanations of features and blocks within the Dialog IC. [1] GreenPAK Designer Software, Software Download and User Guide, Dialog Semiconductor [2] AN-1114.gp, GreenPAK Design File, Dialog Semiconductor [3] GreenPAK Development Tools, GreenPAK Development Tools Webpage, Dialog Semiconductor [4] GreenPAK Application Notes, GreenPAK Application Notes Webpage, Dialog Semiconductor CFR0014 3 of 14 2018 Dialog Semiconductor

2 Introduction DC motors are more and more frequently used these days, often replacing legacy AC motors because of increasing advantages in efficiency due to continuing improvements in controller hardware and driver methodologies. Among DC motors, brushless DC motors are prevalent in industrial applications as well as some of consumer applications as it has no abrasion from physical contact of brushes. Instead, you need to control the driving timings in accordance with the rotation angle sensed with magnetic sensor. Hall sensor is one of the most commonly used sensors. A simple DC motor and a brushless DC motor that show the basic operation principles are described in Figure 1. A DC motor has a brush to switch the direction of current flow in rotor coil. This changes the direction of magnetic field to control one end of the rotor pulled and the other end repelled by the stator magnet. In case of a brushless DC motor, it is necessary to control the current switching by not a brush but a driver in sync with magnetic sensor (hall sensor). The sensor output is fed into a controller that handles the timings and directions of current flow in the stator coil. A typical hall sensor output waveform in a DC motor is in Figure 2. This signal has the same frequency as the rotation of the rotor. Usually the amplitude VH is several tens of millivolts with a wide range of offset voltage. Figure 1: DC Motor and Brushless DC Motor Figure 2: Hall Sensor Output In order to compensate for the offset and to obtain a square waveform from the hall signal an external op-amp or a comparator are recommended. The rising edge of this square wave is used for generating drive signal timings as described below. In this application note a single-phase brushless DC motor is discussed. CFR0014 4 of 14 2018 Dialog Semiconductor

Figure 3 shows an example of a brushless DC motor schematic with the components and their connections used in this system. HP and HM are from the hall sensor of the target motor representing its rotation angle and speed. HP and HM voltage levels are compared to produce a square wave HP-HM. This signal works as the reference signal for PLL and as a selector signal for pre-driver outputs. OUT1 to OUT4 are connected to H-bridge that drives the target motor. Protection from rotation stuck, overcurrent, overheat and UVLO are incorporated to turn off H-bridge FET s. A VCO (Voltage Controlled Oscillator) is placed in front of GreenPAK to synchronize with the hall sensor signals. The purpose of this synchronization is to time the soft start and soft stop of PWM driving signals. Soft start can be triggered by the transition edges of a hall sensor signal, while soft stop needs to be triggered at some point before the end of it. With a counter in sync with the hall signal, you should be able to program the counter value where to start controlling PWM duty cycle of the driving signal. In constant rotation speed application PLL is not necessary. You only need program counter values for PWM duty cycle control. Figure 3: BLDC Motor Driver Configuration Example 3 Power On At power ON all I/Os of GreenPAK become high impedance until internal POR (Power On Reset) output turns from low to high. When CE input exceeds 0.9V, the internal circuits become active to drive the PWM outputs. Figure 4 shows the operation at start up. At first, there is no rotation of motor and no hall sensor signal output. In this state VCO oscillates at its free-running frequency. With this VCO clock GreenPAK outputs PWM signals of 50% duty cycle at OUT1 and OUT2. Driven by this square waveform, the motor starts to rotate generating hall signals. CFR0014 5 of 14 2018 Dialog Semiconductor

Figure 4: Start-Up Sequence Figure 5: PLL Lock-in Operation at Start Up Figure 5 shows HP-HM and VCO clock divided by counter lock in during start-up operation. Phase comparator (PCMP) output is fed to external VCO to control its frequency through a LPF (Low Pass Filter). When LPF output voltage increases, so does VCO frequency and vice versa. The LPF output voltage is an averaged PCMP output. When VCO divided clock is slower (lower frequency) than hall signal, the high period of PCMP output increases to increase LFP output voltage. This feedback loop continuously adjusts VCO frequency until PCMP output becomes constant. This is where VCO is synchronized with the hall signal. The counter and phase comparator are shown in Figure 7. Hall sensor signal detection A hall sensor signal is connected to HP-HM to show the frequency and angle of rotation. At the initial driving state, the driver outputs PWM signals at 50% duty cycle. When the frequency of the hall sensor input signal becomes 5 Hz or higher, PWM output is switched from 50% duty to soft start operation (PWM duty cycle ramp). CFR0014 6 of 14 2018 Dialog Semiconductor

H-bridge drive outputs in sync with hall signal and PLL lock in operation both at start-up are shown in Figure 4 and Figure 5 respectively. 5 Hz detection is performed by the following sequence. There is a 200 ms timer (CNT5/DLY5) and a 400 ms delay cell (CNT6/DLY6) for 5 Hz hall signal detection. After power on and CE is asserted, the hall sensor input signal is fed into the reset of CNT5/DLY5 through rising edge detector. If the hall sensor signal frequency is lower than 5 Hz, CNT5 resets DFF0 and DFF1; otherwise, their outputs stay high and the GPAK detects motor frequency to be faster than 5 Hz. Figure 6: 5 Hz Detection Timing On the other hand, when the motor frequency decreases below 5 Hz, CNT5 resets DFF0 and DFF1. Unless the hall sensor signal has two rising edges within 200ms, DFF1 output stays low to negate DLY6 output. Figure 6 shows the timings in detail. Corresponding schematic is in Figure 7. CFR0014 7 of 14 2018 Dialog Semiconductor

Figure 7: PLL and 5Hz Detection 4 Clock Synchronization In order to obtain a clock synchronized with the hall signal a PLL is composed with an external VCO and LPF (low pass filter), internal counter and a phase comparator. VCO clock is divided by 32,768 to be phasecompared with HP-HM waveform. Clock divider number of 32,768 was chosen to have 128 PWM cycles in one half of the rotation period so that it makes sense to control PWM duty cycles increase, keep and decrease within the period. VCO clock is also supplied to the control logic to generate PWM soft start/stop waveform. Figure 8: PWM Soft Start/Stop Timings CFR0014 8 of 14 2018 Dialog Semiconductor

5 Soft Start Operation Soft start gradually increases the driving signal s PWM duty cycle and is, in this design, triggered at each HP-HM rising/falling edge. This operation is controlled by initializing FSM0 and FSM1 in sync with HP-HM. The FSM1 clock is slower than the FSM0 clock. At initialization, both FSM0 and FSM1 are set to a programmable counter value. And the values are compared with each other by DCMP0, where the PWM duty cycle is generated. The PWM duty cycle increase rate is controlled by the count value in CNT7/DLY7. In case of constant rotation frequency motor applications you would not need a PLL. You only need to program counters for PWM soft start/stop timings. And because GreenPAK (SLG46620V) has fixed programmed timings, the hall signal input frequency is assumed to be within 5 to 10 Hz range suggesting that VCO frequency is roughly from 160 k to 320 khz. There is a delay time shift in PLL depending on the frequency it locks. So there is a limitation in input hall signal frequency range for timing adjustments. 6 Constant PWM Duty Cycle Operation When PWM duty cycle reaches the value defined by the register for DCMP1, the PWM reference counter CNT4/DLY4 keeps its value until DFF6 output (keeps signal for CNT4/DLY4) resets. 7 Soft Stop Operation PWM soft stop is triggered by a synchronous timing with the locked signal in Figure 8, where you start decreasing PWM duty cycle toward the hall sensor signal transition. This timing is dependent on the PLL lock delay. Therefore, you need to adjust it after external components are selected and PLL waveform is confirmed. When the duty cycle reaches the lowest that is defined by a register of DCMP1, the duty is kept unchanged until the next trigger of soft start occurs. 8 PWM Control Configuration There are three PWMs used in this application: 50% duty cycle generation, minimum and maximum duty cycle definition and PWM driving signal generation. PWM period is determined by the count value and the clock source to FSM0 in Fig.4. PWM duty cycle is controlled by FSM1 in Fig.9 where its clock is sourced by CNT7/DLY7. In case you want different ramp speeds for duty increase and decrease, add another CNT/DLY cell. This CNT/DLY and CNT7/DLY7 must be multiplexed in accordance with UP pin of FSM1. 9 Protection Features There are three protection features incorporated: lock (rotation stuck) detection, overcurrent detection and under-voltage lock out (UVLO). There is also a thermal shut down input pin to negate all the output pins with a High input. Rotation speed is expressed by a hall signal frequency. A motor with the hall signal frequency less than 5Hz is considered to be in a locked state. When a DC motor is under a torque larger than it can accommodate, the rotation stops and supply current increases. In order to avoid too much current drain, the lock detection is implemented through a series of logic blocks, where hall signal frequency is compared with a 400ms frequency signal. If the rotation gets stuck, the output driver will pause for at least four seconds. CFR0014 9 of 14 2018 Dialog Semiconductor

Figure 9: PWM Control with DCMPs The basic idea of protection is to turn off the H-bridge transistors by driving the gates low. In normal operation OUT3 and OUT4 drive the gates High for 1ms after each HP-HM transition to let the regenerated current flow. Overcurrent in H-bridge is detected by external shunt resistor implemented in series with H-bridge to GND. The voltage across the shunt resistor is monitored by ACMP1 in Figure 10, where a short delay of microseconds is implemented at its output, in order to ignore inrush current immediately after switching. Figure 10: Rotation Stuck and Overcurrent Protection ACMP0 in Figure 4 is for UVLO where VDD divided by internal voltage divider is compared to a reference voltage. TSD (thermal shut down) is a logic input to negate all the output driver pins for H- bridge. You could also use another ACMP to detect the analog level of a thermistor. CFR0014 10 of 14 2018 Dialog Semiconductor

10 Waveforms Screenshots of PWM soft start/stop operations can be found in Figure 11 and Figure 12 respectively. PWM output (OUT2) starts to increase its duty cycle at the transition of hall sensor signal (HP-HM). Figure 11: PWM 50% Duty Figure 12: PWM Soft Start/Stop At a point, defined by the pipe delay, the PWM output starts to decrease its duty cycle. This delay is adjusted empirically so that the soft stop is completed before the next HP-HM transition. CFR0014 11 of 14 2018 Dialog Semiconductor

The PWM duty increase/decrease rate is, in this case, determined by the CNT7/DLY7 count value. You can set these rates independently by using two different counter values. CH1 (yellow): OUT1 CH2 (light blue): OUT2 CH3 (pink): OUT3 CH4 (blue): OUT4 11 Conclusion A GreenPAK configuration applicable for a single-phase BLDC motor is introduced using SLG46620V. For flexibility a VCO and PLL are incorporated in order to output the drive signals synchronized with rotation angle. PWM soft start/stop operation is realized using counters and PWM controller. CFR0014 12 of 14 2018 Dialog Semiconductor

Revision History Revision Date Description 1.0 15-Jul-2016 Initial Version CFR0014 13 of 14 2018 Dialog Semiconductor

Status Definitions Status DRAFT APPROVED or unmarked Definition The content of this document is under review and subject to formal approval, which may result in modifications or additions. The content of this document has been approved for publication. Disclaimer Information in this document is believed to be accurate and reliable. However, Dialog Semiconductor does not give any representations or warranties, expressed or implied, as to the accuracy or completeness of such information. Dialog Semiconductor furthermore takes no responsibility whatsoever for the content in this document if provided by any information source outside of Dialog Semiconductor. Dialog Semiconductor reserves the right to change without notice the information published in this document, including without limitation the specification and the design of the related semiconductor products, software and applications. Applications, software, and semiconductor products described in this document are for illustrative purposes only. Dialog Semiconductor makes no representation or warranty that such applications, software and semiconductor products will be suitable for the specified use without further testing or modification. Unless otherwise agreed in writing, such testing or modification is the sole responsibility of the customer and Dialog Semiconductor excludes all liability in this respect. Customer notes that nothing in this document may be construed as a license for customer to use the Dialog Semiconductor products, software and applications referred to in this document. Such license must be separately sought by customer with Dialog Semiconductor. All use of Dialog Semiconductor products, software and applications referred to in this document are subject to Dialog Semiconductor s Standard Terms and Conditions of Sale, available on the company website (www.dialog-semiconductor.com) unless otherwise stated. Dialog and the Dialog logo are trademarks of Dialog Semiconductor plc or its subsidiaries. All other product or service names are the property of their respective owners. 2018 Dialog Semiconductor. All rights reserved. Contacting Dialog Semiconductor United Kingdom (Headquarters) Dialog Semiconductor (UK) LTD Phone: +44 1793 757700 Germany Dialog Semiconductor GmbH Phone: +49 7021 805-0 The Netherlands Dialog Semiconductor B.V. Phone: +31 73 640 8822 Email: enquiry@diasemi.com North America Dialog Semiconductor Inc. Phone: +1 408 845 8500 Japan Dialog Semiconductor K. K. Phone: +81 3 5769 5100 Taiwan Dialog Semiconductor Taiwan Phone: +886 281 786 222 Web site: www.dialog-semiconductor.com Hong Kong Dialog Semiconductor Hong Kong Phone: +852 2607 4271 Korea Dialog Semiconductor Korea Phone: +82 2 3469 8200 China (Shenzhen) Dialog Semiconductor China Phone: +86 755 2981 3669 China (Shanghai) Dialog Semiconductor China Phone: +86 21 5424 9058 CFR0014 14 of 14 2018 Dialog Semiconductor