基于PL2303的USB转串口制作

合集下载

USB转串口PL2303

USB转串口PL2303

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
改善pl2303传输速率:
其实市面上有把贴片PL-2303引脚引出来的PCB卖,带芯片6RMB左右。

PL-2303hx买回来好几天,一直没有敢动手做,原因很简单,PL-2303hx 这块IC实在太小了,根本不好焊接。

今晚看着图纸,花了半个小时,终于把所需的管脚都引出来了,下一步,做焊元件,就简单多了。

全部焊完用了1个半小时,插到电脑的usb接口,一次性成功。

现总结一下:
1、电脑的原有的串口,叫作RS232接口,这是一种cmos接口,接口电压从-15到+15v
之间,而单片机C51都是TTL电平,电平电压只有0V 或是5V两种。

用这个电脑做出来的就是单片机上用的TTL电平,所以,不要再接MAX232芯片了。

这是它的一大好处。

2、做这个电路前,从网上找了好几天的资料,一直搞不懂用那个图合适,不过,现在我终于可以肯定下面这张图,一定可用,我用单片机做了试验,完全可以用。

速度也挺快的。

记住这张图吧,有想做,但做不出来的朋友,就QQ我吧QQ:lujin49@
3、电路可以提取出USB接口的+5V电压,正好用于C51单片机的使用,非常方便。

另外PL-2303hx还能对外提供一个+3.3V的电压,这个电压,对于AVR单片机,非常合适。

电路中:R8实际使用的是1K欧的。

R6、R7我实际使用的是47欧的,C2、C3再个振荡电容,我使用的是33pF的,其实,像C5、C6、C7这三个电容,也可以改变一下。

大小
差不多,就问题不大。

PL2303HX芯片的USB转串口方法

PL2303HX芯片的USB转串口方法

