someone has worked on this, kindly let me know, how do we pass a 32 bit word to a variable declared as 'sbit',
i tried this way, AND with 0x80 (1000 0000) and get 1 bit at a time, this seems to work for sending but when it comes to reading, we do not know wat data is being obtained, how to read a 32 bit data (or 8 bit) through a single bit,
thanks & regards
Think about how you'd do it in hardware - with a Shift-register.
The 'C' programming language has a Shift operator.
The clue is in the name...
You might also take a look at: http://www.keil.com/support/man/docs/c51/c51_le_bitaddrobj.htm
shift register we loose the shifted out bits any operator for barrel shifter, in hardware we use right or left barrel shifter
thanks,