• Trouble with ints, floats and double
    I'm using the MCBSTM32C evaluation board. I would like to calculate the angle of the board in relation to the gravity vector. I have no prolems reading the accelerometer. I basically have the gravity...
  • C51: Invalid int expression in pre-processor
    I have hit a wall. In the following fragment: int a; void main(void) { a = 1; #if ((defined(TEST_1) && (TEST_1 == 27)) || (defined(TEST_2) && (TEST_2 == 27)) ) a = 2; #endif } the conditional...
  • cast?
    Does anybody know, how one have to cast an operation correctly? And is it necessary to tell the compiler that a constant is unsined long #define dword unsigned long unsigned char ucH; //hours unsigned...
  • Storing floats to int. flash on Cygnal
    I seem to be chasing my tail on this problem. I'm trying to store floating point constants to the flash on a Cygnal C8051F005 over the serial port. It seems to work if I always erase the page first but...
  • answer?
    keil::::: uvision::::: libaries::::: stereovisonical?????