89c52單片機(jī)代碼
大?。?/span>13KB 人氣: 2018-01-29 需要積分:1
#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%
下載地址
.docx
89c52單片機(jī)代碼下載
相關(guān)電子資料下載
- 【GD32F303紅楓派開發(fā)板使用手冊】第三十講 CAN -CAN通信實驗 615
- 基于STM32單片機(jī)的多功能水杯設(shè)計 83
- 基于STM32單片機(jī)的智能睡眠呼吸監(jiān)測系統(tǒng)設(shè)計 94
- 遷移學(xué)習(xí)的基本概念和實現(xiàn)方法 98
- 【GD32F303紅楓派開發(fā)板使用手冊】第二十九講 USB-IAP升級實驗 64
- 程序員節(jié)視頻創(chuàng)意盛宴,邀您共襄盛舉! 37
- 低代碼拖拽式MES系統(tǒng)電子大屏,重塑智能制造新視界 139
- 一個暑假如何學(xué)習(xí)單片機(jī) 85
- 來寫個代碼,改變你的電機(jī)轉(zhuǎn)速 73
- MCU市場展望,旺季需求復(fù)蘇與多元化戰(zhàn)略驅(qū)動行業(yè)前行 131