FT232RL CH340G CP2102 Which To Choose ? - EEVblog
EEVblog Electronics Community Forum A Free & Open Forum For Electronics Enthusiasts & Professionals Welcome, Guest. Please login or register.Did you miss your activation email? 1 Hour 1 Day 1 Week 1 Month Forever Login with username, password and session length This topic This board Entire forum Google Bing
- EEVblog Electronics Community Forum »
- General »
- General Technical Chat »
- FT232RL CH340G CP2102 which to choose ?
- Search
Topic: FT232RL CH340G CP2102 which to choose ? (Read 52629 times)
0 Members and 3 Guests are viewing this topic.
vlad777
- Frequent Contributor
- Posts: 350
- Country:
FT232RL CH340G CP2102 which to choose ?
« on: November 04, 2019, 02:58:45 am » I want to program NXP uC LPC810M021FN8FP using FlashMagic software.Now I need to chose the COM to TTL UART converter board.Those boards are based on chips FT232RL CH340G CP2102 and others.FT232RL is FTDI and has good support for windows drivers. (but we had that bricking fiasco)CH340G is the Chinese one.CP2102 is Silicon Labs. Good win driver support.It is also important that they work with 5V and 3.3V UART signaling.Also it would be good if I could use it in other projects as well. So which should I choose, what else to look for?Many thanks. usbttl.jpg (36.75 kB, 650x487 - viewed 780 times.) « Last Edit: November 04, 2019, 03:51:19 am by vlad777 » Logged Mind over matter. Pain over mind. Boss over pain.-------------------------Peabody
- Super Contributor
- Posts: 2175
- Country:
Re: FT232RL CH340G CP2102 which to choose ?
« Reply #1 on: November 04, 2019, 05:02:34 am » The CP2102 is a 3.3V device, and its Tx, DTR, and RTS outputs are 3.3V. I think in most cases 3.3V would be read as high in a 5V system, so they probably would work, but technically not a match. I don't know what happens when you apply 5V from the processor to the Rx pin of the CP2102. So my feeling is that this would be great for a 3.3V system such as your NXP, but maybe not for 5V.My memory is that the FT232 modules on Ebay, etc., have a 3.3V/5V jumper that switches both the Vcc output and the I/O pins between those two levels. If that's correct, that would be a good way to go. I don't think we will have a repeat of the FTDI driver fiasco.I think the CH340 works the same as the FT232. Most Arduino clones use the CH chips, so I think they are fine. By the way, the CH340G requires a crystal. But they make another version that doesn't - CH340C maybe. Loggedmagic
- Super Contributor
- Posts: 7276
- Country:
Re: FT232RL CH340G CP2102 which to choose ?
« Reply #2 on: November 04, 2019, 07:53:02 am » FT232 supports both I/O voltages and has a reasonable selection of baud rates up to 3M.PL2303 is 3.3V which will be interpreted as high by most 5V systems and has 5V tolerant inputs and supports just about any bitrate up to 6M.These are IMO the best USB UARTs from the technical standpoints, but if you want to buy those cheap modules found on auction sites and hobbyist shops and use them on Windows you are running a risk of getting fake chips which may be unsupported by future version of vendor drivers. Not a problem on Linux.So perhaps the CH340 is not a bad choice for Windows. There are even CH340 dongles which support SPI mode 0 and I2C in addition to UART, although some special software is required to use that functionality. IIRC the CH340 can be switched to either 3.3V or 5V and some boards provide a jumper. « Last Edit: November 04, 2019, 07:56:16 am by magic » Loggednctnico
- Super Contributor
- Posts: 28197
- Country:
-
Re: FT232RL CH340G CP2102 which to choose ?
« Reply #3 on: November 04, 2019, 09:45:15 am » The CP2103 has a seperate IO voltage supply and works from 5V down to 1.8V. I have made a USB to UART converter box which has a switch to put it in programming mode (basically connect the control lines for reset and getting into the bootloader). « Last Edit: November 04, 2019, 09:47:05 am by nctnico » Logged There are small lies, big lies and then there is what is on the screen of your oscilloscope.Psi
- Super Contributor
- Posts: 10283
- Country:
Re: FT232RL CH340G CP2102 which to choose ?
« Reply #4 on: November 04, 2019, 10:25:02 am » I chose the CP2102 because it's built in 3.3V reg can officially be used to also power other 3.3V devices (within reason).It meant i didn't need a separate 3.3V reg on my PCB.EDIT: Looks like the FT232RL now says you can do that too, i don't think it did when i picked the CP2102. « Last Edit: November 04, 2019, 10:27:12 am by Psi » Logged Greek letter 'Psi' (not Pounds per Square Inch)Black Phoenix
- Super Contributor
- Posts: 1130
- Country:
Re: FT232RL CH340G CP2102 which to choose ?
« Reply #5 on: November 04, 2019, 02:26:18 pm » I use a CP2102Used to change the bootloader of a router, it supports 3.3V and 5V.https://www.waveshare.com/product/CP2102-USB-UART-Board-micro.htm LoggedGeorgeOfTheJungle
- Super Contributor
- !
- Posts: 2699
- Country:
Re: FT232RL CH340G CP2102 which to choose ?
« Reply #6 on: November 04, 2019, 02:38:47 pm » Quote from: blueskull on November 04, 2019, 10:22:16 amIf time permits, I'd consider WCH CH552 or Silabs EFM8UB, both are programmable MCU with USB stack and peripheral, and you can implement your own serial port with it plus some custom IO functions, so they also serve as board controller if you are designing a more complex board.I'm currently working on a design with CH552E, and I have to say I'm impressed by its feature set and price.MCS-51... isn't that an 8 bitter of the 80's? (it's a rhetorical question)I like the CP2102. The CH340 resets for unknown reasons my esp32s every time I do a screen. « Last Edit: November 04, 2019, 03:01:05 pm by GeorgeOfTheJungle » Logged The further a society drifts from truth, the more it will hate those who speak it.
GeorgeOfTheJungle
- Super Contributor
- !
- Posts: 2699
- Country:
Re: FT232RL CH340G CP2102 which to choose ?
« Reply #7 on: November 04, 2019, 03:08:58 pm » Quote from: blueskull on November 04, 2019, 03:07:32 pmSome drivers assert RTS/DTR signal when being opened and closed. That, if not filtered properly, can trigger ESP32 reset (since RTS and DTR are used to set boot mode and reset).Many ESP32 boards have a logic circuit to inhibit simultaneous RTS/DTR to prevent this from happening, but some don't.Yes, that's exactly what's happening! Logged The further a society drifts from truth, the more it will hate those who speak it.
aix
- Regular Contributor
- Posts: 170
- Country:
Re: FT232RL CH340G CP2102 which to choose ?
« Reply #8 on: November 04, 2019, 03:12:57 pm » Quote from: GeorgeOfTheJungle on November 04, 2019, 02:38:47 pmThe CH340 resets for unknown reasons my esp32s every time I do a screen.ESP32 uses DTR and RTS pins to trigger an automatic reset to enter the bootloader:https://github.com/espressif/esptool/wiki/ESP32-Boot-Mode-Selection#automatic-bootloaderMaybe tweaking the flow control settings might help? https://stackoverflow.com/questions/41266001/screen-dev-ttyusb0-with-different-options-such-as-databit-parity-etc Logged The following users thanked this post: GeorgeOfTheJungle
GeorgeOfTheJungle
- Super Contributor
- !
- Posts: 2699
- Country:
Re: FT232RL CH340G CP2102 which to choose ?
« Reply #9 on: November 04, 2019, 04:17:45 pm » Quote from: aix on November 04, 2019, 03:12:57 pmQuote from: GeorgeOfTheJungle on November 04, 2019, 02:38:47 pmThanks! I don't know, but stty -a and -e return the same for both:Code: [Select]10-YOSEMITE:~ admin$ stty -e -f /dev/cu.wchusbserialfd130 speed 9600 baud; 0 rows; 0 columns;lflags: -icanon -isig -iexten -echo -echoe -echok -echoke -echonl-echoctl -echoprt -altwerase -noflsh -tostop -flusho -pendin-nokerninfo -extprociflags: -istrip -icrnl -inlcr -igncr -ixon -ixoff -ixany -imaxbel -iutf8-ignbrk -brkint -inpck -ignpar -parmrkoflags: -opost -onlcr -oxtabs -onocr -onlretcflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow-dtrflow -mdmbufdiscard dsusp eof eol eol2 erase intr kill lnext ^O ^Y ^D <undef> <undef> ^? ^C ^U ^V min quit reprint start status stop susp time werase 1 ^\ ^R ^Q ^T ^S ^Z 0 ^W 10-YOSEMITE:~ admin$ stty -e -f /dev/cu.SLAB_USBtoUART speed 9600 baud; 0 rows; 0 columns;lflags: -icanon -isig -iexten -echo -echoe -echok -echoke -echonl-echoctl -echoprt -altwerase -noflsh -tostop -flusho -pendin-nokerninfo -extprociflags: -istrip -icrnl -inlcr -igncr -ixon -ixoff -ixany -imaxbel -iutf8-ignbrk -brkint -inpck -ignpar -parmrkoflags: -opost -onlcr -oxtabs -onocr -onlretcflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow-dtrflow -mdmbufdiscard dsusp eof eol eol2 erase intr kill lnext ^O ^Y ^D <undef> <undef> ^? ^C ^U ^V min quit reprint start status stop susp time werase 1 ^\ ^R ^Q ^T ^S ^Z 0 ^W When flashing (with esptool) both do it fine and manage to /reset and pull gpio0 to GND to enter the bootloader when needed as intended, but with a 'screen <port> 115200' the ch340 /resets (GRRR!) and the cp1202 doesn't. Logged The further a society drifts from truth, the more it will hate those who speak it.The CH340 resets for unknown reasons my esp32s every time I do a screen.ESP32 uses DTR and RTS pins to trigger an automatic reset to enter the bootloader:https://github.com/espressif/esptool/wiki/ESP32-Boot-Mode-Selection#automatic-bootloaderMaybe tweaking the flow control settings might help? https://stackoverflow.com/questions/41266001/screen-dev-ttyusb0-with-different-options-such-as-databit-parity-etc
vlad777
- Frequent Contributor
- Posts: 350
- Country:
Re: FT232RL CH340G CP2102 which to choose ?
« Reply #10 on: November 05, 2019, 11:09:41 pm » I ended up buying FTDI.Check out my new thread:https://www.eevblog.com/forum/chat/programming-nxp-uc/ Logged Mind over matter. Pain over mind. Boss over pain.-------------------------Dabbot
- Regular Contributor
- Posts: 192
- Country:
Re: FT232RL CH340G CP2102 which to choose ?
« Reply #11 on: November 06, 2019, 10:38:34 am » How about the FT231X?- FTDI- Cheaper and simpler than the FT232RL- 5v and 3v3- 300 baud to 3M baudhttps://www.ftdichip.com/Support/Documents/DataSheets/ICs/DS_FT231X.pdf Logged The following users thanked this post: Omega Glory, NivagSwerdna, Renaud- Search
Share me
Smf- EEVblog Electronics Community Forum »
- General »
- General Technical Chat »
- FT232RL CH340G CP2102 which to choose ?
EEVblog Main Site | EEVblog on Youtube | EEVblog on Twitter | EEVblog on Facebook | EEVblog on Odysee |
- SMF 2.0.19 | SMF © 2021, Simple MachinesSimple Audio Video EmbedderSMFAds for Free Forums | Powered by SMFPacks Advanced Attachments Uploader Mod
- XHTML
- RSS
- Mobile
- Mobile
- WAP2
Từ khóa » Ch340c Vs Ch340g
-
USB Serial: What Is Ch340? - Latest Open Tech From Seeed
-
Why Do Some Arduino-compatible Boards Provide A Crystal For The ...
-
[PDF] USB To Serial Chip CH340 - MPJA
-
Which NodeMcu Module? CH340 Vs CH340G Vs CP1202
-
CH340C - USB To Serial Chip - SOP-16 150mil - Replace CH340G
-
SparkFun Serial Basic CH340C Hookup Guide
-
[PDF] USB To Serial Chip CH340 - Sparkfun
-
USB To Serial Port Chip CH340 - NanjingQinhengMicroelectronics
-
[PDF] USB To Serial Chip CH340
-
Arduino Uno R3 Vs CH340 - Maker Portal
-
CP2102 V.S CH340 - General Electronics - Arduino Forum
-
Ch340g Ch340c Ch340 Usb To Ttl Converter Serial Port Adapter ...
-
[PDF] USB 转串口芯片CH340