KR100328627B1 - Method for controlling parallel printer output of host computer system - Google Patents

Method for controlling parallel printer output of host computer system Download PDF

Info

Publication number
KR100328627B1
KR100328627B1 KR1019950067170A KR19950067170A KR100328627B1 KR 100328627 B1 KR100328627 B1 KR 100328627B1 KR 1019950067170 A KR1019950067170 A KR 1019950067170A KR 19950067170 A KR19950067170 A KR 19950067170A KR 100328627 B1 KR100328627 B1 KR 100328627B1
Authority
KR
South Korea
Prior art keywords
parallel printer
data
main memory
parallel
chip
Prior art date
Application number
KR1019950067170A
Other languages
Korean (ko)
Other versions
KR970049387A (en
Inventor
김재민
Original Assignee
엘지전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 엘지전자주식회사 filed Critical 엘지전자주식회사
Priority to KR1019950067170A priority Critical patent/KR100328627B1/en
Publication of KR970049387A publication Critical patent/KR970049387A/en
Application granted granted Critical
Publication of KR100328627B1 publication Critical patent/KR100328627B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1293Printer information exchange with computer
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1211Improving printing performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1218Reducing or saving of used resources, e.g. avoiding waste of consumables or improving usage of hardware resources
    • G06F3/122Reducing or saving of used resources, e.g. avoiding waste of consumables or improving usage of hardware resources with regard to computing resources, e.g. memory, CPU

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

PURPOSE: A method for controlling a parallel printer output of a host computer system is provided to solve a system hang-up phenomenon being generated when a CPU accesses a parallel interface adapter chip of a system control module directly for transmitting data to a parallel printer port in a system control module board. CONSTITUTION: If a user mode opens a parallel printer driver, a stream table performs a predetermined function, initializes a parallel printer chip, and updates state information of the parallel printer chip to an interrupt flag field of a main memory periodically. If a parallel printer record is performed, a status of the parallel printer chip is searched using the interrupt flag field of the main memory. The data of a stream queue are copied to the main memory at an on-line status. The interrupt flag field of the main memory is enabled. If the interrupt flag is set, a portion of data of the main memory are recorded in a data register of the parallel printer chip, a control register is enabled, and data are output to the parallel printer. If a data output is completed, an interrupt is generated to a system control module, data of the main memory are recorded in the data register of the parallel printer chip, and an operation signal is output for making the parallel printer be operated in the control register.

Description

주전산기 시스템의 병렬 프린터 출력 제어 방법Parallel Printer Output Control Method of Main Computer System

본 발명은 주전산기 시스템의 병렬 프린터 출력 제어에 관한 것으로, 특히 시스템 제어 모듈(SCM) 보드에 있는 병렬 프린터 포트로 데이타를 보내기 위해 중앙처리장치가 시스템 제어 모듈의 병렬 인터페이스 어댑터(PIA; Parallel Interface Adapter)칩을 직접 억세스하면서 발생하는 시스템 행-업(Hang-up)현상을 해결하도록 한 주전산기 시스템의 병렬 프린터 출력 제어 방법에 관한 것이다.The present invention relates to parallel printer output control of a host computer system, in particular a central processing unit for sending data to a parallel printer port on a system control module (SCM) board, a parallel interface adapter (PIA) of a system control module. The present invention relates to a parallel printer output control method of a host computer system that solves a system hang-up phenomenon caused by directly accessing a chip.

제 1 도는 일반적인 행정전산망 주전산기 시스템 구성도이다.1 is a block diagram of a general administration computer network.

크게 밀결합 다중 프로세서 구조의 시스템으로 중앙처리장치보드(100)와, 시스템 버스를 통해 데이터를 입출력하기 위한 입출력 프로세서 보드(200)와, 시스템 자원에 대한 제어 및 진단 기능 등을 제공하는 시스템 제어 모듈 보드(300)로 구성되었다.A system of largely tightly coupled multiprocessor architecture, the central processing unit board (100), an input / output processor board (200) for inputting and outputting data through a system bus, and a system control module providing control and diagnostic functions for system resources. The board 300 was configured.

상기에서 중앙처지장치보드(100)는 다중 프로세서보드(101)와 메모리 보드(102)로 구성되었다.The central sagging board 100 is composed of a multi-processor board 101 and a memory board 102.

그리고, 입출력 프로세서 보드(200)는 입출력 프로세서(201)와, 터미널을 제어하기 위한 터미널 콘트롤러(202)와, 디스크 콘트를러(203)와, 국부적인 통신망 제어를 위한 LAN콘트롤러(204)와, 광대역 통신망 제어를 위한 WAN콘트롤러(205)로 구성되었다.The input / output processor board 200 includes an input / output processor 201, a terminal controller 202 for controlling a terminal, a disk controller 203, a LAN controller 204 for local communication network control, It is composed of a WAN controller 205 for controlling a broadband communication network.

또한, 시스템 제어 모듈보드(300)는 시스템 제어모듈(301)과, 콘솔(303)과, 병렬 프린터(302)로 구성되었다.In addition, the system control module board 300 includes a system control module 301, a console 303, and a parallel printer 302.

이와 같이 구성된 일반적인 행정전산망 주전산기 시스템을 참조하여 종래 병렬 프린터 출력방법을 첨부한 도면 제 2 도에 의거 설명하면 다음과 같다.Referring to Figure 2 attached to the conventional parallel printer output method with reference to the general administrative computer network computer system configured as described above is as follows.

먼저, 제 2 도에서와 같이 시스템 제어모듈보드(300)에 있는 병렬 프린터(302)에 데이타를 기록하기 위해서는 사용자 모드에서 병렬 프린터(302) 기록을 수행하게 되고, 시스템 제어 모듈(301)의 병렬 인터페이스 어댑터(PIA)의 스테터스 레지스터(Status Registsr)가 비지인지 온라인(ON Line)인지를 체크하게 된다.First, in order to record data to the parallel printer 302 in the system control module board 300 as shown in FIG. 2, the parallel printer 302 is recorded in the user mode, and the parallel of the system control module 301 is performed. It checks whether the status registers of the interface adapter PIA are busy or online.

이때, 병렬 인터페이스 어댑터의 스테터스 레지스터가 온라인 상태이면, 스트림 큐에 있는 데이타를 메인 메모리 버퍼로 복사하게 되고, Ichar를 시스템 제어모듈(301)의 PIA칩 데이터 레지스터에 기록하고 제어 레지스터를 인에이블 시킨다.At this time, if the status register of the parallel interface adapter is online, the data in the stream queue is copied to the main memory buffer, the Ichar is written to the PIA chip data register of the system control module 301, and the control register is enabled. .

PIA는 시스템 제어 모듈(301)의 중앙처리장치에게 인터럽트를 발생시키고, 시스템 제어 모듈의 중앙처리장치는 PIA로부터 인터럽트를 받으면 프린트할 데이타가 더 있는지를 검사하여 있으면 프린터 상태를 체크하고 데이타를 데이타 레지스터에 기록한다.The PIA generates an interrupt to the CPU of the system control module 301. When the CPU of the system control module receives an interrupt from the PIA, the PIA checks whether there is more data to print and checks the printer status and checks the data register. To record.

이후, 남은 데이타 카운터수를 감소시키고 병렬 인터페이스 어댑터의 제어 레지스터를 병렬 인터페이스 어댑터가 동작하도록 구동시킨다.The number of remaining data counters is then reduced and the control register of the parallel interface adapter is driven to operate the parallel interface adapter.

상기한 동작을 카운트가 0이 될때까지 반복을 하여 병렬 프로세서에 데이타를 출력하게 된다.The above operation is repeated until the count reaches zero and the data is output to the parallel processor.

그러나 이러한 종래 행정전산망 주전산기 시스템은 병렬 프린터 출력을 수행하다가 시스템이 행-업(Hang-up)되는 현상이 발생되는 문제점이 있으며, 병렬 프린터 출력시 시스템 버스 과부하로 시스템의 성능이 저하하는 문제점이 있었다.However, such a conventional administrative computer main computer system has a problem in that the system hangs up while performing a parallel printer output, and there is a problem that the performance of the system is degraded due to a system bus overload when the parallel printer is output. .

따라서 본 발명은 상기와 같은 종래 병렬 프린터 출력시 발생되는 제반 문제점을 해결하기 위한 것으로서, 본 발명의 목적은 시스템 제어 모듈(SCM) 보드에 있는 병렬 프린터 포트로 데이타를 보내기 위해 중앙처리장치가 시스템 제어 모듈의 병렬 인터페이스어댑터(PIA; Parallel Interface Adapter)칩을 직접 억세스하면서 발생하는 시스템 행-업(Hang-up)현상을 해결하도록 한 주전산기 시스템의 병렬 프린터 출력 제어 방법을 제공하는데 있다.Therefore, the present invention is to solve all the problems caused by the conventional parallel printer output as described above, an object of the present invention is to control the system by the central processing unit to send data to the parallel printer port on the system control module (SCM) board The present invention provides a method of controlling a parallel printer output of a main computer system to solve a system hang-up phenomenon caused by directly accessing a parallel interface adapter (PIA) chip of a module.

이러한 본 발명의 목적을 달성하기 위한 방법은,Method for achieving the object of the present invention,

사용자 모드에서 병렬 프린터 드라이버를 오픈시키면 스트림 테이블에서Ipopeu함수를 수행하고 병렬 프린터 칩을 초기화시킨 후 병렬 프린터 칩의 상태 정보를 주기적으로 메인 메모리의 인터럽트 플래그 필드에 업데이트시키는 제 1 과정과;Opening the parallel printer driver in the user mode, performing a Popeop function on the stream table, initializing the parallel printer chip, and periodically updating status information of the parallel printer chip in the interrupt flag field of the main memory;

상기 제 1 과정 후 병렬 프린터 기록이 수행되면 상기 메인 메모리의 인터럽트 플래그 필드를 이용하여 병렬 프린터 칩의 상태를 검색하고 온라인 상태이면 스트림 큐의 데이타를 메인 메모리에 복사하고 메인 메모리의 인터럽트 플래그 필드를 인에이블시키는 제 2 과정과;When the parallel printer write is performed after the first process, the state of the parallel printer chip is searched using the interrupt flag field of the main memory. If the state is online, the data of the stream queue is copied to the main memory and the interrupt flag field of the main memory is read. A second process of enabling;

상기 인터럽트 플래그가 세트되면 병렬 프린터 칩의 데이타 레지스터에 메임 메모리의 데이타를 일정분 기록하고 제어 레지스터를 인에이블시켜 병렬 프린터로 데이타가 출력되도록 하는 제 3 과정과;A third step of, if the interrupt flag is set, writing data of the main memory in a data register of a parallel printer chip for a certain amount and enabling a control register to output data to the parallel printer;

상기 데이타 출력이 완료되면 시스템 제어 모듈로 인터럽트를 발생하고 메인 메모리의 데이타를 병렬 프린터 칩의 데이타 레지스터에 기록하고 제어 레지스터에 병렬 프린터가 동작하도록 구동신호를 출력하는 제 4 과정으로 이루어진다.When the data output is completed, a fourth process of generating an interrupt to the system control module, writing the data of the main memory into the data register of the parallel printer chip, and outputting a driving signal to the control register to operate the parallel printer.

이하, 본 발명을 첨부한 도면 제 3 도예 의거 상세히 설명하면 다음과 같다.Hereinafter, the present invention will be described in detail with reference to the third embodiment of the accompanying drawings.

본 발명이 적용되는 행정전산망 주전산기 시스템은 첨부된 도면 제 1 도인 일반적인 행정전산망 주전산기 시스템과 동일하며, 이를 참조하여 본 발명의 작용 및 효과를 설명하면 다음과 같다.The administrative computer main computer system to which the present invention is applied is the same as the general administrative computer main computer system of FIG. 1 attached to the drawings, and the operation and effect of the present invention will be described with reference to the following.

사용자모드에서 병렬 프린터 드라이버를 오픈하게되면, 스트림 테이블에서 IPOPEU함수를 호출하여 수행하게 된다.Opening the parallel printer driver in user mode will call the IPOPEU function in the stream table.

IPOPEU이 수행되면 SCM보드는 PIA칩을 초기화하게 되고, PIA의 상태정보를주기적으로 메인 메모리의 1P-sreg 필드에 업데이트시켜 CPU가 PIA상태정보를 알 수 있도록 해준다.When IPOPEU is executed, the SCM board initializes the PIA chip and periodically updates the PIA status information in the 1P-sreg field of main memory so that the CPU can know the PIA status information.

사용자 모드에서 병렬 프린터가 기록을 수행하게되면 중앙처리장치는 메인 메모리의 1P-sreg 필드를 이용하여 PIA가 비지인지와 온라인인지를 검색한다.When the parallel printer performs recording in user mode, the CPU uses the 1P-sreg field in main memory to find out whether the PIA is busy or online.

이때 온라인 상태이면 스트림큐의 데이타를 메인 메모리의 Xbuf로 복사하고 SCM에게 PIA기록을 알리기위해 메인 메모리의 입터럽트 플래그 필드를 인에이블 시킨다.At this time, the stream queue data is copied to Xbuf of main memory and the interrupt flag field of main memory is enabled to inform the SCM of the PIA write.

인터럽트 플래그를 폴링하고 있던 SCM은 인터럽트 플래그가 세트되면 PIA 칩의 데이타 레지스터에 메인 메모리의 Xbuf 데이타를 한문자 가지고와서 기록하고 제어 레지스터를 인에이블시켜 프린터로 데이타가 출력되도록 한다.When the interrupt flag is set, the SCM writes one character of Xbuf data in main memory to the data register of the PIA chip, and enables the control register to output the data to the printer when the interrupt flag is set.

데이타 출력이 완료되면 pia는 SCM의 중앙처리장치에게 인터럽트를 발생하게되고, 인터럽트를 받은 SCM의 중앙처리장치는 다음 데이타를 출력하기 위해 PIA의 상태 레지스터를 검색하고 프린트할 데이타가 더 있는지 메인 메모리의 카운트를 조사하게 된다.When the data output is complete, pia will interrupt the SCM's central processing unit, and the interrupted SCM's central processing unit will search the PIA's status register to print the next data and check if there is more data to print. The count will be examined.

조건이 만족되면 Xbuf의 데이타를 가지고와서 PIA의 데이타 레지스터에 쓰고 제어 레지스터를 PIA가 동작하도록 진행시킨다.If the condition is met, Xbuf's data is taken, written to the PIA's data register, and the control register is pushed to the PIA.

이것을 반복수행하다가 더이상 기록할 데이타가 없으면 다시 인터립트가 세트되어 있는지를 폴링하게 된다.This is repeated, and if there is no more data to write, it polls again for an intercept.

이상에서와 같이 본 발명은 병렬 프린터 출력을 수행하다가 시스템이 행-업되는 현상을 방지할 수 있으며, 병렬 프린터 출력시 시스템 버스 과부하로 발생하는 시스템 성능 저하를 해결하였고, 이로써 시스템이 안정성을 향상시키게 되는 것이다.As described above, the present invention can prevent the system from performing a hang-up while performing parallel printer output, and solve the system performance degradation caused by the system bus overload in parallel printer output, thereby improving the stability of the system. Will be.

제 1 도는 일반적인 행정전산망 주전산기 시스템 구성도.1 is a block diagram of a general administrative computer network.

제 2 도는 종래 병렬 프린터 출력 과정 흐름도.2 is a flow chart of a conventional parallel printer output process.

제 3 도는 본 발명에 의한 병렬 프린터 출력 제어과정 흐름도.3 is a flow chart of a parallel printer output control process according to the present invention.

*** 도면의 주요 부분에 대한 부호의 설명 ****** Explanation of symbols for the main parts of the drawing ***

100 : 중앙 처리 장치 보드 200 : 입출력 프로세스 보드100: central processing unit board 200: input and output process board

300 : 시스템 제어 모듈 보드300: system control module board

Claims (1)

사용자 모드에서 병렬 프린터 드라이버를 오픈시키면 스트림 테이블에서 1popeu함수를 수행하고 병렬 프린터 칩을 초기화시킨 후 병렬 프린터 칩의 상태 정보를 주기적으로 메인 메모리의 인터럽트 플래그 필드에 업데이트시키는 제 1 과정과;Opening the parallel printer driver in the user mode, performing a 1 popeu function on the stream table, initializing the parallel printer chip, and periodically updating status information of the parallel printer chip in the interrupt flag field of the main memory; 상기 제 1 과정 추 병렬 프린터 기록이 수행되면 상기 메인 메모리의 인터럽트 플래그 필드를 이용하여 병렬 프린터 칩의 상태를 검색하고 온라인 상태이면 스트림 큐의 데이타를 메인 메모리에 복사하고 메인 메모리의 인터럽트 플래그 필드를 인에이블시키는 제 2 과정과;When the first parallel process parallel printer recording is performed, the state of the parallel printer chip is searched using the interrupt flag field of the main memory, and if the state is online, the data of the stream queue is copied to the main memory and the interrupt flag field of the main memory is read. A second process of enabling; 상기 인터럽트 플래그가 세트되면 병렬 프린터 칩의 데이타 레지스터에 메임 메모리의 데이타를 일정분 기록하고 제어 레지스터를 인에이블시켜 병렬 프린터로 데이타가 출력되도록 하는 제 3 과정과;A third step of, if the interrupt flag is set, writing data of the main memory in a data register of a parallel printer chip for a certain amount and enabling a control register to output data to the parallel printer; 상기 데이타 출력이 완료되면 시스템 제어 모듈로 인터럽트를 발생하고 메인 메모리의 데이타를 병렬 프린터 칩의 데이타 레지스터에 기록하고 제어 레지스터에 병렬 프린터가 동작하도록 구동신호를 출력하는 제 4 과정으로 이루어짐을 특징으로 하는 주전산기 시스템의 병렬 프린터 출력 제어방법.A fourth process of generating an interrupt to the system control module when the data output is completed, writing the data of the main memory to the data register of the parallel printer chip, and outputting a driving signal to the control register to operate the parallel printer. Parallel printer output control method of main computer system.
KR1019950067170A 1995-12-29 1995-12-29 Method for controlling parallel printer output of host computer system KR100328627B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019950067170A KR100328627B1 (en) 1995-12-29 1995-12-29 Method for controlling parallel printer output of host computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019950067170A KR100328627B1 (en) 1995-12-29 1995-12-29 Method for controlling parallel printer output of host computer system

Publications (2)

Publication Number Publication Date
KR970049387A KR970049387A (en) 1997-07-29
KR100328627B1 true KR100328627B1 (en) 2002-08-08

Family

ID=37479027

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019950067170A KR100328627B1 (en) 1995-12-29 1995-12-29 Method for controlling parallel printer output of host computer system

Country Status (1)

Country Link
KR (1) KR100328627B1 (en)

Also Published As

Publication number Publication date
KR970049387A (en) 1997-07-29

Similar Documents

Publication Publication Date Title
EP0948768B1 (en) System for facilitating data i/o between usb input device and non-usb cognition application
US6269409B1 (en) Method and apparatus for concurrent execution of operating systems
US6476854B1 (en) Video eavesdropping and reverse assembly to transmit video action to a remote console
US6823404B2 (en) DMA windowing in an LPAR environment using device arbitration level to allow multiple IOAs per terminal bridge
KR100341180B1 (en) Virtual addressing buffer circuit and address translation method, system BIOS shadowing method, real memory optimization method, real memory usage method, emulation method in CPU control system and CPU request redirect method
KR960700479A (en) NETWORK ADAPTER WITH HOST INTERRUPT AND INDICATION MANAGEMENT
US6785760B2 (en) Performance of a PCI-X to infiniband bridge
EP0701206B1 (en) Emulator with function for detecting illegal access to special function register
US6070204A (en) Method and apparatus for using universal serial bus keyboard to control DOS operations
US5748945A (en) Method for slave DMA emulation on a computer system bus
US6393493B1 (en) System and method for optimizing serial USB device reads using virtual FIFO techniques
US6766386B2 (en) Method and interface for improved efficiency in performing bus-to-bus read data transfers
US5664198A (en) High speed access to PC card memory using interrupts
US5933613A (en) Computer system and inter-bus control circuit
US6324595B1 (en) Dedication of space in descriptor for minimizing data processing during communications between a peripheral device and a host system
CN1255717C (en) Method and apparatus for sharing interrupt between disk drive interfaces
KR100328627B1 (en) Method for controlling parallel printer output of host computer system
US7917659B2 (en) Variable length command pull with contiguous sequential layout
US7546642B2 (en) Latching processor state information
US5774745A (en) Method and apparatus for writing and reading entries in an event status queue of a host memory
JPH04230556A (en) Computer system, common system for address space with a plurality of input/output adapters and communication control method between a plurality of input/output devices and computer processors
KR100326156B1 (en) Interface device between dual processors
US6425025B1 (en) System and method for connecting electronic circuitry in a computer system
US5640557A (en) Method and system for processing logic blocks in a data processing system
JP2001256072A (en) System emulator

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20090302

Year of fee payment: 8

LAPS Lapse due to unpaid annual fee