摘要
为了实现对RS 232串行通信数据的截取,给出了基于AT89C51单片机的设计方案。系统利用GM8123芯片将单片机的1个串口扩展成为3个串口,采用MAX232芯片实现RS 232电平与TTL电平之间的相互转换,单片机通过串行口截取通信数据并对数据进行处理,处理后的数据再通过串行口发送到上位机进行显示。该系统具有两种工作模式,模式1实现对通信数据的实时截取,模式2是采用存储转发原理,截取器可以脱离上位机而工作。
In order to obtain RS 232 serial communication data,the design based on AT89C51 SCM is introduced.The system used GM8123 chip expanding SCM′s one serial port to three serial ports and used MAX232 chip realizing the exchange of RS 232 levels and TTL levels.The serial data was intercepted by SCM′s serial port,and then SCM handled those data and sent them to the upper computer.This design has two kinds of work modes.Mode one realized real-time intercepting.Mode two used the store-and-forward principle,the interceptor can work independently.
出处
《现代电子技术》
2012年第7期95-97,共3页
Modern Electronics Technique