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
how do we pass a 32 bit word to a variable declared as 'sbit',
We don't, because it won't fit.
Actually the question you ask is not the question you need answered. That would be: "Where can I learn programming in C?" You need a textbook, and some time to study before you return to this project.
shift register we loose the shifted out bits any operator for barrel shifter, in hardware we use right or left barrel shifter
thanks,
how about passing one bit after another with a 32-bit variable in the other device at the recieving end