• Compile char as an unsigned char
    Hello, Can anyone tell me how to instruct Keil to compile char's as unsigned char's by default? I know that there are some help topics on this issue, but they seem to be giving a precompiler...
  • how to generate random number?
    Does anybody know how to generate random number using 8051?
  • How to input a binary number?
    I'm using Keil to developing C8051 programs. In C51, we can type 0xff to input a hex number, so how to type a binary number? On the Internet someone said we can type for example 0b00010001 to express...
  • atoi doesn't work for all numbers
    The function atoi (and sscanf, atof etc), all appear to have the same (unlikely) problem: they don't read the number 5. Yes, I realize that this seems very unlikely. I am using uVision version 4...
  • scanf - how to delete a char in the in-buffer ?
    I use scanf for input from a keyboard and echo in a display. It works good, but for the backspace-key I need to delete the last character from _getkey()-input. ? Thanks in advance. Dieter