• Can't assign values to array I just made.
    I can't seem to access the arrays I have made: 'buff' and 'Time'. I am even unable to initialize them. I am watching the locals and the variables 'i' and 'TimeVar' show changes, but nothing seems to...
  • Assigning a larger value to a bit
    bit bitVal; unsigned char byteVal; : : bitVal = byteVal; Question: How does C51 determine whether to set or clear the bit? Does it: A). Simply copy the LSB of the byteVal into the bit, or B)...
  • C51: a lot of values assignment
    Hi, In my C code, I need to assign a lot of values. Like this: a1,a2,... are variables as char. v1,v2...,w1,w2...y1,y2 are constant (like 0x00, 0x01, ...etc) if (i==0){ a1 = v1; a2 = v2;...
  • assign value to flash memory
    Hi Guys How am i able to assign values to a variable i have stored in flash so that it is included in the hex file? For example: i have declared a variable volatile unsigned char code err_msgs...
  • Static array declaration crashes application.
    Hi, I'm using Keil IDE V4.23.00.00.0. If I declare some static array in module A like: volatile static unsigned char MyArray[9] then all works fine. If I declare it like: volatile static...