??? 10/29/09 14:04 Read: times |
#170186 - Synchronize transfers Responding to: ???'s previous message |
Three issues.
Connecting two TX outputs without having the two outputs fighting electrically is a special case for standard 8051 chips. It is only possible when the chip have open-collector outputs with internal, weak, pull-up. The world is full of processors that have full push-pull designs. Always, or when using the pin together with the UART. The second issue is that two TX signals connected together will result in garbage, unless the software in the two processors has logic to synchronize the transfers. When one processor sends, the other processor must leave the TX signal in idle. You may synchronize by sending explicit addressed requests from the PC. The uC with the matching address responds while the other uC is silent. Then request data from the other uC in the same way. The third issue is that Keil do not have any C# compiler for 8051. C-sharp is originally intended for writing Windows applications, but with some limitations, you will be able to find a couple of other supported platforms. Chosing Keil and 8051, you will have to settle for using C or assembler. |