software uart 8051 bit banging
that code does work.
If you post your code, and a block diagram or schematic or an explanation of your hardware setup someone here would be able to help you.
First, you should try communicating with the PC. Use a terminal program to verify that
everything is working.
For multi-processor communication you shouldn't use the bit-bang method, there are many more efficient ways to accomplish this, One in particular is using the hardware UART with 9 bit communication.
You can read all about this in the 8051/8052 tutorial on 8052.com.
Good Luck