Adding a serial interface for debugging.
Dgswaner
Posts: 795
I'm tired of using the propeller programming serial connection (pin 30,31) to debug.... lots of extra switching programs and closing comport apps... gets old quick. I have a few Max232 chips and I thought I would essentially make my own "debug plug" basically a serial version of the prop plug. I don't need anything fancy just a serial connection for debugging.
I found this circuit www.coolcircuit.com/circuit/rs232_driver/max232.gif but I'm not too familiar with serial communication and wanted to verify that this will work before I give it a try.
The Max232 will do TTL level inputs which I believe to be what the prop requires.
will this work? is there a better option? I know you can use transistors, but I already have the 232's on hand.
Thanks, for the look. I'm a little worried about frying my board.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"A complex design is the sign of an inferior designer." - Jamie Hyneman, Myth Buster
DGSwaner
I found this circuit www.coolcircuit.com/circuit/rs232_driver/max232.gif but I'm not too familiar with serial communication and wanted to verify that this will work before I give it a try.
The Max232 will do TTL level inputs which I believe to be what the prop requires.
will this work? is there a better option? I know you can use transistors, but I already have the 232's on hand.
Thanks, for the look. I'm a little worried about frying my board.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"A complex design is the sign of an inferior designer." - Jamie Hyneman, Myth Buster
DGSwaner
Comments
-Phil
Thanks!!!!!!!!!!!!!!!!!!!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"A complex design is the sign of an inferior designer." - Jamie Hyneman, Myth Buster
DGSwaner
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
Serial data from the PC Tx Out goes straight to a Propeller Input pin via a 560K, again I've had no problems with my desktop PC which gives out +/-12V.
Providing I keep my speed around 2400-9600, I don't get errors.
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Getting started with the Protoboard? - Propeller Cookbook
Got an SD card? - PropDOS
A Living Propeller FAQ - The Propeller Wiki
(Got the Knowledge? Got a Moment? Add something today!)
Why dont you take a decent 10k?
Even with 10p capacitance this will influence the signals for >1 M BPS only
The "transistor solutions" allow a somewhat safer handling of the voltage reduction, but not much... Main reason to use the transistors is to invert the signal, which however is unneeded in most cases as the software can adjust for it (but not the bootloader!)
David
So you do not need the diode either.
But 500k is somewhat of an overkill.. The signals above 100 kBits/sec should not look so well.. But 9600 Baud is o.k.
I shall connect a Prop with an USB/serial dongle this afternoon.
I shall take:
PC -> 47k (and a diode, being paranoic)
PC <- 100R (being paranoic)
Post Edited (deSilva) : 1/1/2008 12:09:54 PM GMT
and can some one answer a question? the Caps, most of the schematics have a -||- symbol (non polarized) but show a + indicating there it matters others show the -|(- symbol. Do these caps need to be polarized? could someone explain why or have a link on where I can find out why it matters... or not.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"A complex design is the sign of an inferior designer." - Jamie Hyneman, Myth Buster
DGSwaner
Generally larger capacitors (1uF or larger) are electrolytic and are normally polarized. In your case,
only the 10uF capacitor would be polarized and the polarity is pretty obvious in that it's connected
across the power supply.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"A complex design is the sign of an inferior designer." - Jamie Hyneman, Myth Buster
DGSwaner
I think others will give you basic electronic links, I know only (very good) German ones
You see, there is no such thing as "THE" capacitor. The making of capacitors is in fact a black art. Depending on capacity, voltage, accuracy of stated capacity, budget, and lack of annoying side effects you have to chose the right one. This is not so important for the hobbyist as for the working engineer. Highest frequencies need special types, and high voltage AND current (with motors) other types.
For the microcontroller there are mostly three types of significance
- ceramic caps
- polyfilm caps
- electrolytic caps, with the special sub-type tantal caps
Due to the underlying principle ceramics - though close to perfect for most applications - will become very large and expensive for higher capacities; electrolytes on the other hand can be made quite small and cheap, however they have their problemes with higher voltage...
Again, there is not only no such thing as "THE" cap, there is not even a cap at all Each piece is a combination of capacitor, resistor, and inductor. As you may already know, inductors are no good... Electrolytes have a lot of inductivity...
You know how a crystal is drawn? Looks like a cap. That is darn wrong - it's an inductor.
But back to the topic. Ceramics of higher capacity are not affordable and become bulky; the break even point is around 1µF, but one tries to avoid electrolytes as far as possible.
They are kind of batteries: much chemistry inside, and don't like it to be connected the wrong way round... So please have care. When you look tightly at the top of an electrolyte you will notice two crossed lines at the silver top. This is the place where the (expletive) will come out when it cracks.
The lead where to conect the plus is the longer one, as with LEDs. Tantal electrolytes (which are as much smaller as they are expensive) have a clear + sign on them. The standard electrolytes more clearly mark the - side.
After some experience it will be obvious to you from the diagram, where the plus should be, though it is ALWAYS marked!
Post Edited (deSilva) : 1/2/2008 5:32:37 PM GMT
Hanno
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"A complex design is the sign of an inferior designer." - Jamie Hyneman, Myth Buster
DGSwaner