摘要
RS-232串口通信因其硬件线路简单、应用灵活方便,在很多领域得到了广泛应用。文章在基于MSComm控件原理基础上详细介绍了利用VC++6.0编程实现上位机PC与下位机AVR之间的串口通信方法以及上下位机之间协议的编写,并给出了具体代码和解释。对VC++6.0编程者以及AVR单片机学习者具有一定的参考价值。
Serial communication program has broad application in many fields because of its simple communication circuitry,flexible uses.Based on the principle of serial communication program and MScomm control,the article introduces using vc++6.0 to program serial communication between avr and pc.It will be useful to the people who study VC6.0.
出处
《计算机与数字工程》
2010年第4期176-180,共5页
Computer & Digital Engineering