serial communication between 2 proto boards
I am truly a beginner with most of this, but have so far managed to figure out most of it on my own, but now I'm stuck.
I have 2 propeller proto boards that I am trying to get to talk to each other. I have the number 7 pins directly connected to each other with a 1k resistor inline. I've tested that the pins are working. I've attached the .spin files I start up on each then I watch the debug output, it just doesn't seem like anything is getting through. Any help would be appreciated. Thanks.
I have 2 propeller proto boards that I am trying to get to talk to each other. I have the number 7 pins directly connected to each other with a 1k resistor inline. I've tested that the pins are working. I've attached the .spin files I start up on each then I watch the debug output, it just doesn't seem like anything is getting through. Any help would be appreciated. Thanks.
Comments
I use FullDuplexSerial running at 115200 baud. Uses two wires/traces; tx1 to rx2 and tx2 to rx1. I've NOT tried to run half-duplex (one wire), so can't help.
I note your .spin files are 0 KB in size. Seems strange to have no size.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Harley Shanko
But I think you have to send a CR after the decimal value, because the DEBUGIN_DEC expects this CR as end-character for the decimal value.
Andy
BTW @ Ariba: What are you talking about?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The more I know, the more I know I don't know.· Is this what they call Wisdom?
Post Edited (Ken Peterson) : 10/22/2007 2:06:24 AM GMT
The test programs use BS2 functions; one sends a number as a decimal string, reads a number as a decimal string, and without sending a CR I'd not expect it to work either, but I haven't checked the BS2 library.
You just need to make sure that GND on one board is connected to GND on the other.
The reason for connecting GNDs together (I think) is that then both boards have a common reference for voltages. (But I'm no electrical engineer either, so I'm probably explaining it wrong!).
Hope that doesn't confuse further!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheers,
Simon
www.norfolkhelicopterclub.co.uk
You'll always have as many take-offs as landings, the trick is to be sure you can take-off again ;-)
BTW: I type as I'm thinking, so please don't take any offense at my writing style
Might it be possible to connect 2 proto boards together using the programming headers? make a special crossover cable, connect VSS to VSS, RX to TX and TX to RX. Leave the resets disconnected.
It would allow you to use a couple of pins that normally go unused. Instead of using P7 like you are now.
Sorry, it's not a solution for your problem, but like I said, the idea popped into my head with I read the title of this thread.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Brian
uController.com - home of SpinStudio