KR20050094989A - Method and apparatus for setting of direct memory access setting value - Google Patents

Method and apparatus for setting of direct memory access setting value Download PDF

Info

Publication number
KR20050094989A
KR20050094989A KR1020040019898A KR20040019898A KR20050094989A KR 20050094989 A KR20050094989 A KR 20050094989A KR 1020040019898 A KR1020040019898 A KR 1020040019898A KR 20040019898 A KR20040019898 A KR 20040019898A KR 20050094989 A KR20050094989 A KR 20050094989A
Authority
KR
South Korea
Prior art keywords
counter value
start address
setting
value
register
Prior art date
Application number
KR1020040019898A
Other languages
Korean (ko)
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 KR1020040019898A priority Critical patent/KR20050094989A/en
Publication of KR20050094989A publication Critical patent/KR20050094989A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/28Handling requests for interconnection or transfer for access to input/output bus using burst mode transfer, e.g. direct memory access DMA, cycle steal

Abstract

디엠에이 설정값의 설정방법 및 장치가 개시된다. 이 방법은 라인 카운터값, 디엠에이 데이터 카운터값, 디엠에이 시작 어드레스 및 디엠에이 제어값을 포함하는 디엠에이 설정값을 설정하고, 디엠에이 시작 어드레스 그룹 및 디엠에이 데이터 카운터값 그룹을 저장하는 단계, 설정된 디엠에이 시작 어드레스 및 설정된 디엠에이 제어값을 이용해, 인쇄 데이터를 읽어들이는 단계, 설정된 라인 카운터값 및 설정된 디엠에이 데이터 카운터값을 이용해, 한 밴드에 해당하는 인쇄 데이터의 읽기가 완료되었는가를 감지하는 단계 및 저장된 디엠에이 시작 어드레스 그룹 중 어느 하나의 어드레스 및 디엠에이 데이터 카운터값 그룹 중 어느 하나의 카운터값을 이용해, 설정된 디엠에이 데이터 카운터값 및 디엠에이 시작 어드레스를 재설정하는 단계를 구비하는 것을 특징으로 한다. 따라서, 본 발명에 따르면, 프로그램에 의한 소프트웨어의 간섭이 최소화되도록 레지스터들에 대한 설정값들을 자동 설정할 수 있도록 설정장치를 하드웨어적으로 구현함에 따라, 인쇄 속도의 고속화를 제공하는데 있다.Disclosed are a method and an apparatus for setting a DM set value. The method includes setting a DM setting value including a line counter value, a DM data counter value, a DM start address and a DM control value, storing the DM start address group and the DM data counter value group; Detect whether reading of print data corresponding to one band is completed by using the set DM start address and the set DM control value to read print data, set line counter value and set DM data counter value And resetting the set DM data counter value and the DM start address by using any one of the stored DM start address group and the counter value of any one of the DM data counter value group. It is done. Accordingly, according to the present invention, the setting apparatus is hardware-implemented to automatically set the setting values for the registers so that software interference by a program is minimized, thereby providing a high printing speed.

Description

디엠에이 설정값의 설정방법 및 장치{Method and apparatus for setting of direct memory access setting value}Method and apparatus for setting of direct memory access setting value

본 발명은 화상 형성장치에 관한 것으로, 보다 상세하게는 화상 형성 장치의 인쇄 데이터를 읽어들이기 위해 설정되는 디엠에이(DMA: Direct Memory Access) 설정값의 설정방법 및 장치에 관한 것이다.The present invention relates to an image forming apparatus, and more particularly, to a method and apparatus for setting a direct memory access (DMA) setting value set for reading print data of an image forming apparatus.

화상 형성장치에 있어서 비디오 컨트롤러의 디엠에이의 관련 기기는 디엠에이 시작 어드레스를 저장하는 디엠에이 시작 어드레스 레지스터, 디엠에이 데이터 카운터값을 저장하는 디엠에이 데이터 카운터값 레지스터, 디엠에이 제어값을 저장하는 디엠에이 제어값 레지스터, 인쇄 데이터의 각 밴드들의 라인값을 저장하는 라인 카운터값 레지스터 및 이들 레지스터 정보들을 이용하여 디엠에이의 전반적인 동작을 제어하는 디엠에이 제어 로직부를 구비하고 있다. 그리고 디엠에이 제어 로직부는 각 밴드의 끝을 감지하는 밴드 종료 감지부, 디엠에이의 동작을 제어하는 유한 상태 머신(Finite State Machine) 및 계속적인 디엠에이의 동작을 위해 매 밴드마다 인터럽트를 생성해내는 인터럽트 생성부 등으로 구성되어 있다. 여기서, 밴드라 함은 인쇄 데이터에 해당하는 한 페이지에 대해 특정 라인만큼을 그룹화하여 구분한 단위를 의미한다. 따라서, 한 페이지는 수십 밴드들로 구성된다.In the image forming apparatus, a related device of a DM of a video controller includes a DM start address register storing a DM start address, a DM data counter value register storing a DM data counter value, and a DM control value. A control value register, a line counter value register for storing line values of respective bands of print data, and a DM control logic for controlling overall operation of the DM using these register information. The DM control logic unit generates an end-band detection unit for detecting the end of each band, a finite state machine for controlling the operation of the DM, and an interrupt for every band for continuous operation of the DM. It consists of an interrupt generator. Here, the band refers to a unit in which a specific line is grouped and divided for one page corresponding to the print data. Thus, one page consists of tens of bands.

