• KeilC51 can not compile this code correctly
    hi: I have a code below: char pop_value = 0X80; if(pop_value == 0X80) { pop_value = pop_value;//point 1 } pop_value = pop_value;//point 2 I would have thought the code would jump to point...
  • Correctly linking extension code to existing ROM code
    My application has most of its code in ROM. However, the functionality can be extended with code in RAM. The RAM can be switched between CODE and XDATA. For extensions, the RAM is switched into XDATA...
  • Sprintf doesn't work correctly?
    Hi, First of all, I'm programming the T89C51CC01 Microcontroller using C51 with Keil µVision4. My head teacher wrote the following header file for it (source file also included) -- it's German: ...
  • Project not building correctly?
    Hi, When changing one of my project C-sourcefiles and compiling only this file and then linking the project makes the microcontroller not behave as expected. If I recompile all sourcefiles and...
  • char variables not initializing correctly
    I have a function in which I declare two variables as follows: unsigned char voltage = 0; unsigned char test = 0; When I run the code in the debugger, these variables are initialized to random...