Which of the RS232-to-Propeller circuits is best?
achoox4
Posts: 4
I've finally taken the plunge and bought a few Propeller chips with the intention of building the 3-transistor·programming circuit shown on http://www.parallax.com/tabid/254/Default.aspx·. I've been unable to find my SX Key after a move, and·because I've got a few projects coming up where the Propeller should work at least as well as the SX (and the cost difference doesn't really matter, though I still have 20+ unused SX chips), I figured I could give it (and, more importantly, Spin) a try for little initial investment with·the RS232 circuit. (I've had an easier time with a C-programmed uC with on-chip flash easily written by my code, but there the fine-pitch packages make the price of entry for starting a new hobbyist project pretty steep.)
But now that I've got the parts here, looking for the minimal circuit digram I see that the most recent·datasheet shows a somewhat different programming circuit (only 2 transistors...), and I've found discussions regarding the capacitor and the size of some resistors.
Is there a known·best version of this circuit? Is the one linked above simply it?·I've·bought 3 Propellers for starters, so I can tell a faulty circuit from a faulty Propeller, but now I just don't know how to start at all.
Also, with this circuit (and otherwise), does RESn require an external pull-up or not?
·
But now that I've got the parts here, looking for the minimal circuit digram I see that the most recent·datasheet shows a somewhat different programming circuit (only 2 transistors...), and I've found discussions regarding the capacitor and the size of some resistors.
Is there a known·best version of this circuit? Is the one linked above simply it?·I've·bought 3 Propellers for starters, so I can tell a faulty circuit from a faulty Propeller, but now I just don't know how to start at all.
Also, with this circuit (and otherwise), does RESn require an external pull-up or not?
·
Comments
-Phil
I separate the res, open collector, from he Prop via a link via a jumper. This allows comms to-and-fro without the resets.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Style and grace : Nil point
1) Have control of DTR and make it negative when a port is opened
or
2) Ground the 4K7 resistor instead of connecting it to DTR as the negative swing is not required for practically any RS-232 ports.
I have also used logic gates in place of transistors in RS232 circuits without any problems as they will swing rail-to-rail. Otherwise uses a MAX3232.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
*Peter*
-Phil
Is the 3-transistor circuit exactly the·one at http://www.parallax.com/tabid/254/Default.aspx·?
Do you just put the jumper between that circuit's "RES" port and the actual Propeller RESn pin? (and pull the jumper after booting/programming?)
·
Do I just run Rx to Rx, Tx to Tx, and·DTR to RESn·each straight through the MAX3232,
and power the MAX3232 with 3.3V? Or do I need any inverters or other parts in addition?
Edit: never mind the above, I just found this thread http://forums.parallax.com/showthread.php?p=778467
which has as an attachment to the 4th post the PropStick schematic.
Can I assume that's that (plus a weak pull-up on RESn) is the optimal circuit for the MAX3232?
Post Edited (achoox4) : 1/18/2010 10:58:14 PM GMT
-Phil
Is the 3-transistor circuit exactly the one at http://www.parallax.com/tabid/254/Default.aspx ?
Do you just put the jumper between that circuit's "RES" port and the actual Propeller RESn pin? (and pull the jumper after booting/programming?)"
Yes it is that cct,although I originally copied it from an Elektor artical. All I did was put a jumper link between the "reset" transistor's collector and the RES pin on the prop (the gray one ). This relies upon the internal pull up resistor, which happens when BOE is conected down to VSS ( otherwise you require a discrete pullup to the Res pin ). Virtually 100% of the time it is left conected, but occationally I disconect it if I get any unwanted resets during comms. The cct requires power from the Prop's 3.3 Volts, so 5 conections are needed.
The other two jumpers are just to swap Rx and Tx around, I got it wrong once and so added that option too, and of course have never used it since.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Style and grace : Nil point