디엠에이에 의해 인쇄 데이터를 읽어들이는 동작 플로우를 살펴보면, 초기 프로그램 설정에 의해 라인 카운터값 레지스터, 디엠에이 시작 어드레스 레지스터, 디엠에이 데이터 카운터값 레지스터 및 디엠에이 제어값 레지스터의 설정값들을 설정한다. 이 후, 디엠에이 제어 로직부의 유한 상태 머신은 디엠에이 시작 어드레스 레지스터의 시작 어드레스에 대응하는 인쇄 데이터를 읽기 시작해서 디엠에이 데이터 카운터값 레지스터의 카운터값이 0이 될 때까지, 즉 라인 카운터값 레지스터의 카운터값에 해당하는 한 밴드 분량의 데이터 처리가 끝날 때까지 계속 인쇄 데이터를 읽어들인다. 디엠에이 제어 로직부의 밴드 종료 감지부에 의해 한 밴드의 인쇄 데이터를 모두 읽은 것을 인식한 후에는 유한 상태 머신을 초기화하면서, 다음 밴드의 디엠에이 시작 어드레스 및 디엠에이 데이터 카운터값을 설정하기 위해 인터럽트를 발생시킨다. 중앙 처리부는 발생된 인터럽트에 의해 인터럽트 서비스 루틴을 수행한다. 이때 인터럽트 서비스 루틴은 다음 밴드의 인쇄 데이터를 읽기 위한 디엠에이 시작 어드레스 및 디엠에이 데이터 카운터값을 재설정해 줌으로써, 화상 형성장치의 비디오 데이터 컨트롤러가 디엠에이 동작을 수십 밴드로 이루어진 한 페이지의 인쇄 데이터의 출력이 끝날 때까지 연속적으로 반복하게 된다.Referring to the operation flow of reading print data by the DM, setting values of the line counter value register, the DM start address register, the DM data counter value register, and the DM control value register are set by initial program settings. Thereafter, the finite state machine of the DM control logic section starts reading the print data corresponding to the start address of the DM start address register until the counter value of the DM data counter value register becomes zero, that is, the line counter value register. The print data is continuously read until one band of data processing corresponding to the counter value of is finished. After recognizing that all of the band's print data has been read by the band end detection section of the DM control logic unit, the finite state machine is initialized and an interrupt is set to set the DM start address and the DM data counter value of the next band. Generate. The central processing unit executes the interrupt service routine by the generated interrupt. At this time, the interrupt service routine resets the DM start address and the DM data counter value for reading the print data of the next band, so that the video data controller of the image forming apparatus performs the DM operation. Repeatedly until the output is finished.

그런데, 전술한 바와 같이 각 밴드마다 인터럽트를 발생시켜 인터럽트 서비스 루틴을 접근하게 되면, 중앙 처리부가 인터럽트 서비스 루틴의 수행을 위해 인터럽트 실행 코드와 스택 메모리를 읽어 오는데 소요되는 외부 메모리 액세스 시간 및 중앙 처리부가 버스를 할당받기 위해 기다리는 버스 중재시간을 연속적으로 낭비하게 된다는 문제점이 있다. 따라서, 고속의 화상 형성장치를 구현하기 위해 디엠에이 속도를 최대로 높여야 할 경우 속도 저하의 문제점을 발생시킨다. However, as described above, when an interrupt is generated for each band to access an interrupt service routine, an external memory access time and a central processor that are required for the central processing unit to read the interrupt execution code and the stack memory to perform the interrupt service routine are performed. There is a problem in that the bus arbitration time that is waited to be allocated to the bus is continuously wasted. Therefore, when the DM speed needs to be maximized in order to implement a high speed image forming apparatus, a problem of speed decrease occurs.

본 발명이 이루고자 하는 기술적 과제는, 프로그램에 의한 소프트웨어의 간섭이 최소화되도록 레지스터들에 대한 설정값들을 자동 설정할 수 있도록 하기 위한 디엠에이 설정값의 설정방법을 제공하는데 있다.An object of the present invention is to provide a method for setting a DM setting value for automatically setting the setting values for the registers to minimize the interference of the software by the program.

본 발명이 이루고자 하는 다른 기술적 과제는, 프로그램에 의한 소프트웨어의 간섭이 최소화되도록 레지스터들에 대한 설정값들을 자동 설정할 수 있도록 설정장치를 하드웨어적으로 구현한 디엠에이 설정값의 설정장치를 제공하는데 있다.Another object of the present invention is to provide a device for setting a DM setting value in which the setting device is hardware-implemented so as to automatically set the setting values for the registers so as to minimize software interference by a program.

