文档介绍:1 2 2 2
计算机应用《自动化技术与应用》2004 年第 23 卷第 11 期
Computer Application
MAX3110 在 PIC 单片机串口扩展中的应用
邹莉萍
(武汉大学自动化系, 湖北武汉 430072)
摘要:本文详尽地介绍了在 PIC 单片机上外接一片内置电平转换器的全功能异步串行收发芯片 MAX3110 ,直接扩展出一个标准
RS232 串行通信接口的具体方法。该方法以较简单的硬件连接实现异步数据传输、电平转换,其软件编程只需考虑 PIC 与
MAX3110 之间的同步数据通信。扩展的 RS232 串口,提升了系统的应用性能。另外,文中还特别介绍了应用过程中 PIC 中
断的相关事项。
关键词:串口扩展; PIC 单片机; MAX3110
中图分类号: TP368 1 文献标识码: A 文章编号: 1003 7241(2004) 11 0055 04
A S erial Port Exp a nsio n S olutio n o n PIC MCU
ZOU Li - ping
(Automation Department of Wuhan University , Wuhan 430072 ,China)
Abstract :In many application systems , two and even more RS232 users are needed municate with different instruments , so other serial ports
must be expanded on the base of PIC MCU , which already has one. This article presents a new and practical solution of expanding a serial
port for PIC MCU by connecting an UART with ± 15kV ESD - protected RS - 232 transceivers - MAX3110 , which can highly enhance the
communication performance and system applicability. Principles , technical details and the specific procedures of PIC interruption protect are
also discussed in this paper.
Key words :Serial port expansion ; PIC MCU; MAX3110
1 引言 MAX3110 由一个简单的 UART、一个可编程波特率发生器、
一个中断发生器(4 个中断源可分别屏蔽) 及两路带± 15kV ESD
现有的微控制器一般都只带有一个串行接口,对于需要多
保护的 RS232 收发器组成。MAX3110 真正做到了标准串口扩
串口的应用场合,必须进行串口扩展。根据这一实际问题,本文
展,无需像同系列芯片 MAX3100 那样外接 MAX2