摘要
本文分析Visual BASIC串行通讯控件的特点,提出利用 AscB()函数和Byte型变量处理通讯数据,消除了使用String型变量只能处理 ASCII码为 00H— 7FH的文本字符的缺陷,真正实现Windows环境下PC机与单片机的通讯。
This paper analysis the characteristics of the serial communication control unit of Visual Basic,and uses the AscB()and BYTE variable to handle the data. This method remedies the defects of STRING variable,which can only process the characters whose ASCII codes are between 00 - 7FH, and realizes the communication between a PC and a single-chipmicroc omputer under Windows environment.
出处
《微计算机信息》
2000年第1期21-22,共2页
Control & Automation
关键词
PC机
单片机
通讯
VB语言
Byte型变量
serial asynchronous communication,Wind ows,VB,single-chip microcomputer