RS-232 Programming/Comms with PC
sethen320
Posts: 7
I have done everything possible. I've built the circuit using all of the revisions of the schematic. I've used third-party schems. Is there a step I'm missing? When I use Prop Tool to try to download to the chip (no EEPROM, I've eliminated that for troubleshooting), I cannot communicate with it. I have a demo board and that works fine, so I know it's not the PC. I'm using P31 & P30. Something in the data sheet made me suspect that I need to power-cycle the chip just prior to attempting the download. I've tried it to no avail. Should I give up and declare this chip DOA?
Comments
Many things to tweak and get right and together the collective wisdom of this forum should be able to sort it out.
Any chance of a quick photo of your setup? If you can, when you do a reply, click "Go Advanced" just underneath where you type and then you can upload photos.
It probably is just one line of code to change in the proptool but I don't have access to the source.
I've looked at the ft232 chip but it is only available in surface mount and I like to work with DIP parts.
The solution I found was to type "USB Serial FT232" into ebay which brings up a few cables eg http://www.ebay.com.au/itm/Black-FTDI-FT232-RS-232-RS232-Serial-USB-Adapter-Cable-w-Magnetic-Ring-/170833794906?pt=UK_Computing_Parallel_Serial_PS_2&hash=item27c67cd75a They are $16 instead of $2 which is a mildly irritating way of fixing one line of code in a program, but it is a solution which works.
Or you can buy the propplug which has a ft232 chip on it.
Or a ft232 breakout board http://www.ebay.com.au/itm/FT232RL-USB2-0-Serial-Module-USB-TTL-level-Converter-Adapter-Arduino-/251056721141?pt=AU_B_I_Electrical_Test_Equipment&hash=item3a74258cf5
But it would be interesting to see how you go with a real RS232 port.
I have made boards and got the ins-and-outs of the Prop the wrong way around, but thats obligatory with '232, isn't it ??
As far as I can remember, it's out on P30 and in on P31, so that agrees with my early memories of Z80 PIOs that chose to use 0 to indicate outputs and 1 for inputs (Now everything uses them the other way around ...)
I have assumed you were using this one...
http://www.parallax.com/Portals/0/Downloads/docs/prod/prop/SerialtoPropeller.pdf
.. but now I'm not so sure.
Note: You also need to supply 3.3V power to the Propeller
Second question - I think they do and it is some sort of negative voltage on the ones I have but YMMV. Anything under -3V counts according to the standard. I think it is often -9V.
The true RS232 standard is anything less than -3V or anything more than 3V. The "PC" standard allows 0V to count as a negative voltage. So a common standard that would work for all connections would be maybe anything more than 1V or less than 1V.
Would 2 of those transistor circuits talk?
I suspect they might. The Tx output transistor will output 3V or it will be off which is floating. For the rx, a floating voltage will be pulled down to 0V with the 10k pulldown.
I haven't tested it thoroughly, but if you take a max232 chip and connect nothing to the chip except the power and capacitors, the output will be +5V. That infers an input of a negative voltage as the max232 inverts (as do the transistor circuits). Which says that if the input is floating, it defaults to a negative voltage. The propeller transistor circuit also rests with a floating voltage. So while the propeller transistor circuit breaks quite a few RS232 rules, I very much suspect it will work as an inter-prop comms system, plus should be compatible with a max3232 and max232 and a real RS232 port.
The only thing that may not work is the way the DTR is wired up connected to Rx. That might end up resetting the prop.
For years I resisted the max232 and max3232 chips but I now use them for all my ports. It isn't really that they conform to the standard but more that you can do all sorts of horrible things to them and nothing bad happens. Short the pins. Connect two Tx pins together. Stick 25VAC down a pin. Muddle up all the pins on a plug in a random order. You can't do that to a propeller chip!
I'm going to be very interested to see how our OP goes with a real RS232 port.