期刊文献+

PC机与AVR单片机之间串行通信的实现 被引量:9

Realization of Serial Communication between PC and AVR Single Chip
在线阅读 下载PDF
导出
摘要 基于RS232串行通信协议,阐述了一种PC机与AVR系列单片机Atmega128之间串行通信的实现方式,实现了PC机与单片机间数据的双向传输。其中PC机为主发送端,单片机为主接收端。硬件上,简单介绍了利用MAX232E芯片解决PC机与单片机电气规范不一致的方法。软件上,PC机端通信程序采用C语言编程,运用TurboC库函数bios.h中提供的调用BIOS软中断的函数bioscom()实现;单片机端通信程序采用C51编程,使用UART接收结束中断、UART发送结束中断。本文提供了相关C语言和C51源程序。 This paper has explained the realizable way of the serial communication between PC and AVR series single chip computer (Atmega128) on the basis of RS 232 serial communication protocol,the twoway transmission of the data among the PC and single chip computer is realized. The PC is the primary sending end, the single chip computer is the primary receiver. On the hardware, we simply introduce how utilizes the MAX232E chip to solve the disagreement with single chip computer and the PC. On the software, the program in PC is the Turbo C program, it uses the function (bioscom) that is offerd by the library function (bios.h) of Turbo C. The function (bioscom) can carry out the software interrupt of BIOS. The program in single chip computer is C51 program, using the interrupt that UART receive end and the interrupt that UART send end. We offered the C program and C51 program in this paper.
作者 丁易新
出处 《现代电子技术》 2005年第12期32-34,共3页 Modern Electronics Technique
关键词 AVR单片机 串行通信 C51源程序 MAX232E AVR single chip computer serial communication C51 program MAX232E
  • 相关文献

同被引文献35

引证文献9

二级引证文献24

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部