상기의 과제를 이루기 위해, 본 발명에 따른 디엠에이 설정값의 설정방법은 라인 카운터값, 디엠에이 데이터 카운터값, 디엠에이 시작 어드레스 및 디엠에이 제어값을 포함하는 디엠에이 설정값을 설정하고, 디엠에이 시작 어드레스 그룹 및 디엠에이 데이터 카운터값 그룹을 저장하는 단계, 설정된 디엠에이 시작 어드레스 및 설정된 디엠에이 제어값을 이용해, 인쇄 데이터를 읽어들이는 단계, 설정된 라인 카운터값 및 설정된 디엠에이 데이터 카운터값을 이용해, 한 밴드에 해당하는 인쇄 데이터의 읽기가 완료되었는가를 감지하는 단계 및 저장된 디엠에이 시작 어드레스 그룹 중 어느 하나의 어드레스 및 디엠에이 데이터 카운터값 그룹 중 어느 하나의 카운터값을 이용해, 설정된 디엠에이 데이터 카운터값 및 디엠에이 시작 어드레스를 재설정하는 단계로 이루어짐이 바람직하다.In order to achieve the above object, a method of setting a DM setting value according to the present invention is to set a DM setting value including a line counter value, a DM data counter value, a DM start address and a DM control value, Storing the A start address group and the DM data counter value group, reading the print data using the set DM start address and the set DM control value, setting the set line counter value and the set DM data counter value. Detecting the completion of reading of the print data corresponding to one band and using the counter value of any one of the address of the stored DM start address group and the value of the DM data counter value group. Reset the counter value and DM start address Is made of an step is preferred.

상기의 다른 과제를 이루기 위해, 본 발명에 따른 디엠에이 설정값의 설정장치는 디엠에이 시작 어드레스 그룹을 저장하는 어드레스 그룹 레지스터 및 디엠에이 데이터 카운터값 그룹을 저장하는 카운터값 그룹 레지스터를 구비하고, 디엠에이 제어 로직부가 디엠에이 시작 어드레스 및 디엠에이 데이터 카운터값의 재설정을 위한 제어 명령을 출력하는 레지스터 설정부를 구비하는 것을 특징으로 한다. In order to achieve the above object, the apparatus for setting a DM setting value according to the present invention includes an address group register for storing a DM start address group and a counter value group register for storing a DM data counter value group. The A control logic unit may include a register setting unit configured to output a control command for resetting the DM start address and the DM data counter value.

이하, 본 발명에 의한 디엠에이 설정값의 설정방법을 첨부된 도면을 참조하여 다음과 같이 설명한다.Hereinafter, a method of setting a DM set value according to the present invention will be described with reference to the accompanying drawings.

도 1은 본 발명에 의한 디엠에이 설정값의 설정방법을 설명하기 위한 일 실시예의 플로차트로서, 디엠에이 시작 어드레스 그룹 중 어느 하나의 어드레스 및 디엠에이 데이터 카운터값 그룹 중 어느 하나의 카운터값을 이용해, 인쇄 데이터를 읽어들이기 위해 디엠에이 데이터 카운터값 및 디엠에이 시작 어드레스를 재설정하는 단계(제10 ~ 제18 단계들)로 이루어진다. 1 is a flowchart illustrating a method of setting a DM set value according to an embodiment of the present invention, and using a counter value of any one of a DM start address group and a DM data counter value group, Resetting the die data counter value and the die start address to read the print data (steps 10 to 18).

먼저, 라인 카운터값, 디엠에이 데이터 카운터값, 디엠에이 시작 어드레스 및 디엠에이 제어값을 포함하는 디엠에이 설정값을 설정하고, 디엠에이 시작 어드레스 그룹 및 디엠에이 데이터 카운터값 그룹을 저장한다(제10 단계). 라인 카운터값은 한 밴드에 포함되는 라인 수를 의미한다. 디엠에이 데이터 카운터값은 한 밴드에 속하는 디엠에이에 의해 읽어들이는 데이터의 크기를 의미한다. 디엠에이 시작 어드레스는 읽어들이기 위한 인쇄 데이터의 시작 어드레스를 의미한다. 디엠에이 제어값은 디엠에이에 의해 인쇄 데이터를 읽어들이기 위해 필요한 제어값을 의미한다. 이렇게, 라인 카운터값, 디엠에이 데이터 카운터값, 디엠에이 시작 어드레스 및 디엠에이 제어값을 포함하는 디엠에이 설정값을 디엠에이에 의해 읽어들이기 위해 설정한다.First, a die setting value including a line counter value, a die data counter value, a die start address, and a die control value is set, and a die start address group and a die data counter value group are stored (10th). step). The line counter value means the number of lines included in one band. The DM data counter value refers to the size of data read by the DM belonging to one band. The die start address means a start address of print data for reading. The DM control value means a control value necessary for reading print data by the DM. Thus, the DM setting value including the line counter value, the DM data counter value, the DM start address, and the DM control value is set to be read by the DM.

