目 录
设计总说明 I
DESIGN INTRODUCTION II
1 引言 1
1.1 交通灯的发展 1
1.2 设计要求 1
2 系统总体结构 2
2.1 系统结构 2
2.2 系统硬件框图 2
3 SPCE061A芯片介绍 3
3.1 SPCE061A简介 3
3.1.1 芯片特性 4
3.2 SPCE061A芯片管脚 4
3.3 芯片内核结构介绍 6
3.3.1 ALU 算术逻辑运算单元 6
3.3.2 寄存器组 7
3.3.3 堆栈 8
3.4 SPCE061A 片内存储器结构 8
3.4.1 RAM 8
3.4.2 flash闪存(闪速存储器) 9
3.5 SPCE061A 的输入/输出接口 9
4 模块特性介绍 10
4.1 61板的硬件框图以及简要说明 10
4.2 61板接口说明 11
4.2.1 输入/输出(I/O)接口 11
4.2.2 音频输入/输出接口 11
4.2.3 在线调试器PROBE和EZ_PROBE接口 11
4.2.4 电源接口 12
4.2.5 外部复位 12
4.3 模拟交通灯控制板介绍 12
4.4 模拟交通灯控制板电路 14
5 系统软件的设计 17
5.1 系统相应的软件流程图 17
5.2 语音播放程序设计 19
5.3 正常运行状态子程序 20
6 结束语 22
7 鸣谢 23
参考文献 24
附录Ⅰ 25
附录Ⅱ 27
附录Ⅲ 28
设计总说明
本系统是由一块以16位SPCE061A芯片为主的实验板和一块模拟交通灯控制板组成十字路口交通控制模型。设计要求通过SPCE061A的编程,使用单片机、PLC或其他器件来控制交通灯控制板上的LED数码管以及双色LED灯,使系统具有以下功能:十字路口的四个路口都有双色 LED (发红、绿光,叠加为黄色光)显示各路口的各条通道状态;每个路口有两位数码管显示当前红绿灯的倒计时;可利用按键或其它的方式模拟对车流量的计数;有四种工作状态:正常工作状态、紧急工作状态、设置状态和查询状态; 红绿灯变换时有语音提示;查询时,可语音播报当前路况。
SPCE061A芯片是一种新型的十六位单片机,该款单片机资源丰富,具有极高的性价比。该单片机内置32位I/O端口,2 路DA转换,八路AD转换及在线仿真等功能。具备单片机最小系统电路外,还包括有电源电路、音频电路(含MIC输入部分和DAC音频输出部分)、复位电路等[1];而交通灯控制模板包括倒计时LED数码管电路、红绿灯双色LED电路、模拟车流量检测电路等,这些为我们实验交通灯控制系统提供良好的条件。
关键字: SPCE061A;交通灯;语音
DESIGN INTRODUCTION
This system is a crossroad transportation control model made up by an16 SPCE061A chip primary experiment board and a simulate traffic light control panel. through the SPCE061A programming, this design requests us use the single chip microcomputer, PLC or other components to control the LED digital tube and the double color LED lamp on the traffic light control panel, enable the system to have the following functions: The four intersections of the crossroad all have double color LED (gives out red light and green light, superimposes for yellow light) to demonstrate the condition of every channel on the intersections; Each intersection has two digital tubes to demonstrate current traffic light countdown; use the button or other way to simulate the counting of the traffic flow volume. There are four work conditions: Normal work condition, emergency work condition, establishment condition and inquiry condition; The traffic light transforms with pronunciation reminder; When being inquiried, it can broadcast the current state of roads.
The SPCE061A chip is a new type of 16 single chip microcomputer. This single chip microcomputer has rich resources and extremely high functional price competition. 32 I/O ports, 2 groups DA transforms, 8 group AD transformation and on-line simulation are seted in it .besides the smallest system circuit, there are also electric circuit, tone circuit (containing MIC input unit and DAC audio frequency output unit), electric returning circuit and so on; the simulate traffic light control panel includes countdown LED digital tube electric circuit, double color traffic light LED electric circuit, simulation of electric examining circuit on traffic volume and so on. All these provide good condition for us to do experiment on the traffic light control system.
KEYWORDS: SPCE061A; Traffic Light; Pronunciation
带语音提示的交通灯控制系统
1 引言
1.1 交通灯的发展
随着社会经济的发展,城市交通问题越来越引起人们的关注。人、车、路三者关系的协调,已成为交通管理部门需要解决的重要问题之一。城市交通控制系统是用于城市交通数据监测、交通信号灯控制与交通疏导的计算机综合管理系统,它是现代城市交通监控指挥系统中最重要的组成部分[1]。
随着城市机动车量的不断增加,许多大城市如北京、上海、南京等出现了交通超负荷运行的情况。因此,自80年代后期,这些城市纷纷修建城市高速道路,在高速道路建设完成的初期,它们也曾有效地改善了交通状况。然而,随着交通量的快速增长和缺乏对高速道路的系统研究和控制,高速道路没有充分发挥出预期的作用。而城市高速道路在构造上的特点,也决定了城市高速道路的交通状况必然受高速道路与普通道路耦合处交通状况的制约。所以,如何采用合适的控制方法,最大限度利用好耗费巨资修建的城市高速道路,缓解主干道与匝道、城区同周边地区的交通拥堵状况,越来越成为交通运输管理和城市规划部门急于解决的主要问题[1]。
交通灯信号灯的自然指挥系统,使十字路口车行车道,人行人道,有条不紊。它有效地降低了车辆和行人过马路时所产生的混乱现象、大大地缓解了主干道与匝道车辆拥挤状况。

您当前的位置:
