1帮我注释一下,我有的看不明白.明天要答辩了求大神速度#include#define uchar unsigned char#define uint unsigned intsbit key1=P1^0;sbit key2=P1^1;sbit key3=P1^2;uchar num;uchar code table[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90};void delay(uint x){\x05uint i,j...
uchar code table uchar code table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};
uchar code table意思如下所示:定义无符号单字节字符型代码表,表的位置在代码段。
1 ds18b20显示温度不正确 #include #include sbit DQ=P1^7 sbit led=P1^0 #define uchar unsigned char #define uint unsigned char uchar code table[]={0x3f, 0x06, 0x5b, 0x4f, 0x66, 0x6d, 0x7d, 0x07, 0x7f, 0x6f} uchar data sex[3] uchar num void delayus(uchar gaq) while(gaq--)...
code 指定数据是存储在代码区,数据是在编程的时候跟代码一起写入代码存储器,运行过程中不能改变;xdata 指定数据是存储在外部数据存储器了;data 指定数据存储在内部低128字节数据存储器里,如果变量不指定存储位置,默认就是data型,这部分存储器寻址速度最快;idata 指定数据存储在内部低256字节数据存储...
ayes,it is the best choice. 是,它是最佳的选择。[translate] auchar code table[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xd8,0x80,0x90,0xbf}; 正在翻译,请等待...[translate]
uchar num,num1;ttuchar code table[]=0x3f,0x06,0x5b,0x4f0x66,0x6d,0x7d,0x070x7f,0x6f,0x77,0x7c0x39,0x5e,0x79,0x71}void delay(uint z)void main()num=0 tt=0 TMOD=0x11;//设置定时器0为工作方式1 TH0=(65536-10000)/256 TL0=(65536-10000)%256...
创建一个头文件,里面加入 extern uchar code table[];然后需要用到这个数组的c文件加上这个头文件即可 参考资料:assInputUsername0 c
帮我注释一下,我有的看不明白.明天要答辩了求大神速度#include#define uchar unsigned char#define uint unsigned intsbit key1=P1^0;sbit key2=P1^1;sbit key3=P1^2;uchar num;uchar code table[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90};void delay(uint x){\x05uint i,j;...
定义无符号单字节字符型代码表,表的位置在代码段