八路抢答器
上传用户:zhuzai
上传日期:2014-07-18
文件类型:DOC
文件大小:51.50K
资料积分:1分 积分不够怎么办?
八路抢答器的程序
/*************************************************************
按键说明??
*************************************************************/
#include
/*-----------------------------------------------------------
宏定??
------------------------------------------------------------*/
#define uint unsigned int
#define uchar unsigned char
/*-----------------------------------------------------------
------------------------------------------------------------*/
unsigned char code table[]={0xc0,0xf9,0xa4,0xb0,0x99,
0x92,0x82,0xf8,0x80,0x90,0x77,0x7c,0x39,0x5e,0x79,0x71};
/*-----------------------------------------------------------
按键端口定义
------------------------------------------------------------*/
sbit reset = P3^7; //系统复位按键
sbit UP = P2^5; //??
/*************************************************************
按键说明??
*************************************************************/
#include
/*-----------------------------------------------------------
宏定??
------------------------------------------------------------*/
#define uint unsigned int
#define uchar unsigned char
/*-----------------------------------------------------------
------------------------------------------------------------*/
unsigned char code table[]={0xc0,0xf9,0xa4,0xb0,0x99,
0x92,0x82,0xf8,0x80,0x90,0x77,0x7c,0x39,0x5e,0x79,0x71};
/*-----------------------------------------------------------
按键端口定义
------------------------------------------------------------*/
sbit reset = P3^7; //系统复位按键
sbit UP = P2^5; //??
关键词: 抢答器 程序

加入微信
获取电子行业最新资讯
搜索微信公众号:EEPW
或用微信扫描左侧二维码