• usage of sbit
    < struct{ bit open; bit close; }door[2]; sbit door[0].open = P1^0; sbit door[0].close = P1^1; sbit door[1].open = P1^2; sbit door[1].close = P1^3; > Here when I compile/build...
  • about the sbit
    Hi, Why I cannot use P1^1 directly in source code if i didn't use sbit definition in Keil_C51? Another thing is, how to implement the following function about the "dynamic bit" in Keil_c51 V6.02...
  • sbit error
    Hello everyone I tried to write a C code using uvision but at the very beginning I got a problem with my declaration. I want to use sbit to address a single bit. My problem is that uvision...
  • sbit with macro define
    Hi all, I just want to ask why I cannot use this in C51: ... sbit INPUT1 = P0 ^ 0; sbit INPUT2 = P0 ^ 1; #define CHECK_INPUT ((INPUT1 << 7) | (INPUT2 << 6)) When try using it: while(1...
  • Question about sbit definitions
    Hi, I am using the Keil uVision 2 software to develop a firmware driver. I have one technical related to the sbit definitions. Lets say i have couple of sbit definitions as follows: sbit JTAG_TDO...