摘要
为了使运行中的不间断电源(UPS)保持输入、输出的电压、频率和相位一致性,结合锁相环原理,并利用单片机实现了高精度的数字锁相环。通过捕获中断和周期中断获取的输入、输出相差,经过分段式变PI控制器,计算出载波周期的补偿量,采用分组线性插补再调制技术,改变了每个载波周期值,从而实现了高精度数字锁相功能。在此,给出了硬件实现电路及软件流程图。通过实验验证了该方案的可行性。
In order to realize the frequency and phase of output voltage synchronized with input voltage when UPS works,in the paper, a digital phase locked loop based on MCU with high precision is presented.The phase error between Output and input voltage is received by capture interrupt and period interrupt of MCU,a alterable PI controller is applied to calculate a compensation value of carried period which is changed by grouped linear interpolation remodulation tech- nique, and the high precision digital phase locked function is realized.The circuit and the' flow chart of program are given. Experi-ment result proves the scheme is feasible.
出处
《电力电子技术》
CSCD
北大核心
2007年第6期86-88,共3页
Power Electronics
关键词
不间断电源
数字
锁相环控制
uninterrupted power supply
digital
phase-locked coop control