• Use MACRO C "#define value" in MACRO ASM
    I use KeilC uVision4 for 89C51 MCU. I use "Inline ASM Code", like this : void main() { #pragma ASM MOV R7, #( 80000/40000 ) #pragma ENDASM } -> When COMPILE, ASM result file give a...
  • Use MACRO C "#define value" in MACRO ASM
    I use KeilC uVision4 for 89C51 MCU. I use "Inline ASM Code", like this : void main() { #pragma ASM MOV R7, #( 80000/40000 ) #pragma ENDASM } -> When COMPILE, ASM result file give a...
  • how can define a sfr var in a union or struct?
    How can define a union or a struct,and the member is a sfr register?such as pre union or struct { unsigned long dwData; unsigned char bData[4]; } /pre How can let the bData[4] used the sfr...
  • how can define a sfr var in a union or struct?
    How can define a union or a struct,and the member is a sfr register?such as pre union or struct { unsigned long dwData; unsigned char bData[4]; } /pre How can let the bData[4] used the sfr...
  • 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...