图书分类号:密级:单片机和PC计算机通信系统的设计摘要本设计以单片机89C52为核心实现了和PC机的串行通信
在硬件电路上,采用MAX232实现PC机与单片机之间的电平转换;在软件编程上,PC机采用VB6
0的通信控件MSCOMM编程,单片机采用C51编程实现了可靠的串行数据传输
单片机接收计算机的命令并将测试数据通过串口发送给计算机,计算机接收数据处理后显示
关键词串行通信;MAX232;MSCOMMAbstractThisdesignwithsingleslicethemachine89C52sforthecorecarriedoutalinetocorrespondbyletterwiththestringofthePCmachine
AdoptMAX232tocarryoutPCmachineandsinglesliceofthemachinetogiveorgetanelectricshockanevenconversiononthehardwareelectriccircuit;Weaveadistanceinthesoftwareup,thePCmachineadoptsVB6
0correspondencescontrolaMSCOMMplaitdistance,thesingleslicemachineadoptedtheC51plaitdistancetocarryoutadependablestringlinedatatodeliver
Thesingleslicemachinereceivestheorderofcalculatorandpasstestdataastringofsendouttothecalculator,thecalculatorshowsafterreceivingthedataprocessing
KeywordsThestr