Comparison of Several Solutions for Extending USB Connections
USB (Universal Serial Bus) is now recognized as the preferred connection solution for many common off-the-shelf peripherals such as keyboards, mice, printers and storage devices. For equipment manufacturers dedicated to industrial and consumer markets, USB has also become a preferred choice for their connection needs to the PC. In fact, for any application using a standard PC as a controller device, the benefits of the USB interface are obvious. Although high-volume, short-life cycle general peripherals can do without USB interfaces, some customized applications with longer life cycles need to add USB connections to solve the problem of modern PCs lacking traditional connection interfaces.
Among these interfaces that are not supported by modern PCs, the RS-232 serial interface is a typical example. From a software perspective, RS-232 is easier to implement than USB and still meets the needs of many applications. However, most modern PCs have removed the RS-232 interface.
Simple serial communication solutions are often cheaper than complex alternatives, such as RS-232 interfaces, which cost less than USB interfaces. The basic components of RS-232 solutions include a UART and a driver and a simple handshake protocol, which can be easily implemented even in microcontrollers with very limited resources. Moreover, the characteristics of RS-232 interfaces make it a robust short-distance point-to-point communication solution that can withstand harsh working environments. Such requirements are very typical in many industrial control or measurement implementations. For these reasons, RS-232 interfaces are still active in many application areas.
. Due to the lack of RS-232 support in modern PCs, the support of RS-232 in PC-as-controller applications is disappointing. The options for implementing RS-232 peripheral support seem to be few: find a PC with a PCI card that provides RS-232 or redesign the peripheral to support USB interface type. Replacing RS-232 with USB requires a lot of design work. These impacts are not only reflected in the hardware, but more importantly, they bring very huge changes to the embedded software.
There is now a third option available for supporting RS-232 peripherals on modern PCs. This approach requires less engineering work than the other options and maintains the integrity and stability of legacy devices. The benefit of this approach is that it provides a transparent conversion between USB and RS-232 interfaces. This solution is supported by a range of chips from FTDI that eliminate the complexity associated with using standard UART ports to implement embedded USB support. This technology provides a simple and low-cost solution for supporting legacy RS-232 peripherals. Figure 1 shows how a small PCB can use FTDI chips to provide this solution.
Comparison of Several Options for Extending USB Connections
Figure 1: A traditional RS-232 modem connected to a modern PC.
The fifth generation of chips in the FTDI family now supports USB 1.0 and USB 2.0 protocols (low speed, full speed and high speed). These devices provide a range of asynchronous and synchronous serial interface solutions, including UART interfaces (RS-232/RS-422/RS-485) and FIFOs. In addition to integration at the PCB level, these chips can be used to make USB to RS-232 interface conversion cables between PCs and peripherals. The chip in the cable completes all the interface conversion work between the PC and the peripherals. Since the baud rate of USB is much higher than the baud rate of RS-232 (6000:1), these devices must not only provide a compatible USB interface, but also be able to buffer, analyze and reassemble data to meet the specifications of the RS-232 protocol. These are based on FTDI's proprietary IP implementation, including a USB protocol engine, a UART controller, a serial interface engine and a USB transceiver. Figure 2 shows the block diagram of one of the chips, the FT232R.
Comparison of several solutions for extending USB connections
Figure 2: Block diagram of the FT232R architecture.
The software running on the original device does not need to be changed, but the application running on the PC needs to know that a USB connection is being used instead of an RS-232 connection, just in terms of the COM port being used. When a USB to RS-232 adapter cable is connected to the PC's USB port, the PC's operating system creates a virtual COM port. The application communicates with the USB interface through this virtual COM port without any modification to the application on the PC. The application only needs to know the specific COM port to which the adapter cable is connected to communicate with it. No changes are required to the peripheral's software or hardware. The software code listed in Figure 3 gives an example of how an application can determine the COM port to which it is connected, and it also shows some sample code to configure the UART.
Comparison of several solutions for extending USB connections
Figure 3: Application software reference code based on VCP driver.
USB is easy to implement on PCs. Most operating systems for desktops or laptops, including Linux, now support USB as standard. But in embedded devices, the use of USB interfaces is still determined by whether it is easily supported by the microcontroller in the embedded device. This means integrating USB interfaces on the microcontroller like integrating UART, SPI and I2C interfaces. This will make the microcontroller more complex and therefore put cost pressure on the device integration manufacturer.
However, using FTDI's USB interface chip, the embedded device only needs to use the UART interface on the microcontroller to communicate with the USB chip to achieve the USB interface connection. As mentioned earlier, the heavy USB protocol is borne by the dedicated hardware and firmware integrated in the FTDI device. So now by sending some simple commands through a standard COM port, any embedded device using a microcontroller can easily support USB.
Previous article:Comparison of CMOS and CCD image sensors for surveillance
Next article:Digital interface series articles: SPI bus
- Popular Resources
- Popular amplifiers
- High signal-to-noise ratio MEMS microphone drives artificial intelligence interaction
- Advantages of using a differential-to-single-ended RF amplifier in a transmit signal chain design
- ON Semiconductor CEO Appears at Munich Electronica Show and Launches Treo Platform
- ON Semiconductor Launches Industry-Leading Analog and Mixed-Signal Platform
- Analog Devices ADAQ7767-1 μModule DAQ Solution for Rapid Development of Precision Data Acquisition Systems Now Available at Mouser
- Domestic high-precision, high-speed ADC chips are on the rise
- Microcontrollers that combine Hi-Fi, intelligence and USB multi-channel features – ushering in a new era of digital audio
- Using capacitive PGA, Naxin Micro launches high-precision multi-channel 24/16-bit Δ-Σ ADC
- Fully Differential Amplifier Provides High Voltage, Low Noise Signals for Precision Data Acquisition Signal Chain
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Gallium nitride substrate production technology and equipment
- Safety temperature standards for main components of switching power supplies
- Auxiliary trainer for plank and push-up exercises
- MicroPython will add serial port interrupt function
- MOS tube
- C6678 on-chip storage space allocation mechanism
- Game: Help Blinka get out of various difficulties
- The difference between IAR and Keil development tools
- EEWORLD University Hall ---- Digital VLSI Design Tsinghua University Li Xiangyu
- e-Network 618 mid-year promotion, new customers can save 10% on their first order, and free shipping for orders over 200!