单片机交通灯C语言设计程序
用单片机实现的交通灯设计
#include<reg51.h>
#define uchar unsigned char
#define uint unsigned int
uchar
,0x80,0x90};
uchar cs,second_counts;
uchar k;
uchar Flash_count=0,Operation_type=1;
//east and west leds
sbit RED_A=P2^0;
sbit YELLOW_A=P2^1;
sbit GREEN_A=P2^2;
//south and north leds
sbit RED_B=P2^3;
sbit YELLOW_B=P2^4;
sbit GREEN_B=P2^5;
//7segments control bits code seg7[10]={0xC0,0xF9,0xA4,0xB0,0x99,0x92,0x82,0xF8
你可能喜欢
- ppt相册模板
- 中华文化
- 交通灯单片机
- 交通灯实训报告
- 交通信号灯单片机设计19页
- 编程交通信号灯单片机综合实训一例6页
- 交通灯单片机程序1页
- 一种实用交通灯单片机控制系统的设计3页
- DXP 交通信号指示灯 单片机15页
- DXP 交通信号指示灯 单片机5页
- 交通灯实训报告14页
- 单片机交通灯实训报告5页
- 交通灯实训报告word200323页
- FPGA交通灯实训 报告28页
- 交通灯实训报告12页
- 十字路口交通灯实训报告20页


