![](https://csdnimg.cn/release/download_crawler_static/88024294/bg9.jpg)
目录
摘 要 ................................................................................................................................................I
ABSTRACT..........................................................................................................................................III
1 绪 论.............................................................................................................................................1
1.1 研究现状及发展前景.........................................................................................................1
1.2 研究目的及意义................................................................................................................1
1.3 方案内容与结论.................................................................................................................2
2 通讯原理........................................................................................................................................3
2.1 串行通信.............................................................................................................................3
2.2 RS232 原理.........................................................................................................................4
2.3. MSP430 的串口通讯模块(USART)...............................................................................5
2.4.USB 相关原理.....................................................................................................................6
2.4.1 热插拔.....................................................................................................................6
2.4.2 USB 数据传输.........................................................................................................7
2.4.3 USB 总线协议.........................................................................................................8
2.5.通信协议..........................................................................................................................13
3 硬件电路设计..............................................................................................................................15
3.1 USB 结构...........................................................................................................................15
3.2 接口电路设计...................................................................................................................15
3.2.1 CH341T 概述.........................................................................................................15
3.2.2 MAX232 特性.........................................................................................................17
3.2.3 RS-232 电气标准................................................................................................17
3.2.4 接口电路设计.......................................................................................................18
4 软件设计......................................................................................................................................21
4.1 功能描述........................................................................................................................21
4.2 程序设计...........................................................................................................................21
4.2.1 上位机(PC 机)程序设计.................................................................................21
4.2.2 下位机程序设计...................................................................................................23
5 结 论..........................................................................................................................................31
致 谢..............................................................................................................................................33
参考文献..........................................................................................................................................35