:详见本刊曾经刊登过的《USB驱动安装与说明》k 第二步:插上USB连接线。电脑成功识别USB所 转换的串口。 第三步:将板上的P8排针上的T)(D与RXD短接. 如图3中所示。 第日步:打开电脑端的串口调试助手软件.选中所 转换出来的串口.然后输^一些数据。点击发送.看能 不能正常回收到数据.如图4中所示。 值得说明的是.某些串口调试助手只支持到 COM4.所以如果转换出来的串口编号在4往后.就需 要更改串口编号.关于COM口的编号.可在电脑的设 备管理器中的端口中看到.具体操作如下: 右键我的电脑,然后选择管理。 点击设备管理器。 点击端口。如图5所示。 串口编号更改方法如下: 在所要进行修改编号的COM上右键,选择属性。 弹出属性窗口。 在属性窗口中选端口设置选项卡。如图6所示。
号在端口附近产生反射现象需要在B型USB端口目{
●512宇节可调的双向数据缓存.支持默认的
ROM和外部E2PROM存储设备配置信息.具有陀总
脚D一和D+上分别接上一个阻懂为270左右的终端
固1 PL2303HX的USB转串口电路 03●电于嗣作I 51
2011
万方数据
宦固口皿盈
HANDS ON PROJECTS
图2 VSB转串口电路赛物固
囝3将P8排针上的TxD与RxD短接
图4使用串口调试助手来验证数据的发送与接收
囤5查看串口编号
匹配电阻,D+接一个r拉电阻以帮助实现枚举功能, 此外考虑到防止USB口短路问题.串人R11,可以将 其焊成个500MA的保险丝或者一个小贴片电阻.从 而保护USB口,图1中的P8和P9两个排针接口可以 用跳线帽来连接单片机串口和从USB口取电给单片机 电路 将图1对应到Study—C学习板上的各元件PcB板 排列位置如图2肝示(方框中部分k 值得提出的是,PL2303HX芯片是SSOP28脚封 装.故对焊接水平有定要求.此外焊接完成后.应先 检查焊接质量.以保证焊接无误并质量高,、由于涉及连 接到电脑端的USB口,更应注意,否则可能烧坏电脑 的US8口。对此笔者的建议在焊接完毕后.在未上电 z前.用万用表对所焊接的管脚进行短路检测.特别是 USB口的正负两端.一定不能短路,正常情况下用电 阻档测量时有2 7K左右的阻值。 为了验证该下载电路是否正常工作,可以按照如下 步骤进行测试。 第一步:安装好PL2303HX在电脑USB端的驱动

搬运原作之一—DIY PL2303转串口

搬运原作之一—DIY PL2303转串口

搬运原作之一—DIY PL2303 转串口
现在这个鼻涕串口还在我的实验台上工作的好好的。

没有任何不稳定现象哟~
首先上PL2303,要经过特殊处理哟。

注意引脚毕竟SSOP28 0.6MM 的脚距太难操作,我只好这样了。

现在掰弯一边了
这个其实已经掰完,飞线+内部连线了。

毕竟有一部分GND 脚是连在一起的
上已经焊好部分元件的洞洞板比划位置。

那几个大洞是因为搞错了USB 方
向导致的
现在所以飞线已经焊接。

检查无误后通电这里一定要检查VBUS 和
GND/D+/D-是否短路,如果短路可能有烧毁南桥(或MCH)的危险!
结果是识别不出。

后来发现D+要2.2K 上拉到3.3V 才能启动枚举过程,于
是掰开VO 3V3 飞线。

已经飞完了2.2k 的电阻,现在电脑已经识别出来:
给BYET HOST 的免费数据库跪了Orz,不带这样不稳定的!tips:感谢大家的阅读,本文由我司收集整编。

仅供参阅!。

串口连接树莓派(PL2303连接树莓派)【范本模板】

串口连接树莓派(PL2303连接树莓派)【范本模板】

串口连接树莓派(PL2303连接树莓派)前提:没有网络,没用键盘,没有显示器的情况下,通过串口(PL2303线)连接树莓派。

准备:•树莓派开发板(已经刷好官方系统)•USB转串口工具(PL2303)•杜邦线(4根)连线PL2303:VCC-—-——-—-+5VRX--—-—-——TXD(GPIO15)TX-—-—----RXD(GPIO14)GND————----Ground树莓派引脚分布图:实物连线图:作者是直接用笔记本的电源进行供电的,当然你也可以再外加一个电源.这里注意下:接线本已通过USB线提供了5V的电压,如果外置电源的话,没必要接上VCC 线.安装软件ubuntu linux•安装ckermit:sudo apt—get install ckermit•编辑配置文件:vi ~/。

kermrc,写入以下内容:set line /dev/ttyUSB0set speed 115200set carrier—watch offset handshake noneset flow-control nonerobustset file type binset file name litset rec pack 1000set send pack 1000set windows 5windowswindows下可以使用超级终端或者putty,选择一个com口, 然后设置波特率115200,就能连接了。

开始连接:•将PL2303插入电脑USB,启动树莓派•sudo kermit打开kermit•输入c,敲回车,这时应该看到树莓派启动时的一些输出信息•启动完毕,输入用户名和密码就能控制树莓派了如何断开连接:•输入快捷键:CTRL \,然后再按c,可以退出到kermit界面•再次输入c可以连接到树莓派•输入exit可以退出kermit感受:使用串口进行连接确实方便很多,毕竟很多时候我们并不需要或者没有显示器, 仅仅控制树莓派的话这样就足够了。

采用PL2303芯片的USB转TTL串口模块

采用PL2303芯片的USB转TTL串口模块

采用PL2303芯片的USB转TTL串口模块对于一些学校、工业、科研客户来说,电脑的串口非常重要,很多设备都必须采用串口和电脑端软件连接,很多电路模块可以非常直观方便地利用串口调试软件进行调试,很多仪器必须通过串口进行通讯和数据交换。

但是目前笔记本电脑因为空间的限制和其他方面考虑的原因都没有串口,甚至一些台式电脑也取消了串口配置,这让我们迫切需要串口的客户非常苦恼。

USB 转串口模块全称为USB to Serial port Module,它可以将USB 接口虚拟成一个串口,解决客户无串口的苦恼。

现在市面上的USB 转串品的设备可谓是琳琅满目,质量也是参差不齐。

造成这种现象的根本原因就在于控制芯片的不同。

现在USB 转串口桥接芯片有很多,比如CP2102、FT232、PL2303 等等。

但并非每一种芯片都可以用作ISP 下载。

经过测试CP2102 是不能下载的,而FT232 可以下载,但其价格实在不菲。

最为适中的就是台湾生产的PL2303,可以稳定下载,并可以支持多种操作系统。

PL2303HX 采用28 脚贴片SOIC 封装,工作频率为12MHZ,符合USB 1.1 通信协议,可以直接将USB 信号转换成串口信号,波特率从75~1228800,有22 种波特率可以选择,并支持5、6、7、8、16 共5 种数据比特位,是一款相当不错的USB 转串口芯片。

这是我们用PL2303 芯片开发的USB 转串口模块,采用机器自动焊接都经人工检测,电路板只有30*16*7 毫米,模块一共引出5 根脚,引脚电平为TTL,引脚定义如下:+5V、P3.0 TXD 、P3.1 RXD 、GND 地线、+3.3V 。

其中+5V 和+3.3V 电源输出线一般情况下都不用的,不需要连接。

现在购买PL2303 模块我们还赠送一根30 厘米长的杜邦连接线,它一头。

单片机usb接口电路

单片机usb接口电路

PL2303是价格很便宜的USB转RS232控制器。

其电路图在网上真是太多太多了,可是都没有我试验出来的简单。

瞧瞧!我的USB接口电路吧。

1、使用PL2303的接口电路2、使用CH341A的接口电路3、两种芯片的PK1 / 2价格嘛,PL2303HX优势大大,一般在1.5至2元之间。

国产的,进口的3元。

CH341价格在7元,也有9元的。

南京沁恒公司出品。

我一直用的ch341A,从来没有感到什么不好的,贵是贵,但是可*啊,115200波特率飞起来一样的下载。

2303HX我不敢妄加评论,但是的确是不好用,我上面的电路,一般用1200的波特率下载,最快的也就是据利义威所说,从来就没有超过4800波特率。

淘宝上一般提供PL2303的下载板 10元或者芯片卖,但是你要注意啊,卖下载板子的肯定是能够用的了,你要是自己买芯片做,不一定能成功,哪怕是你一个个器件都是一模一样的也可能做不好。

原因就在于:别人做板子卖的话,上面的2303芯片必定是买经过自己试过后能用的一批,他才敢作为产品拿出来卖批量,而你呢,可怜巴巴的买几个芯片,指望自己能做出来,可是你买来的芯片却是别人试过不怎么好用的芯片(这样的芯片大多进入淘宝中零售),不信你就做出来看看,结结赖赖你能搞通就烧高香了。

据说批号为LF的不行,YR的才可以。

器件的型号一样,但品质有可能不一样,希望注意。

我买了那么多晶振没一个准的,好笑吧?12M的实测为11.0783M。

6M的实测有的6.3M,有的5.7M。

(用STC下载软件测的)。

谁要是买到了按我的图做的下载线能够以高波特率运行的PL2303HX,记得可要多买几个啊。

以我买器件的经验和体会来看,错过了这一批,下一批就说不定了。

友情提示:范文可能无法思考和涵盖全面,供参考!最好找专业人士起草或审核后使用,感谢您的下载!。

PL2303,USB转串口极限波特率

PL2303,USB转串口极限波特率

一、PL2303缓冲区大小缓冲区的上行和下行数据从96 个增加到256 个字节1.3--Buffer for upstream and downstream data flow –change from 96 to 256 bytes上行和下行缓存区都是256B256 bytes buffer each for upstream and downstream data flow 二、PL2303支持的波特率The programmable baud rate generatorsupports baud rates up to 1.2M bpsTable 3. Baud Rate Setting【STM32:USART1接口通信速率可达4.5兆位/秒,其他接口的通信速率可达2.25兆位/秒。

One of the USART interfaces is able to communicate at speeds of up to 4.5 Mbit/s.The other available interfaces communicate at up to 2.25 Mbit/s.】【MAX232,极限波特率200Kbps】【SP3238E极限波特率The SP3238E drivers can maintain high datarates up to 250kbps fully loaded】【PC串行通信CSerialport发送缓冲区大小设置】(以下不是偶写的)PL2303HX缓冲区大小Configurable 512-byte bi-directional data buffero256-byte outbound buffer and 256-byte inbound buffer; or o 128-byte outbound buffer and 384-byte inbound bufferPL2303HX支持的波特率Programmable baud rate from 75 bps to 12M bps。

PL-2303 USB转串口适配器用户安装手册说明书

PL-2303 USB转串口适配器用户安装手册说明书

PL-2303 USB to Serial AdapterUser Installation Manual(For Vendor Reference Only)For Windows 98/ME/2000/XPRelease Version 1.0 (4/08/2002)ContentsIntroductionFeatures & SpecificationsSystem RequirementsInstalling the DeviceVerifying the InstallationUninstalling the DeviceDisclaimerIntroductionThe PL-2303 USB to Serial adapter is your smart and convenient accessory for connecting RS-232 serial devices to your USB-equipped Windows host computer. It provides a bridge connection with a standard DB 9-pin male serial port connector in one end and a standard Type-A USB plug connector on the other end. You simply attach the serial device onto the serial port of the cable and plug the USB connector into your PC USB port. It allows a simple and easy way of adding serial connections to your PC without having to go thru inserting a serial card and traditional port configuration.This USB to Serial adapter is ideal for connecting modems, cellular phones, PDAs, digital cameras, card readers and other serial devices to your computer. It provides serial connections up to 1Mbps of data transfer rate. And since USB does not require any IRQ resource, more devices can be attached to the system without the previous hassles of device and resource conflicts.Finally, the PL-2303 USB to Serial adapter is a fully USB Specification compliant device and therefore supports advanced power management such as suspend and resume operations as well as remote wakeup. The PL-2303 USB Serial cable adapter is designed to work on all Windows operating systems.Features & SpecificationsSmart USB to RS-232 (DB 9-pin male serial port) interfaceSupports various serial devices like modems, PDAs, cellular phones, digital cameras, card readers, and more.Easy Plug and Play InstallationFull Compliance with the Universal Serial Bus Specification v1.1Supports the standard RS-232 Serial InterfaceSupports automatic handshake modeOver 1Mbps data transfer rateSupports Remote Wake-up and Intelligent Power ManagementProvides Dual Buffers for upstream and downstream data transferNo IRQ resource requiredBus Powered – no separate power supply or battery requiredDimensions L x W x H: _________ (mm)Weight: ____grams (approximate)System RequirementsWindow s 98, Windows ME, Windows 2000, or Windows XP operating system AMD or Intel Pentium 133MHz or better based computerUSB 1.1 or higher portUSB to RS-232 (Serial Port) Cable AdapterUSB to RS-232 Driver Utility DiskInstalling the DeviceThis section will guide you on how to install the PL-2303 USB to Serial adapter under Windows XP, Windows 2000, Windows ME, and Windows 98 operating systems.Note:Before you plug in the USB to Serial adapter for the first time, make sure that you do not attach any serial device first to the adapter. You must only plug in the USB to Serial adapter itself.The following steps will show how to install the device under Windows XP. Basically, the procedures are also somewhat the same for other Windows operating systems.1. Power on your computer and boot to Windows.2. Locate the USB port of your computer and plug in the USB to Serial adapter.3. Windows will detect the new device and will initiate the Found New HardwareWizard prompting you to install the software for the detected USB Device.Select to install from a list or specific location. Click Next to continue.4. When prompted for the driver location of the device, click Browse and refer tothe USB to Serial driver disk or folder drive. Click Next to continue.5. Windows should detect the driver as Prolific USB-to-Serial Comm Port. BeforeWindows installs this, it may prompt you that this device driver has not yet passed Windows XP Logo compatibility. Click Continue Anyway.6. Windows will then start to install the driver for the USB-to-Serial Comm Port.Once installation is complete, Windows will prompt you that it has finished installing the software. Click Finish to continue.Verifying the InstallationThis section will guide you on how to verify if the PL-2303 USB to Serial adapter was properly installed. You will also need to determine the COM port assignment made by Windows for the USB to Serial adapter.Note:Before you plug in the USB to Serial adapter for the first time, make sure that you do not attach any serial device first to the adapter. You must only plug in the USB to Serial adapter itself.To verify if the device is properly installed and determine the COM port assignment of the device:1. Click Start Control Panel System. Inside System Properties, click onDevice Manager. Double-click on Ports (COM & LPT1). You should see theProlific USB-to-Serial Comm Port (COM3) device listing. This also means that Windows has assigned the device to COM3 port.Note:The COM port assignment of the USB to Serial adapter varies on yourcomputer hardware configuration. Windows will check what COM port are unused or free in your computer and assigns that port number to the device.2. If you want to assign the COM Port of the device to another port number, you candouble-click on the device (Prolific USB-to-Serial Comm Port) to view properties.3. Inside the USB-to-Serial Comm Port Properties, click on the Port Settings tab.Click on the Advanced button.4. Inside the Advanced Settings, click on the COM Port Number and check whatother port numbers are unused. If it so happens that Windows assigned a COM5 to the device, you may try to reassign it to a lower unused port number. Click OK when finished. Try running HyperTerminal to test if the new port number is OK.Note:Some software programs may only support up to COM4 and may not work if the port is assigned to COM5 or higher.5. Once you have verified the device to be properly installed, you may now proceedto using the USB to Serial adapter in connecting to serial devices. Attached the serial device to the serial port of the adapter and then plug in the USB connector to the USB port of your computer. Use the supplied driver of the serial device if needed.Uninstalling the Device DriverIt is easy to uninstall the USB to Serial device driver:1. Run the DRemover98_2K.exe UnInstall program found on your driver utility CDor diskette.2. The uninstall program will then prompt you if you want to remove the utilityprogram. Click OK to continue.3. After uninstall is complete, the program will prompt you to restart Windows.Click Yes to continue. Make sure you remove the diskette from floppy drive.4. Windows will also show a dialog box that the driver was removed successfully.Wait for Windows to restart your computer.DisclaimerInformation in this document is subject to change without notice. The manufacturer does not make any representations or warranties (implied or otherwise) regarding the accuracy and completeness of this document and shall in no event be liable for any loss of profit or any other commercial damage, including but not limited to special, incidental, consequential, or other damages.No part of this document may be reproduced or transmitted in any form by any means without the express written permission of the manufacturer.All brand names and product names used in this document are trademarks or registered trademarks of their respective holders.。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

RS232接口在嵌入式设备中应用广泛。

为了充分利用USB接口即插即用的特点,详细介绍一种基于PL2303的RS232与USB转换的设计方案。

PL2303是高集成度的通用串行总线(USB)与串口的接口转换器,可方便将现有基于RS232接口的设备转换为USB接口。

该系统设计适合于便携式设备的研制和应用。

关键词:接口;USB;RS232;PL2303
RS232接口作为标准外设广泛应用于单片机和嵌入式系统,通用串行总线USB(Universal Serial Bus)通信技术以其易插拔、速度快、即插即用和独立供电等特点,已得到更广泛的应用。

为了解决嵌入式系统与个人计算机USB接口之间的通讯问题,硬件厂商提供各种不同的解决方案。

一种方案是使用带USB接口的单片机和独立的USB接口器件,如Cypress公司的CY7C68013A(EZ-USB FX2L)和Philips公司的PIUSBDl2。

这种方案需开发人员了解和掌握USB的接口原理、协议,设计USB设备驱动程序,而USB接口协议的复杂性给开发人员带来诸多不便,开发周期长。

另一种方案是使用RS232-USB接口转换器,这些器件在其内部完成RS232到USB接口协议的转换,开发人员完全不用更改或只需更改很少的PC端应用程序就可完成与USB接口的通讯任务,如Prolific公司的PL2303、Silicon Labs公司的CP2102型RS232-USB接口转换器。

这类器件价格成本低,开发简单。

利用RS232-USB接口转换器完成通讯任务,既具有即插即用的优点,又避免繁琐的USB协议和USB驱动,开发方便。

这里介绍RS232-USB接口转换器PL-2303的特点与原理,并介绍利用该器件实现单片机与个人计算机之间的通讯接口设计。

PL2303简介:
PL2303 用于实现USB 和标准RS-232 串行端口之间的转换,两个独立的大型缓冲用于两种总线的连接.大型数据缓冲器用于USB 的批量数据传输.自动握手模式可用于串行通讯,因而可以达到远大于标准UART 控制器的波特率.
PL2303 支持USB 电源管理和远程唤醒协议.当主机挂起时消耗极小的电能.所
有功能集
成在SOIC-28 封装内.芯片亦可以安装在电缆线中,用户只要简单地把联在电脑主机或USB
HUB 上,就可以实现与RS-232 器件的通信.
PL2303功能特点
1:完全遵从USB 1.1 协议;
2:支持到RS-232 接口的转换;
3:支持自动握手模式;
4:支持远程唤醒和电源管理;
5:发送和接收拥有独立的256 Bytes 缓冲;
6:支持内部ROM 和外部EEPROM 配置器件;
7:内建USB 收发器;
8:内建晶体震荡器支持运行频率12 Mhz;
9:支持Windos98/ME,2000,XP,Windos CE 3.0,,linux,和Mac OS; PL2303管脚图及方框图
PL2303采用,28 脚小型SOIC 封装,其管脚图如下图所示
管脚图
管脚功能描述
方框图
支持数据格式与编程波特率发生器
PL2303 USB 转RS-232 控制器支持常用的数据格式和可编程的波特率发生器,支持的数据格式如下表2,波特率发生器支持高达1.2M 的波特率,如下表3;
以下是典型应用电路。

相关文档
最新文档