• BUG with bits in integer variable
    There is a BUG in the compilation of a bit definition: unsigned int bdata my_int; sbit bit15 = my_int ^ 15; sbit bit7 = my_int ^ 7; void main() { my_int = 0x8000; if(bit15) { // Here we shall...
  • adding carry(cy) to an integer variable.
    i had a problem in adding the carry to the integer variable.i want to add carry to integer variable.if anyone knows please help me out.
  • adding carry(cy) to an integer variable.
    i had a problem in adding the carry to the integer variable.i want to add carry to integer variable.if anyone knows please help me out.
  • printf problem for integers > 32767
    I am using printf function to send data to serial port. The mcu has to send a number which may be upto 65535. But for numbers larger than 32767, I was getting negative numbers. To test it I wrote...
  • How to Split the 16bit word?
    Hi! i want to spilt the 16bit word into two 8bit words, is there any key words for it. i use the p89V51 mcu and c language Cx51 keil compiler ver3. regards, K.T.Venkatesan.