如题,程序如下: unsigned char DisCash[7]={0x12,0x55,0x23,0x18,0x10,0x05,0x08}; void Set_1302(uchar *pClock) { uchar i; uchar ucAddr = 0x80; Write_1302(0x8e,0x00); //写操作 for(i =7; i>0; i--) { Write_1302(ucAddr,*pClock); pClock++; ucAddr +=2; } Write_1302(0x8e,0x80); //写保护 }
void main(void) { . . Set_1302(DisCash); . . } 数组定义到RAM上时,工作正常,现在打算把数组定义到ROM中,不知道该定义 一个什么样的指针,望各位老大帮忙看看,谢谢啦 |