Serial port connection
ambroxio
Posts: 17
Hello. I just received my first propeller chips :-D ... I wasnt able to buy the propplug so I am going to set up a serial port connection circuit.
My question is, has anyone here used this before and would you recommend the schematic in the datasheet (which is quite simple, a pair of transistors, a few resistors and a cap) or this one http://www.extremecircuits.net/2010/06/programming-propeller-ic_17.html
I guess both work, but which is better and is there some hint you could give so I dont have any problems with it . thanks
My question is, has anyone here used this before and would you recommend the schematic in the datasheet (which is quite simple, a pair of transistors, a few resistors and a cap) or this one http://www.extremecircuits.net/2010/06/programming-propeller-ic_17.html
I guess both work, but which is better and is there some hint you could give so I dont have any problems with it . thanks
Comments
I made up a separate PCB that goes to a 5 way header socket, this allows for the extra (fifth) connection for the 3.3 Volts from the Prop board to power the interface. It is great not having to build the same bit of circuit over and over again. I put a jumper link into the RESET output line just in case this gets toggles by the PC when serial comms is being done. There has been a discussion about the use of a PNP transistor instead of the NPN one on the reset line, but the usuall NPN (as in the diagrams) gives no problems.
Using a MAX3232 chip does give true '232 voltages, which the transistor interface does not. It all depends what the interface will get used for.
Don't connect the 4.7k resistor for the RX line to DTR but to Ground (red line in the attached schematic). Otherwise you are ony able to program the Propeller, but not to communicate with a Terminal or other PC applications (because they have the DTR line normally in the wrong state).
Andy
BTW . Im having trouble finding a 78L33, is it ok to do the regulation with a zener diode or is it ok with a 3volts regulator ¿
Depending on the current you want to pull out of IO-pins the zener-diode and the current-limiting resistor have to be pretty big
a 7833 would be a 33V-regulatot not a 3.3V
you can get them from parallax
http://www.parallax.com/StoreSearchResults/tabid/768/List/0/SortField/4/ProductID/473/Default.aspx?txtSearch=3.3V+regulator
best regards
Stefan
Easiest to use a 3V3 regulator. Just be careful with the pinout as some regulators use different pinouts. You will also need a cap on the input and output pins of the regulator so see the relevant regulator specs for values.
anyway i just remembered i could use a lm317 with two resistors
Welcome also to the forum. We are a very friendly bunch. I can recount a personal story here - Cluso99 lives several thousand kilometres from me but he once flew over to my city as he was visiting family and came to visit and personally helped solve a number of problems I had with the Propeller chip. You don't get more friendly than that!
well I am testing the circuit right now and the propeller tool isnt finding the chip :S .. I have the 3.3 volt power supply, the 3transistor circuit and the prop with a crystal and a eeprom ... what should I test first to get to the problem ¿¿
If you're using a direct serial connection to your PC's serial port, make sure the cable is wired correctly. If you're using a USB to serial adapter, remember that many of these adapters don't implement DTR correctly and won't work with the Propeller Tool. You can't use the default Windows USB driver and have to use the driver for the specific adapter.
The xtal is not used to find the prop or download, so that will not be the problem.
The eeprom is not required to find the prop or download, so that will not be the problem either.
Therefore, the prop circuit can be extremely basic to get running.
Have you connected both sets of power and ground pins of the prop? And do you have capacitors across them?
Have you connected BOE to Gnd?
The prop tool found it now . I think maybe something of that was bad wired thanks for the help I'll play a little with the thing now
I am gonna try BST later though . maybe its a prop tool or a windows issue
That give me thinking that You maybe have BAD EEProm (Propeller need at last 32KBytes EEProm).
I just watched the datasheet of my eprom and i didnt notice it isnt 32Kbytes but 32Kbits -____-
thanks for the help
TX -5.62V
RX -1.92V
DTR -5.61V
RESn of the propeller is getting 0Volts...
can these voltage levels be causing the problem? what sholud i do? should i try implement the circuit with 2 transistors?