??? 10/29/09 16:37 Read: times |
#170209 - It's not complete Responding to: ???'s previous message |
Andy Neil said:
Richard said:
I'm not sure how this thread got to be about communication between two PHYTEC boards. If you look at the very first post, he was talking about communication between two 8051s - talking about a "master" and a "slave", and saying "...master ... should say to the slave..." See: http://www.8052.com/forum/read/168316 If he needs the two boards to "talk" to one another, he hasn't said that Yes, he did - see above. what that says is Walter Wenz said: I want to connect two 80512er by serial port to PC. First 8051er is the master (COM1) and the other one the slave(COM2).
The master is making something and after that he should say to the slave "Do something" and stops. And the slave must get a signal from master and does his work. After that he stops, too. And so on. Note: There aren't any free A/D and D/A ports. Now the good question: How to connect the master with the slave. And how to realize that by c-programming? THX Walter I'm really not sure what he intended to say by this, However, it was then suggested - by both you and me - that he reconsider and, instead, have each board talk only to the PC, and have the PC coordinate the activities:
http://www.8052.com/forum/read/168338 http://www.8052.com/forum/read/168366 He seems now to have taken that on board, but is trying to bodge it with just one COM port on the PC. One thing I don't understand is his initial reference to COM1 and COM2, if he has only one COM port on his PC. If he has two com ports, it would seem quite trivial to hook the two of them to the PC with those two ports, and be done with it. If he wants to relay comm's between PHYTEC0 and PHYTEC1 via the PC, he can do that. Further, he's made it clear that he has IIC, and other comm schemes on the boards, any one of which will work in both directions. That should solve his problem too. It looks to me as though he may be trying to get someone to generate the code for him, as he hasn't the most basic notion of how this should be done. I suspect there are plenty of examples of SPI, IIC, etc, on 8052.COM for him to search out and examine. The www is full of SPI examples, and, since PHYTEC boards generally don't do things in a terrible hurry, he can probably do what he needs by bit-banging if that suits him. What really puzzles me is that he's so stingy with information. RE |