本文详细地叙述了使用可调光电子镇流器ASIC(FM2822)和Freescale 单片机(MC9RS08KA2),设计智能型节能灯电子镇流器的硬件电路及软件编写思路。该系统设计主要基于节能的考虑,使用热释电传感器检测人的活动,通过光敏元件判别白天和晚上,实现对灯的节能控制,并通过遥控可以实现亮度调节。试验证明,该系统按要求实现了功能,工作可靠。关键字:电子镇流器;FM2822;MC9RS08KA2;硬件设计;软件设计The Design of dimmable electronic ballast based on MCU Song yu-hong1 Zhou jia-nong2 (1.Shunde polytechnic, Foshan Guangdong 528333 2.South China University of Technology 510640) Abstract: The hardware and software of electronic ballast based on MCU control system by using FM2822 and Freescale MCU MC9RS08KA2 is reported. This system is flexible to regulate the controlling lamp bright through IR remote. The MCU resource is full used of pyroelectri IR sensor and light-sensitive detector. This realizes energy-saving with some modes. Its validity is proved by experimental results.Key words: electronic ballast ;FM2822;MC9RS08KA2;hardware;software