Professional Documents
Culture Documents
com
Description Kit enables customer to build, program, test, and analyze a Buck converter controlled by an 8-bit PIC Micro. Efficient design illustrates key concepts in simple terms that apply to a broad range of technologies. Kit includes blank PCB, programmed chip, and licensed Mini-CD with schematic, parts list, functional description, SPICE model, and assembly source code. Converter featured in EDN "Power Goes Digital" 8/18/5 tutorial and Professional Advancement Courses at Power Systems World. Contents - Blank PCB with parts list for customer assembly - PIC Micro programmed with power conversion code - Assembly source code with license to distribute machine code in programmed chips - Mini-CD documentation for hardware, firmware, and basic operation (copyright protected) Benefits - Flextek original technology to advance emerging field of digital power control - Valuable principles are universal to other devices and applications - Demonstrate capabilities and limitations of digital power essential to effective trades - Flextek grants customer license to program PIC Micro chips with compiled machine code Limits - Customer agrees not to disclose contents of CD documentation or code (each user purchases own kit) - Proven source code is commented but not covered by product support - Flextek consultation not included in kit purchase (available at additional cost) - Flextek makes no warranties expressed or implied
8BUCK
8/26/5
Hardware
5V Reference 20K 1 2 3 4 5 6 7 8 9 PIC16F818 RA2 AN1 RA3 AN0 RA4 OX1 RST OX2 GND VDD RB0 PGD RB1 PGC RB2 RB5 PWM RB4 PWM Drive 18 17 16 15 14 13 12 11 10 ADC Feedback 20MHz
6 7 VD TDA21201 IN OUT 4
12uF
47 uF
2200 uF
22 pF
3>
TT T
2 > 1) Ch 1: 1
2) Ch 2: 3) Ref A:
Converter Waveforms show Output Voltage is Average of Switching Power 1) Switching power stage (2V/div, 2.5uS/div) 2) Filtered output voltage (2V/div, 2.5uS/div) 3) Output voltage ripple (20mV/div, 2.5uS/div)
8BUCK
8/26/5
Performance 10V-14Vin, 1V-11Vout @ 7A 1.5in W x 3.6in L x 0.9in H, 2 oz. Wt. 92% at 5V/7A Output 156KHz, 7 bit resolution (94mVout) 25.6 S (PWM adjusted every 4th cycle) 38.4 S (19.2 S ADC + 19.2uS PID) 10 bit resolution (11mVout), 19.2 S conversion 12mVrms (switch + quantization) !Vpk = 90mV/A, 200S Recovery Summary Table
1>
2>
T TT
1) Ch 1: 2) Ref A:
Open and Closed Loop Response of Converter to Step Load Verr = Vref - Vadc VerrDiff = Verr VerrLast VerrLast = Verr P = KP Verr I = I + KI Verr D = KD VerrDiff PWM = PID = P + I + D ; Voltage Error = Setpoint - Measured ; Differential error from last measurement ; Save error for next differential calculation ; Proportional term scaling ; Integral term scaling and running sum ; Differential term scaling ; Adjust PWM output by PID sum PID Closed Loop Control Algorithm
8BUCK
8/26/5
Firmware
6.4u
25.6u
8BUCK
8/26/5
Simulation
PWM
ESWAVG 2.4 LF 15u RL 0.055 CF 2200u
ADC
Clead 0.1u
RC 0.030
ILOAD
RS1 1k
ADC
ERRAMP 1
Cint 0.01u
PWM
Rupdate 1
8BUCK
8/26/5
Lessons General - Best solution is simplest one that works (strive to satisfy rather than impress) - Tight PCB layout with split ground plane and close charge storage capacitance for noise suppression - Thermal shutdown, limiting diodes and resistors, watchdog timer, and brownout detection for protection - Real-time firmware with multi-tasking and prioritized interrupts - PID by interrupt and main loop by polling - Synchronize ADC sampling to PWM - Right justify ADC for guard band against overflow - Protect against register overflow and underflow Equations - Critical Frequency: f(critical) = 1 / [Tprocess + Tupdate] = 1 / [(Tadc + Tpid) + Tupdate] (Converter performance is limited by digital delays rather than switching frequency) - Control Bandwidth: f(control) < f(critical) / 4 (Control loop bandwidth is bound by critical frequency) - LC Filter: LC1/2 > 2 / f(critical) (Contain LC filter resonance within loop bandwidth) - PWM Frequency: f(PWM) < [f(CLK) / 2Res(ADC) ] [LC1/2 / Tupdate] [Vmeas / Vin] (Maximum PWM frequency with control resolution equal to ADC)
8BUCK
8/26/5