文件名称:4PC-sends-string-to-read-MSP430-P
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 68kb
- 下载次数:
- 0次
- 提 供 者:
- 超*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
使用MSP430F149芯片,透过串口与电脑通信,波特率9600,8数据,无校验。使用32.768k晶振,使用P3.6和P3.7口作为发送和接收口,使用异步通信USART1,采用查询形式。实现通信,当单片机接收到以S结尾时表示命令结束:以WR开始的字符串时,中间的数据最好是二进制的16位,单片机会把中间的数据高八位赋值给P6口,把中间的数据低八位赋值给P4口;以WO开始的字符串时,中间的数据最好是二进制的8位,单片机会把中间的数据赋值给P5口;以RI开始的字符串时,读取P2口P1口的状态,显示到电脑上,高八位是P2口的状态,低八位是P1口的状态。-MSP430F149 chip through the serial port to communicate with the computer, baud rate 9600 data, no parity. 32.768k crystal oscillator, P3.6 and P3.7 port as send and receive ports use asynchronous communication USART1, the query form. Achieve communication microcontroller receives the string to the end of the S end of said command: WR start, the middle of the data best is a 16-bit binary, the MCU will be the middle of the eight assigned to the port P6 data, the middle The data low eight assigned to P4 mouth WO start string, the middle of the data is the best binary 8 microcontroller will be the middle of the data assigned to the port P5 the RI start of string, read P2 port P1 port status display to a computer, high eight the P2 port state low eight P1 port state.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
电脑用串口协议给MSP430F149的P6P5P4赋值读取P2P1口状态\Backup of R1.ewd
....................................................\Backup of R1.ewp
....................................................\Debug\Exe\R1.d43
....................................................\.....\Obj\main.r43
....................................................\.....\...\R1.pbd
....................................................\main.c
....................................................\path.txt
....................................................\R1.dep
....................................................\R1.ewd
....................................................\R1.ewp
....................................................\R1.eww
....................................................\settings\R1.cspy.bat
....................................................\........\R1.dbgdt
....................................................\........\R1.dni
....................................................\........\R1.wsdt
....................................................\串口实验R1.pdf
....................................................\程序功能.txt
....................................................\Debug\Exe
....................................................\.....\List
....................................................\.....\Obj
....................................................\Debug
....................................................\settings
电脑用串口协议给MSP430F149的P6P5P4赋值读取P2P1口状态