交通信号灯仿真系统设计

Design of a Traffic Light Simulation System

  • 摘要: 基于P89V51RD2、74LS595、MAX232芯片设计硬件电路, 采用KeilC、Visual Basic 6.0软件编程,设计开发了一种交通信号灯仿真系统. 以KeilC为开发工具编写单片机程序,进行下位机控制. 在VB 6.0环境下编写串口通信程序,与下位机进行实时通信. 系统制定了通信协议,控制上位机与下位机之间通信的可靠性,实时对217个LED灯组成的交通信号灯进行控制,实现整体造型的保存、读取、显示和清除功能. 经实验验证,所开发系统能够实现预期功能.

     

    Abstract: The traffic signal simulation system was designed by the chip P89V51RD2、74LS595、MAX232.The system software was implemented by using of Visual Basic 6.0, and KeilC. KeilC was used in microcontroller programming for the lower computer control; The serial communication programming in VB 6.0 was used in communications with the lower computer. A communication protocol is proposed for the communications between the upper and lower computers to improve reliability. The system can dynamically control 217 LED lights with the functions of saving, reading, displaying, and clearing the signals. The effectiveness of the system was demonstrated by experiments.

     

/

返回文章
返回
Baidu
map