www问答网
所有问题
单片机C语言unsigned char code table是什么意思
如题所述
举报该问题
推荐答案 推荐于2016-03-28
这就是无符号字符型表,存储在程序存储器(rom)中,不占用随机存储器(ram),这样用是因为令一些不用修改的常值不占用宝贵的ram。若将第一个值赋给i,就写i=table;,和普通的表的用法是一样的。
温馨提示:答案为网友推荐,仅供参考
当前网址:
http://www.wendadaohang.com/zd/AW13A3K1G1KKG34W13d.html
相似回答
单片机C语言unsigned
char
code
table
答:
定义一个无符号字符型一维数组,table是数组名table
[],中的[],省掉了一个参数,如果有参数,参数就表示些数组包含的个数,{}里的值就是数组包含的值。上面的代码可以写成unsigned char code table[16]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79...
c语言 unsigned
char
code
tab
答:
tab是变量名,code是keil的修饰符便是变量存储在程序存储器中
,不可被修改,因为传统51只有128字节的数据存储区
单片机C语言unsigned
char
code
table是什么意思
答:
unsigned
char
变量类型 :无符号8bit数据
code
存放位置:ROM,不可修改
table
变量名
单片机C语言unsigned
char
code
table
[] code
是什么
作用?
答:
code的作用是告诉单片机,我定义的数据要放在ROM(程序存储区)里面
,其实是相当与汇编里面的寻址MOVX(好像是),因为C语言中没办法详细描述存入的是ROM还是RAM(寄存器),所以在软件中添加了这一个语句起到代替汇编指令的作用,对应的还有data是存入RAM的意思 ...
单片机C语言unsigned
char
code
table
[] code
是什么
作用?
答:
code
的作用是告诉
单片机
,我定义的数据要放在ROM(程序存储区)里面,其实是相当与汇编里面的寻址MOVX(好像是),因为
C语言
中没办法详细描述存入的是ROM还是RAM(寄存器),所以在软件中添加了这一个语句起到代替汇编指令的作用,对应的还有data是存入RAM的
意思
...
uchar
code
disp_buf[3]={1,2,3};与uchar disp_buf[3]={1,2,3};有...
答:
unsigned
char
code
table
[];分配一个指向code区的指针,指针本身在默认存储区。code unsigned char table[];分配一个指向默认存储区的指针,指针本身在code区。
c语言
程序看不懂,那位高人帮忙看一下
答:
unsigned
char
code
table
[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,0x7f,0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xfe,0x7f,0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xfe,0x00,0xff,0x00,0xff,0x01};//这是一个存储在ROM中的数据表 ...
单片机
定义
unsigned
char
code
led
是什么意思
?
答:
指定变量led存储在
code
区。也就是rom或者是flash,这要看
单片机
程序存储器的构成,像7的就是EPROM如87C51;0的是掩模,如80C51;9的就是flash,常见的89S51.code去掉也可以,不过是把变量存放在别的区域。这要根据编译器的设定存储模式来定。如果变量体积大了,就要定义在code区。毕竟51系列的ram不够...
高手帮我解答下
单片机C语言
每个语句的
意思
答:
define uchar
unsigned
char
//宏定义 uchar表示unsigned char define uint unsigned int //宏定义 uint 表示unsigned int uchar bai,shi,ge,n,temp=120; //定义 bai,shi,ge,n,temp 5个无符号字符型变量,初始值为120 uchar
code
table
[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x...
大家正在搜
unsigned char是什么
单片机unsigned char
c语言unsigned char
单片机为什么要用unsigned
unsigned char啥意思
unsigned char 赋值
unsigned char长度
unsignedchar范围
unsigned int范围
相关问题
单片机C语言unsigned char code table...
单片机C语言unsigned char code table...
单片机中 char code table[] 和char t...
单片机定义unsigned char code led是什么...
单片机c语言uchar code table[]问题
C语言unsigned char code table co...
c语言 unsigned char code tab
请问一下大家,单片机C中有没有这种函数用法:unsigned...