• pointer passing
    I don't know if this is me or the compiler. I have a declaration PSD_SIGNAL_DEF far psd_temp_def = {CS_TEMPERATURE_PSD_ADDRESS,CS_TEMPERATURE_PORT,CS_TEMPERATURE_PIN,0}; and a call psd_temp_def...
  • Pointer to function
    Hello all, can anyone give an example or link how to use a pointer to a function? I have a function with an (unsigned char) argument and which returns also an (unsigned char) value and I want to access...
  • Delay generation
    Hello, I would like to know how can i use delays in my program as there is no inbuilt delay for 89c2051. i want to know how can i decide delay timing when I am using 12 MHZ external crystal
  • C251 memory pointer problem
    Hi, Is this a valid construct in you Keil C-251 compiler? unsigned char data buf[20]; typedef struct { int i; int j; } TEST_T; #define GetStruct() (*(TEST_T *)&buf[2]) void Test(void)...
  • Wrong code generation.
    I'm using the Keil C251 Compiler Optimizing 80251 C Compiler Version 1.x (DLL 1.24) The following instruction is in a function called after an SIO Interrupt: byLength = abyRecBuf[0] And the...