基于单片机的太阳光伏发电系统逆变器的仿真设计
鍩轰簬鍗曠墖鏈虹殑澶 槼鍏変紡鍙戠數绯荤粺閫嗗彉鍣ㄧ殑浠跨湡璁捐 .txt浠婂ぉ蹇冩儏涓嶅ソ銆傛垜鍙 湁鍥涘彞璇濇兂璇淬€傚寘鎷 繖鍙ュ拰鍓嶉潰鐨勪袱鍙ャ€傛垜鐨勮瘽璇村 畬浜嗗 浠樺嚩鎭剁殑浜猴紝灏辫�姣斾粬鏇村嚩鎭讹紱瀵逛粯鍗戦剻鐨勪汉锛屽氨瑕佹瘮浠栨洿鍗戦剻娌℃湁鎯呬汉鍛筹紝鍝 潵浜烘儏鍛炽€€銆€鎷夸粈涔堟暣姝讳綘锛屾垜鐨勭埍浜恒€傛敹閾跺憳璇达細娌¢浂锛屾 袱涓 � � э 鏈 eichuanfei pdf 鍙 AP 炽€傚 璁 樺¡閫¢£ TXT锛屾⁄涓¥ƒ§currency1 浠跺 鏈 “«‹›銆�fifl –†‡· 璁烘 HAI XIA KE XUE鍩轰簬鍗曠墖鏈虹殑澶 槼鍏変紡鍙戠數绯荤粺閫嗗彉鍣ㄧ殑浠�¶• 璁� 1.‚„”澶у鏈虹數»‹…绯�2.‰ ¿澶у “»‹…`„´ 3.ˆ˜¯澶у ˘˙»‹…涓¨ ˚¸ `„´ 1,2 1锛 �3 2 鍛˝˛ˇ — � � � � �[ �] 浠 浜 –嶅 Æ簬澶 槼 ª殑鍙戠數绯荤粺涓 浜 “Ł уØ鐨 Œº €嗗彉鍣ㄧ殑璁捐 銆 €嗗彉鍣Æ æ 涓 €嗗彉 ı 锛�涓 � RF830A łø銆œß鍗 �PWM 嶉 璋冨Ø 瑰紡»ヤ綔銆傜粡杩囧垎鏋愬拰姣旇緝锛岀�‘瀹氶噰 ㄧ洿Ł�WM娉 潵璁 畻SPWM娉㈢殑鍗犵┖姣斿苟璁捐 浜�Ł уØ鍣ㄣ€œßAT89S51 滀负ŁуØ鑺 墖锛屽 浜嶬 eilC鍜孭roteus鐨勯泦鎴愬紑鍙戠幆澧冭繘琛岀郴 •蒋浠惰璁★紝 撳悎 欢瀵圭‖浠剁數璺繘琛岃皟璇曪紝 ı灉琛˝槑 勯儴鍒嗘寚鏍 弧瓒宠�姹傘€� [鍏抽敭璇峕 閫嗗彉鍣 鍏変紡 鍗曠墖鏈 鑴夊啿瀹藉害璋冨Ø 鍏抽敭鎶€鏈氨鏄 曞皢 拌 §愯浆鍖栨ø æ 銆� � �傚洜姝ら€嗗彉鍣ㄧ殑‡· 涔熸ø涓 悎鐞嗗埄 ˝柊 芥簮鐨勮 棰樹腑鐨勯噸涓箣閲嶃€傜洰鍓嶏紝鍙 潬銆�楂樻晥鍜屽粔浠风殑閫嗗彉鍣¸繁鎴愪负 熸椿涓 殑杩 垏闇€瑕併€傛湰 囬噰 ㄩ珮 杩愮 畻閫熺巼锛 綆˚•€楃殑鍗曠墖鏈�AT89S51 滀负ŁуØ鑺 墖锛屾彁楂樹 閫嗗彉鍣ㄧ殑»ヤ綔鏁堢巼銆 鏈 浠 閫嗗彉鍣ㄧ殑 ı 銆佹 鍒 娉曞拰 � PWM ŁуØ 瑰紡锛 €閲 繘琛 绯荤�粺 欢鍜岃蒋浠剁殑璁捐 锛岀 轰 ¸垎 锛 € 瀹 Œº 瀹 娉 惰 繘琛 鍒嗘 锛屾 ¨繘琛 荤 銆�1澶 槼 芥 勭�鍙 • §愪腑鏈€閲 �鐨 鏈 § 紝 熺 � ¡€¢ ¡€佹˛£¥ 銆佹⁄ ª¥ 芥潵ƒ§currency1 宠 锛屽“涔夊«璇达紝澶‹槼 藉寘 ›ß涓�婂fi–嶅fl –† 芥簮銆 澶‹槼 ‡綔涓 fl –† 芥簮鐨勪 –嶏紝 鍒· 囧currency1 宠 鐨勭洿Ł�¶浆鍖•拰鍒‚„,閫 ”»…‰鎶婂currency1 宠 灏� ¿浆 `ø æ 鍒‚„鐨 ´浜 currency1 宠 鍏夊ˆ ˘˜鏈 銆 鏈 浠 浜 涓§ Æ簬鍙 • §愬ˆ ¯郴 ˘紝閲˙„Œ¨ ˘� �˚ŁуØ鐨 Œ¸數‚ 簮˝�PWM 閫嗗彉鍣ㄧ殑璁捐 杩˙…锛屽苟瀵˛€�鍙樺ˇ鐨ł 鍒剁— ¶繘琛 鍒嗘 鍜岀 讹紝閲˙„ ATMEL 鍏 鐨� MCU 鑺 墖 AT89S51 滀负ŁуØ鑺 墖瀹屾ø浜璁 °€�澶 槼 藉 ˜ˆ 涓 涓 涓 80 浠 潵 Æ楂 € 鍙†ª� ,姣˜ 浠�30% �0%鐨勯€ 害閫 锛屽ŁØ跺 鐞冨 Œ數姹 閲 蹇º€ 紝 鍏ㄧ 澶‹槼 ‡ � � �涓 1995 达æ2005 村 夸 � 17 嶃€�2005 屽currency1 宠 ˘ 浜ч ı 1650MW »ł“瀹˛ 5GW銆œ负浜øœ˚ßcurrency1 宠 鐨 紑鍙†拰鍒‚„锛屽fi鍥芥 垎鍒Н鏋 Ø 瀹 fi– 紭鎯犳 绛栨潵Ł¸姩澶 槼 藉 ˜ˆ ¯殑鍙†ª銆 鍏朵腑锛 浠‹¿銆 Øャ€ 痉銆 ¥瑗挎 鍙戣揪鍥藉涓轰 銆 鎴†浗鐨 currency1 宠 鍏� � � �変紡鍙戠數绯荤粺璧锋 ı冩櫄 , 嗘 鍙†ª閫 害 蹇€� �005 �2 鏈�28 Ø‹ 鍗 眾鍏¸浗浜烘皯浠h〃澶т細甯º姟濮斿憳 绗崄鍥涙 閫 鐨勨€滀腑鍗庝汉姘†叡鍜屽浗鍙 • �§currency1硶鈥濓紝»蹭簬 2006 �1 鏈�1 ض˛姝e紡瀹炴柦銆�2006 �4 鏈堝浗˚¢´ 芥簮棰嗗灏 勪細璁笂»叉壒 嗗浗瀹跺ˆ鏀瑰 鎻愬嚭鐨ł垜鍥藉currency1 宠 鍙戠數鐨勪腑 挎湡 鍙†ª 垝� �銆 ˆ灞曢噸鐐瑰拰Œ爣銆�闅Œ潃浜虹被瀵规柊 芥簮鐨勯 姹œ 殑澧炲姞锛�鑰屽埄 ˝柊 芥 簮鐨�[2] [1]2绯荤粺 讳 璁捐2.1 閫嗗彉 æ 浠 涓庢暣fi 浉瀵瑰 锛屾妸Œ¨˚ æ浆鍖栨ø浜ゆ˚ ¯О涓洪€嗗彉銆傚 浜fi佷晶Łュ ¯綉涓婏紝鍗充氦fi佷晶Ł 湁 ˘簮Ø讹紝–颁负鏈¢簮閫嗗彉锛涘 浜ゆ˚渚� х洿Łュ拰 •ƒ杩炴 Ø讹紝–颁负Ø犳簮閫嗗彉銆 €嗗彉 æ 鐨 闈炲父 挎硾銆傚 »叉湁鐨 fi�––數§愪腑锛岃搫 ˘ 銆 共 ˘ 銆 currency1 宠 ˘ 绛夐 鏄 洿fi 數§ 紝褰撻 瑕佽繖浜涚數§愬悜浜ゆ˚ •ƒ渚涚數Ø讹紝 灏遍 瑕¢€嗗彉 æ 銆 €嗗彉 æ ㄧ數˚涚數`愮數璺 腑鍗犳湁鍗 垎绐 嚭 鐨 « 峓3]銆 閫嗗彉 æ 鏍规嵁Œ¨˚渚� х數§currency1€ц川鐨勪 屽fl鍒 负涓ょ 锛氱洿fi 渚� � ф 靛帇§愮殑–颁负 靛帇˝嬮€嗗彉 æ 锛涚洿fi佷晶鏄 數fi佹簮鐨勭 О涓 �˘˚˝嬮€嗗彉 æ 銆傚畠浠 篃鍒嗗埆琚 О涓虹數‚ 簮˝嬮€嗗彉 æ 锛圴olt-age Source Type Inverter鈥擵STI)鍜岀數fi佹簮˝嬮€嗗彉 æ 锛圕urrent Source Type Inverter鈥擟STI)銆 鏈 閲˙„鐨ł 鍏˝� ˉ閫 鍙樼數璺殑‚熺悊鍥俱€� �2.2 閫嗗彉鍣ㄩ┍˚ㄧ數璺 笌婊ゆ尝 æ 鐨勮璁�* 姝ら」»ヤ綔 鍥藉 863 閲嶅ぇ–戞˜椤圭洰`愯 棰 祫˚╋紝椤圭洰鎵瑰噯鍙凤細2006AA050203-12010 寸 10 鏈˘紙 荤 46 鏈˘級145鍩轰簬鍗曠墖鏈虹殑澶 槼鍏変紡鍙戠數绯荤粺閫嗗彉鍣ㄧ殑浠跨湡璁捐 椹ß姩 æ 鏄 數˚涚數`愬彉 ˇ鐨 閿 ˜鏈 箣涓€銆傚畠鐨勮緭 �鑴夊啿鐨 箙 煎拰娉 涓 囧紑鍏 鐨 紑鍏 壒 ф湁 堝ぇ鐨 绯 紝 杩 € 細褰ß 鍒 暣涓 €嗗彉绯荤粺鐨ł晥 囧拰璋冭 规€ 銆 鏈 璁 腑椹ß姩 æ 閲˙„ � � 4 ı撳 涓 �HD74HC00P銆傜 鍗曠墖鏈 緭 虹殑 PWM 娉 € 涓 涓 Æ箣 紝ı撳 囧ˇ 浠�V1銆 4 鐨勯”閫 涓€涓 笌闈 ”ı撳 � �V2銆 3 鐨勯” э紝 浠 ヤ綔涓洪┍˚Æ 鍙凤紝 朵 瀹椹ß姩 鐨勪 琛ャ€ ¡ 鍒嗘 鍜屾瘮ı¢紝 閫嗗彉 ¸垎 £⁄閲˙„鍏˝� ˉ閫嗗彉 æ, ß“ 鏁堝 ¥�IRF830A łø閫嗗彉 ƒ紝 閲˙„ 4 ı撳 涓 �HD74HC00P ヤ綔涓洪┍˚ㄧ數璺 €�鍗曠墖鏈轰 熺殑 PWM ¡ HD74HC00P 紝 鍒§€嗗彉 ヤ腑 €鍏£ˇ浠�IRF830A 鐨 笌瀵currency1€ 紝灏ßfl 浠ュ 閫嗗彉 ‹殑ı撳嚭 熸 “尝銆œ 杩 Ø剁殑姝e«娉 ‹鏈夊ぇ 閲Œ殑楂樻 璋currency1尝锛 瑕¢€ LC 婊ゆ尝 æ 鎵 ›fi銆佷 楂樻璋currency1尝鐨ł爣 殑姝e«娉 €fl€岀數瀹逛笌 ˘ 鏁–€†殑澶� � у‡闇€瑕 粡 杩˙悊璁 ¥·笌瀹 璋冭¶ 庢• ª‘瀹‚€傚 鏈 璁 腑鎴„”鍙� C=22»F,L=10mH銆�2.3 PWM ŁуØ 鑴夊 璋冨Ø (PWM)鏄 埄 ¸…澶勭悊鍣ㄧ殑鏁–‰ı撳嚭 ュ ℃ ¿ æ 杩 Ł� уØ鐨勪 –嶉 甯 湁鏁堢殑鎶€鏈 紝 挎硾 ·„ Æ`fi嬮 銆�閫´ 鍒– 鍒朵笌鍙樻”鐨勮 澶氶�鍩ˆ腑 銆�¥€鑰岃 涔˜紝 PWM 鏄 –嶅 ℃¿ 靛¯杩 鏁–‰˘ ˙ 鐨ł 娉¨€ € 楂樺垎ıㄧ巼璁℃ 鍣ㄧ殑 跨„锛屾 娉㈢殑鍗犵┖姣旇 璋冨Ø � �˝潵瀵逛 涓 ˚ ı ā鎷ˆ 鍙风殑 靛¯杩 ˘ ˙銆¸� WM 浠– 鏄 `楃殑锛屽洜涓 ⁄鐨勪˝ ˛鍒 紝婊 箙 †殑Œ¨˚渚涚數瑕佷ˇ 瀹屽 鏈�ON)锛岃 涔堝畬鍏˝—� (OFF)銆傜數‚ ⁄ ˘˚§currency1 浠ヤ –嶉€�(ON)鎴栨 (OFF)鐨勯噸澶 鍒 ˚ ℃¿ •ƒ涓�婂 鐨 € € 鐨ł˛ 鏄洿fi佷 æ ˚ •ƒ涓 殑Ø跺€ 紝 殑Ø跺€ 鏄 � �æ 紑鐨ł˛ €傚 瑕 Æ瀹¿ 澶˘紝浠讳ª ℃¿ currency1 鍙 ß 跨„ � PWM 杩 ˘ ˙銆�ㄩ噰鏍锋 鍒剁悊璁轰腑鏈変 涓‹噸瑕 殑 锛 啿閲Œ浉绛 €屽 涓嶅Ł鐨勭Ł鑴夊啿˚� �鍏锋湁鎯 € х殑 涓Ø˛锛屽Œ鏁堟灉鍩烘湰ŒºŁ 銆�鍒º洰鍓 负姝�紝» 嚭 颁 澶氱�PWM ŁуØ鎶€鏈 紝 4 – 瑕佹 娉曪細 ƒ 閲 娉�[8] [7] [6] [4]LCD1602銆 SP 涓¥ƒ鎻 銆 嶅叡 › ‡ 銆佽 eˇ銆 ˝湰璁捐 涓 瑕佹 Æ� �P1Łュæ锛屽埄 ˝ 鍙 殑P10鑴´綔涓�SPWM 鐨勮緭 æ ュ垎鍒 鍒跺 囧ˇ浠 1銆 2銆 3銆 4銆�PWM ŁуØ 瑰紡鐨 ı鍥 甯º“娉 紝涓 ł鍙 ß瀹 閫�鍙ø紝杩樺fl浠ュ ¸ ˘“璋œ 銆佽皟閫߀佹 鍒剁 娉 殑浜 害鐨 “ 涓 €傚fl浠¶ ˝湭� �‹殑 靛姏 靛瓙鎶€鏈 殑鍙†ª涓� PWM 鎶€鏈 皢 �鍒拌秺 ¶秺澶氱殑鍏›敞銆�鏈 璁 畻 PWM 娉㈢殑鍗犵┖姣旈噰 ㄧ洿Ł�PWM 娉¨€傜 浜 “ 囦护鎵ц�寤惰繜ا棿鐨 瓨 蹇�… 紩杩 »�灏ゅŒ ¸疄 �楂 � SPWM 娉`˛,鍥 负 涓 線 €蹇ª暐 囦护鎵 ц�ا棿, 嗗 ı撳嚭鍙 皟鑴夊啿瀹藉害灏忎簬 10»s,涓庢寚浠ゆ墽琛 € 害鍙 瘮鎷熸˛ (灏ゅŒ 瀵逛簬浠�C 璇 ˘•啓鐨ł寚浠�鍏剁紪璇†悗浠 ˙鏁堢巼姣旇緝 � 囦护鎵�琛屾˛ 村flı�»s 鏁伴 �,涓 鎵 ц�ا棿杩囬暱 璁℃ 鍣 鏁颁 欢杩�鏈€ 庝細褰ß 娉 ‘ �10]銆�3 绯荤粺 欢璁捐 3.1 Proteus 浠 Proteus 鏀 寔澶氱�涓绘˚鍗曠墖鏈虹郴 熺殑浠跨湡锛屽� 51 绯诲垪銆�AVR 绯诲垪銆丳IC12 绯诲垪銆丳IC16 绯诲垪銆丳IC18 绯诲垪銆乑80 绯 鍒椼€丠� C11 绯诲垪銆�8000 绯诲垪绛夈€傚苟涓旀彁渚 蒋浠惰皟璇曞 ‡笌涓 瀵岀殑澶•洿Łュæ鍣Æ欢鍙婂Œ浠跨湡 �RAM锛�ROM锛 閿洏锛 椹 揪锛� � �LED锛�LCD锛孉D/DA锛 儴鍒�SPI 鍣Æ欢锛 儴鍒�IIC 鍣Æ欢銆 闅Œ潃–戞˜鐨 ˆ灞曪紝鈥滆 ¥楁“浠跨湡鎶€鏈€濆凡鎴愪负璁º 璁捐 ㄩ噸瑕 殑� � �鍓嶆湡璁捐 鎵 銆傚畠鍏锋湁璁捐 鐏˘椿锛岀 鏋溿€佽 殑 �涓€鐨勭壒鐐广€傚fl 胯 璁 ℃˛ 村ぇ涓虹缉鐭 €佽€ 祫澶 т负 ˜皯锛 篃鍙 檷 伐 Ø閫犵殑椋 櫓銆傜浉 鍗曠墖鏈 紑鍙† Æ腑 PROTEUS 涔 ¿尟 楁剤 剤 挎硾鐨 ╗� 11]銆�3.2 Proteus ISIS欢涓嶬 eil»Vision2鐨勮仈 豢¶ 鍗曠墖鏈 ˝˜鏈墍娑夊強鍒º殑瀹 瀹炶返 �姣旇緝澶 紝鑰 欢鎶曞 姣旇緝澶 с€傚 鍏蜂 鐨 伐 疄璺 腑锛屽 鏋 洜涓烘 堟湁璇��鑰岃繘琛岀浉 ·殑 €鍙戣璁★紝 氭氮 硅緝澶氱殑ا棿鍜岀粡 广€¸roteus 浠跨湡 欢 堝ソ鐨勮 В 充 杩欎簺 �锛屽畠鍙 ß璞� Protel 涓€鏍风敾濂 欢‚�熺悊鍥句笌 KEIL ˘ … 欢 撳悎杩 �˘ …浠跨湡璋冭¶銆� 3.2.1 Protues 欢涓嶬 eil uVision鐨勭 璁剧‰姝 濡œ笅锛� �1)鎶�proteus 瀹 Œ ª涓� �VDM51.Dll(C:\ Program Files\LabcenterElectronics \Proteus6\ Professional\MO DELS锛¢ 浠跺 鍒跺� Keil 瀹 Œ ª鐨� �\C51\BIN Œ ª涓� (2)˘ ı� �C51 閲�tools.ini 囦欢,˚ :TDRV1=BIN\VDM51.DLL(PRO TEUS VSM MONITOR-51 DRIVER); (3) Keil uVision 閲岃 缃� project--options for project--debug tab; (4) 閫変腑 use proteus VSM monitor 51( 濡傛灉鎯 „涓ゅ彴 æ剳浠跨湡,鍙屽嚮 setting, ı撳 IP –潃 鎴栬€�DNS name); (5) 藉 proteus 囦欢; (6) proteus 閲 €¢£ DEBUG--use remote debug monitor; 杩涘 锛堝 –拌�鍒欓噰鏍锋硶 鍜 瀵圭 О 垯閲 娉 锛夈€� �[9]闈㈢Н绛¢晥娉曞拰闈㈢Н涓 績绛¢晥娉¨€� 2.4 ŁуØ æ 璁捐 绯荤粺鐨ł 鍒剁數璺 噰 ¸ “ €鍙戞澘 ュ疄 般€fl €鍙戞澘鏄�鍩轰簬 MCU 89S51 鐨 ¿€屽紑鍙戣璁 Ø閫犵殑锛屽fl浠ヤ綔涓轰 涓 欢 €鍙戠殑 £彴锛屾澘涓Ø彁渚涗 勭 Łュæ锛屽fl浠ュ緢 逛究� �鐨 皢鍏 涓 鍥寸數璺繛Łƒ紝 逛究浜 璁� � °€傛 €鍙戞澘涓昏�鍖ł嫭浠ヤ笅 ¸垎[11]锛歎SB ˘簮锛圲1锛夛紱澶栨 ˘簮Łュæ锛�V £帇鑺 墖锛�RS232 涓 æ锛屽fl¥€鍗曠殑涓庝 澶勭悊鍣 繛Łƒ紱DS1302 ا挓鑺 墖锛� DS1802 娓╁害 犳鍣 紱 ˙ず ˘簮鐨 ˆ鍏変簩鏋 锛圠� ED1锛夛紱32 璺�I/O Łュæ 曞嚭锛�4C02 `樺 鍣ㄣ€ 嶆寜閿€ 孩澶 嚎鎻 銆� �1462010 寸 10 鏈˘紙 荤 46 鏈˘級fifl –†‡· 璁烘 KEIL 鐨�project 鑿 option for target »‹… �#39;銆傚 DEBUG 閫 椤 涓 鍙� � �鏍 涓 鐨 涓 鎷 鑿 閫 涓� � � � � � � � � �Proteus VSM Monitor-51 Driver銆 繘鍏� �seting锛屽鏋 Ł涓€鍙 “ � IP 负 127.0.0.1,濡 涓嶆 鍙 “鍒 ~鍙︿ 鍙º殑 � IP –潃銆�æ鍙蜂 瀹´负 8000 娉 鎰忥細鍙 ß Æ 鍙 “鍣Æ笂杩愯 � � keil锛屽彟涓€鍙颁腑杩愯 �proteus 杩 杩滅…浠跨湡� . (7)鎵撳紑 KEIL uVision, �F5 €濮嬩豢¶ß€�3.2.2 proteus鐨 伐 滆 杩愯 � � proteus 鐨�ISIS 紝杩涘 璇ヤ豢¶•蒋浠剁殑涓荤晫闈�€ ¸伐 •锛岃 璁剧‰ � � view 鑿 涓 殑 崏瀵˛綈鍜�system 涓 殑棰 鑹层€ 浘褰㈢晫�闈 ぇ灏Œ¥椤圭洰銆 € »ュ˚鏍忎腑鐨�p(浠 簱涓 €¢£鍏�浠跺懡浠�鍛‡护锛屽 pick devices 绐 æ涓 €¢£ æ 鎵€闇€鐨 浠讹紝 鏀剧‰鍏冧欢 惰皟鏁村ŒŒº –‰锛�鍏冧 欢鍙傛 璁剧‰锛 鍏冨ˇ浠§棿杩 嚎锛 ˘•啓 锛涘 � � source 鑿 鐨�Define code generation tools 鑿 鍛‡护涓˜紝 閫¢£ ˘栬瘧鐨 伐鍏枫€ 璺 銆 鎵╁ª –¥椤� �圭洰锛�source 鑿 鐨� �Add/remove source files 鍛‡护涓˜紝 ˚ 鍗曠墖鏈虹‖浠剁數璺 鐨 ·… 忥紱閫 � debug 鑿 鐨勭浉 斿懡浠 豢¶熺… ˜拰 æ 鐨 杩愯 鎯 銆� �笂鎵€杩 紝 鍒‚„ � Proteus 欢 藉�鎻愪 瀹 瀹ゆ—娉曠浉姣·殑 澶 ч 鐨 鍣Æ欢紝鎻愪 浜 鏀圭數璺 璁 殑鐏�£绘€с€佹彁渚涗 瀹 屽 ˝ 閲 € ㄩ 涓 浠‹浉姣·殑 氭� �¿浠 ˇ銆�浠 〃锛�閫 涓� KeilC 欢鐨勮仈 皟 �紝 PROTEUS 涓 ł鍙 皢璁º�鍗曠墖鏈 疄渚 褰 鍖 紝涔 fl灏 澶 “瀹 杩愯 杩˙…褰 鍖 € 鍥 � � � � Proteus浠跨湡 æ 鍥�4.2.1 IRF830A鐨勯┍˚Æ 鍙锋尝褰 ß “ � P10 鍙h緭 虹殑 2 璺 ┍˚Æ鍙枫€fl繖 2 璺 ┍˚Æ 鍙�浜 ˉ锛屽垎鍒 ┍˚¸Ł涓€涓 ˉƒ傜殑涓 笅 2 涓 紑鍏 銆傚 Œ涓�CH1 鎵€ 烘尝褰 负椹ß姩 � V1 鐨勪 鍙凤紝V2/V3 鐨勯┍˚Æ 鍙蜂笌姝ょ浉 煎氨娌 鏈 �烘尝褰 銆œ负浜 鏇村ソ鐨勮 瀵 “ � � P10 鍙h緭 虹殑 SPWM 娉㈢殑鏁 鍙樺 鎯 锛屾 鍙•彉鍖栬緝涓烘槑鏄剧殑涓€ €�HAI XIA KE XUE4閫嗗彉鍣ㄧ殑璋冭¶4.1 璋冭¶璇¨槑 绗 銆佹 璇 寚鏍�锛�ı撳嚭 靛帇 細 3VAC 5% 锛涙 “尝 ı撳嚭棰戠巼锛�0HZ锛涚 浜 € 鏁拌 缃 細Œ¨˚渚 ц緭鍏‹數‚�5VDC锛 鍙fl€冩 “尝棰戠巼 � 50Hz锛岀洿fi佽緭鍏‹數‚�5V锛 €嗗彉鍣 緭 虹數‚�3V锛 绗¡銆 璋冭¶浠§ˇ锛 鍒‚„瀹 瀹� � �ょ殑 靛帇§愮殑Œ¨˚ı撳嚭 5VDC 靛帇 滀负閫嗗彉鍣ㄧ洿fi佽緭鍏ヤ 鍙蜂笌椹ß姩 æ 鐨勭數§¢€£DS1002 鏁–‰`樺 烘尝鍣 瀵⁄€嗗彉鍣 緭 烘尝褰 紱绗¥銆佽皟璇 ƒ §細currency1� � �瀵圭‖浠剁數璺 腑鐨 €嗗彉 æ 鍜 ┍˚ㄧ數璺繘琛岃皟璇�currency1 PWM 杩 璋冭�¶锛 欢浜� х†鐨 ¥璺 殑 MOSFET 椹ß姩 锛 涓昏 傚“涓 笅 ¶«鐨勯┍˚Æ 鍙锋 � �︿ 琛ƒ紝 姝诲‹Ø§棿鏄 ›姝 ‘銆�currency1 埄 ¸ “ AT89S52 ˘ … ヤ �SPWM 娉�紝 �P10 鍙h緭 恒€fifl瀵逛 æ 杩 € 皟璇曪紝灏嗘ƒ 腑鍗曠墖鏈轰 熺殑 �SPWM 杩炲 涓荤數璺 紝 傚“閫嗗彉鍣 緭 烘尝褰�€� 4.2 璋冭¶ ı灉涓 垎鏋 鏍规嵁浠�ヤ笂璁捐 规�锛屽 瀹 瀹ゆ 寤 畬鎴愪 閫嗗彉绯荤粺鐨勮¶ 岃�缃 €傚疄 岀數璺 湁 ˘ 簮銆¢€嗗彉 ャ€ “ €鍙戠郴 ߀¢┍˚ æ 銆–� C 婊ゆ尝 æ 銆 ず娉 ˇ łø銆fl蒋浠跺紑鍙戠幆澧冧负 KeilC »Vision2銆 鍥� �2 椹ß姩 娉 4.2.2 Proteus涓嶬eilC†斿悎浠跨湡鍒嗘 鍥�1 鎵€ 虹殑鏄 „ Proteus 寤虹‡鐨勯€嗗彉绯荤粺浠跨湡 æ ‚熺悊 鍥俱€傚浘 2 涓 囧ˇ浠剁殑椹ß姩 ¶ 鍗曠墖鏈� AT89S52 鐨�P10 鍙·€ € KeilC 欢杩愯�˘•啓濂ª殑Ł уØ 锛岀 庢妸 鍏� �Proteus 浠跨湡 æ 涓 殑鍗曠墖鏈 �AT89S51 涓 紝杩愯�浠跨湡 æ 锛孉 T89S51 鐨�P10 鍙e氨鍙 ßı撳嚭 SPWM 娉 €傛妸 鐨� �SPWM 娉 € 闈 ”椹ß姩 ¨緭鍏‹ ˚熺巼鍣Æ欢锛屾潵ŁуØ˚熺巼鍣Æ欢鐨 閫´笌鍏› 锛屽 Æ豢¶熺ず娉 ˇ 傚“閫嗗彉 æ ı撳嚭锛屽fl浠ュ¶ 鍒–�鍥� 3 鎵€虹殑 ¡ Proteus 涓�KeilC †斿悎浠跨湡涔 悗 嚭鐨勭ず2010 寸 10 鏈˘紙 荤 46 鏈˘級147鍩轰簬鍗曠墖鏈虹殑澶 槼鍏変紡鍙戠數绯荤粺閫嗗彉鍣ㄧ殑浠跨湡璁捐 娉 ˇı撳嚭娉 銆傜 鍥 fl •紝姝e«娉 ‚鏈 崄鍒嗘 杩�20ms锛屾尝ˇ 娉 „鏈 ” �殑 º彉銆�€鍙戞澘鐨�PCB 鍥 鍥� �3 閫嗗彉鍣 緭 烘尝褰�4.2.3 閫嗗彉鍣 緭 烘尝褰 鍒‚„瀹 瀹ょ�殑 ˘˚§愮殑Œ¨˚ı撳嚭 滀负閫嗗彉鍣ㄧ殑Œ¨˚ı撳 涓 ┍˚ㄧ數璺 殑 ˘簮锛屾寜» ц�姹fl繛Łュソ 欢 �璺 紝 ¡ LC 婊 娉㈢數璺悗锛� �TDS1002 鏁–‰`樺 烘尝鍣˝潵傚“閫嗗彉鍣 緭 烘尝 褰 €fl緭 烘尝褰 鍥� � � �3 鎵€ 恒€傜 浜 “鐨ł€ц 鏈夐…浠ュ強瀹 æ 涓 瓨 ㄧ殑 勭� 叉‰鍥犵 锛岃緭 虹殑姝e«娉 � 囦负 46.8569HZ `樺 涓€瀹氱殑璇 ¿銆œ负浜 姝e«娉㈢殑棰戠巼鏇¨ 杩†伐 棰� 50HZ锛屾垜浠 繘涓€姝 杩涚畻娉曪紝 ¸ 灏„ 涓 ‚鏈 `鐨 ´鐐�鏁º洰 紝 嶆 傚“ı撳嚭娉 棰戠巼锛屽ˆ 伴 洿˚犳 杩� �50HZ锛 嗘 姝e«娉㈢殑娉 ˆ涓庢尝璋fl嚭 颁 ı冧˜閲–殑 º彉銆傜粡杩囧�垎鏋 紝 娉 鍙戠†ı冧˜閲–殑 º彉鏄 浜� PWM ŁуØ¥楁硶¯ 害鐨勪笅 ß 鍙�LC 婊ゆ尝 æ 鎵€闇€鐨 鏁 鍙 €屽 ƒ寸殑銆傚�鏋˘兂瑕佷˙ 楁尝 褰`洿˚犳 杩†畬¨ 殑姝e«娉 紝˚栬 鑰冭¸鐨ł 鎻 珮 � � PWM ŁуØ¥ 娉曠殑¯ 害銆傚fl浠 €¢£鏇村姞¯剧‘鐨勭畻�娉 潵浜х† PWM 娉 紱 朵 闇€瑕¢噸 伴€¢£ � LC 婊ゆ尝 æ 鐨 鏁 紱杩· 鎵 Æ˙ ㄧ浉 岀殑 欢 æ 欢涓˜紝鍙•¶鑹 ソ鐨勯€嗗彉鏁堟灉銆傚fl浠¶€冭¸ 跨„ ц ぇ鐨�IGBT 鎴 €嗗彉 æ 锛 §噰 � �DSP ヤ綔涓烘 鍒惰 ˝€ ¸垎 �#include reg51.h #includemath.h #define uchar unsigned char #define uint unsigned int #define ulong unsigned long sbit P10=P1^0; uchar n0; uint ledi; uchar code ledp[200]={ 鈥˛€�; void main(void) { TMOD=0x01; TR0=1; ET0=1; P10=1; n0=ledp[ledi]; 锛 笅 161 椤ˇ級 瀹 鍥�5鏈 閲˙„鍏˝ ˉ閫嗗彉 æ 鐨勭郴 熺 鏋—紝閲˙„ IRF830A �˚涘“鏁堝 ¥℃潵瀹 銆�AT89S51 鐨 “ 滀负ŁуØ鑺 墖瀹屾ø 浠�浜ø€嗗彉鍣ㄧ殑璁捐 銆傚Ø 嚭浜嗗疄 ╋紝鍩轰簬 Proteus 涓�KeilC 鐨勯泦 鎴愬紑鍙戠幆澧冨畬鎴愪 欢鐨勮璁★紝鏍规嵁 ‖浠剁殑璁捐 规�瀹 浜嗘暣涓 郴 ˘紝 ‖浠剁浉 撳悎杩 �浜 皟璇曪紝璋冭¶ ı灉鏄剧ず閫嗗彉 鍣 琛岀 鏋滅 �姹傘€�1482010 寸 10 鏈˘紙 荤 46 鏈˘級fifl –†‡· 璁烘 鎭 €� 2.4.4 GIS 鏀 £彴 璇ュ⁄ –郴 熸 浠ュ«鐞 鎭 郴 � GI S 涓 浘褰` 靛¯鍙 紝 鍙 ß鍗曠嫭杩愯�銆傜郴 熺殑鏍º績¥楁硶锛堝�鎷ı 鍒嗘 銆佹 闅˘ 鎵俱€� 鍜岃ˉ 忥級鏄 噰 ㄧ 浠 ˜鏈 疄 º殑銆� HAI XIA KE XUEØ跺氨鍙 ˆ –苟灏嗘 闅 �鐞嗗畬姣¨€� 灞€Œ •鐨ł儏 ˇ紝 鍏ㄩ儴 · „璇‹郴 ˘紝姣˜ 鍙 �渚涚數閲� 620 涓囧Æ “˛锛屽ª閫犵粡fi 鏁堢 � 310 涓囧 » 銆 噰 ¸ 浜�GPRS 閫´ 鏁 Ł ˙ず鍣ㄩØ缃戣 ˚¸ 绯荤粺锛岀 堝浗 ¡杩涗 涓氱殑鍙†ª瑕佹Œ锛屽fl 夸 涓氱殑 º–數¥ 悊姘村¯鍜屾 ˚℃⁄ £ 逛 銆 杩˙…鐨ł彁楂ø紝鏄 湭 ¶ 澶 疄 –� ˛潰銆 澶 х粡fi庢晥Œ 殑鍩虹 锛岃 绯荤粺 ·„銆佹 æ皢 �璧fl 鍜岀 ı閲嶆晥Œ 殑鏁堟灉銆 鍙fl€冩 細�[1] º–綉ƒ 姩鍖 郴 ¿�ł� DL/T814-2002 [2] º–綉ƒ 姩鍖 郴 •ø 圭œ �DL/T721-2000 [3] 滅綉ƒ 姩鍖•強閫´ 绯荤粺寤 鎶€鏈 寚瀵ß •紙璇 �锛� 2002,鍥藉 靛姏鍏 � 儴 [ 滅數 2002-32 鍙 [4] 鍥藉 ¯綉鍏 ‚æ ¯綉寤 涓庢 閫犳˜鏈 鍒�2003 鍥藉 靛姏鍏 滅數 � �[5] º–數绯荤粺ƒ 姩鍖栬�鍒 璁 鍒�涓 浗 ˘“»‹…`︿細鍩 競渚涚數涓撲 濮斿憳 � [6] 10 鍗冧紡º–綉ƒ 姩鍖•ˆ灞 鍒 鐐 鍥ª數鍏 鍙戣緭 æ 钀 儴� � � .3鍩轰簬 GPRS 閫´ 鏁 Ł ˙ず鍣ㄩØ缃戣 ˚¸ 绯荤粺 ·„2010 �3 鏈 唤锛岃巻 º數涓 眬 崝鍩 ‹甯ºcurrency1 囬´閲岀嚎璁�浜嗗 浜�GPRS 閫´ 鏁 Ł ˙ず鍣ㄩØ缃戣 ˚¸ 绯荤粺锛屽叡 Æ 茬嚎 鍙婂垎鏀 嚎瀹 �浜�9 Æ閫 鐨ł 闅˘寚 ˇ鍜� 9 濂�GPRS 閫 锛堝‹澶‹槼 ¿搫 ˘ »…‰锛夛紝浠 嚎璺 ¡ ˆ 熺殑 犳 浜 ¶˜紝璇‹郴 潎 藉強Ø跺噯 «鏄剧ず 胯 鏁 Ł鐨 «鐐圭¥锛 `鑰岀缉 鐭 鏁 Ł �ا棿锛岃 ¶佷 澶 ч 鐨勪汉˚涖€ ˚涖€傚師 ‹嚎璺 ˆ 熸 闅˘˛锛 鑸 瘡娆¢ 瑕 姩 � 10 浜 乏鍙炽€�~3 ı 溅锛屽皯鍒 崐 澶┿€鍒� �2~3 澶╂ 芥 烘 闅滅偣锛岃€岀 ¸ 闇€ 2 浜烘 澶 崐灏�锛 笂Ł‹ 148 椤ˇ級 TH0=0xff; TL0=266-n0; EA=1; While(1) { } �timer0() interrupt 1 P10=~P10; ledi++; if(ledi==200)ledi=0;锛�n0=ledp[ledi]; TH0=0xff; 鈥˛€ 鍙fl€冩 細�[1] 噷. 鍗曠浉鍏変紡 剁綉鍙戠數鍣ㄧ殑‡斿Ø[D]. 鍖·含锛 寳浜 氦閫 ぇ`︾�澹 �2007. [2] ¨˛娑 鍏変紡 剁綉閫嗗彉鍣¸強鍏朵豢¶熺 禰� D].闈 矝锛氶潚宀涘ぇ`︾ 澹�� 2007. [3] 厗瀹 —勪繆� . 靛姏 靛瓙鎶€鏈痆M].绗 ¥ � 鍖·含锛氭“姊–伐涓 嚭 堢 ,2005. [4] 鏇 鍩�浜庢槑鎵�鏇叉 閾� 閫嗗彉鎶€鏈 €涓 ╗ M].鍖·含:靛瓙»ヤ 虹増 �2007. [5] D. G. Holmes and D. A. Martin. Implementation of a direct digital predictive current controller for single and three phase voltage source inverters[J]. IEEE IAS Annu. Meeting, 1996:7-11. [6] 堝帤宀 �1KW 鍏锋湁‰跺 ª殑 剁綉閫嗗彉鍣ㄧ殑‡斿Ø [D]. 鍖·含锛´腑鍥ª ` ㈢ 澹 � � � �2004. [7] Zhang Chunjiang, Cao Lingling etc. Grid-connected inverters interface control with unified constant-frequency integration control[J]. YanShan University,2006:3-5. [8] 鍒樺嚖 閫嗗彉鍣ㄧ„鏁¨˚ ˘簮� [M]. 鍖·含锛氭“姊–伐涓 嚭堢 ,2004. [9] 嬮�. 鍗曠浉鍏変紡 剁綉绯荤粺鐨 垎鏋愪笌‡· [D]. 偉锛 悎鑲ュ伐涓 ぇ`︾ 澹 璁烘 � � ,2005. [10] 鍛¸織鏁Œ¥. 閫嗗彉 ˘簮瀹 „鎶€鏈 æ璁捐 涓 ╗M]. 鍖·含锛´腑鍥ª數˚涘嚭 � �2005. [11] 堥亾鐐�DC锛岮C 閫嗗彉鎶€鏈 強鍏跺 ╗M]. 鍖·含锛氭“姊–伐涓 嚭 堢 ,2003.2010 寸 10 鏈˘紙 荤 46 鏈˘級1611