摘要
很多单片机应用系统常需用到多个串口,但常用的51单片机只有一个串口,而双串口单片机价格较高。本文介绍了一种基于ST16C554、CPLD的高效多串口扩展方法,采用软硬件结合,实现4个串口中断源共用单片机的一个中断,解决了51单片机中断资源有限的问题,降低了系统成本。ST16C554工作在FIFO模式,采用中断方式收发数据,并有16字节的硬件接收发送缓冲区,降低了CPU的开销。
Multi-serial ports are widely used in microcontrolled application systems. A highly (efficient)multi-serial port extension method based on ST16C554 and CPLD was presented in this (paper.) Its implementation is able to make four serial ports share one limited interrupt resource and thus reduce the system cost. ST16C554 works in FIFO mode, receives and transmits data by (interrupt)mode with a 16 byte hardware transmit buffer, that will also greatly cut down the load on the CPU.
出处
《木材工业》
2004年第5期18-20,共3页
China Wood Industry
关键词
多串口
可编程逻辑器件
C51单片机
16C554
硬件描述语言
Multi-serial port
Complex programmable logic devices(CPLD)
C51 Microcontroller
16C554
Verilog hardware description language(VHDL)