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