Microsemi-LOGO

Microsemi UG0612 Speed ID IQ PI Controller

Microsemi-UG0612-Speed-ID-IQ-PI-Controller-PRO

About Microsemi

Microsemi Corporation (Nasdaq: MSCC) offers a comprehensive portfolio of semiconductor and system solutions for aerospace & defense, communications, data center and industrial markets. Products include high-performance and radiation-hardened analog mixed-signal integrated circuits, FPGAs, SoCs and ASICs; power management products; timing and synchronization devices and precise time solutions, setting the world’s standard for time; voice processing devices; RF solutions; discrete components; enterprise storage and communication solutions, security technologies and scalable anti-tamper products; Ethernet solutions; Power-over-Ethernet ICs and midspans; as well as custom design capabilities and services. Microsemi is headquartered in Aliso Viejo, California, and has approximately 4,800 employees globally. Learn more at www.microsemi.com.

Revision History

The revision history describes the changes that were implemented in the document. The changes are listed by revision, starting with the most current publication.

Revision 3.0
The following is a summary of the changes in revision 3.0 of this document.

  • Added the IP version to the document title.
  • Updated Figure 3.
  • Removed g_STD_IO_WIDTH configuration parameter from sections Configuration Parameter.

Revision 2.0
Updated the input and output signals in Figure 3 Table 1 (SAR 69696).

Revision 1.0
Revision 1.0 is the first publication of this document.

Introduction

The PI controller is a widely used closed loop controller for controlling a first order system. The basic functionality of a PI controller is to make the feedback measurement track the reference input. It performs this action by controlling its output till the error between the reference and feedback signals becomes zero.
There are two components that contribute to the output, the proportional term and the integral term, as shown in the following figure. The proportional term depends only on the instantaneous value of the error signal, whereas the integral term depends on the present and previous values of an error.

PI Controller in Continuous Domain

Microsemi-UG0612-Speed-ID-IQ-PI-Controller- (1)

PI Controller based on Zero Order Hold MethodMicrosemi-UG0612-Speed-ID-IQ-PI-Controller- (2)

Anti-Windup and Initialization
The PI controller has minimum and maximum limits of output, to keep the output within practical values. If a non-zero error signal persists for a long time, the integral component of the controller keeps increasing and may reach a value limited by its bit width. This phenomenon is called integrator windup and must be avoided to have a proper dynamic response. The PI controller IP has an automatic antiwindup function, which limits Integrator as soon as the PI controller reaches saturation. In certain applications like motor control, it is important to initialize the PI controller to a proper value before enabling it. Initializing the PI to a good value avoids jerky operation. The IP block has a enable input to enable or disable the PI controller. If disabled, the output is equal to the unit input and when enabled, the output is the PI computed value.

Time Sharing of PI Controller
In field oriented control (FOC) algorithm, there are three PI controllers for Speed, d-axis current Id, and q-axis current Iq. The input of one PI controller depends on the output of the other PI controller and so they are executed sequentially. At any instant, there is only one instance of the PI controller in operation. Hence, instead of using three individual PI controllers, single PI controller is time shared for Speed, Id and Iq for optimum usage of resources. The Speed_Id_Iq_PI module allows sharing of the PI controller through the start and done signals for each of Speed, Id, and Iq. The tuning parameters Kp, Ki, and minimum and maximum limits of each instance of controller can be configured independently through corresponding inputs.

Hardware Implementation

The following figure shows the block diagram of the Speed ID IQ PI Controller.

System-Level Block Diagram of Speed ID IQ PI ControllerMicrosemi-UG0612-Speed-ID-IQ-PI-Controller- (3)

Note: The Speed ID IQ PI controller executes a PI controller algorithm for three quantities—d-axis current, q-axis current, and motor speed. The block is designed to minimize the hardware resource utilization. The block allows the PI controller algorithm to be run for one parameter at a time.

Inputs and Outputs

The following table lists the input and output ports of the Speed ID IQ PI Controller.

Input and Output Ports of the Speed ID IQ PI Controller:

