Author Topic: USB-to-UART vs USB-to-Serial?  (Read 14421 times)

0 Members and 1 Guest are viewing this topic.

Offline casper.bangTopic starter

  • Frequent Contributor
  • **
  • Posts: 311
  • Country: dk
  • Pro SE, amateur EE.
    • BangBits
USB-to-UART vs USB-to-Serial?
« on: October 31, 2013, 11:12:42 am »
I'm about to write some code for interfacing with an RFID/NFC/Mifare reader, which consists of a Silicon Labs CP2102 USB-to-UART bridge IC, a Mifare RC522 RF chip and an ATMega8A sitting in between.

I'm not fully well versed in chip interconnect technologies, so could a kind sound explain to me the difference between a USB-to-UART bridge like the mentioned CP2102 compared to a classic USB-to-serial bridge IC like i.e. a FTDI FT232? Can the USB-to-UART simply be seen as a subset of USB-to-serial, since serial usually also includes some RTS, DTS pins etc.?
 

Offline Simon

  • Global Moderator
  • *****
  • Posts: 17816
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: USB-to-UART vs USB-to-Serial?
« Reply #1 on: October 31, 2013, 11:15:03 am »
I always thought usart and serial were the same thing but I'm no expert.
 

Offline Bored@Work

  • Super Contributor
  • ***
  • Posts: 3932
  • Country: 00
Re: USB-to-UART vs USB-to-Serial?
« Reply #2 on: October 31, 2013, 11:23:41 am »
Words are sometimes a bit muddy here.

To UART (or if it is an Atmel device USART) means the conversion is to logic-level serial. The logic-level of the MCU.

To serial could mean it is to logic-level serial, or to real full RS232 voltages. The later ones being a bit impractical, because you can't directly connect RS232 to an MCU, you need an aditional level converter like a MAX232.
I delete PMs unread. If you have something to say, say it in public.
For all else: Profile->[Modify Profile]Buddies/Ignore List->Edit Ignore List
 

Offline alxnik

  • Regular Contributor
  • *
  • Posts: 81
  • Country: 00
Re: USB-to-UART vs USB-to-Serial?
« Reply #3 on: October 31, 2013, 11:51:49 am »
Indeed, words get muddy.

UART and USART (also supports synchronous communication, haven't seen an application using it though) are lower level designs than what we actually know as serial or rs232 etc. In essence, they are shift registers. Over time more features were integrated in them such as hardware flow control or modem control signals (most popular device at the time). However UART/serial description may be interchangable. The most common chip in hardware serial devices in older PCs was a UART (16550) and the FTDI/prolific chips can be described as UARTs.


Now about the CP2102, I use it to program arduinos and I know that it has modem control signals which for the arduino are used to auto-reset the atmega after programming. For all intended uses that I know of/have used in the past, CP2102 should be able to do the things that FTDI/prolific chips can do. The main difference is that CP2102 is cheeeep, (or probably cloned?) and usually used in lower end devices.
 

Offline kayvee

  • Regular Contributor
  • *
  • Posts: 151
  • Country: za
Re: USB-to-UART vs USB-to-Serial?
« Reply #4 on: October 31, 2013, 12:11:11 pm »
The CP21xx and the FTDI devices are pretty much similar devices, but yes they do offer a price advantage over the FTDI for some reason.  The CP2102 is pretty simple and straight forward to use.

A number of years ago the CP2102 had the advantage over the FTDI as it had the internal oscillator whereas the FTDI required an external oscillator.  However it was then only available in the QFN package which was less favoured for development/small scale/hobbyist uses.
 

Offline casper.bangTopic starter

  • Frequent Contributor
  • **
  • Posts: 311
  • Country: dk
  • Pro SE, amateur EE.
    • BangBits
Re: USB-to-UART vs USB-to-Serial?
« Reply #5 on: October 31, 2013, 12:20:37 pm »
Now about the CP2102, I use it to program arduinos and I know that it has modem control signals which for the arduino are used to auto-reset the atmega after programming.

Ok, so in my case then, the CP2102 is probably little more than a USB wrapper around the ATMega's own USART pins (I guess that would explain why I can identify port-speed commands to be used through the *existing* serial connection?!). Thanks guys for the quick feedback. :)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf