[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-561716-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-561716-en":130,"doc-similar-561716":153},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","atme-l-applications-journal-building-a-rs-232-to-usb-bridge-using-a-at89c5131-microcontroller","ATME L APPLICATIONS JOURNAL - Building a RS-232 to USB Bridge Using a AT89C5131 Microcontroller","","Building an RS-232 to USB bridge using an AT89C5131 microcontroller, the article explains why USB is replacing legacy serial interfaces while still supporting legacy applications. It describes how a USB CDC (Communication Device Class) virtual COM port can be presented to the PC so existing COM-based software need not change. The piece covers the required gateway architecture, Windows driver loading via INF files, and embedded firmware updates such as buffering UART data for safe USB transfer.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/atme-l-applications-journal-building-a-rs-232-to-usb-bridge-using-a-at89c5131-microcontroller/561716/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/atme-l-applications-journal-building-a-rs-232-to-usb-bridge-using-a-at89c5131-microcontroller/561716.png","ImageObject",300,407,{"name":42,"@type":43},"Ben ","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-26","2026-10-12",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",10,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"Why is an RS-232 to USB bridge needed even as USB becomes dominant?","Question",{"text":63,"@type":64},"Many legacy applications still rely on RS-232. The bridge makes USB appear like an RS-232 interface, reducing the need to change existing PC software and embedded hardware.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How does the PC-side software stay compatible with the USB connection?",{"text":68,"@type":64},"The USB device is presented as a COM port using the USB CDC drivers. The PC views the USB device as a COM port, so the application does not need to be changed.",{"name":70,"@type":61,"acceptedAnswer":71},"What firmware change is required on the embedded side to handle USB readiness?",{"text":72,"@type":64},"The firmware must add an intermediate buffer to store characters received from the UART, preventing data loss when the USB cannot handle incoming data in time.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},561716,1792014300,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,105,110,115,120,123,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":103,"slug":104},6,50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":112,"show_sort_weight":113,"slug":114},8,"Research & Report",30,"research-report",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":118,"slug":119},9,"Religion & Spirituality",20,"religion-spirituality",{"id":118,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":118,"slug":122},"World Cup","world-cup",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":55,"slug":125},"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":97,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":102,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":26,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":12,"update_tm":143,"read_time":97,"preview_page_count":26,"preview_urls":144},2336478951081,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","A T M E L A P P L I C A T I O N S J O U R N A L  \nA SINGLE USB PORT CAN BE USED TO CONNECT UP TO 127 PERIPHERALS DEVICES WITHOUT HAVING TO ADD AN ADAPTER OR EVEN TURNOFF THE COMPUTER.  \n89C5131 USB Microcontoller  \nAtmel offers an extensive portfolio of USB products that include USB hubs, microcontollers with integrated USB interface, and embedded USB hosts.  \nThese devices are designed specifically to hide the complexities of USB protocol form your embedded design. The availability of the USB firmware library, sample code, and software design tools such as the USB Wizard (a GUI based source code generator) further reduces your learning curve and ensures the shortest design.  \nBuilding a RS-232 to USB Bridge Using a AT89C5131 Microcontroller  \nBy Michael Panfil  \nLong live the RS-232 COM port! In the world of personal computers, the RS-232 COM port is disappearing, especially with laptops. The age-old serial port interface is being replaced by the USB, a bus that supports higher speeds and is significantly more flexible. The final USB-capable application can use the flexibility of the USB with its data buffering and automatic flow control. The USB link offers a power supply for the application. The overwhelming success of this simple universal serial PC interface is also due to its plug-and-play and hot plugging capabilities. A single USB port can be used to connect up to 127 peripherals devices without having to add an adapter or even turn off the computer. Furthermore, USB is expected to completely replace other serial, parallel and game interfaces in PC and peripherals markets. USB connectivity can be found in a wide range of devices and markets nowadays including industrial equipment and data acquisition, security applications (i.e. fingerprint reader, ID mouse, smart card reader), consumer electronics (i.e. Flash disk), communication equipment ([i.e. mobile](i.e. mobile) phone), and PC and peripherals (i.e. multimedia key-board, audio and game peripherals).  \nAs the world embraces this transition to USB, thereis still a fundamental, underlying issue-There are still many legacy applications that use the RS-232  \nstandard. The obvious solution is to make the USB bus appear as an RS-232 interface (Figure 1). The obvious advantages of this masquerade are that there will be no need to change the PC application and fewer modifications are required for the embedded hardware and software.  \nMaking the Switch  \nThere are several ways to make the switch from RS-232 to USB, but the aim is to perform this switch with a minimum time and effort. With the Atmel USB RS-232 Virtual COM port library, you can easily build an RS-232 to USB gateway. This gateway uses the USB Communication Device Class (CDC) drivers to take advantage of the installed PC RS-232 software to talk over the USB. The CDC document, available at [www.usb.org](www.usb.org), describes a way to implement devices such as ISDN modems and virtual COMports. The CDC class is implemented in all releases of Windows, from Windows 98SE to Windows XP.  \nThe 89C5131 is a high-performance Flash version of the 80C51 single-chip 8-bit micocontroller with full speed USB funcions. It features a full-speed USB compatible with the USB specifications Version 1.1 and 2.0. This module integrates the USB tranceivers with a 3.3V voltage regulator and the Serial Interface Engine with Digital Phase Locked Loop and 48 MHz clock recovery.  \n2001 2002 2003 2004 2005 2006  \nForecast for USB-enabled Devices Source: In-Stat/MDR 2002  \n[www.atmel.com](www.atmel.com)  \nFigure 1: The aim ofa Virtual COMport implementation is to move from a real UART system to a UART-USB system  \n21  \npage  \nThe architecture of this gateway requires very few modifications. On the PC side, there is nothing to  \nchange! The PC views the USB device as a COMport and the application doesn’t need to be changed. On the embedded side, UART USB drivers replace the UART driver. The embedded application simply calls UART-USB functio","cbCaipyVp4ZsekpB","https://ap.wps.com/l/cbCaipyVp4ZsekpB","pdf",194317,"English","# Introduction\n## USB benefits and legacy RS-232 challenge\n# Making the Switch\n## USB RS-232 Virtual COM port library and CDC\n## 89C5131 USB microcontroller features\n# Gateway Architecture and Driver Loading\n## INF files, VID/PID, and endpoints\n# Modifying Embedded Firmware\n## Intermediate buffer for UART data","[{\"question\":\"Why is an RS-232 to USB bridge needed even as USB becomes dominant?\",\"answer\":\"Many legacy applications still rely on RS-232. The bridge makes USB appear like an RS-232 interface, reducing the need to change existing PC software and embedded hardware.\"},{\"question\":\"How does the PC-side software stay compatible with the USB connection?\",\"answer\":\"The USB device is presented as a COM port using the USB CDC drivers. The PC views the USB device as a COM port, so the application does not need to be changed.\"},{\"question\":\"What firmware change is required on the embedded side to handle USB readiness?\",\"answer\":\"The firmware must add an intermediate buffer to store characters received from the UART, preventing data loss when the USB cannot handle incoming data in time.\"}]","ATME L APPLICATIONS JOURNAL - Building a RS-232 to USB Bridge Using a AT89C5131 Microcontroller | PDF",1791806722,[145,149],{"page_no":22,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/d865ed9a2e4b30cc0db1a67cbab928fb.webp",983,1272,{"page_no":26,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/3ad64276f558857bc0be23ff617b5e90.webp",982,1270,{"list":154,"token":11},[155,161,168,174,180,187,193,199,205,212],{"doc_id":156,"doc_title":157,"file_type":137,"home_preview_img_url":158,"slug":159,"view_count":127,"category_name":29,"create_tm":160},651508,"SWT3-31-HU-TR - 3x1 4K60 USB-C/HDMI Switcher Extender - User Manual","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229973497398/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796213339&Signature=FKGdFe%2Bu1PbAAmyQYSknf3Q59XU%3D","swt3-31-hu-tr-3x1-4k60-usb-chdmi-switcher-extender-user-manual",1792874675,{"doc_id":162,"doc_title":163,"file_type":137,"home_preview_img_url":164,"slug":165,"view_count":166,"category_name":29,"create_tm":167},505898,"DS2278 Digital Scanner - Quick Start Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229933239115/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796213339&Signature=XgNu3yexolihuByQ%2F0NOSTcFcl4%3D","ds2278-digital-scanner-quick-start-guide",14,1791155680,{"doc_id":169,"doc_title":170,"file_type":137,"home_preview_img_url":171,"slug":172,"view_count":55,"category_name":29,"create_tm":173},664522,"Tektronix TDS3052B Programming Manual - Programmer Manual","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229982281836/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796213339&Signature=ILVbhguIOxsl3Tb8dLf3BbDbIZg%3D","tektronix-tds3052b-programming-manual-programmer-manual",1793258211,{"doc_id":175,"doc_title":176,"file_type":137,"home_preview_img_url":177,"slug":178,"view_count":30,"category_name":29,"create_tm":179},735377,"EXTERNAL RS232 CONTROL GUIDE - RS-232 COMMANDS - Pin Configuration - Data Parameters","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230034347032/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796213339&Signature=PaPP6SLE6UeMOS2io5Tezn1YTEg%3D","external-rs232-control-guide-rs-232-commands-pin-configuration-data-parameters",1795460770,{"doc_id":181,"doc_title":182,"file_type":137,"home_preview_img_url":183,"slug":184,"view_count":185,"category_name":29,"create_tm":186},670889,"Arduino Uno - Datasheet","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988352154/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796213339&Signature=hh652mGvRIpBBupVcgbOsAM9x1A%3D","arduino-uno-datasheet",17,1793572479,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":116,"category_name":29,"create_tm":192},642950,"Jabra Evolve 75 - User manual","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229970553599/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796213339&Signature=xOhRp2dfaKAncN%2Foh24I9L4WEiE%3D","jabra-evolve-75-user-manual",1792723293,{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":26,"category_name":29,"create_tm":198},720332,"Piksi Datasheet - Product Overview and Technical Architecture","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023672283/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796213339&Signature=zn1ciLRkM2exOwlMUEGj0Ka1NfI%3D","piksi-datasheet-product-overview-and-technical-architecture",1795036632,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":106,"category_name":29,"create_tm":204},699878,"RS-232 To TTL Conveter (MAX3232IDR) - Module Version - Version","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011994901/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796213339&Signature=csNd%2FKYxkbTGHyoUShjn6tFUYyk%3D","rs-232-to-ttl-conveter-max3232idr-module-version-version",1794512263,{"doc_id":206,"doc_title":207,"file_type":137,"home_preview_img_url":208,"slug":209,"view_count":210,"category_name":29,"create_tm":211},289669,"DAT3024 - Application Note - Using DAT3000Modbus software to setup DAT3000 series devices","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229903423361/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796213339&Signature=fSFP0Ur2XACbaXP7tGRS047dtxs%3D","dat3024-application-note-using-dat3000modbus-software-to-setup-dat3000-series-devices",21,1789636253,{"doc_id":213,"doc_title":214,"file_type":137,"home_preview_img_url":215,"slug":216,"view_count":97,"category_name":29,"create_tm":217},720253,"Arduino Nano Technical Overview - Pinout, Power, Memory, Communication","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024390057/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796213339&Signature=gNnJxdGdYLqauC%2BLGysudDg9IbA%3D","arduino-nano-technical-overview-pinout-power-memory-communication",1795035966]