您好,歡迎來電子發(fā)燒友網(wǎng)! ,新用戶?[免費注冊]

您的位置:電子發(fā)燒友網(wǎng)>源碼下載>單片機(jī)編程>

89c52單片機(jī)代碼

大?。?/span>13KB 人氣: 2018-01-29 需要積分:1
{$username}的空間

用戶級別:注冊會員

貢獻(xiàn)文章:

貢獻(xiàn)資料:

#include
#include
#include
#define uchar unsigned char
#define uint unsigned int
#define scs1 XBYTE[0XFEFF]
#define scs2 XBYTE[0XFDFF]
#define pa XBYTE[0X1FFF]
#define pb XBYTE[0X3FFF]
#define pc XBYTE[0X5FFF]
#define pd XBYTE[0X7FFF]
uchar bdata pbk;
sbit sa8=P1^1;
sbit w9=P1^2;
sbit k2=P1^3;
sbit k3=P1^4;
sbit k4=P1^5;
sbit k5=P1^6;
sbit k6=P1^7;
#define zuo{k3=0;k4=1;}
#define you{k3=1;k4=0;}
#define stop{k3=1;k4=1;}
#define zhua{k5=1;}
#define fang{k5=0;}
#define shang{k6=1;}
#define xia{k6=0;}
sbit w3=pbk^0;
sbit w4=pbk^1;
sbit w5=pbk^2;
sbit w6=pbk^3;
sbit w7=pbk^4;
sbit w8=pbk^5;
sbit w10=pbk^6;
sbit w11=pbk^7;
uchar code shu[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0xff,0x8c,0x86,0xce};
uchar code ka[][4]={1,2,3,0xff,
?????????????????????????????????????????????? 4,5,6,0xff,
?????????????????????????????????????????????? 0xff,0xff,0xff,0xff,
?????????????????????????????????????????????? 0xff,0xff,0xff,0xff,};
uchar tcount,s,dis[8],index,smg=0xfe,jian,ts,w,jx;
uint qs;
bit key;
void delay(uint x){while(x--);}
void time_init()

非常好我支持^.^

(1) 100%

不好我反對

(0) 0%

      發(fā)表評論

      用戶評論
      評價:好評中評差評

      發(fā)表評論,獲取積分! 請遵守相關(guān)規(guī)定!

      ?