This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

look up table

i am trying to use code memory space to store some constants patterns. to do this, i have defined an array in code memory space as follows:

unsigned char code A[]={0x00,0x3F,0x50,0x90,0x50,0x3F,0xAA};

it doesn't work at all or sometimes i get unpredicted results. but when i define the array in data memory and initialize the array as follows. can anyone help me? thanks

A[1] = 0x00;
A[2] = 0x3F;
.
A[6] = 0xAA

0