KR900007282B1 - Method for printing a three times enlarged korea-alphabetsin dot matrix printer - Google Patents

Method for printing a three times enlarged korea-alphabetsin dot matrix printer Download PDF

Info

Publication number
KR900007282B1
KR900007282B1 KR1019870015433A KR870015433A KR900007282B1 KR 900007282 B1 KR900007282 B1 KR 900007282B1 KR 1019870015433 A KR1019870015433 A KR 1019870015433A KR 870015433 A KR870015433 A KR 870015433A KR 900007282 B1 KR900007282 B1 KR 900007282B1
Authority
KR
South Korea
Prior art keywords
register
data
ram
bit
address
Prior art date
Application number
KR1019870015433A
Other languages
Korean (ko)
Other versions
KR890009622A (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 KR1019870015433A priority Critical patent/KR900007282B1/en
Publication of KR890009622A publication Critical patent/KR890009622A/en
Application granted granted Critical
Publication of KR900007282B1 publication Critical patent/KR900007282B1/en

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J2/00Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed
    • B41J2/22Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by selective application of impact or pressure on a printing material or impression-transfer material
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J5/00Devices or arrangements for controlling character selection
    • B41J5/30Character or syllable selection controlled by recorded information

Landscapes

  • Image Processing (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The method is for enlarging the dot matrix character three times to the vertical direction. The first address of a font ROM is set as a font data point (FTPT) and one third of the font ROM addresses are set in a counter. The first byte data of the first FTPT is divided to three byte data to store in 1,2,3 addresses of a RAM 1. The second and third byte data of the second and third FTPT are divided to three byte data each to store in 1,2,3 adresses of RAM 2 and RAM 3. Then the FTPT and the adresses of the RAMs are increased as much as 3 and the number of the counter is decreased as much as one. These processes are repeated until the counter number becomes to zero so that the three times enlarged font is printed.

Description

도트 매트릭스 프린터(dot matrix printer)의 글자 3배 확대방법3 times magnification of letters of dot matrix printer

제1도는 본 발명을 시행하기 위한 하드웨어 블럭도.1 is a hardware block diagram for implementing the present invention.

제2도는 본 발명의 호름도.2 is a hormonal diagram of the present invention.

제3도는 서브루틴 호름도.3 is a subroutine hormonal diagram.

제4도는 활자 ROM의 데이타 저장형태도.4 is a data storage form of a type ROM.

제5도는 RAM #1의 데이타 저장형태도.5 is a data storage format of RAM # 1.

제6도는 RAM #2의 데이타 저장형태도.6 is a data storage format of RAM # 2.

제7도는 RAM #3의 데이타 저장형태도.7 is a data storage format of RAM # 3.

본 발명은 도트 매트릭스 프린터(dot matrix printer)에 관한 것으로서, 특히 글자의 모양을 변형시키지않고 인자의 크기를 세배로 확대하는 인자 확대방법에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a dot matrix printer, and more particularly, to a method for enlarging a factor three times without changing the shape of letters.

본 발명은 한글, 한자, 영문등 각종 글자의 인자를 세로로 세배 확대하기 위한 것으로 이를 위한 하드웨어 구성은 제1도에 나타낸 바와같이 인자 크기를 확대시키도록 하는 중앙처리장치와 보통 크기의 인자를가능하게하고 3배 확대크기를 할수 있도록 데이타를 제공하는 활자 판독전용기억장치(Font read onlymemory ; 이하 활자 ROM이라함)와 3배 확대처리를 하여 실제 프린팅되는 영역으로서 확대처리된 데이타를 간직하고 보존할 수 있는 임의 호출기억장치(random acces memory ; 이하 RAM이라함)(RAM #1,RAM #2, RAM #3)로 구성된다. 중앙처리장치(1)는 어드레스 레지스터(A레지스터), 데이타 레지스터(D레지스터), X레지스터 및 카운터를 가진 연산장치를 포함하고 있다.The present invention is to enlarge three times the length of the characters of various characters, such as Hangul, Hanja, English, etc. The hardware configuration for this can be a central processing unit to enlarge the size of the print as shown in Figure 1 and the normal size print Font read-only memory (Font read only memory) that provides data for 3X magnification and 3X magnification to preserve and preserve the magnified data as the actual printed area. Random random access memory (RAM) (RAM # 1, RAM # 2, RAM # 3). The central processing unit 1 includes an arithmetic unit having an address register (A register), a data register (D register), an X register and a counter.

이하 본 발명의 동작을 설명하면 다음과 같다. 중앙처리장치중 연산장치내의 A레지스터에 활자 ROM의 인자하고자 하는 어드레스 값을 넣고 이 어드레스를 내부 어드레스/데이타 버스에 전송하면 어드레스 버퍼에 A레지스터의 내용이 저장된다. 어드레스 라인(ADRL)을 인에이블 시켜주면 활자 ROM의 인자하고자하는 어드레스가 연결되게 되고 판독/기록(read/write) 라인을 액티브 하이 상태로 해주면 데이타 버스에 활자 ROM으로 부터 읽혀진 데이타가 실리게 된다. 이때 데이타 신호(DATL)를 인에이블시켜주면 멀티플렉서를 거쳐 내부 어드레스/데이타 버스에 데이타가 실리고 이 값을 D레지스터에 저장시키면 활자 ROM으로 부터 1바이트의 데이타가 읽히게 된다.Hereinafter, the operation of the present invention will be described. If the address value to be printed in the type ROM is inserted into the A register in the processing unit among the CPUs, and this address is transferred to the internal address / data bus, the contents of the A register are stored in the address buffer. Enabling the address line (ADRL) connects the address to be printed in the type ROM, and sets the read / write line to the active high state to load data read from the type ROM onto the data bus. If the data signal DATL is enabled, data is loaded into the internal address / data bus via the multiplexer, and when this value is stored in the D register, one byte of data is read from the letter ROM.

상기와 같은 방법으로 어드레스를 선택하고 D레지스터의 내용을 내부 데이타/어드레스 버스로 보낸후 데이타 신호(DATL)를 인에이블시키면 데이타 버스에 D레지스터의 내용이 실리게 되고 이때 판독/기록 라인을 액티브 로우로 해주면 원하는 어드레스로 D레지스터의 내용이 저장된다. 활자 ROM에 저장된 내용을 3배로 확대하여 RAM에 인자하는 방법은 다음과 같다. 먼저 카운터에 활자 ROM의 총 어드레스의 수(본발명에서는 72)를 설정한다. 활자 ROM으로 부터 상기와 같은 방법으로 1바이트의 데이타를 독출하여 D레지스터에 저장한다. 활자 ROM의 1번지에는 7비트의 단위의 1바이트 데이타가 저장될 수 있다. D레지스터의 저장된 활자 ROM의 데이타를 1비트씩 체크하여 1바이트 데이타를 3바이트 데이타화한 다음 이 3바이트데이타를 RAM #1의 1,2,3번지에 저장시킨다. 1바이트 데이타를 3바이트 데이타화하는 방법은 후술한다.Selecting an address as described above, sending the contents of the D register to the internal data / address bus and enabling the data signal (DATL) causes the contents of the D register to be loaded on the data bus. To save the contents of the D register to the desired address. The method of printing to the RAM by enlarging three times the contents stored in the type ROM is as follows. First, the counter sets the total number of letter-type ROMs (72 in the present invention). One byte of data is read from the letter ROM and stored in the D register. One address of the type ROM may store 1-byte data in units of 7 bits. After checking the data in the D-register saved letter ROM by 1 bit, 1-byte data is converted into 3-byte data, and the 3-byte data is stored in the 1,2,3 addresses of RAM # 1. The method of converting 1-byte data into 3-byte data will be described later.

다음에 활자 ROM의 2번지에 있는 데이타를 읽어내어 상기와 같은 방법으로 3바이트, 데이타화 한다음RAM #2의 1,2,3번지에 저장시키고 다시 활자 ROM의 3번지에 있는 데이타는 3바이트 데이타로 바꾼다음RAM #3의 1,2,3번지에 저장시킨다.Next, read the data in address 2 of the type ROM and make it 3 bytes in the same way as above, and store the data in the numbers 1, 2, 3 of RAM # 2. After converting to data, save it at the 1,2,3 address of RAM # 3.

제2도는 본 발명의 실시예를 흐름도의 형식으로 구체적으로 나타낸 것이다.2 shows an embodiment of the present invention in detail in the form of a flowchart.

먼저 활자 ROM의 1번지를 활자 데이타 포인터(font data pointer ;이하 FTPT라함)로 설정한다(201). RAM #1·RAM #2 및 RAM #3의 어드레스를 역시 설정한다(202∼204). 카운터에 활자 ROM의 전체번지수 만큼의 숫자(K)를 설정하고(205), FTPT로 부터 8비트로된 1바이트의 데이타를 읽어내어 D레지스터에 저장한다(206). D레지스터에 저장된 1바이트의 데이타를 3바이트화한 다음(207) 3바이트화 과정에서 X레지스터에 저장된 데이타를 RAM #1의 어드레스 1번지에 저장하고(208) X'레지스터에 저장된 데이타는RAM #1의 어드레스 2번지에 저장하며(209), D'레지스터에 저장된 데이타는 RAM #1의 어드레스 3번지에 저장한다(210) .First, address 1 of the type ROM is set as a font data pointer (hereinafter referred to as FTPT) (201). The addresses of RAM # 1, RAM # 2 and RAM # 3 are also set (202 to 204). A number K equal to the total address of the letter ROM is set in the counter (205), and one byte of 8-bit data is read from the FTPT and stored in the D register (206). 1 byte of data stored in the D register is converted into 3 bytes (207), and then the data stored in the X register is stored in address 1 of RAM # 1 in the process of 3-byte conversion (208), and the data stored in the X 'register is stored in RAM #. 1 is stored in address 2 of address 1 (209), and data stored in the register D 'is stored in address 3 of RAM # 1 (210).

다음에 FTPT를 1번지 증가시키고 이 증가된 FTPT +1번지로 부터 1바이트의 데이타를 읽어내어 D레지스터에 저장시킨다(211). 저장된 데이타를 3바이트화 한다음(212) X레지스터에 저장된 데이타를 RAM #2의 1번지에(213) X'레지스터에 저장된 데이타를 RAM #2의 2번지에(214), 그리고 D'레지스터에 저장된데이타를 RAM #2의 3번지에(215) 각각 저장시킨다.Next, FTPT is increased by one, and one byte of data is read from this increased FTPT +1 and stored in the D register (211). The data stored in the X register is stored in address 1 of RAM # 2 (213), and the data stored in the X 'register is stored in address 2 of RAM # 2 (214), and the D' register is stored. The stored data are stored in each of the three addresses 215 of RAM # 2.

이번에는 FTPT +2번지에서 데이타를 읽어내어 상기와 같은 과정을 거치면서 RAM #3의 1번지, 2번지및 3번지에 데이타를 저장시킨다(216∼220). FTPT의 3번지까지의 인자가 끝난뒤에는 FTPT의 4번지로 부터 다시 인자를 시작하고 인자될 RAM의 번지도 역시 4번지가 되므로 RAM 어드레스를 각각 3번지씩 증가시킨다(221∼224). 다음에 카운터를 1다운 시킨뒤(225) 카운터의 설정 값이 0인지를 판단하고(226) 0이면인자과정을 종료하고 0이 아니면 단계 206으로 되돌아가서 상기의 과정을 반복한다.This time, the data is read from FTPT +2 and the data is stored in addresses 1, 2, and 3 of RAM # 3 (216-220). After printing up to 3 of FTPT, the printing starts again from 4 of FTPT, and the RAM address to be printed is also 4, so the RAM address is increased by 3 (221 ~ 224). Next, the counter is turned down by 1 (225) and it is determined whether the set value of the counter is 0 (226). If it is 0, the argument process is terminated, and if it is not 0, the process returns to step 206 and the above process is repeated.

제3도는 제2도의 단계 207,2l2 및 217에서 활자 ROM의 1바이트 데이타를 3바이트 데이타로 바꾸는 방법을 나타내는 흐름도이다. 활자 ROM으로 부터 데이타를 읽어서 D레지스터에 1바이트의 데이타를 저장한다(301). 저장된 데이타의 0비트가 0인지를 판단하고(302) 0이면 X레지스터의 0,1,2비트의 0데이타를 저장하고(304), 0이 아니면 데이타 1을 저장한다(303). 다음에 D레지스터의 1비트를 확인하여(305) 0이면 X레지스터의 3,4,5비트에 0을 저장하고(307) 0이 아니면 1을 저장한다(306). D레지스터의 2비트를 확인하여(308) 데이타가 0이 아니면 X레지스터의 비트 6,7에 1을 저장하고(309) 또 X'레지스터의 비트 0에 1을 저장하며(310), 0인 경우에는 X레지스터의 비트 6,7과 X'레지스터의 비트 0에 0데이타를 저장한다(311.312). D레지스터의 3비트를 확인하고(313), 이 비트에 0데이타가 저장되어 있으며 X'레지스터의 비트 1,2,3에 0데이타를 저장하고(314), 1데이타가 저장되어 있으면 X'레지스터의 비트 1,2,3에 1데이타를 저장한다(315). D레지스터의 비트 4를 확인하여(316) 이 비트가 데이타 0이면 X'레지스터의 4,5,6비트에 0데이타를 저장하고(317) 데이타 1이면 1데이타를 저장한다(318). D레지스터의 비트 5를 확인하고(319)이 데이타가 0이면 X'레지스터의 비트 7에 0데이타를 저장함과 동시에 D'레지스터의 비트 0.1에 0데이타를 저장하고(321), 0이 아니면 X'레지스터의 비트 7 및 D'레지스터의 비트 0.1에 데이타 1을 저장한다(320), 다음에 D레지스터의 6비트 및 7비트를 판단하여 상기와 같은 방법으로 D'레지스터의 나머지 비트에 순차로 데이타를 저장한다.FIG. 3 is a flowchart showing a method of converting single-byte data of type ROM into three-byte data in steps 207, 212 and 217 of FIG. The data is read from the letter ROM, and one byte of data is stored in the D register (301). It is determined whether the 0 bit of the stored data is 0 (302). If 0, the 0 data of the 0, 1, 2 bits of the X register is stored (304). If the 0 is not 0, the data 1 is stored (303). Next, one bit of the D register is checked (305), and if it is 0, 0 is stored in 3, 4, and 5 bits of the X register (307). If it is not 0, 1 is stored (306). Check the 2 bits of the D register (308), if the data is not 0, store 1 in bits 6,7 of the X register (309) and store 1 in bit 0 of the X 'register (310), and if it is 0 Stores zero data in bits 6, 7 of the X register and bit 0 of the X 'register (311.312). Check 3 bits of D register (313), 0 data is stored in this bit, 0 data is stored in bit 1,2,3 of X 'register (314), and X' register if 1 data is stored One data is stored in bits 1,2,3 of the block (315). Bit 4 of the D register is checked (316). If this bit is data 0, 0 data is stored in 4, 5, 6 bits of the X 'register (317). If data 1, 1 data is stored (318). Check bit 5 of the D register (319). If the data is 0, 0 data is stored in bit 7 of the X 'register, and 0 data is stored in bit 0.1 of the D' register (321). Data 1 is stored in bit 7 of the register and bit 0.1 of the D 'register (320). Next, the 6 bits and 7 bits of the D register are determined, and data is sequentially stored in the remaining bits of the D' register in the same manner as described above. Save it.

상기와 같은 방법으로 활자 ROM의 1바이트 데이타를 3바이트 데이타화하였으면 X레지스터의 데이타는RAM의 1번지에, X'레지스터의 데이타는 RAM의 2번지에, D'레지스터는 RAM의 3번지에 각각 저장된다(제2도). 따라서 제4도와 같은 활자 ROM의 데이타를 제5도, 제6도, 제7도와 같이 RAM에 확대하여인자할 수 있게 된다.If 1-byte data of type ROM is converted into 3-byte data in the same manner as above, the data of the X register is at 1 of RAM, the X 'register is at 2 of RAM, and the D' register is at 3 of RAM. Stored (Figure 2). Accordingly, the data of the type ROM as shown in FIG. 4 can be enlarged and factored into the RAM as shown in FIGS. 5, 6, and 7.

상기와 같이 본 발명에 의하면 활자 ROM에 저장된 데이타를 세로상으로 3배 확대하여 표시(display)할수 있기 때문에 현재까지 보통문자나 배각문자 이외에는 인자되지 않았던 글자확대모양을 적절한 크기의 확대문자로 인자할 수 있게 된다.As described above, according to the present invention, the data stored in the letter ROM can be enlarged and displayed three times vertically, so that a character enlargement pattern that has not been printed so far except ordinary characters or embossed characters can be printed as an enlarged character of an appropriate size. It becomes possible.

Claims (2)

도트 매트릭스 글자 3배 확대방법에 있어서, 활자 ROM, RAM #1, RAM #2 및 RAM #3의 어드레스를 1번지로 지정하고, 카운터에 활자 ROM의 어드레스수의 1/3만큼을 지정한 다음 활자 ROM 어드레스의 1번지(FTPT)로 부터 1바이트의 데이타를 읽어내어 3바이트화 하며, 3바이트화한 데이타를 RAM #1의1,2,3번지에 저장하고, FTPT +1의 데이타를 읽어내어 3바이트화 한다음 RAM #2의 1,2,3번지에 저장하며, FTPT +2의 데이타를 읽어내어 3바이트화 한다음 RAM #3의 1,2,3번지에 저장하고, 그 다음에FTPT를 3증가시키고, RAM #1, RAM #2 및 RAM #3의 어드레스를 각각 3번지씩 증가시켜 재설정하며, 카운터를 1다운 시킨후 카운터를 검사하여 카운터가 0이 될때까지 상기의 동작을 반복하여서된 것을 특징으로 하는 도트 매트릭스 프린터의 글자 3배 확대방법.In the method of 3 times magnification of dot matrix letters, designate the address of type ROM, RAM # 1, RAM # 2 and RAM # 3 as address 1, designate 1/3 of the number of address of ROM in the counter, and then print type ROM. Read 1 byte of data from address 1 (FTPT) and convert it into 3 bytes, and store 3 bytes of data into 1, 2, 3 of RAM # 1, and read FTPT +1 data. Byted is stored in the 1,2,3 address of RAM # 2, FTPT +2 data is read and converted into 3 bytes, and it is stored in the 1,2,3 address of RAM # 3. Increase the number of RAM # 1, RAM # 2, and RAM # 3 by 3 addresses, and reset them.After setting the counter down, check the counter and repeat the above operation until the counter becomes 0. Character enlargement method of the dot matrix printer, characterized in that 3 times. 제1항에 있어서, D레지스터에 저장된 1바이트 데이타를 3바이트 데이타로 바꾸는 방법은 D레지스터의 비트 0을 체크하여 그 결과를 X레지스터의 비트 0,1,2에 저장하고 D레지스터의 비트 1를 체크하여 그결과를 X레지스터의 비트 3,4,5에 저장하여, D레지스터의 비트 2를 체크하여 X레지스터의 비트 6,7 및 X'레지스터의 비트 0에 그 결과를 저장하고, D레지스터의 비트 3을 체크하여 그 결과를 X'레지스터 비트 1,2,3에 저장하고, D레지스터의 비트 4를 체크하여 그 결과를 X'레지스터의 비트 4,5,6비트에 저장하고, D레지스터의 비트 5를 체크하여 그 결과를 D레지스터의 비트 7 및 D'레지스터의 비트 0.1에 저장하고, D레지스터의 비트 6을 체크하여 그 결과를 D'레지스터의 비트 2,3,4에 저장하고 D'레지스터의 비트 7을 체크하여 그 결과를 D'레지스터의 비트 5,6,7에 저장하는 것을 특징으로 하는 도트 애트릭스 프린터의 글자 3배 확대방법.The method of claim 1, wherein the method of converting 1-byte data stored in the D register into 3-byte data checks bit 0 of the D register, stores the result in bits 0, 1, and 2 of the X register, and stores bit 1 of the D register. Check and store the result in bits 3, 4 and 5 of the X register, check bit 2 of the D register and store the result in bits 6, 7 of the X register and bit 0 of the X 'register. Check bit 3 and store the result in the X 'register bits 1,2,3, check bit 4 of the D register and store the result in bits 4, 5, 6 bit of the X' register. Check bit 5 and store the result in bit 7 of the D register and bit 0.1 of the D 'register.Check bit 6 of the D register and store the result in bits 2, 3, and 4 of the D' register. Check bit 7 of the register and store the result in bits 5, 6 and 7 of the D 'register. How to letters three times magnification of the dot matrix printer according to claim her.
KR1019870015433A 1987-12-30 1987-12-30 Method for printing a three times enlarged korea-alphabetsin dot matrix printer KR900007282B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019870015433A KR900007282B1 (en) 1987-12-30 1987-12-30 Method for printing a three times enlarged korea-alphabetsin dot matrix printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019870015433A KR900007282B1 (en) 1987-12-30 1987-12-30 Method for printing a three times enlarged korea-alphabetsin dot matrix printer

Publications (2)

Publication Number Publication Date
KR890009622A KR890009622A (en) 1989-08-03
KR900007282B1 true KR900007282B1 (en) 1990-10-08

Family

ID=19267715

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019870015433A KR900007282B1 (en) 1987-12-30 1987-12-30 Method for printing a three times enlarged korea-alphabetsin dot matrix printer

Country Status (1)

Country Link
KR (1) KR900007282B1 (en)

Also Published As

Publication number Publication date
KR890009622A (en) 1989-08-03

Similar Documents

Publication Publication Date Title
EP0284904B1 (en) Display system with symbol font memory
US4737779A (en) Data processing apparatus with dot character generator
KR900007282B1 (en) Method for printing a three times enlarged korea-alphabetsin dot matrix printer
US6014225A (en) Frame buffer control method and circuit
JPS58192078A (en) Bit image memory processing system
EP0422294A1 (en) Display system
JP2846357B2 (en) Font memory device
KR890006185Y1 (en) 40x40 font devices without memory waste
JP2744250B2 (en) Character processing apparatus and method
JPS6230436B2 (en)
JPS6217752B2 (en)
JPH0486274A (en) Pattern generation system
JPH0253799B2 (en)
JPS6347908Y2 (en)
JPS60153080A (en) Accessing of kanji font memory
JPS58116581A (en) Display unit
JPH01229666A (en) Printer
JPH02287739A (en) Memory access method
JPH03154978A (en) Method and device for output of pattern
JPH0587839B2 (en)
JPH01204757A (en) Character pattern generation system
JP2000284775A (en) Dot pattern data editing system
JPH0664446B2 (en) Batch aspect conversion method
JPH0876738A (en) Kanji (chinese character) generator
JPH02164567A (en) Page printer for information processor

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
G160 Decision to publish patent application
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 19930329

Year of fee payment: 4

LAPS Lapse due to unpaid annual fee