摘 要
本文实现了AT89S52单片机和计算机的串口通信,以四个七段数码管作为显示的根据收发数据或波特率的改变的数字幻影。以AT89S52为核心,设计包含集成稳压电路、时钟电路、复位电路、液晶显示与控制电路、ISP在系统可编程器、RS232串行通信电路、开关电路和发光二极管显示电路等八种外围电路,并汇总为完整的原理图。采用电子CAD(PROTEL99SE软件)、图像处理软件(PhotoCap3)、计算机画图板设计绘制电路原理图后再装配成实验板。利用C语言调整软件dev C++IDE、编译器Keil C(uVision-51)和调试器WinIDEA 9.0、ISP软件等技术创新,实现了ISP在线仿真调试功能,将嵌入式技术融入到单片机实验系统开发与应用中,适合于单片机系统开发、教学等需要频繁刷新程序的场合,极大地提高了程序开发的效率,达到优化单片机实验系统功能的目的。在实现基础功能的情况下,另外还扩展了串行口通信,波特率可选等其他一系列功能,使系统达到了良好的设计效果和要求。
关键词:AT89S52单片机;波特率;数字幻影;串行通信
Abstract
This paper introduces AT89S52 SCM as the core based on the seven segments, with four of the digital tube as shows sending and receiving data or baud rate, according to the change of digital phantom. took AT89S52 as the core, Designed contains the integration voltage-stabilizer circuit, the clock electric circuit, repositions the electric circuit, the liquid crystal display and the control circuit, ISP in-system programmable devices, the RS232 serial communication electric circuit in the system, the switching circuit, LED display circuit chip and the ISD2590 pronunciation chip recording/broadcast electric circuit and so on eight kind of periphery electric circuits, and compiles for the integrity schematic diagram. After uses electronic CAD (PROTEL99SE software), picture processing software (PhotoCap3), and the computer picture chart board design plan electric circuit schematic diagram Assembly the experimental board. Using C language adjustment software dev C++IDE, compiler Keil C (uVision-51) and debugger WinIDEA 9.0, technical innovation and so on ISP software, has realized the ISP on-line simulation debugging function, Inserts the embedded technology to melt into to in the monolithic integrated circuit experiment system development and the application, for the monolithic integrated circuit study and should the amount used body custom make, suit to the monolithic integrated circuit system development, the teaching and so on.The basic function in realizing circumstance, also expanded the serial port communication, baud rate optional and other series of function, make the system to achieve a good design effect and requirements.
Key words:AT89S52 SCM; Baud rate; Digital illusion; Serial communication