文件名称:first_up
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [ASM] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 101kb
- 下载次数:
- 0次
- 提 供 者:
- fly***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
鹦鹉学舌:单片机与上位机PC的通信程序设计方法:
⑴串口初始化:波特率定为4800
⑵串口接收数据:串口初始化后处于数据接收状态,当有数据到达串口时,串口将数据接收保存在寄存器中暂存
⑶串口发送数据:等数据接收完成后,将寄存器中暂存的数据通过串口发送给该数据的来源地。
⑷实验测试方法:在上位机上通过串口调试助手软件发送一个十六进制数据给单片机,单片机收到数据后立即把这个数据又发回给PC,并在串口调试助手显示。
-Parrot: SCM and PC-PC communication program design method: ⑴ serial initialization: baud rate set at 4800 ⑵ receiving serial data: serial data reception at the initialization state, when the arrival of serial data when receiving serial data stored in temporary register ⑶ serial send data: such as data receiving, upon completion, will register in the temporary data sent through the serial port to the data source. ⑷ experimental testing methods: In the host computer through serial debugging assistant software sends a hexadecimal data to the single-chip, single-chip data received immediately after the data also sent back to the PC, and in serial debugging aides show .
⑴串口初始化:波特率定为4800
⑵串口接收数据:串口初始化后处于数据接收状态,当有数据到达串口时,串口将数据接收保存在寄存器中暂存
⑶串口发送数据:等数据接收完成后,将寄存器中暂存的数据通过串口发送给该数据的来源地。
⑷实验测试方法:在上位机上通过串口调试助手软件发送一个十六进制数据给单片机,单片机收到数据后立即把这个数据又发回给PC,并在串口调试助手显示。
-Parrot: SCM and PC-PC communication program design method: ⑴ serial initialization: baud rate set at 4800 ⑵ receiving serial data: serial data reception at the initialization state, when the arrival of serial data when receiving serial data stored in temporary register ⑶ serial send data: such as data receiving, upon completion, will register in the temporary data sent through the serial port to the data source. ⑷ experimental testing methods: In the host computer through serial debugging assistant software sends a hexadecimal data to the single-chip, single-chip data received immediately after the data also sent back to the PC, and in serial debugging aides show .
(系统自动生成,下载前可以参看下载内容)
下载文件列表
鹦鹉学舌程序
............\STARTUP.A51
............\STARTUP.LST
............\STARTUP.OBJ
............\t
............\t.asm
............\t.hex
............\t.lnp
............\t.LST
............\t.M51
............\t.OBJ
............\t.Opt
............\t.plg
............\t.Uv2
............\t_Opt.Bak
............\鹦鹉学舌程序说明及流程图.doc
............\STARTUP.A51
............\STARTUP.LST
............\STARTUP.OBJ
............\t
............\t.asm
............\t.hex
............\t.lnp
............\t.LST
............\t.M51
............\t.OBJ
............\t.Opt
............\t.plg
............\t.Uv2
............\t_Opt.Bak
............\鹦鹉学舌程序说明及流程图.doc