디엠에이 시작 어드레스 그룹은 다수의 밴드들에 대응하는 다수의 디엠에이 시작 어드레스들을 그룹화 한 것을 말한다. 또한, 디엠에이 데이터 카운터값 그룹은 다수의 밴드들에 대응하는 다수의 디엠에이 데이터 카운터값들을 그룹화 한 것을 말한다. 이러한, 디엠에이 시작 어드레스 그룹 및 디엠에이 데이터 카운터값 그룹을 임의의 저장공간에 저장한다. The DM starting address group refers to a grouping of a plurality of DM starting addresses corresponding to a plurality of bands. In addition, the DM data counter value group refers to grouping a plurality of DM data counter values corresponding to a plurality of bands. The DM start address group and the DM data counter value group are stored in an arbitrary storage space.

제10 단계 후에, 설정된 디엠에이 시작 어드레스 및 설정된 디엠에이 제어값을 이용해, 인쇄 데이터를 읽어들인다(제12 단계). 어느 한 밴드에 해당하는 디엠에이 시작 어드레스로부터 인쇄 데이터를 읽어들인다. 이를 위해 제10 단계에서 설정된 디엠에이 제어값을 이용한다.After the tenth step, the print data is read using the set DM start address and the set DM control value (step 12). The print data is read from the DM start address corresponding to any one band. To this end, the DM control value set in step 10 is used.

제12 단계 후에, 설정된 라인 카운터값 및 설정된 디엠에이 데이터 카운터값을 이용해, 한 밴드에 해당하는 인쇄 데이터의 읽기가 완료되었는가를 감지한다(제14 단계). 설정된 디엠에이 데이터 카운터값이 "0"이 될 때까지 인쇄 데이터의 읽기를 계속하다가 디엠에이 데이터 카운터값이 "0"이 되면, 한 밴드에 해당하는 인쇄 데이터의 읽기가 완료되었다고 감지한다. 설정된 라인 카운터값은 한 밴드에 해당하는 라인 수를 나타내므로, 라인 카운터값이 "0"이 되면, 마찬가지로 한 밴드에 해당하는 인쇄 데이터의 처리가 완료되었다고 감지한다.After the twelfth step, using the set line counter value and the set DM data counter value, it is detected whether reading of the print data corresponding to one band is completed (step 14). Reading of print data is continued until the set DNA data counter value becomes " 0 ", and when the DM data counter value becomes " 0 ", it is detected that reading of the print data corresponding to one band is completed. Since the set line counter value indicates the number of lines corresponding to one band, when the line counter value becomes " 0 ", it is similarly detected that the processing of print data corresponding to one band is completed.

만일, 한 밴드에 해당하는 인쇄 데이터의 읽기가 완료되지 않았다고 감지하면, 제12 단계로 진행한다. If it is detected that the reading of the print data corresponding to one band is not completed, the flow proceeds to step 12.

그러나, 제14 단계에서, 한 밴드에 해당하는 인쇄 데이터의 읽기가 완료되었다고 감지되면, 저장된 디엠에이 시작 어드레스 그룹 중 어느 하나의 어드레스 및 디엠에이 데이터 카운터값 그룹 중 어느 하나의 카운터값을 이용해, 제10 단계에서 설정된 디엠에이 데이터 카운터값 및 디엠에이 시작 어드레스를 재설정한다(제16 단계).However, if it is detected in step 14 that the reading of the print data corresponding to one band is completed, the counter value of any one of the stored DM start address groups and the counter value of the DM data counter value group may be used. The DM data counter value and the DM start address set in step 10 are reset (step 16).

한 밴드에 대한 읽기가 끝나면, 다음 밴드에 대한 읽기를 수행하기 위해, 이전에 설정된 디엠에이 데이터 카운터값 및 디엠에이 시작 어드레스를 다시 설정해야 한다. 이때, 종래에는 이를 위해 인터럽트를 발생시켜서 프로그램에 의해 디엠에이 데이터 카운터값 및 디엠에이 시작 어드레스를 재설정하였다. 그러나, 본 발명에서는 각 밴드들에 대한 디엠에이 시작 어드레스들 및 각 밴드들에 대한 디엠에이 데이터 카운터값들을 그룹화하여 저장하고 있다가, 한 밴드의 읽기가 완료되면 다음 밴드에 대한 디엠에이 데이터 카운터값 및 디엠에이 시작 어드레스를 자동적으로 재설정 한다. After reading one band, in order to perform reading of the next band, the previously set DM data counter value and the DM start address must be set again. At this time, in the related art, an interrupt is generated for this purpose, thereby resetting the DM data counter value and the DM start address by a program. However, in the present invention, the DM start addresses for each band and the DM data counter values for each band are grouped and stored. When the reading of one band is completed, the DM data counter value for the next band is stored. And the DM start address is automatically reset.

