基于单片机的定时开关控制器摘要:本实验基于 STC89C51RC 为核心,设计具备按键功能和数码管显示功能的外围硬件电路,以便控制器能够在设定的开关时刻控制输出继电器的动作,进而控制负载电源的启闭,并完成软件程序设计。可以实现电源的直接启动/关闭;也可以通过按键设置负载电源的启动时间,最大预约时间为 12小时。关键词:STC89C51RC;继电器 Timer Switch Controller Based On MCUAbstract: Based on the experimental STC89C51RC as the core, the design has the key function and digital tube display peripheral hardware circuit function, so that the controller can control the output relay set the switch point of the action,then control the opening and closing load power supply, and complete the software program design. Direct start / can realize the power off; can also set the button load power start-up time, maximum reservation for 12 hours.Key Words :STC89C51RC;Relay 目 录 1 硬件部分结构功能简介.....................................1 1.1 STC89C51RC 单片机介绍................................1 1.2 STC89C51RC 单片机的主要性能..........................1 1.3 STC89C51RC 单片机管脚说明............................2 2 硬件电路设计.............................................3 2.1 单片机最小系统......................................3 2.1.1 复位电路........................................3 2.1.2 时钟电路........................................3 2.2 按键电路............................................4 2.3 显示功能............................................5 2.4 中断系统............................................5 2.5 继电器..............................................7 2.6 电路设计............................................7 3 软件设计.................................................8 总 结.....................................................10 参考文献...................................................11 致 谢.....................................................12 附 录.......