Advertisement

Quick Links

Summary

This application note provides step-by-step instructions on how to use the A89301 Evaluation Board to program the Allegro
A89301 motor controller IC. In addition, this document contains feature descriptions and detailed circuit descriptions that are
not shown in the datasheet.
............................................................................ 1
...................................................... 2
..................................................... 3
....................................................... 7
Step 9: While the motor is spinning, go to the Status page;
..........................................................11
................................................. 17
UM-A89301

Table of Contents

................................. 2
.............. 5
............................... 6
................................... 8
.............................. 9
............ 10
................................ 12
......................... 16
....................... 18
....................................... 20
........................................... 21
A89301 Application Note
.................................................... 22
................................................ 35
................................................................ 35
.................................................................... 36
User Manual
....................... 25
....... 26
..................................... 27
................... 28
................................. 29
.......................... 31
........................................... 33
.................................... 34
.................................... 34
............................... 35
......................................... 36
...................... 36
.................................... 37
February 27, 2019

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the A89301 and is the answer not in the manual?

Questions and answers

Summary of Contents for Allegro A89301

  • Page 1: Table Of Contents

    A89301 Application Note Summary This application note provides step-by-step instructions on how to use the A89301 Evaluation Board to program the Allegro A89301 motor controller IC. In addition, this document contains feature descriptions and detailed circuit descriptions that are not shown in the datasheet.
  • Page 2: Step-By-Step Instructions

    E. *Do NOT connect motor phases SA,SB,SC yet D. Set JMP2 to * The default se�ngs in the A89301 may upper posi�on F. Turn on power not be appropriate, which could cause damage to the IC or motor. Se�ngs should (to rated voltage) be verified before connec�ng a motor.
  • Page 3: Step 2: Launch The Gui

    Step 2: Launch the GUI. Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A. www.allegromicro.com...
  • Page 4 Step 2: Launch the GUI. (continued) B. If you see this error message, install the USB to I2C chip driver (FTDI D2XX). Check USB cable connec�on. C. Make sure the power supply is ON, and the switch is set to ‘U1 PROG’.
  • Page 5: Step 3: Load Saved Parameters, If Previously Saved

    Step 3: Load saved parameters, if previously saved. Device parameters can be saved to a file. If a file for this (or similar) application has been created, open that file. Verify the Allegro- only bits in the file are their default values. Allegro MicroSystems, LLC 955 Perimeter Road Manchester, NH 03103-3353 U.S.A.
  • Page 6: Step 4: Configure The Basic Parameters

    Step 4: Configure the basic parameters. Note: These numbers do not need to be very accurate; use the best estimation. There is fine tuning later in the process. The number of pole pairs. For example, The supply voltage that motor will be 12 pole motor: input 6 pole pairs.
  • Page 7: Step 5: Start The Motor

    Step 5: Start the motor. A. Connect motor phase A, B, and C. B. Keep ‘Set speed demand via I2C’ checked. C. Select the speed demand to 50%, and click Toggle Run/Stop. The motor should start spinning. If it does, go to step 9. If not: Doesn’t move at all, Shook a li�le bit...
  • Page 8: Step 6: If Motor Does Not Move At All

    Step 6: If motor does not move at all: A. Look at the LED indicator connected to the Fault pin, and follow the fault table to determine the root cause. B. If the LED is off, connect a current probe and voltage probe to the motor outputs and check if there is any current / voltage output to the motor phase.
  • Page 9: Step 7: If Motor Shakes A Little And Stops

    Step 7: If motor shakes a little and stops: A. Look at the LED indicator connected to the Fault pin, and follow the fault table to determine the root cause. B. If it is OCP, check the phase output wire connec�ons. C.
  • Page 10: Step 8: If Motor Spins More Than 5 Cycles And Stops

    Step 8: If motor spins more than 5 cycles and stops: A. Look at the LED indicator connected to the Fault pin, and follow the fault table to determine the root cause. B. The problem is likely lock detec�on. If so, go to the Standby / Protec�on page and disable all the lock detect features.
  • Page 11: Click 'Read Status

    Step 9: While the motor is spinning, go to the Status page; click ‘Read Status’. A. While the motor is spinning, go to the Status page. Click ‘Read Status’. B. The system diagnos�cs func�on will show you IC temperature, motor speed, supply current, phase current, and supply voltage.
  • Page 12: Step 10: Adjust The Motor Inductance

    A. Motor inductance is difficult to measure—it varies with opera�on frequency, phase current (satura�on), and also with the rotor posi�on. Thus, A89301 provides an easy method to adjust the inductance value and achieve the best efficiency. B. While the motor is spinning, connect a current probe to phase A, and connect a voltage probe to phase A.
  • Page 13 Step 10: Adjust the motor inductance. (continued) D. There will be a small window opened on phase A (winding current is flat at 0A). Observe phase A voltage inside the window: • If voltage > V /2, increase L. • If voltage < V /2, decrease L.
  • Page 14 Step 10: Adjust the motor inductance. (continued) E. It may not be possible to find an inductance value that makes the phase A voltage exactly V /2. If not, choose the closest se�ng. F. Theore�cally, adjus�ng the inductance value at one speed will work for all other speeds.
  • Page 15 Step 10: Adjust the motor inductance. (continued) J. There is another way to double-confirm the inductance is op�mized. • Control the motor to a fixed high speed (around 80% of rated speed). • Read phase current RMS from scope. • Change the inductance se�ng around the value from the previous step.
  • Page 16: Step 11: Fine Tune The General Parameters

    Step 11: Fine tune the general parameters. A. Increase the speed demand to 100%, and read the status. B. The bus current value should match the actual bus current shown on the power supply or a mul�-meter. If not, adjust the sense resistor value slightly (on the advanced page).
  • Page 17: Step 12: Pid Parameters

    Step 12: PID Parameters. A. Restart the motor. B. If the PID parameter is too high or too low, opera�on will fail. Connect a current probe and voltage probe for the debugging. • If current shows distor�on within in one •...
  • Page 18: Step 13: Startup Mode And Startup Settings

    Step 13: Startup Mode and Startup Settings. A. If this is an air purifier type of applica�on which doesn’t require zero reverse rota�on startup, and startup �me is not cri�cal, select ‘Align & go’. B. If this is a ceiling fan or pole fan applica�on which strictly requires no reverse rota�on at startup, select ‘2 pulse IPD’.
  • Page 19 Step 13: Startup Mode and Startup Settings. (continued) G. A89301 provides 7 op�ons for the startup current. The motor phase current will gradually increase from the programmed value. If ‘Max start current’ is enabled, the control demand is ignored, and 100% control demand is always used.
  • Page 20: Step 14: Lock Detect Parameters

    Enabled, the IC will report a failure if the motor “speed” is abnormally fast. A89301 a�empts to start the motor again a�er 5s or 10s wai�ng. But it will only a�empt so many �mes, then stop a�emp�ng un�l power cycle, or restart the motor demand (speed demand).
  • Page 21: Step 15: Speed Control Mode

    final produc�on if there is an MCU (or other type of controller) in the system. C. The speed control op�ons are described in the datasheet “Speed Control” sec�on. D. If the demand is less than a threshold, A89301 will not try to spin the motor. •...
  • Page 22: Step 16: Other Settings

    VREF when speed demand is zero, disable the standby mode. B. When the external Brake bu�on is pressed, A89301 will stop the motor as fast as possible. But because of the poten�al overstress damage to the MOSFETs, selec�ng the “Brake when safe”...
  • Page 23 Step 16: Other settings. (continued) D. ‘Open drive’ is a debug op�on which will keep the system in the open-loop (stepper motor) state. In case a�er all this prac�ce, the motor can’t be made to spin, enable the open drive, set the PID parameters to 0, and set the rated speed low. If the motor is able spin slowly in the open loop, the problem is related to PID parameter.
  • Page 24 Step 16: Other settings. (continued) H. The Accel buffer and Decel buffer only affect “open-loop speed control” mode. Keep the default se�ng if sa�sfied with the dynamic response of the system. If faster dynamic response is expected, choose fast or no buffer. If the applica�on has a high- iner�a motor (ceiling fan), choose slow buffer.
  • Page 25: Step 17: Mosfet Ciss Settings (Ciss Tab)

    Step 17: MOSFET CISS settings (CISS tab). A. These parameters are provided to compensate for the MOSFET parasi�c input capacitance (C ). Higher capacitance and/or lower gate slew rate requires higher compensa�on. The se�ngs can be selected via the table in the datasheet, or for be�er accuracy, via the test func�onality provided in the applica�on (this method is recommended).
  • Page 26: Step 18: Save The Settings And Write Into The Eeprom

    Step 18: Save the settings and write into the EEPROM. A. Save the configura�on to a file. B. Press “Write all se�ngs to EEPROM” before shu�ng down the power. C. The Allegro-only bits in EEPROM can be verified by pushing the “Read EEPROM and show se�ngs”...
  • Page 27: Default Values Of Allegro-Only Bits

    Default values of Allegro-only bits. The red bits should always be set to the following values. Bits with an ‘X’ is a user se�ng and can be set to 0 or 1. EE8_REG72 EE9_REG73 EE10_REG74 EE11_REG75 EE12_REG76 EE13_REG77 EE14_REG78 Address EE15_REG79 EE16_REG80 EE17_REG81 EE18_REG82...
  • Page 28: Note 1. How To Determine The Number Of Poles

    NOTE 1. HOW TO DETERMINE THE NUMBER OF POLES A. Connect one motor terminal to the supply, one terminal to ground, and leave the last terminal floa�ng. Increase the supply gradually, making sure the current doesn’t become too high (should be about half of the rated current).
  • Page 29: Note 2. Testing The Ipd Performance

    NOTE 2. TESTING THE IPD PERFORMANCE A. The IPD performance test is valid for ‘2-pulse IPD’, ‘6-pulse IPD’, and ‘Slight-move’ modes. B. Go to the IPD page, select IPD test stage, enable ‘Con�nuously Read Angle’, and push ‘Toggle Run/Stop’ to start driving. C.
  • Page 30 E. If ‘Stage1&2’ is selected (available for ‘2-pulse IPD’ and ‘6-pulse IPD’ op�ons), the output will successively step up from 15° to 345°, then back to 15°, if spun in target direc�on. If spun in the opposite direc�on the output will successively step down from 345° to 15°, then back to 345°. F.
  • Page 31: Note 3. Debugging The Lock Detect Feature

    NOTE 3. DEBUGGING THE LOCK DETECT FEATURE Go to “Lock Detect” page to debug lock detec�on issues. Lock detec�on issue includes (1) Motor is locked, but IC can’t detect the lock, and (2) Motor is running okay, but IC detects a lock by mistake. Press the ‘con�nuous read’...
  • Page 32 NOTE 3. DEBUGGING THE LOCK DETECT FEATURE (continued) This is primarily for ceiling fan applica�ons with a loose connec�on (the stator can rotate some). To debug the vibra�on lock detect, press the “Threshold high” or “Threshold low” bu�ons, which will send the vibra�on detec�on signal to the “FAULT”...
  • Page 33: Note 4. Testing Motor Startup

    NOTE 4. TESTING MOTOR STARTUP An automated tes�ng feature is provided on the “Startup test” tab. Set the desired on-�me, off-�me (provide enough �me for the motor to stop), and push the Run/Stop bu�on. A startup is considered successful if the RMP at the end of the on-�me is between the specified RPM limits.
  • Page 34: Other Operating Features Of A89301

    OTHER OPERATING FEATURES OF A89301 Motor Operation Status Readback The register state_top_level[3:0] holds the motor operation status, which can be read through I2C. The address is 127[15:12]. The grey highlighted items are FAULT related. It can be used to extract the fault condition instead of decoding the flash patterns on the Fault pin.
  • Page 35: I2C Hardware Connection

    The A89301 application is a single master, single slave system, so 1.125 / (sqrt(3) / 2) = 1.3 SCL is only an input for the A89301, which does not need a pull- up resistor. SDA is a bidirectional signal, which requires a pull-up OCP Masking Time and Filtering Time resistor.
  • Page 36: Bus Current Vs. Q-Axis Current

    1.125; and between the zero speed and full speed, current limit follows the curve in below picture. The A89301 gate driver outputs are current source/sink drivers. Internally, 100 kΩ resistor is connected between GLx and LSS, and between GHx and Sx. When the device is in sleep mode, digital logic, charge pump, and regulators will be off.
  • Page 37: Charge Pump Capacitor Selection

    ) needs to be connected between VCP and VBB. When the A89301 is in the normal operation mode (running a motor), the current drawn from VCP has the static component and the dynamic component. The static component is about 1.5 mA.
  • Page 38 Revision History Number Date Description – February 27, 2019 Initial Release Copyright ©2019, Allegro MicroSystems, LLC The information contained in this document does not constitute any representation, warranty, assurance, guaranty, or inducement by Allegro to the customer with respect to the subject matter of this document. The information being provided does not guarantee that a process based on this infor- mation will be reliable, or that Allegro has explored all of the possible failure modes.

Table of Contents