Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Thread Closed: Issue successfully resolved

???
04/04/07 23:59
Read: times


 
#136639 - Evaluate it yourself!
Responding to: ???'s previous message

You get the result of ReadRegister(MSG_D) & 0x08, which assuming unsigned chars will be either 0x00 or 0x08, which logically is FALSE or TRUE
the we have the logical NOT operator ! that reverses the result.

The while operator executes the following block when TRUE. In your instance there is no code block, so the while will fall through when the result is FALSE.

Put it all together you get while bit3 of register MSD_D is 0, loop, otherwise drop through

List of 8 messages in thread
TopicAuthorDate
not within a while statement in 8051            01/01/70 00:00      
   Textbook time            01/01/70 00:00      
      sorry about that            01/01/70 00:00      
         08 is not a valid number!            01/01/70 00:00      
      Compound statements            01/01/70 00:00      
         Thanks            01/01/70 00:00      
   Beware of leading zeros!            01/01/70 00:00      
   Evaluate it yourself!            01/01/70 00:00      

Back to Subject List