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 ?
« previous next »
  • Print
  • Search
Pages: [1] Go Down

Author Topic: FT232RL CH340G CP2102 which to choose ? (Read 52629 times)

0 Members and 3 Guests are viewing this topic.

Offline vlad777Topic starter

  • Frequent Contributor
  • **
  • Posts: 350
  • Country: 00
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.-------------------------

Offline Peabody

  • Super Contributor
  • ***
  • Posts: 2175
  • Country: us
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. Logged

Offline magic

  • Super Contributor
  • ***
  • Posts: 7276
  • Country: pl
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 » Logged

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 28197
  • Country: nl
    • NCT Developments
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.

Online Psi

  • Super Contributor
  • ***
  • Posts: 10283
  • Country: nz
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)

Offline Black Phoenix

  • Super Contributor
  • ***
  • Posts: 1130
  • Country: hk
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 Logged

Offline GeorgeOfTheJungle

  • Super Contributor
  • ***
  • !
  • Posts: 2699
  • Country: tr
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 am
If 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.

Offline GeorgeOfTheJungle

  • Super Contributor
  • ***
  • !
  • Posts: 2699
  • Country: tr
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 pm
Some 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.

Offline aix

  • Regular Contributor
  • *
  • Posts: 170
  • Country: gb
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 pm
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 Logged The following users thanked this post: GeorgeOfTheJungle

Offline GeorgeOfTheJungle

  • Super Contributor
  • ***
  • !
  • Posts: 2699
  • Country: tr
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 pm
Quote from: GeorgeOfTheJungle on November 04, 2019, 02:38:47 pm
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
Thanks! 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.

Offline vlad777Topic starter

  • Frequent Contributor
  • **
  • Posts: 350
  • Country: 00
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.-------------------------

Offline Dabbot

  • Regular Contributor
  • *
  • Posts: 192
  • Country: au
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
  • Print
  • Search
Pages: [1] Go Up « previous next »

Share me

Digg Facebook SlashDot Delicious Technorati Twitter Google Yahoo Smf
  • EEVblog Electronics Community Forum »
  • General »
  • General Technical Chat »
  • FT232RL CH340G CP2102 which to choose ?
There was an error while thanking Thanking...
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