디엠에이 데이터 카운터값 및 디엠에이 시작 어드레스의 재설정은 디엠에이 데이터 카운터값 및 디엠에이 시작 어드레스에 대한 설정 명령에 의해 재설정되는 것을 특징으로 한다. 이를 위해 재설정을 위한 하드웨어적인 구성을 구비하는 것을 특징으로 한다.The resetting of the DM data counter value and the DM start address may be reset by a setting command for the DM data counter value and the DM start address. To this end, it is characterized by having a hardware configuration for resetting.

제16 단계 후에, 한 페이지에 해당하는 인쇄 데이터의 읽기가 완료되었는가를 감지한다(제18 단계). 만일, 한 페이지에 해당하는 인쇄 데이터의 읽기가 완료되었다고 감지되면, 전술한 과정을 종료한다.After the sixteenth step, it is detected whether the reading of the print data corresponding to one page is completed (step 18). If it is detected that reading of the print data corresponding to one page is completed, the above-described process is terminated.

그러나, 한 페이지에 해당하는 인쇄 데이터의 읽기가 완료되지 않았다고 감지되면, 제10 단계로 진행하여 전술한 과정을 반복한다. 한 페이지의 인쇄 데이터를 읽어들일 때까지 전술한 과정을 반복한다. However, if it is detected that reading of the print data corresponding to one page is not completed, the process proceeds to the tenth step and repeats the above-described process. The above-described process is repeated until the print data of one page is read.

이하, 본 발명에 의한 디엠에이 설정값의 설정장치를 첨부된 도면을 참조하여 다음과 같이 설명한다.Hereinafter, a device for setting a DM setting value according to the present invention will be described with reference to the accompanying drawings.

도 2는 본 발명에 의한 디엠에이 설정값의 설정장치를 설명하기 위한 일 실시예의 블록도로서, 라인 카운터값 레지스터(100), 디엠에이 데이터 카운터값 레지스터(110), 디엠에이 시작 어드레스 레지스터(120), 디엠에이 제어값 레지스터(130), 디엠에이 제어 로직부(200), 어드레스 그룹 레지스터(300) 및 카운터값 그룹 레지스터(310)로 구성된다. 또한, 디엠에이 제어 로직부(200)는 밴드 종료 감지부(210), 유한 상태 머신(220) 및 레지스터 설정부(230)로 구성된다.FIG. 2 is a block diagram illustrating an example of a device for setting a DM set value according to the present invention, and includes a line counter value register 100, a DM data counter value register 110, and a DM start address register 120. ), A DM control value register 130, a DM control logic unit 200, an address group register 300, and a counter value group register 310. In addition, the DM control logic unit 200 includes a band termination detector 210, a finite state machine 220, and a register setting unit 230.

라인 카운터값 레지스터(100)는 전술한 라인 카운터값을 저장하고, 저장된 라인 카운터값을 디엠에이 제어 로직부(200)의 밴드 종료 감지부(210)로 출력한다.The line counter value register 100 stores the above-described line counter value and outputs the stored line counter value to the band end detector 210 of the DM control logic unit 200.

디엠에이 데이터 카운터값 레지스터(110)는 전술한 디엠에이 데이터 카운터값을 저장하고, 저장된 디엠에이 데이터 카운터값을 디엠에이 제어 로직부(200)의 밴드 종료 감지부(210) 및 유한 상태 머신(220)으로 출력한다. The DM data counter value register 110 stores the above-described DM data counter value, and stores the stored DM data counter value in the band end detection unit 210 and the finite state machine 220 of the DM control logic unit 200. )

디엠에이 시작 어드레스 레지스터(120)는 전술한 디엠이이 시작 어드레스를 저장하고, 저장된 디엠에이 시작 어드레스를 디엠에이 제어 로직부(200)의 유한 상태 머신(220)으로 출력한다. The DM start address register 120 stores the above-described DM start address and outputs the stored DM start address to the finite state machine 220 of the DM control logic unit 200.

디엠에이 제어값 레지스터(130)는 전술한 디엠에이 제어값을 저장하고, 저장된 디엠에이 제어값을 디엠에이 제어 로직부(200)의 유한 상태 머신(220) 및 레지스터 설정부(230)로 출력한다. The DM control value register 130 stores the above-described DM control value and outputs the stored DM control value to the finite state machine 220 and the register setting unit 230 of the DM control logic unit 200. .

밴드 종료 감지부(210)는 라인 카운터값 레지스터(100) 및 디엠에이 데이터 카운터값 레지스터(110)로부터 각각 라인 카운터값 및 디엠에이 데이터 카운터값을 입력받아서, 라인 카운터값 및 디엠에이 데이터 카운터값이 "0"이 되는지 여부를 감지하고, 감지한 결과를 감지신호로서 유한 상태 머신(220) 및 레지스터 설정부(230)로 출력한다. The band end detector 210 receives the line counter value and the DM data counter value from the line counter value register 100 and the DM data counter value register 110, respectively, so that the line counter value and the DM data counter value are changed. It detects whether or not it becomes "0", and outputs the detected result to the finite state machine 220 and the register setting unit 230 as a detection signal.