Signal NameDirectionDescription
reset_iInputActive low synchronous reset signal.
sys_clk_iInputSystem clock.
speed_en_iInputEnable signal for speed PI.
When set to 1, normal PI controller operation occurs.
When set to 0 (zero), PI controller output is fixed to the value available at the speed_init_i input.
clear_buffer_iInputClears internal buffers when the motor stops.
idq_en_iInputEnable signal for Id and Iq PI: When set to 1, normal PI controller operation occurs
When set to 0 (zero), PI controller output is fixed to the value available at the id_init_i and iq_init_i inputs respectively.
speed_pi_start_iInputStart signal for speed PI.
idpi_start_iInputStart signal for Id PI.
iqpi_start_iInputStart signal for Iq PI.
speed_init_iInputInitialization value for speed PI.
iq_init_iInputInitialization value for iq PI.
id_init_iInputInitialization value for id PI.
speed_pi_ref_input_iInputSpeed PI reference input.
speed_pi_act_input_iInputSpeed PI feedback measurement input.
speed_pi_kp_iInputProportional gain (Kp) for Speed PI.
speed_pi_ki_iInputIntegral gain (Ki) for Speed PI.
speed_pi_ymax_iInputSaturation limit (upper threshold) of speed PI controller.
speed_pi_ymin_iInputSaturation limit (lower threshold) of speed PI controller.
id_pi_ref_input_iInputId PI Reference input.
id_pi_act_input_iInputId PI feedback measurement input.
id_pi_kp_iInputProportional gain (Kp) for Id PI.
id_pi_ki_iInputIntegral gain (Ki) for Id PI.
idq_pi_ymax_iInputSaturation limit (upper threshold) of current PI controller.
idq_pi_ymin_iInputSaturation limit (lower threshold) of current PI controller.
iq_pi_ref_input_iInputIq PI Reference input.
iq_pi_act_input_iInputIq PI feedback measurement input.
iq_pi_kp_iInputProportional gain (Kp) for Iq PI.
iq_pi_ki_iInputIntegral gain (Ki) for Iq PI.
idq_pi_ymax_iInputSaturation limit (upper threshold) of current PI controller.
idq_pi_ymin_iInputSaturation limit (lower threshold) of current PI controller.
speed_pi_done_oOutputIndicates Speed PI computation is complete. High for one system clock cycle.
id_pi_done_oOutputIndicates Id PI computation is complete. High for one system clock cycle.
Signal NameDirectionDescription
iq_pi_done_oOutputIndicates Iq PI computation is complete. High for one system clock cycle.
speed_pi_output_y_oOutputSpeed PI computation output.
id_pi_output_y_oOutputId PI computation output.
iq_pi_output_y_oOutputIq PI computation output.

Configuration Parameter
The following table shows the configuration parameter used in the hardware implementation of the Speed ID IQ PI Controller. This parameter is a generic and can be varied based on the application requirement.
Configuration Parameter of the Speed ID IQ PI Controller:Microsemi-UG0612-Speed-ID-IQ-PI-Controller- (4)

Timing Diagram
The following figure shows the timing diagram of the Speed ID IQ PI Controller. The following signals correspond to one set of input and output ports of the Speed ID IQ PI controller.
Timing Diagram of the PI Controller:Microsemi-UG0612-Speed-ID-IQ-PI-Controller- (5)

Resource Utilization
Speed ID IQ PI Controller is implemented on the SmartFusion®2 system-on-chip (SoC) field programmable gate array (FPGA) device. The following table lists the resource utilization report after synthesis.
Resource Utilization of the Speed ID IQ PI Controller:

Cell UsageDescription
Sequential elements410
Combinational logic630
MACC1
RAM1kx180
RAM64x180

Warranty

Microsemi makes no warranty, representation, or guarantee regarding the information contained herein or the suitability of its products and services for any particular purpose, nor does Microsemi assume any liability whatsoever arising out of the application or use of any product or circuit. The products sold hereunder and any other products sold by Microsemi have been subject to limited testing and should not be used in conjunction with mission-critical equipment or applications. Any performance specifications are believed to be reliable but are not verified, and Buyer must conduct and complete all performance and other testing of the products, alone and together with, or installed in, any end-products. Buyer shall not rely on any data and performance specifications or parameters provided by Microsemi. It is the Buyer’s responsibility to independently determine suitability of any products and to test and verify the same. The information provided by Microsemi hereunder is provided “as is, where is” and with all faults, and the entire risk associated with such information is entirely with the Buyer. Microsemi does not grant, explicitly or implicitly, to any party any patent rights, licenses, or any other IP rights, whether with regard to such information itself or anything described by such information. Information provided in this document is proprietary to Microsemi, and Microsemi reserves the right to make any changes to the information in this document or to any products and services at any time without notice.

© 2016 Microsemi Corporation. All rights reserved. Microsemi and the Microsemi logo are trademarks of Microsemi Corporation. All other trademarks and service marks are the property of their respective owners.

Microsemi Corporate Headquarters
One Enterprise, Aliso Viejo,
CA 92656 USA
Within the USA: +1 800-713-4113
Outside the USA: +1 949-380-6100
Fax: +1 949-215-4996
Email: sales.support@microsemi.com
www.microsemi.com

Documents / Resources

Microsemi UG0612 Speed ID IQ PI Controller [pdf] User Guide
UG0612 Speed ID IQ PI Controller, UG0612, Speed ID IQ PI Controller, ID IQ PI Controller, Controller

References

Leave a comment

Your email address will not be published. Required fields are marked *