• regarding assignment
    while combining C & assembly instructions, how do i assign value contained in any register like r6, r7 etc. to variable defined in C. i did this is it right? unsigned char myvalue; # pragma asm...
  • assigning struct to variable
    Hi All,, Whats wrong with following ?? unsigned char myvar; struct mystruct{ unsigned char aaa:3; unsigned char bbb:3; unsigned char ccc:2; }mystruct = {1,2,3}; myvar = mystruct; Why...
  • Assigning a larger value to a bit
    bit bitVal; unsigned char byteVal; : : bitVal = byteVal; Question: How does C51 determine whether to set or clear the bit? Does it: A). Simply copy the LSB of the byteVal into the bit, or B)...
  • Float point Assignment Problem
    I am using Silicon Labs C8051F344 controller and for one of my project the floating point precision required is 6 digits after decimal point. I am now facing with the following problem: #include...
  • Bit Operator
    Hi , A "bit" of a fundamental query. Suppose I declare two bit variables bit MyBit1,MyBit2; I need to do something if both bits are 1. Are these two methods equivalent: if(MyBit1...