第23卷第19期
电子设计工程
2015年10月
Vol 23
Electronic Design Engineering
Oct.2015
基于信号验故的单片机通灯控制終端
何正言,田得良,庄?文,黄江辉,叶晓靖
华南理工大学电力学院,广东广州51000
摘要;根据区堿协调型
智能交通系统的要求,设计了基于单片机控制的
交通灯控制终滿。文通灯控制终端与智能协
调中枢控制系筑进行通信,反车流暈信息,并按照中枢系统的要求来控制红録灯的工作。本终端采用双单片机信号
校验的方式,配合看门狗的使用,纠正终端运行过程中可能发生的错误,并加入警报和自投入备用模块,在运行出错
情况下发出警报,在设备故障情况下自投入备用控器,保路口交通安全稳定。
关键词:信号校验;单片机;看门狗;备用模块
中图分类号:TN87
文献标识码:A
文章编号:1674-6236(2015)19-0181-05
Traffic lights control terminal with single-chip microcomputer based on the
technology of signal validation
HF Theng-yan, TIAN De-liang, /HUA Ngthuo-wen, HUA NG,Jiang-hui, YF Xiao-jing
School of Electric Power, South hina niers of echnology, Guanghou 510000, China)
Abstract: In order to meel the requirement of regional coordination intelligent transporlation system, lhis paper proposes a
kind of traffic lights control terminal based on the application of single-chip microcomputer. This traffic light control terminal
can exchange information with the intelligent coordinating central control syslem, feeds back information of traffic flow, adjust
the working of the traffic lights according to the requirement of the central control system. The terminal adopts the mode of
double MCU signal validation and applies the watch-dog technology, which can correct possible errors that may occur durin
run time. Moreover, with an additional alerting unit and automati witcher standby module, the erminal can raise alarm in
response to errors and automatic switchover to the stand-by controller when goes into failure. The traffic lights control terminal
can greatly guaranteed safety and stable running of the traffic system.
Key words: signal validation; singal-chip microcomputer; walch-dog; sland-by
智能交通系一自是交通系统研究的一个重要方向,智制系统(以下简称“智能控制系")与交通灯控制终端
能交通系统研究中个重要的分支是统筹各路段的车流量进行实时通信,交换红绿灯时长和车流量信息,等数据,
信息,统一规划调控各路口的红绿灯时间来控制车辆通行,交通灯控制終端根据智能控制系统的要求來控制红绿
达到智能交通所需要的口的1引。
灯工作。
现阶段的交通灯控制终端一般采用PLC作为控制器
智能ゼ制系新Lう
石通信
C稳定性好,编程和操作简单,在信号灯亮灯时长不变的
交通灯控制中得到厂广泛应用。但是TC通信复杂,参数更改
交虽犬控变画灯空
通灯制
终的(に1終端(略2(円3)
端〔n
不方便,灵活性差,并不能很好的满足智能交通系统对于交
交通
通
交灯
通灯控制终端的要求图
图1智能交通系统结构图
基于智能交通系统对于交通灯控制終端的特殊要求,
Fig. I Intelligent traffic system overall figure
提出了以单片机为控制核心的交通灯控制終端。单片机可
本文设计的以单片机为控制核心的交通灯控制終端能
编程性强,灵活性好,且价格使宜,可以随时与智能协调够实时响应智能控制系绽发出的信号,随时调整红绿灯时
中枢控制系统进行通信,并能在极短的时间内响应智能协间,并能将车流量统计信息实时反馈给智能控制系统。智能
调中控制系统的控制要求,实现交通灯控制时长的变化控制系统发送给单片机的时间信号以及单片机输出的交通
系统总体概况
灯显示信号部会经过个理性校验,确保信息的合理性,保证
交通路口通行安全。如控制单片机出现运行错误,系统可自
智能交通系统的结构如图1所示,智能协调中枢控复位并发出警报;如系统发生水久性故障,系统可自动切换
收稿日期;2014-07-30
稿件编号:201407227
备用控制器
作者简介:何正言(1992-),男,广东湛江人。研究方向:单片机开发与应用、微机控制。
-181