What is the preferred USB interface circuit design for the Prop?
Don M
Posts: 1,653
No doubt there have been numerous designs and with Tracy's latest post concerning some issues- http://forums.parallax.com/showthread.php/146831-Fuzzy-tail-on-RESET-pulse-from-FT232R it got me to looking further into what is being used successfully.
On some of my projects I have used the FT232RL along with a logic gate 74LVC2G07 (as suggested by Phil).
I just looked at the latest Prop Project development board and see they are now using the FT231XS. First of all the FT231 is half the cost ($2.12 vs $4.50 DigiKey singles) of the FT232 so that gets my vote if it is a stable design. I'm trying to finalize a design so I'm looking for some ideas here to finish up.
Here's what has been suggested from some posts and what I see in some of the diagrams:
1. Using a 1uf instead of a .1uf on VCCio of FTDI chip
2. The cap from DTR change to .01uf instead of .1uf
3. Use a combination of 10K / 270 ohm resistor in base circuit of reset transistor
Not sure if the logic gate is needed? I had never had any problems as reported by some with the random resetting issue. Not sure if the newer FT231 may solve that?
Also I see now a mosfet switch being used to power a board and being controlled by the FTDI chip once enumeration and communication has been established. What are the advantages / disadvantages of using the mosfet other than isolation between power sources which a diode could do. The mosfet would have a lower voltage insertion loss than a diode but what else?
On some of my projects I have used the FT232RL along with a logic gate 74LVC2G07 (as suggested by Phil).
I just looked at the latest Prop Project development board and see they are now using the FT231XS. First of all the FT231 is half the cost ($2.12 vs $4.50 DigiKey singles) of the FT232 so that gets my vote if it is a stable design. I'm trying to finalize a design so I'm looking for some ideas here to finish up.
Here's what has been suggested from some posts and what I see in some of the diagrams:
1. Using a 1uf instead of a .1uf on VCCio of FTDI chip
2. The cap from DTR change to .01uf instead of .1uf
3. Use a combination of 10K / 270 ohm resistor in base circuit of reset transistor
Not sure if the logic gate is needed? I had never had any problems as reported by some with the random resetting issue. Not sure if the newer FT231 may solve that?
Also I see now a mosfet switch being used to power a board and being controlled by the FTDI chip once enumeration and communication has been established. What are the advantages / disadvantages of using the mosfet other than isolation between power sources which a diode could do. The mosfet would have a lower voltage insertion loss than a diode but what else?
Comments
After reading a bit further into the FT231 spec sheet I see why they suggest this method. It has to do with the USB suspend mode so that the current draw is minimized.
And here is the one from FTDI's data sheet-
Looks like one of them has the drain and source reversed. Which one is correct?
Looking at the diagram of the suggested mosfet from the data sheet- IRLML6402-
It looks to me like the internal diode is going to allow current to flow in the reverse direction without the mosfet being on.
It looks to me as though the 5V from the USB port will just flow right on through whether the mosfet is turned off or on. The only thing keeping the external power from flowing back into the USB 5V is the schottky diode.
Edit: here is a more complete drawing-
In some MOSFETs, as in the IRLML6402, they add a extra zener protection diode used to limit or snub the maximum Drain to Source voltage. In this case this diode also enhances the reverse current flow capability of the intrinsic body diode.
Duane J
Parallax do have the D2 Schottky Diode to prevent that.
Ftdi uses a softstart curcuit.
I would use a single Power-Switch to do it all , soft-start, reverse current blocking and 1.5A current limiter.
http://www.mouser.com/ds/2/115/AP2161-6258.pdf
Here's their pinout for the TX & RX led's and the PWREN-
And here's the pin description from the data sheet-
I would think that they are using them as stock and not re-programming them.
Parallax?