首页> 外国专利> METHOD FOR OPERATING SERIAL PORT USING PRINTER BUFFER IN RISC OPERATING SYSTEM

METHOD FOR OPERATING SERIAL PORT USING PRINTER BUFFER IN RISC OPERATING SYSTEM

机译:在RISC操作系统中使用打印机缓冲器操作串行端口的方法

摘要

PURPOSE: A method for operating a serial port using a printer buffer is provided to operate two serial ports without modifying a RISC operating system by using a printer buffer of the RISC operating system. CONSTITUTION: In a serial port comprising a serial port hardware initialization module for charging an initialization of a serial port hardware and a registration of an interrupt service routine, a character transmission module for charging a transmission of a character through a serial port hardware, a character receiving module for charging a receipt of a character through the serial port hardware, an interrupt service module for processing an interrupt being generated from the serial port hardware in a character transmitting/receiving mode, and a risk operating system printer buffer, the serial port hardware is initialized by enabling two serial ports and recording a forming table of the serial port in a serial port for initializing a serial port hardware adapted to a transmission/receipt of a character(101). A default value of a serial port parameter is set by recording a parameter related to a protocol in the serial port at transmitting/receiving a character(102). An interrupt service routine for processing an interrupt being generated at the character transmitting/receiving process through the serial port is registered(103). A serial port interrupt is enabled for generating an interrupt when a character is transmitted/received through the serial port(104).
机译:目的:提供了一种使用打印机缓冲区来操作串行端口的方法,以在不通过使用RISC操作系统的打印机缓冲区来修改RISC操作系统的情况下操作两个串行端口。组成:在一个串行端口中,包括用于对串行端口硬件的初始化和中断服务例程进行注册的串行端口硬件初始化模块,用于对通过串行端口硬件进行的字符传输进行计费的字符传输模块,字符接收模块,用于通过串行端口硬件收取字符的接收费用;中断服务模块,用于处理在字符发送/接收模式下从串行端口硬件生成的中断;以及风险操作系统打印机缓冲区,串行端口硬件通过使能两个串行端口并在串行端口中记录该串行端口的形成表来初始化该串行端口,以初始化适合于字符的发送/接收的串行端口硬件(101)。通过在发送/接收字符时在串行端口中记录与协议有关的参数来设置串行端口参数的默认值(102)。登记用于处理通过串行端口在字符发送/接收过程中产生的中断的中断服务程序(103)。当通过串行端口(104)发送/接收字符时,启用串行端口中断以产生中断。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号