KR910007445B1 - Printer head pin driving circuit by dma method - Google Patents
Printer head pin driving circuit by dma method Download PDFInfo
- Publication number
- KR910007445B1 KR910007445B1 KR1019880002552A KR880002552A KR910007445B1 KR 910007445 B1 KR910007445 B1 KR 910007445B1 KR 1019880002552 A KR1019880002552 A KR 1019880002552A KR 880002552 A KR880002552 A KR 880002552A KR 910007445 B1 KR910007445 B1 KR 910007445B1
- Authority
- KR
- South Korea
- Prior art keywords
- dma
- data
- output
- signal
- flop
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K15/00—Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Record Information Processing For Printing (AREA)
- Dot-Matrix Printers And Others (AREA)
Abstract
Description
제1도는 본 발명의 회로도.1 is a circuit diagram of the present invention.
제2a 내지 제2e도는 본 발명을 설명하기 위한 타이밍챠트.2A to 2E are timing charts for explaining the present invention.
* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings
10 : DMA 콘트롤로직 20, 21 : 래치10:
30 : J-K 플립플롭 40 : 트리거펄스 발생기30: J-K flip-flop 40: trigger pulse generator
H1...H16: 프린트헤드핀H 1 ... H 16 : Printhead pin
Q1...Q16: 프린트헤드 구동용 트랜지스터Q 1 ... Q 16 : Printhead Driving Transistor
본 발명은 프린터의 프린트헤드핀 구동회로에 관한 것으로서 특히 임팩트 도트 매트릭스 프린터(impact dot matrix printer)의 프린트헤드핀을 CPU에 부하를 주지않고 빠른속도로 구동시키기 위한 회로에 관한 것이다.The present invention relates to a printhead pin driving circuit of a printer, and more particularly to a circuit for driving a printhead pin of an impact dot matrix printer at high speed without load on the CPU.
임팩트 도트 매트릭스 프린터는 1열 내지 2열로 늘어선 프린트헤드핀을 글자모양에 따른 폰트(font)에 맞게 구동하여 글자체를 성형시키는 장치인 바, 프린트헤드핀을 구동하는 종래의 방법은 프린트헤드핀의 구동주파수에 맞는 카운터의 출력을 CPU의 인터럽트 리퀘스트(interrupt request)로 이용하여 매번 인터럽트단자 CPU가 해당 폰트데이타를 읽어 직접 프린트헤드핀을 구동시켰었다. 그런, 이러한 방법은 CPU에 부하를 걸게 되므로 CPU의 처리속도가 느려지게 된다는 단점이 있었다.The impact dot matrix printer is a device for forming a font by driving printhead pins arranged in rows 1 to 2 in accordance with fonts according to the shape of a letter. A conventional method of driving printhead pins is to drive printhead pins. Using the output of the counter corresponding to the frequency as the interrupt request of the CPU, the interrupt terminal CPU reads the font data and directly drives the printhead pin. Such a method, however, has a disadvantage of slowing down the processing speed of the CPU because it puts a load on the CPU.
따라서, 본 발명의 목적은 DMA(Direct Memory Access; 시스템의 메모리에 있는 데이터를 CPU의 게재 없이 직접 입/출력 장치로 전송하는 것)기능을 내장한 마이컴을 이용하여 폰트데이타로 프린트헤드핀을 구동하는 작업을 DMA 방식으로 처리하므로써 CPU에 부하를 덜어 주어 빠른 처리속도를 성취할 수 있도록 한 프린트헤드핀 구동회로를 제공하는데 있다.Accordingly, an object of the present invention is to drive printhead pins with font data using a microcomputer with a built-in DMA (Direct Memory Access) function, which transfers the data in the system's memory to the input / output device without the CPU. It is to provide a printhead pin driving circuit that can reduce the load on the CPU by performing the DMA method to achieve a high processing speed.
이하, 본 발명의 구성 및 작용효과를 상세히 설명하면 다음과 같다.Hereinafter, the configuration and effect of the present invention will be described in detail.
본 발명은 외부 래디(Ready) 신호를 체크하여 데이터 어베일러블(Data Available) 신호와 소정수의 데이터를 전송하는 제1수단과, 상기의 제1수단에서 전송된 데이터를 저장하여 프린트헤드핀을 구동시키기 위한 제2수단과, 상기의 데이터 어베일러블 신호를 분주시켜 상기의 제2수단에 공급하기 위한 제3수단 및 상기의 제2수단에 출력인에이블 신호를 제공하기 위한 제4수단으로 구성된다.The present invention includes a first means for checking an external ready signal to transmit a data available signal and a predetermined number of data, and storing the data transmitted from the first means to store the printhead pin. A second means for driving, a third means for dividing the data available signal to be supplied to the second means, and a fourth means for providing an output enable signal to the second means. do.
본 발명에 따른 제1수단은 DMA기능을 내장한 마이컴을 CPU로 사용하거나, DMA콘트롤러 전용집으로 구성되는 바, 이하 본 명세서에서는 DMA 콘트롤로직(10)이라 약칭한다.The first means according to the present invention uses a microcomputer with a built-in DMA function as a CPU, or is composed of a dedicated DMA controller. Hereinafter, in the present specification, the
제2수단은 적어도 두 개 이상의 래치(20)(21)로 구성될 수도 있고, 제3수단은 적어도 한 개 이상의 J-K플립플롭(30)으로 구성될 수도 있는 바, J-K 플립플롭(30)의 출력()(Q)은 래치(20)(21)의 클럭단자(CLK)에 각각 연결되어 있다. 래치(20)(21)의 각각의 출력단에는 다수의 프린트헤드핀(H1...H16)을 구동시키기 위한 트랜지스터(Q1...Q16)가 연결될 수도 있다.The second means may be composed of at least two
제4수단은 트리거드된 펄스를 발생시키기 위한 트리거 펄스발생기(40)로 구성될 수도 있는 바, 이 발생기(40)는 J-K 플립플롭(30)의 출력에 의해 데이터(D0...D7)가 래치(20)(21)에 래치된 직후 래치(20)(21)의 출력 인에이블 신호 ()단자에 펄스를 제공하여 래치된 데이터가 트랜지스터(Q1...Q16)를 구동시키도록 한다.The fourth means may be constituted by a
이와 같이 구성된 본 발명의 동작을 살펴보면 다음과 같다.Looking at the operation of the present invention configured as described above are as follows.
우선, CPU(도시하지 않았음)는 DMA 콘트롤로직(10)으로 전송되어질 데이터의 스타트 어드레스와 전송카운트를 건네준다. 이때 DMA 콘트롤러직(10)은 DMA 리퀘스트단자(DMA REQ)에 입력되는 외부 래디신호(READY)(제2a도)를 체크하여 래디상태이면 데이터 어베일러블신호(제2b도)를 DMA 액노리지단자(DMA ACK)를 통해 J-K 플립플롭(30)에 전송함과 동시에 메모리의 1바이트 데이터를 래치(20)(21)로 전송하여 전송카운트를 감소시킨다.First, a CPU (not shown) passes a start address and a transfer count of data to be transferred to the
래치(20)(21)의 입력단에 전송된 데이터는 J-K 플립플롭(30)에 의하여 첫 번째(짝수) 바이트는 래치(20)에 래치되고(제2d도, 다음에 전송되는 홀수 데이터는 래치(21) (제2c도)에 래치된다.The data transmitted to the inputs of the
두 번의 데이터 어베일러블 신호에 의하여 래치(20)(21)에 각각 래치된 직후 프린트헤드핀(H1...H16)이 트랜지스터(Q1...Q16)의 턴온작용에 의해 구동되기 위해서는 최소한 200...300μs 동안은 턴온상태를 유지해야 하기 때문에 트리거펄스 발생기(40)에서 트리거된 펄스(제2e도)가 래치(20)(21)의 각각의 출력 인에이블 단자 ()에 공급된다.The printhead pins H 1 ... H 16 are driven by the turn-on action of the transistors Q 1 ... Q 16 immediately after being latched to the
래치(20)(21)의 출력 인에이블단자 ()에 트리거된 펄스가 인가되면, 래치(20)(21)의 출력신호는 트랜지스터(Q1...Q16)의 베이스에 인가된 뒤 프린트헤드핀(H1...H16)을 구동하게 된다.Output enable terminal of
전술한 과정은 전송카운트가 0이 될 때까지 반복하는 바, CPU는 전송카운트가 0인지 아닌지를 체크하여 다음에 전송할 데이터 블록을 초기화시킨다.The above-described process is repeated until the transfer count becomes 0. The CPU checks whether the transfer count is 0 or not and initializes the next block of data to be transmitted.
이와 같이 동작하는 본 발명은 매번 인터럽트에 의하여 CPU가 직접 프린트헤드핀을 구동하는 종래의 방식에 비해 DMA 방식을 사용하여 CPU의 게재없이 메모리에 있는 데이터를 곧바로 프린트헤드핀을 구동시키기 위한 래치로 전송하여 구동시킴으로써 CPU의 부하를 덜어주게 되어 고속처리를 수행할 수 있는 특징을 지닌 것이다.The present invention operating as described above transfers the data in the memory directly to the latch for driving the printhead pin without the CPU by using the DMA method, compared to the conventional method in which the CPU directly drives the printhead pin by an interrupt every time. By reducing the load on the CPU by running the drive has a feature that can perform high-speed processing.
본 발명은 1핀...16핀까지의 프린트헤드를 가정하였기 때문에 제1도에는 단지 두 개의 래치와 한 개의 분주회로만이 도시되었으나, 본 발명은 이에 한정되는 것이 아니라, 다수의 프린트헤드를 구동시키기 위해서는 그에 필요한 분주회로 및 래치로 구성될 수도 있음을 알 수 있다.Since the present invention assumes a printhead of 1 pin to 16 pins, only two latches and one divider circuit are shown in FIG. 1, but the present invention is not limited thereto. It can be seen that it may be composed of a divider circuit and a latch required for driving.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019880002552A KR910007445B1 (en) | 1988-03-11 | 1988-03-11 | Printer head pin driving circuit by dma method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019880002552A KR910007445B1 (en) | 1988-03-11 | 1988-03-11 | Printer head pin driving circuit by dma method |
Publications (2)
Publication Number | Publication Date |
---|---|
KR890015111A KR890015111A (en) | 1989-10-28 |
KR910007445B1 true KR910007445B1 (en) | 1991-09-26 |
Family
ID=19272773
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019880002552A KR910007445B1 (en) | 1988-03-11 | 1988-03-11 | Printer head pin driving circuit by dma method |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR910007445B1 (en) |
-
1988
- 1988-03-11 KR KR1019880002552A patent/KR910007445B1/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
KR890015111A (en) | 1989-10-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0774358A1 (en) | Thermal Printer | |
KR910007445B1 (en) | Printer head pin driving circuit by dma method | |
US4487515A (en) | Multiple action print head control circuit for a dot matrix printer | |
US3845710A (en) | Print control logic circuitry for on-the-fly printers | |
KR100398032B1 (en) | small printer | |
CN113524920B (en) | Semiconductor device with a plurality of semiconductor chips | |
JP2645170B2 (en) | Line printer printing method | |
KR880000997B1 (en) | Rajor printer | |
KR910003595Y1 (en) | Driving circuit for printer head | |
JPS58145463A (en) | Printing controller | |
JP3182789B2 (en) | Printer control device, printer and control method therefor | |
JP3222327B2 (en) | Thermal printer | |
JPS60201958A (en) | Data forwarding circuit for thermal head | |
KR910001971B1 (en) | Circuit for detecting and eliminating pin data heighboring with other pin data in dot matrix printer | |
JP2647064B2 (en) | Print control device for thermal printer | |
JPS5832933Y2 (en) | Half dot print control device | |
JPH0569580A (en) | Printing element drive circuit device and printer | |
KR890006186Y1 (en) | Direct memory access demand circuits for parallel circuits | |
JP2758277B2 (en) | DPI print control circuit in serial printer | |
JP2932606B2 (en) | Printing device | |
JPS61225065A (en) | Printing system of wire dot matrix printer | |
JPH04345869A (en) | Serial dot matrix printer | |
JPH10250055A (en) | Ink jet printer | |
JPH04138264A (en) | Printer head | |
JPH05162358A (en) | Thermal recording device |
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: 20020830 Year of fee payment: 12 |
|
LAPS | Lapse due to unpaid annual fee |