유한 상태 머신(220)은 밴드 종료 감지부(210)의 감지된 결과, 디엠에이 데이터 카운터값 레지스터(110)의 디엠에이 데이터 카운터값, 디엠에이 시작 어드레스 레지스터(120)의 디엠에이 시작 어드레스 및 디엠에이 제어값 레지스터의 디엠에이 제어값을 입력받아서, 디엠에이 시작 어드레스에 대응하는 인쇄 데이터를 읽기 시작해서 디엠에이 데이터 카운터값이 "0"이 될 때까지, 즉 라인 카운터값에 해당하는 한 밴 분량의 데이터 처리가 끝날 때까지 지속적으로 인쇄 데이터를 읽어들인다.The finite state machine 220 detects the DM data counter value of the DM data counter value register 110, the DM start address of the DM start address register 120, and the DM as a result of the detection of the band end detector 210. A half amount corresponding to the line counter value until the DM control value of the A control value register is input and the print data corresponding to the start address of the DM is started to be read until the DM data counter value becomes "0". The print data is continuously read until the data processing is completed.

레지스터 설정부(230)는 디엠에이 시작 어드레스 및 디엠에이 데이터 카운터값의 재설정을 위한 제어 명령을 출력한다. 레지스터 설정부(230)는 한 밴드에 해당하는 인쇄 데이터의 읽기가 완료되었다는 감지신호을 밴드 종료 감지부(210)로부터 입력받고, 입력된 감지신호에 응답하여 디엠에이 시작 어드레스 및 디엠에이 데이터 카운터값의 재설정을 위한 제어 명령을 어드레스 그룹 레지스터(300) 및 카운터값 그룹 레지스터(310)로 출력한다. 종래에 인터럽트에 의한 프로그램 구동으로 디엠에이 시작 어드레스 및 디엠에이 데이터 카운터값의 재설정이 이루어진 것에 비해, 본 발명에 의한 레지스터 설정부(230)는 논리회로에 의한 하드웨어적인 구조이다. 추가적인 인터럽트가 발생하지 않더라도, 레지스터 설정부(230)의 제어명령에 의해, 디엠에이 시작 어드레스 그룹 중 어느 하나의 디엠에이 시작 어드레스가 디엠에이 시작 어드레스 레지스터(120)로 출력되어 저장되고, 디엠에이 데이터 카운터값 그룹 중 어느 하나의 디엠에이 데이터 카운터값이 전술한 디엠에이 데이터 카운터값 레지스터(110)로 출력되어 저장된다. The register setting unit 230 outputs a control command for resetting the die start address and the die data counter value. The register setting unit 230 receives a detection signal indicating that the reading of the print data corresponding to one band is completed from the band end detection unit 210, and in response to the input detection signal, The control command for resetting is output to the address group register 300 and the counter value group register 310. Compared to the conventional reset of the start address and the data counter value of the DRAM, the register setting unit 230 according to the present invention has a hardware structure using a logic circuit. Even if no additional interrupt is generated, the DM start address of the DM start address group is output to the DM start address register 120 and stored by the control command of the register setting unit 230, and the DM data. The DM data counter value of any one of the counter value groups is output to the aforementioned DM data counter value register 110 and stored.

어드레스 그룹 레지스터(300)는 디엠에이 시작 어드레스 그룹을 저장한다. 디엠에이 시작 어드레스 그룹은 각 밴드에 대응하는 디엠에이 시작 어드레스들의 집합을 의미한다. 어드레스 그룹 레지스터(300)는 레지스터 설정부(230)의 제어 명령에 응답하여, 저장된 디엠에이 시작 어드레스 그룹 중 순차적으로 어느 하나의 디엠에이 시작 어드레스를 디엠에이 시작 어드레스 레지스터(120)로 출력한다. The address group register 300 stores the DM start address group. The DM start address group means a set of DM start addresses corresponding to each band. The address group register 300 sequentially outputs one of the DM start addresses of the stored DM start address groups to the DM start address register 120 in response to the control command of the register setting unit 230.

카운터값 그룹 레지스터(310)는 디엠에이 데이터 카운터값 그룹을 저장한다. 디엠에이 데이터 카운터값 그룹은 각 밴드에 대응하는 디엠에이 데이터 카운터값들의 집합을 의미한다. 카운터값 그룹 레지스터(310)는 레지스터 설정부(230)의 제어 명령에 응답하여, 저장된 디엠에이 데이터 카운터값 그룹 중 순차적으로 어느 하나의 디엠에이 데이터 카운터값을 디엠에이 데이터 카운터값 레지스터(110)로 출력한다. The counter value group register 310 stores the DM data counter value group. The DM data counter value group means a set of DM data counter values corresponding to each band. The counter value group register 310 sequentially transmits one of the DM data counter values to the DM data counter value register 110 among the stored DM data counter value groups in response to a control command of the register setting unit 230. Output

