请问怎样把一个数组存储在c8051f330内部8k的flash中?谢谢

[复制链接]
 楼主| WYF1228 发表于 2008-10-2 11:11 | 显示全部楼层 |阅读模式
我主要是想做个供lcd使用的字库
香如故 发表于 2008-10-2 17:02 | 显示全部楼层

c51中用code定义数组就可以了啊

比如:uchar&nbsp;code&nbsp;thank_code[]={0x00,0x00,0x00,0x58,0x00,0x00,0x00,0xdd,0x00,0x00,0x00,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x00,0x77,0x78,0xde,0xdf,0x88,0xd3,0x00,0xd4,0x00,0x00,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0xe0,0xe1,0x76,0xde,0xdf,0x88,0xd5,0xd6,0xd7,0x00,0x00,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0xe2,0xe3,0x69,0x4d,0x88,0xd8,0xd9,0xda,0xdb,0x71,0xdc};<br />就会放到flash中的.
香如故 发表于 2008-10-2 17:08 | 显示全部楼层

前面声明了,typedef unsigned char uchar;

  
您需要登录后才可以回帖 登录 | 注册

本版积分规则

13

主题

16

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部