加入收藏 | 设为首页 | RSS
您当前的位置:首页 > 工业应用 > 交通业
源码名称: JT213.c
文件类型: .rar
源码类型: C-C++
源码分类: transportation applications
文件大小: 5 KB
热    度:
源码作者 : 汪休
整理时间: 2013-03-02
源码简介: 利用单片机P1端口控制6个交通信号灯,并使用定时/计数器T0作定时,实现交通信号灯控制。在马路的十字路过东西南北各设置红、黄、绿3种信号灯。由P1.0~P1.2控制南北方向,其中P1.0为红灯,P1.1为黄灯,P1.2为绿灯。P1.3~P1.5控制东西方向,其中P1.3为红灯,P1.4为黄灯,P1.5为绿灯。-P1 port single-chip computer control of six traffic lights, and use the timer/counter T0 to time, traffic signal control. Crossroads in the road all over East and West set the red, yellow, green three kinds of lights. Controlled by the north-south direction of P1.0 ~ P1.2, P1.0 which is red, P1.1 for the yellow light, P1.2 for the green light. P1.3 ~ P1.5 control the east-west direction, which is red, P1.3, P1.4 to yellow, P1.5 for the green light.

下载地址: [ 下载地址1 ]
相关源码: 无相关信息
分    享 :
分享到:
发表评论 共有条评论
验证码:
最新更新
热门点击