We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
hi all,
I am describing my problem below,
I am using LPC2214, keil Uv3 compiler
I am definig one global array of the size Arr[120][120] I am initilizing the whale array with the value 254.
unsigned char Array[100][100]
main() {
Array[0][0]=0; Array[0][1]=1; . . Array[100][100]=10000;
Init_Extint2();
printf("%c",Array[0][0]);
}
I am setting interrupt as rising edge sensitive.
After initializing interrupt when i read value of Array[0][0] its not giving false value.
If i read the whale array than I found that there is an offset in the base address of the array[100][100].
I mean the value get shifted to some offset. And the value of the offset is also random.
Please see if somebody can help me.
thanks in advance
The array indices are from 0 to 99, so where do you think you write with Arra[100][100]? That is 101 bytes outside the array...