




已阅读5页,还剩19页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
0 毕业设计(论文)外 文资料翻译 题题 目目: : BASED ON MCU INTERSECTION TRAFFIC LIGHTS THE CONTROLLER DESIGN 院系名称:院系名称:电气工程学院电气工程学院 专业班级:专业班级:自动自动 F0704F0704 学生姓名:学生姓名: 臧威臧威 学学 号:号:2007428040320074280403 指导教师:指导教师: 刘林芝刘林芝 教师职称:教师职称: 副教授副教授 起止日期:起止日期:2011-2-232011-3-10 地地 点点: : 2-211 附附 件:件: 1.外文资料翻译译文;2.外文原文。 指导教师评语: 该译文选材得当,符合该生毕业设计题目要求。汉语译文比 较通顺,字数符合要求,符合本科毕业生外文翻译的要求。 1 签名: 2011年 3 月 10 日 2 附件附件 1:外文:外文资资料翻料翻译译译译文文 基于单片机的十字路口交通灯控制器的设计 由于我国经济的快速发展从而导致了汽车数量的猛增,大中型城市的城市交 通,正面临着严峻的考验,从而导致交通问题日益严重,其主要表现如下:交通 事故频发,对人类生命安全造成极大威胁;交通拥堵严重,导致出行时间增加, 能源消耗加大;空气污染和噪声污染程度日益加深等。日常的交通堵塞成为人们 司空见惯而又不得不忍受的问题。在这种背景下,结合我国城市道路交通的实际 情况,开发出真正适合我们自身特点的智能信号灯控制系统已经成为当前的主要 任务。 前言 在实际应用上,根据对国内外实际交通信号控制应用的考察,平面独立交叉 口信号控制基本采用定周期、多时段定周期、半感应、全感应等几种方式。前两 种控制方式完全是基于对平面交叉口既往交通流数据的统计调查,由于交通流存 在的变化性和随机性,这两种方式都具有通行效率低、方案易老化的缺陷,而半 感应式和全感应式这两种方式是在前两种方式的基础上增加了车辆检测器并根据 其提供的信息来调整周期长和绿信比,它对车辆随机到达的适应性较大,可使车 辆在停车线前尽可能少停车,达到交通流畅的效果。 在现代化的工业生产中,电流、电压、温度、压力、流量、流速和开关量都 是常用的主要被控参数。例如:在冶金工业、化工生产、电力工程、造纸行业、 机械制造和食品加工等诸多领域中,人们都需要对交通进行有序的控制。采用单 片机来对交通进行控制,不仅具有控制方便、组态简单和灵活性大等优点,而且 可以大幅度提高被控制量的技术指标,从而能够大大提高产品的质量和数量。因 此,单片机对交通灯的控制问题是一个工业生产中经常会遇到的问题。 在工业生产中,有很多行业有大量的交通灯设备,在现行系统中,大多数的交 通控制信号都是用继电器来完成的,但继电器响应时间长,灵敏度低,长期使用之后, 故障机会大大增加,而采用单片机控制,其精度远远大于继电器,响应时间短,软件可 靠性高,不会因为工作时间缘故而降低其性能,相比而言,本方案具有很高的可行性。 关于 AT89C51 3 (1)功能特征描述: AT89C51 是一种低功耗、高性能 CMOS8 位微控制器,具有 8K 在系统可编 程 Flash 存储器。使用 Atmel 公司高密度非易失性存储器技术制造,与工业 80S51 产品指令和引脚完全兼容。片上 Flash 允许程序存储器在系统可编程,亦适 于常规编程器。在单芯片上,拥有灵巧的 8 位 CPU 和在系统可编程 Flash,使得 AT89C51 为众多嵌入式控制应用系统提供高灵活、超有效的解决方案。AT89C51 具有以下标准功能: 8k 字节 Flash,256 字节 RAM,32 位 I/O 口线,看门狗定 时器,2 个数据指针,三个 16 位定时器/计数器,一个 6 向量 2 级中断结构,全 双工串行口,片内晶振及时钟电路。另外,AT89C51 可降至 0Hz 静态逻辑操作, 支持 2 种软件可选择节电模式。空闲模式下,CPU 停止工作,允许 RAM、定时器 /计数器、串口、中断继续工作。掉电保护方式下,RAM 内容被保存,振荡器被冻 结,单片机一切工作停止,直到下一个中断或硬件复位为止。如图 1 为 8051 引脚 分配图。 P1.0 1 P1.1 2 P1.2 3 P1.3 4 P1.4 5 P1.5 6 P1.6 7 P1.7 8 RST /Vpd 9 (RXD)P3.0 10 (TXD)P3.1 11 (INT 0)P3.2 12 (INT 1)P3.3 13 (T0)P3.4 14 (T1)P3.5 15 (WR)P3.6 16 (RD)P3.7 17 XTAL 2 18 XTAL 1 19 END 20 P20(A8) 21 P21(A9) 22 P22(A10) 23 P23(A11) 24 P24(A12) 25 P25(A13) 26 P26(A14) 27 P27(A15) 28 PSEN 29 EA/Vpd 31 ALE /PROG 30 P0.7(AD7) 32 P0.6(AD6) 33 P0.5(AD5) 34 P0.4(AD4) 35 P0.3(AD3) 36 P0.2(AD2) 37 P0.1(AD1) 38 P0.0(AD0) 39 VCC 40 图 1 8051 引脚分配图 (2)中断介绍 AT89C51 有 6 个中断源:两个外部中断( 和),三个定时中断INT0INT1 (定时器 0、1、2)和一个串行中断。每个中断源都可以通过置位或清除特殊寄存 器 IE 中的相关中断允许控制位分别使得中断源有效或无效。IE 还包括一个中断允 许总控制位 EA,它能一次禁止所有中断。IE.6 位是不可用的。对于 AT89C51,IE.5 位也是不能用的。用户软件不应给这些位写 1。它们为 AT89 系列新产品预留。定 时器 2 可以被寄存器 T2CON 中的 TF2 和 EXF2 的或逻辑触发。程序进入中断服务 4 后,这些标志位都可以由硬件清 0。实际上,中断服务程序必须判定是否是 TF2 或 EXF2 激活中断,标志位也必须由软件清 0。定时器 0 和定时器 1 标志位 TF0 和 TF1 在计数溢出的那个周期的 S5P2 被置位。它们的值一直到下一个周期被电路 捕捉下来。然而,定时器 2 的标志位 TF2 在计数溢出的那个周期的 S2P2 被置位, 在同一个周期被电路捕捉下来。 (3)外部时钟驱动特性 符号参数最小值最大值单位 1/TCLCL时钟震荡频率024MHz TCLCL时钟周期41.6ns TCHCX 高电压时间15ns TCLCX低电压时间15ns TCLCH上升时间20ns TCHCL下降时间20ns 表 1 (4)空闲和掉电模式外部引脚状态 模式程序存储器ALEPSENPORT0 PORT1PORT2PORT3 空闲模式内部11数据数据数据数据 空闲模式外部11浮空数据数据数据 掉电模式内部00数据数据数据数据 掉电模式外部00浮空数据数据数据 表 2 关于 8255 芯片 1. 8255 特性: (1) 一个并行输入/输出的 LSI 芯片,多功效的 I/O 器件,可作为 CPU 总线与外围 的接口. (2) 具有 24 个可编程设置的 I/O 口,即使 3 组 8 位的 I/O 口为 PA 口,PB 口和 PC 口.它们又可分为两组 12 位的 I/O 口,A 组包括 A 口及 C 口(高 4 位,PC4PC7),B 组包括 B 口及 C 口(低 4 位,PC0PC3).A 组可设置为基本的 I/O 口,闪控(STROBE) 的 I/O 闪控式,双向 I/O3 种模式;B 组只能设置为基本 I/O 或闪控式 I/O 两种模式, 5 而这些操作模式完全由控制寄存器的控制字决定. 2. 8255 引脚功效: (1).RESET:复位输入线,当该输入端外于高电平时,所有内部寄存器(包括控 制寄存器)均被清除,所有 I/O 口均被置成输入方式。 (2).CS:芯片选择旌旗灯号线,当这个输入引脚为低电平时,即/CS=0 时,表示 芯片被选中,允许 8255 与 CPU 进行通讯;/CS=1 时,8255 无法与 CPU 做数据传输。 (3).RD:读旌旗灯号线,当这个输入引脚为低电平时,即/RD=0 且/CS=0 时,允 许 8255 通过数据总线向 CPU 发送数据或状态信息,即 CPU 从 8255 读取信息或数 据。 (4).WR:写入旌旗灯号,当这个输入引脚为低电平时,即/WR=0 且/CS=0 时,允 许 CPU 将数据或控制字写入 8255。 (5).D0D7:三态双向数据总线,8255 与 CPU 数据传送的通道,当 CPU 执行 输入输出指令时,通过它实现 8 位数据的读/写操作,控制字和状态信息也通过数 据总线传送。 (6).PA0PA7:端口 A 输入输出线,一个 8 位的数据输出锁存器/缓冲器,一 个 8 位的数据输入锁存器。 (7).PB0PB7:端口 B 输入输出线,一个 8 位的 I/O 锁存器,一个 8 位的输入 输出缓冲器。 (8).PC0PC7:端口 C 输入输出线,一个 8 位的数据输出锁存器/缓冲器,一个 8 位的数据输入缓冲器。端口 C 可以通过工作方式设定而分成 2 个 4 位的端口, 每个 4 位的端口包含一个 4 位的锁存器,分别与端口 A 和端口 B 配合使用,可作 为控制旌旗灯号输出或状态旌旗灯号输入端口。 (9).A0,A1:地址选择线,用来选择 8255 的 PA 口,PB 口,PC 口和控制寄存器。 当 A0=0,A1=0 时,PA 口被选择; 当 A0=0,A1=1 时,PB 口被选择; 当 A0=1,A1=0 时,PC 口被选择; 当 A0=1,A1=1 时,控制寄存器被选择。 有关七段 LED 显示器的介绍 通过发光二极管芯片的适当连接(包括串联和并联)和适当的光学结构。可 6 构成发光显示器的发光段或发光点。由这些发光段或发光点可以组成数码管、符 号管、米字管、矩阵管、电平显示器管等等。通常把数码管、符号管、米字管共 称笔画显示器,而把笔画显示器和矩阵管统称为字符显示器。 1. LED 显示器分类 (1)按字高分:笔画显示器字高最小有 1mm(单片集成式多位数码管字高一 般在 23mm)。其他类型笔画显示器最高可达 12.7mm(0.5 英寸)甚至达数百 mm。 (2)按颜色分有红、橙、黄、绿等数种。 (3)按结构分,有反射罩式、单条七段式及单片集成式。 (4)从各发光段电极连接方式分有共阳极和共阴极两种。 2. LED 显示器的参数 由于 LED 显示器是以 LED 为基础的,所以它的光、电特性及极限参数意义大 部分与发光二极管的相同。但由于 LED 显示器内含多个发光二极管,所以需有如 下特殊参数: (1) 发光强度比 由于数码管各段在同样的驱动电压时,各段正向电流不相同,所以各段发光 强度不同。所有段的发光强度值中最大值与最小值之比为发光强度比。比值可以 在 1.52.3 间,最大不能超过 2.5。 (2) 脉冲正向电流 若笔画显示器每段典型正向直流工作电流为 IF,则在脉冲下,正向电流可以 远大于 IF。脉冲占空比越小,脉冲正向电流可以越大。 交通信号控制类型 交通信号控制的目的有三点:第一,在时间上和空间上分隔交叉口不同方向 的车流,控制车流的运行秩序;第二,使在平面交叉的道路网络上人和物的运输 达到最高效率;第三,为道路使用者提供必要的信息,帮助他们有效地使用交通 设施。道路交通信号控制的基本类型有多种分法。 按控制区几何特性划分为:单个交叉口的控制点控、交通干线的协调控 制线控、交通网络的协调控制面控;按控制原理划分:定时控制、感应 控制、自适应控制。 关于看门狗电路 7 在由单片机构成的微型计算机系统中,由于单片机的工作常常会受到来自外界 电磁场的干扰,造成程序的跑飞,而陷入死循环,程序的正常运行被打断,由单片机控 制的系统无法继续工作,会造成整个系统的陷入停滞状态,发生不可预料的后果,所以 出于对单片机运行状态进行实时监测的考虑,便产生了一种专门用于监测单片机程 序运行状态的芯片,俗称看门狗(watchdog)。 MAX692 是微系统监控电路芯片,具有后备电池切换、掉电判别、看门狗监 控等功能。其封装和引脚说明如图 2 所示。 图 2 MAX692 封装和引脚 看门狗电路的应用,使单片机可以在无人状态下实现连续工作,其工作原理是: 看门狗芯片和单片机的一个 I/O 引脚相连,该 I/O 引脚通过程序控制它定时地往看 门狗的这个引脚上送入高电平(或低电平),这一程序语句是分散地放在单片机其他 控制语句中间的,一旦单片机由于干扰造成程序跑飞后而陷入某一程序段 进入死 循环状态时,写看门狗引脚的程序便不能被执行,这个时候,看门狗电路就会由于得不 到单片机送来的信号,便在它和单片机复位引脚相连的引脚上送出一个复位信号,使 单片机发生复位,即程序从程序存储器的起始位置开始执行,这样便实现了单片机的 自动复位。 红外检测电路 红外辐射光子在半导体材料中激发非平衡载流子(电子或空穴),引起电学性能 变化。因为载流子不逸出体外,所以称内光电效应。量子光电效应灵敏度高,响 应速度比热探测器快得多,是选择性探测器。为了达到最佳性能,一般都需要在 低温下工作。光电探测器可分为: (1) 光导型:又称光敏电阻。入射光子激发均匀半导体中的价带电子越过禁带 8 进入导带并在价带留下空穴,引起电导增加,为本征光电导。从禁带中的杂质能 级也可激发光生载流子进入导带或价带,为杂质光电导。截止波长由杂质电离能 决定。量子效率低于本征光导,而且要求更低的工作温度。 (2) 光伏型:主要是 pn 结的光生伏特效应。能量大于禁带宽度的红外光子 在结区及其附近激发电子空穴对。存在的结电场使空穴进入 p 区,电子进入 n 区, 两部分出现电位差。外电路就有电压或电流信号。与光导探测器比较,光伏探测 器背影限探测率大于 40;不需要外加偏置电场和负载电阻,不消耗功率,有高 的阻抗。这些特性给制备和使用焦平面阵列带来很大好处。 (3) 光发射Schottky 势垒探测器:金属和半导体接触,典型的有 PtSi/Si 结构, 形成 Schott ky 势垒,红外光子透过 Si 层为 PtSi 吸收,电子获得能量跃上 Fermi 能级,留下空穴越过势垒进入 Si 衬底,PtSi 层的电子被收集,完成红外探测。充 分利用 Si 集成技术,便于制作,具有成本低、均匀性好等优势,可做成大规模 (10241024 甚至更大)焦平面阵列来弥补量子效率低的缺陷。有严格的低温要求。 用这类探测器,国内外已生产出具有像质良好的热像仪。Pt Si/Si 结构 FPA 是最早 制成的 IRFPA。 定时计数与车流量的计算 利用 MCS-51 内部的定时器/计数器进行定时,配合软件延时实现到计时。该 方法节省硬件成本,切能够使读者在定时器/计数器的使用、中断及程序设计方面 得到锻炼与提高。计算公式如下: TC=M-C 式中,M 为计数器摸值,该值和计数器工作方式有关。 对于一个交通路口来说,能在最短的时间内达到最大的车流量,就算是达到 了最佳的性能,我们称在单位时间内多能达到的最大车流为车流量。 用公式:(车流量= 车流 / 时间)来表示。 十字路口交通灯设计中采用的一般思路 十字道口的红绿灯是交通法规的无声命令,是司机和行人的行为准则。十字 道口的交通红绿灯控制是保证交通安全和道路畅通的关键。当前,国内大多数城 市正在采用“自动”红绿交通灯,它具有固定的“红灯绿灯”转换间隔,并自动切换。 它们一般由“通行与禁止时间控制显示、红黄绿三色信号灯和方向指示灯”三部分组 成。在交通灯的通行与禁止时间控制显示中,通常要么东西、南北两方向各 50 秒; 9 要么根据交通规律,东西方向 60 秒,南北方向 40 秒,时间控制都是固定的。交 通灯的时间控制显示,以固定时间值预先“固化”在单片机中,每次只是以一定周期 交替变化。但是,实际上不同时刻的车辆流通状况是十分复杂的,是高度非线性 的、随机的,还经常受认为因素的影响。采用定时控制经常造成道路有效应用时 间的浪费,出现绿灯方向车辆较少,红灯方向车辆积压。它不顾当前道路上交通 车辆数的实际情况变化,其最大的缺陷就在于当路况发生变化时,不能满足司机 与路人的实际需要,轻者造成时间上的浪费,重者直接导致交通堵塞,导致城市 交通效率的下降。目前,有一种使用“模糊控制”技术控制交通灯的方法。能够根据 十字路口两个方向上车辆动态状况,自动判断红绿灯时间间隔,以保证最大车流 量,减少道口的交通堵塞。但是却不像定时控制,能用数字显示器显示当前灯色 剩余时间,以便于驾驶员随时掌握自己的驾驶动作,及时停车或启动。 图 3 十字路口车道形状图 图 4 为直方图,上边为北路口灯,右边为东路口灯,下边为南路口灯,左边 为西路口灯。图 5 所示为一种红绿灯规则的状态图,分别设定为 S1、S2、S3、S4,交通灯以这四种状态为一个周期,循环执行。 10 图 4 车辆行驶直方图 请注意图 S2 状态和 S4 状态,它们在一个时间段中四个方向都可以通车,这 种状态能在一定的时间内达到较大的车流量,效率特别高。外圈是北方为前进方 向的状态循环,内圈是东方为前进方向的状态循环。 图 5 车辆行驶状态图 依据上述的车辆行驶的状态图,可以列出各个路口灯的逻辑表,由于相向的 灯的状态图是一样的,所以只需写出相邻路口的灯的逻辑表;根据行驶状态图可 以看出,相邻路口的灯它们的状态在相位上相差 180。因此最终只需写出一组 S1、S2、S3、S4 的逻辑状态表。如表 3 所示: 表 3 交通灯的循环逻辑表 S1 的状态A(P17)BCDEFGH(P10) 11 逻辑值00101000 显示状态南北通行 S2 的状态ABCDEFGH 逻辑值00011000 显示状态南北路口左转通行 S3 的状态ABCDEFGH 逻辑值10000010 显示状态东西通行 S4 的状态ABCDEFGH 逻辑值10000001 显示状态 东西路口左转通行 表中的“1”代表灯亮(也代表逻辑上的 1) , “0”代表灯灭(也代表逻辑上的 0) , 依上表,就可以向相应的端口送逻辑值。 附件附件 2:外文原文:外文原文(复印件)(复印件) BASEDBASED ONON MCUMCU INTERSECTIONINTERSECTION TRAFFICTRAFFIC LIGHTSLIGHTS THETHE CONTROLLERCONTROLLER DESIGNDESIGN Because of the rapid development of our economy resulting in the car number of large and medium-sized cities surged and the urban traffic, is facing serious test, leading to the traffic problem increasingly serious, its basically are behaved as follows: traffic accident frequency, to the human life safety enormous threat, Traffic congestion, resulting in serious travel time increases, energy consumption increase; Air pollution and noise pollution degree of deepening, etc. Daily traffic jams become people commonplace and had to endure. In this context, in combination with the actual situation of urban road traffic, develop truly suitable for our own characteristics of intelligent signal control system has become the main task. Preface In practical application at home and abroad, according to the actual traffic signal control application inspection, planar independent intersection signal control basic using set cycle, much time set cycle, half induction, whole sensor etc in several ways. The 12 former two control mode is completely based on planar intersection always traffic flow data of statistical investigation, due to traffic flow the existence of variable sex and randomicity, the two methods have traffic efficiency is low, the scheme, the defects of aging and half inductive and all the inductive the two methods are in the former two ways based on increased vehicle detector and according to the information provided to adjust cycle is long and green letter of vehicle, it than random arrived adaptability bigger, can make vehicles in the parking cord before as few parking, achieve traffic flowing effect In modern industrial production,current,voltage,temperature, pressure, and flow rate, velocity, and switch quantity are common mainly controlled parameter. For example: in metallurgical industry, chemical production, power engineering, the papermaking industry, machinery and food processing and so on many domains, people need to transport the orderly control. By single chip microcomputer to control of traffic, not only has the convenient control, configuration simple and flexible wait for an advantage, but also can greatly improve the technical index by control quantity, thus greatly improve product quality and quantity. Therefore, the monolithic integrated circuit to the traffic light control problem is an industrial production we often encounter problems. In the course of industrial production, there are many industries have lots of traffic equipment, in the current system, most of the traffic control signal is accomplished by relays, but relays response time is long, sensitivity low, long-term after use, fault opportunity increases greatly, and adopts single-chip microcomputer control, the accuracy of far greater than relays, short response time, software reliability, not because working time reduced its performance sake, compared with, this solution has the high feasibility. About AT89C51 (1) function characteristics description: AT89C51 is a low power consumption, high performance CMOS8 bit micro- controller, has the 8K in system programmable Flash memory. Use high-density Atmel company the beltpassword nonvolatile storage technology and manufacturing, and industrial 80S51 product instructions and pin fully compatible. Chip Flash allow program 13 memory in system programmable, also suitable for conventional programmer. In a single chip, have dexterous 8 bits CPU and in system programmable Flash, make AT89C51 for many embedded control application system provides the high flexible, super efficient solution. AT89C51 has the following standard function: 8k bytes Flash, 256 bytes RAM, 32-bit I/O mouth line, the watchdog timer, two data pointer, three 16 timer/counter, a 6 vector level 2 interrupt structure, full-duplex serial port, piece inside crystals timely clock circuit. In addition, AT89C51 can drop to 0Hz static logic operation, support two software can choose power saving mode. Idle mode, the CPU to stop working, allowing the RAM, timer/counter, serial ports, interruption continue to work. Power lost protection mode, RAM content being saved, has been frozen, microcontroller all work stop, until the next interruption or hardware reset so far. As shown in figure 1 for the AT89C51 pins allotment. P1.0 1 P1.1 2 P1.2 3 P1.3 4 P1.4 5 P1.5 6 P1.6 7 P1.7 8 RST /Vpd 9 (RXD)P3.0 10 (TXD)P3.1 11 (INT 0)P3.2 12 (INT 1)P3.3 13 (T0)P3.4 14 (T1)P3.5 15 (WR)P3.6 16 (RD)P3.7 17 XTAL 2 18 XTAL 1 19 END 20 P20(A8) 21 P21(A9) 22 P22(A10) 23 P23(A11) 24 P24(A12) 25 P25(A13) 26 P26(A14) 27 P27(A15) 28 PSEN 29 EA/Vpd 31 ALE /PROG 30 P0.7(AD7) 32 P0.6(AD6) 33 P0.5(AD5) 34 P0.4(AD4) 35 P0.3(AD3) 36 P0.2(AD2) 37 P0.1(AD1) 38 P0.0(AD0) 39 VCC 40 Figure 1 the AT89C51 pins allotment (2) interrupt introduction AT89C51 has six interrupt sources: two external interruption, (and), three timer interrupt (timer 0, 1, 2) and a serial interrupts. Each interrupt source can be passed buy bits or remove IE the relevant special register interrupt allow control bit respectively make effective or invalid interrupt source. IE also includes an interrupt allow total control bit EA, it can be a ban all interrupts. IE. Six is not available. For AT89C51, IE. 5 bits are also not be used. User software should not give these bits write 1. They AT89 series for new product reserved. Timer 2 can be TF2 and the T2CON registers EXF2 or 14 logical triggered. Program into an interrupt service, the sign bit can be improved by hardware qing 0. In fact, the interrupt service routine must determine whether TF2 or EXF2 activation disruption, the sign bit must also by software qing 0. Timer 0 and 1 mark a timer TF0 and TF1 has been presented in the cycle count overflow S5P2 074 bits. Their value until the next cycle was circuit capture down. However, the timer 2 marks a TF2 in count overflow of the cycle of S2P2 074 bits, in the same cycle was circuit capture down (3) external clock driving characteristics symbolsparametersminimumThe maximumunit 1/TCLCLOscillatorFrequency024MHz TCLCLClock Period41.6ns TCHCX High Time15ns TCLCX Low Time15ns TCLCHRise Time20ns TCHCLFall Time20ns Table 1 (4) leisure and power lost pattern external pins state modeProgram memoryALEpsenPort 0 Port 1 Port 2 Port 3 idleinternal11datadatadataData IdleExternal11floatDatadataData Power downInternal00DataDataDataData Power downExternal 00floatdataDatadata Table 2 About 8255 chip 1.8255 features: (1)A parallel input/output LSI chips, efficacy of I/O devices, but as CPU bus and peripheral interface. (2)It has 24 programmable Settings of I/O mouth, even three groups of 8 bits I/O 15 mouth to mouth, PB mouth and PA PC mouth. They are divided into two groups 12 I/O mouth, A group including port A and C mouth (high four, PC4 PC7), including group B and C port B mouth (low four, PC0 PC3). A group can be set to give basic I/O mouth, flash control (STROBE) I/O flash controlled, two-way I/O3 modes, Group B can only set to basic I/O or flash controlled the I/O, and these two modes of operation mode entirely by controlling registers control word decision. 2. 8255 pins efficacy: (1). RESET: RESET input lines, when the input outside at high levels, all internal registers (including control registers) were removed, all I/O ports are denoting input methods. (2). CS: chip choose a standard lamp line 1, when the input pins for low levels, namely/CS = 0, said chip is selected, allow 8255 and CPU for communications, / CS = 1, 8255 cannot with CPU do data transmission. (3). RD: read a standard lamp line 1, when the input pins for low levels, namely/RD = 0 and/CS = 0, allow 8255 through the data bus to the CPU to send data or state information, namely the CPU 8255 read from the information or data. (4). The WR: write a standard lights, when the input pins for low levels, namely/WR = 0 and/CS = 0, allows the CPU will data or control word write 8255. (5). D7: three states D0 two-way data bus, 8255 and CPU data transmission channel, when the CPU execution input/output instruction, through its realization 8 bits of data read/write operation, control characters and status information transmitted through the data bus. (6). PA0 PA7: port A input and output lines, A 8 bits of data output latches/buffers, an 8 bits of data input latches. (7). PB0 PB7: port B input and output lines, a 8 bits of I/O latches, an 8 bits of input and output buffer. (8). PC0 PC7: port C input and output lines, a 8 bits of data output latches/buffers, an 8 bits of data input buffer. Port C can through the way of working setting into two four ports, every 4 digit port contains A 4 digit latches, respectively with the port A and port B cooperate to use, can be used as control standard lights output or state standard 16 lights input ports. (9). A0, A1: address selection line, used to select the PA 8255 mouth, PB mouth, PC mouth and controlling registers. When A0=0, A1= 0, PA mouth be chosen; When A0=0, A1 = 1, PB mouth be chosen; When A0=0, A1 = 1, PC mouth be chosen; When A0=1, A1= 1, control register is selected. Concerning seven section LED display introduction Through light emitting diode chip appropriate link (including series and parallel) and appropriate optical structure. May constitute a luminous display light-emitting segments or shine points. By these luminous segments or shine point can be composed digital tube, symbols tube, m word pipe, tube, multilevel matrix display tube etc. Usually the digital tube, symbols tube, m word tube were called stroke display, but the stroke displays and matrix tube collectively referred to as character displays. 1. The LED display classification (1) by word high marks: stroke monitors word high least 1mm (monolithic integrated type more digital tube word high in commonly 2 3mm). Other types of stroke display tiptop 1.27 mm (0.5 inch) even up to hundreds of mm. (2) color-coded score red, orange, yellow, green and several kinds. (3) according to the structure points, reflecting cover type, a single point-elastic and monol
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 攀枝花东区中烟工业2025秋招新型烟草研发岗位面试模拟题及答案
- 莆田市烟草公司2025秋招行政管理岗位面试模拟题及答案
- 真武路施工方案
- 基础砼底板施工方案
- 宝马迎宾灯施工方案
- 中国邮政2025德州市秋招大堂经理岗位面试模拟题及答案
- 开展健康咨询方案
- 湛江赤坎区中烟工业2025秋招质检员岗位面试模拟题及答案
- 中国邮政2025呼伦贝尔市秋招电商运营岗位面试模拟题及答案
- 比亚迪分期方案咨询
- 乡镇综合行政执法队队长试用期满转正工作总结
- 2025天津医科大学眼科医院第三批招聘1人备考考试试题及答案解析
- 2025年法院书记员招聘考试笔试试题含答案
- 教科版四年级上册科学全册教案
- 水稻螟虫绿色防控
- 2024版2025秋新版小学道德与法治三年级上册全册教案教学设计含反思
- 家电合伙合同(标准版)
- CPK、PPK和SPC(X-R控制图)模板
- 2025年二级建造师考试施工管理真题及答案
- 光伏发电运行维护定期巡视检查项目和周期
- 新版苏教版四年级上册科学(全册教案及教学计划及进度表)
评论
0/150
提交评论