이러한 본원 발명인 디엠에이 설정값의 설정방법 및 장치는 이해를 돕기 위하여 도면에 도시된 실시예를 참고로 설명되었으나, 이는 예시적인 것에 불과하며, 당해 분야에서 통상적 지식을 가진 자라면 이로부터 다양한 변형 및 균등한 타 실시예가 가능하다는 점을 이해할 것이다. 따라서, 본 발명의 진정한 기술적 보호 범위는 첨부된 특허청구범위에 한해서 정해져야 할 것이다.The method and apparatus for setting the DM setting value of the present invention have been described with reference to the exemplary embodiment shown in the drawings for clarity, but this is merely illustrative, and those skilled in the art may variously change and It will be appreciated that other equivalent embodiments are possible. Therefore, the true technical protection scope of the present invention should be defined only in the appended claims.

이상에서 설명한 바와 같이, 본 발명에 의한 방법 및 장치는 인쇄 데이터를 일정 간격으로 구분하는 밴드와 밴드 사이의 직접 메모리 액세스에 의한 인쇄 데이터의 읽기 동작을 수행함에 있어서, 프로그램에 의한 소프트웨어의 간섭이 최소화되도록 레지스터들에 대한 설정값들을 자동 설정할 수 있도록 설정장치를 하드웨어적으로 구현함에 따라, 인쇄 속도의 고속화에 효과적이다.As described above, the method and apparatus according to the present invention minimize the interference of the software by the program in performing the read operation of the print data by the direct memory access between the band and the band that divides the print data at regular intervals. By implementing the setting device in hardware so as to automatically set the setting values for the registers, it is effective to increase the printing speed.

도 1은 본 발명에 의한 디엠에이 설정값의 설정 방법을 설명하기 위한 일 실시예의 플로차트이다.1 is a flowchart of an embodiment for explaining a method of setting a DM set value according to the present invention.

도 2는 본 발명에 의한 디엠에이 설정값의 설정 장치를 설명하기 위한 일 실시예의 블록도이다.2 is a block diagram of an embodiment for explaining a device for setting a DM set value according to the present invention.

〈도면의 주요 부호에 대한 간단한 설명〉<Brief description of the major symbols in the drawings>

230: 레지스터 설정부 300: 어드레스 그룹 레지스터230: register setting unit 300: address group register

310: 카운터값 그룹 레지스터310: counter value group register

Claims (5)

(a) 라인 카운터값, 디엠에이 데이터 카운터값, 디엠에이 시작 어드레스 및 디엠에이 제어값을 포함하는 디엠에이 설정값을 설정하고, 디엠에이 시작 어드레스 그룹 및 디엠에이 데이터 카운터값 그룹을 저장하는 단계; (a) setting a die setting value including a line counter value, a die data counter value, a die start address and a die control value, and storing a die start address group and a die data counter value group; (b) 상기 설정된 디엠에이 시작 어드레스 및 상기 설정된 디엠에이 제어값을 이용해, 인쇄 데이터를 읽어들이는 단계;(b) reading print data using the set DM start address and the set DM control value; (c) 상기 설정된 라인 카운터값 및 상기 설정된 디엠에이 데이터 카운터값을 이용해, 한 밴드에 해당하는 상기 인쇄 데이터의 읽기가 완료되었는가를 감지하는 단계; 및(c) detecting whether reading of the print data corresponding to one band is completed using the set line counter value and the set DM data counter value; And (d) 상기 저장된 디엠에이 시작 어드레스 그룹 중 어느 하나의 어드레스 및 상기 저장된 디엠에이 데이터 카운터값 그룹 중 어느 하나의 카운터값을 이용해, 상기 설정된 디엠에이 데이터 카운터값 및 상기 설정된 디엠에이 시작 어드레스를 재설정하는 단계를 구비하는 것을 특징으로 하는 디엠에이 설정값의 설정방법.(d) resetting the set DM data counter value and the set DM start address using any one address of the stored DM start address group and a counter value of any one of the stored DM data counter value group. The method of setting a DM set value, characterized in that it comprises a step. 제1 항에 있어서, 상기 디엠에이 설정값의 설정방법은The method of claim 1, wherein the setting method of the DM setting value is 상기 (d) 단계 후에, 한 페이지에 해당하는 상기 인쇄 데이터의 읽기가 완료되었는가를 감지하는 단계를 더 구비하는 것을 특징으로 하는 디엠에이 설정값의 설정방법.And after step (d), detecting whether the reading of the print data corresponding to one page is completed. 제1 항에 있어서, 상기 (d) 단계는The method of claim 1, wherein step (d) 상기 디엠에이 데이터 카운터값 및 상기 디엠에이 시작 어드레스에 대한 설정 명령에 의해 재설정되는 것을 특징으로 하는 디엠에이 설정값의 설정방법. And a reset command for the die data counter value and the die start address. 라인 카운터값 레지스터, 디엠에이 데이터 카운터값 레지스터, 디엠에이 시작 어드레스 레지스터, 디엠에이 제어값 레지스터 및 디엠에이 제어 로직부를 포함하는 디엠에이 설정값의 설정장치에 있어서,In the apparatus for setting a DM setting value, including a line counter value register, a DM data counter value register, a DM start address register, a DM control value register, and a DM control logic, 디엠에이 시작 어드레스 그룹을 저장하는 어드레스 그룹 레지스터; 및An address group register for storing a die start address group; And 디엠에이 데이터 카운터값 그룹을 저장하는 카운터값 그룹 레지스터를 구비하고,A counter value group register for storing a DM data counter value group, 상기 디엠에이 제어 로직부가 디엠에이 시작 어드레스 및 디엠에이 데이터 카운터값의 재설정을 위한 제어 명령을 출력하는 레지스터 설정부를 구비하는 것을 특징으로 하는 디엠에이 설정값의 설정장치.And a register setting unit for outputting a control command for resetting the DM start address and the DM data counter value. 제4 항에 있어서, 상기 레지스터 설정부는The method of claim 4, wherein the register setting unit 한 밴드에 해당하는 상기 인쇄 데이터의 읽기가 완료되었다는 감지신호에 응답하여, 상기 디엠에이 시작 어드레스 및 상기 디엠에이 데이터 카운터값의 재설정을 위한 상기 제어 명령을 출력하는 것을 특징으로 하는 디엠에이 설정값의 설정장치.In response to a detection signal indicating that reading of the print data corresponding to one band is completed, outputting the control command for resetting the DM start address and the DM data counter value. Setting device.
KR1020040019898A 2004-03-24 2004-03-24 Method and apparatus for setting of direct memory access setting value KR20050094989A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020040019898A KR20050094989A (en) 2004-03-24 2004-03-24 Method and apparatus for setting of direct memory access setting value

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020040019898A KR20050094989A (en) 2004-03-24 2004-03-24 Method and apparatus for setting of direct memory access setting value

