bit bitVal; unsigned char byteVal; : : bitVal = byteVal;
bitVal = byteVal & 0x01 // Equivalent to A or bitVal = (byteVal > 0) // Equivalent to B
Take a look at the following thread for an answer to this question. http://www.keil.com/forum/docs/thread1328.asp#Msg5232 Jon
"Take a look at the following thread for an answer to this question." I'd prefer to be able to look in the manual!! How can I say "Please read the manual" if it's not in the F... Manual!!?? ;-)