• sfr P1 = 0x90; /* SFR for P1 */
    i was download the code from internet the program is start with these lines -------------------------------- sfr P1 = 0x90; /* SFR for P1 */ sbit P1_0 = P1^0; /* SFR for P1.0 */ sbit P1_1...
  • sfr P1 = 0x90; /* SFR for P1 */
    i was download the code from internet the program is start with these lines -------------------------------- sfr P1 = 0x90; /* SFR for P1 */ sbit P1_0 = P1^0; /* SFR for P1.0 */ sbit P1_1...
  • SFR access without keyword "sfr"
    Hi, I'm trying to access SFR memory using the hexa address of the SFR and using only "C" instructions. Since SFR memory is accessed by direct addressing mode, like the first 128 bytes of internal...
  • SFR access without keyword "sfr"
    Hi, I'm trying to access SFR memory using the hexa address of the SFR and using only "C" instructions. Since SFR memory is accessed by direct addressing mode, like the first 128 bytes of internal...
  • Volatile for SFR ?
    I have some Special function registers (SFR) that need to be in volatile type. How can I do this? Because when I declare: volatile sfr16 CAN0DAT = 0xD0; the compiler said that is wrong.