Publications (1)

Publication Number Publication Date
KR20050094989A true KR20050094989A (en) 2005-09-29

Family

ID=37275559

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020040019898A KR20050094989A (en) 2004-03-24 2004-03-24 Method and apparatus for setting of direct memory access setting value

Country Status (1)

Country Link
KR (1) KR20050094989A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100775406B1 (en) * 2006-02-28 2007-11-12 후지쯔 가부시끼가이샤 Apparatus and method for performing dma data transfer
US8799529B2 (en) 2010-12-15 2014-08-05 Electronics And Telecommunications Research Institute Direct memory access controller and operating method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100775406B1 (en) * 2006-02-28 2007-11-12 후지쯔 가부시끼가이샤 Apparatus and method for performing dma data transfer
US8799529B2 (en) 2010-12-15 2014-08-05 Electronics And Telecommunications Research Institute Direct memory access controller and operating method thereof

Similar Documents

Publication Publication Date Title
US6219725B1 (en) Method and apparatus for performing direct memory access transfers involving non-sequentially-addressable memory locations
US8200875B2 (en) Processing and forwarding of message-signaled interrupts
EP1962196A1 (en) Storage region allocation system, method, and control device
CN112100090A (en) Data access request processing method, device, medium and memory mapping controller
US6272583B1 (en) Microprocessor having built-in DRAM and internal data transfer paths wider and faster than independent external transfer paths
JP4855864B2 (en) Direct memory access controller
CN114048151A (en) Host memory access method and device and electronic equipment
KR20050094989A (en) Method and apparatus for setting of direct memory access setting value
CN110362526B (en) SPI slave device, storage and adaptation method and computer storage medium
JP2001157049A (en) Image processor and copying machine provided with the same
JP2005165508A (en) Direct memory access controller
US20040230730A1 (en) DMA request interrupt
JP2006126938A (en) Data transfer system and its data transfer method
KR20050063939A (en) Direct memory access controller for updating data transmission size automatically from peripheral, and control method thereof
JP3704927B2 (en) Programmable controller
JP2972557B2 (en) Data transfer control device and control method
JP5441219B2 (en) Semiconductor device and serial interface circuit
JP3695078B2 (en) Programmable controller with pulse output instructions
JP2765267B2 (en) Direct memory access transfer controller
KR940005003Y1 (en) Dynamic memory access system
JP5656589B2 (en) Data transfer device, data transfer method, and data transfer program
JP2001282705A (en) Data transfer device, image processor and image forming device
JPH0567035A (en) Data alignment system for dma transfer
JP2007185911A (en) Printer controller and printer
JP2017151711A (en) Image processor

Legal Events

Date Code Title Description
WITN Withdrawal due to no request for examination