Академический Документы
Профессиональный Документы
Культура Документы
Introduction
Almost any process requires control of the output to achieve the desired result. Such processes include
attitude control of an aircraft, speed control of an elevator, voltage control of a power supply, and mixing
and temperature control in a chemical plant. A commonly used control methodology for these examples
and many others is proportional plus integral plus derivative (PID) control. PID control is a combination of
these three types of control algorithms.
The history, derivation, and theory behind PID control are beyond the scope of this application note. Such
topics are addressed in university-level courses and their associated textbooks1.
This application note discusses how a PID algorithm can be used to control the output voltages of a power
supply as a system is powering up or in steady-state regulation. Also discussed is how the PID algorithm is
implemented in an Actel Fusion FPGA as the board-level system management IC.
VLOAD
POL
DC –
+ Load
FET
PWM Driver
PID
Controller
VREF
Note that Figure 1 represents only one output voltage being ramped. To ramp multiple output voltages,
each voltage being ramped requires one of the circuits shown.
1. Franklin, Powell, Emami-Naeini; "Feedback Control of Dynamic Systems," Addison Wesley, ISBN 0-201-11450-9.
July 2007 1
© 2007 Actel Corporation
Implementing a PID Controller in an Actel FPGA
C2 R2
R1
VSENSE
–
– VERR
C1
+
VIN
+ VREF
2
Implementing a PID Controller in an Actel FPGA
2. M. Tham, "Discretised PID Controllers: Part of a Set of Study Notes on Digital Control, http://lorien.ncl.ac.uk/ming/
digicont/digimath/dpid1.htm.
3
Implementing a PID Controller in an Actel FPGA
Calculations
For the 1.2 V Output
ADCOUT = ((1.2) × (1.25)/2.56) × (255) = 149.41≅ 149 => 10010101
4
Implementing a PID Controller in an Actel FPGA
this will provide some margin to ensure the ADC can sample the output 4 times before the next VREF
increment. This increases the VREF increment time to 25 ms/150 = 166.66 µs.
The PID uses a 10 MHz input clock, driving a counter, to count up to 1,667 and then increment VREF by one,
causing VREF to count from 0 to 149 in 25 ms. Recall that all three outputs ramp at the same rate, so they
will meet the specification that each output should stay within +/–0.5 V of all others as they ramp. This
leads to the calculations of ramp times and 10 MHz counter values for VREF of 1.2, 2.5, and 3.3 V shown in
EQ 8 through EQ 10.
5
Implementing a PID Controller in an Actel FPGA
6
Implementing a PID Controller in an Actel FPGA
7
Actel and the Actel logo are registered trademarks of Actel Corporation.
All other trademarks are the property of their owners.
www.actel.com
Actel Corporation Actel Europe Ltd. Actel Japan Actel Hong Kong
2061 Stierlin Court River Court, Meadows Business Park EXOS Ebisu Bldg. 4F Suite 2114, Two Pacific Place
Mountain View, CA Station Approach, Blackwater 1-24-14 Ebisu Shibuya-ku 88 Queensway, Admiralty
94043-4655 USA Camberley Surrey GU17 9AB Tokyo 150 Japan Hong Kong
Phone 650.318.4200 United Kingdom Phone +81.03.3445.7671 Phone +852 2185 6460
Fax 650.318.4600 Phone +44 (0) 1276 609 300 Fax +81.03.3445.7668 Fax +852 2185 6488
Fax +44 (0) 1276 607 540 www.jp.actel.com www.actel.com.cn
51900016 4 -0/7.07