JPS6161860A - Printer control apparatus - Google Patents

Printer control apparatus

Info

Publication number
JPS6161860A
JPS6161860A JP18279684A JP18279684A JPS6161860A JP S6161860 A JPS6161860 A JP S6161860A JP 18279684 A JP18279684 A JP 18279684A JP 18279684 A JP18279684 A JP 18279684A JP S6161860 A JPS6161860 A JP S6161860A
Authority
JP
Japan
Prior art keywords
memory
data
output
page
printer
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
JP18279684A
Other languages
Japanese (ja)
Inventor
Yoshio Maniwa
芳夫 馬庭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP18279684A priority Critical patent/JPS6161860A/en
Publication of JPS6161860A publication Critical patent/JPS6161860A/en
Pending legal-status Critical Current

Links

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/485Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by the process of building-up characters or image elements applicable to two or more kinds of printing or marking processes
    • B41J2/505Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by the process of building-up characters or image elements applicable to two or more kinds of printing or marking processes from an assembly of identical printing elements

Abstract

PURPOSE:To make it possible to have both of the function as a character printer and the function as an image printer in min. memory capacity, by forming the access address of pattern memory by the output data and rester number of page memory and selecting either one of output data of the page memory and the pattern memory. CONSTITUTION:At the time of the function as a character printer, the figure code transmitted from an external apparatus is converted to the internal code showing the stored address of figure pattern memory 4 corresponding to each figure code by a microcomputer 1 to be two-dimensionally arranged in page memory 3. When the output data corresponding to one page are gathered in the page memory 3, data corresponding to one line or one unit line are set to output memory 5 to start printing. At the time of the function as an image printer, image data are stored in the page memory 3 and, when the data corresponding to one page are stored, the data corresponding to one line is set to the output memory.

Description

【発明の詳細な説明】 進JムL所 この発明は、ラスタスキャン型のプリンタを制御するプ
リンタ制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION This invention relates to a printer control device for controlling a raster scan type printer.

従来玖土 一般に、プリンタとしては、例えばレーザプリンタ、ド
ツトアレイ蛍光管等の光書込みデバイスを使用したデジ
タルコピア等のラスタスキャン型のプリンタがある。
Conventional printers generally include raster scan type printers such as digital copiers that use optical writing devices such as laser printers and dot array fluorescent tubes.

このようなラスタスキャン型プリンタのビデオデータ生
成等の制御をするプリンタ制御装置としては、例えば1
ページ分のデータを行方向と列方向とに二次元的に図形
コードの形で配列し、プリント時にラスタ同期信号によ
って得られる位置情報で図形コードを読出して、その図
形コードに対応する図形パターンを読出して図形データ
を得るようにしたキャラクタマツプ方式によるものがあ
る。
As a printer control device that controls video data generation, etc. of such a raster scan type printer, for example, 1
Data for a page is arranged two-dimensionally in the form of a figure code in the row and column directions, and the figure code is read out using the position information obtained by the raster synchronization signal during printing, and the figure pattern corresponding to the figure code is generated. There is a character map method in which graphic data is obtained by reading.

また、ビットマツプメモリに1ページ分の図形データを
二次元的に予めドツトイメージの形で展開しておき、ラ
スタ同期(0号によってプリンタに出力するようにした
ビットマツプ方式によるものもある。
There is also a bitmap method in which graphic data for one page is developed two-dimensionally in the form of a dot image in a bitmap memory and output to a printer using raster synchronization (No. 0).

しかしながら、このようなプリンタ制御装置の内、前者
はメモリ容量が少なくてよく、高速処理が可能であるが
、外部からのイメージデータを扱いにくく、また印字位
置の自由度が小さいという不都合がある。
However, among such printer control devices, the former requires a small memory capacity and is capable of high-speed processing, but has disadvantages in that it is difficult to handle external image data and the degree of freedom in print position is small.

また、後者は外部からのイメージデータが扱え。Also, the latter can handle image data from outside.

印字位置の自由度が大きいが、メモリ容量が大きく、高
速処理がむずかしいという不都合がある。
Although there is a high degree of freedom in the printing position, there are disadvantages in that the memory capacity is large and high-speed processing is difficult.

目   的 この発明は上記の点に鑑みてなされたものであり、最小
限のメモリ容量でキャラクタプリンタ機能及びイメージ
プリンタ機能を併有できるようにすることを目的とする
Purpose This invention has been made in view of the above points, and an object of the present invention is to enable both a character printer function and an image printer function to be provided with a minimum memory capacity.

構成 この発明は上記の目的を達成するため、少なくとも1ペ
ージ分のプリンタデータを格納するページメモリと1図
形パターンを格納するパターンメモリと、ページメモリ
の出力データとラスタ番号とによってパターンメモリの
アクセスアドレスを生成するアドレス生成手段と、ペー
ジメモリ及びパターンメモリの出力データを選択する選
択手段とを設けたものである。
Structure In order to achieve the above object, the present invention includes a page memory that stores printer data for at least one page, a pattern memory that stores one graphic pattern, and an access address of the pattern memory based on the output data of the page memory and a raster number. , and selection means for selecting output data of the page memory and pattern memory.

以下、この発明の一実施例に基づいて具体的に説明する
Hereinafter, a detailed explanation will be given based on one embodiment of the present invention.

第1図は、この発明を実施したプリンタ制御装置の一例
を示すブロック図である。
FIG. 1 is a block diagram showing an example of a printer control device embodying the present invention.

マイクロコンピュータ(以下「マイコン」と称す)1は
、CPU、ROM、RAM、Ilo等からなり、この制
御装置全体の制御を司り、内部ROMに格納したプログ
ラムに基づいて各部を制御する。
A microcomputer (hereinafter referred to as "microcomputer") 1 includes a CPU, ROM, RAM, Ilo, etc., and controls the entire control device, controlling each part based on a program stored in an internal ROM.

外部インタフェース2は、図示しない画像処理装置2文
書処理装置、ビジネスコンピュータ等の各種外部装置(
ホストシステム)との間の図形コード(文字コードを含
む)データあるいはイメージデータや制御コードデータ
の授受を司る。
The external interface 2 connects various external devices (not shown) such as an image processing device 2, a document processing device, and a business computer.
It is responsible for exchanging graphic code (including character code) data, image data, and control code data with the host system.

ページメモリ3は、プリントデータを格納するメモリで
あり、少なくとも1ページ分のプリントデータを格納可
能な容量を有する。
The page memory 3 is a memory that stores print data, and has a capacity that can store at least one page of print data.

図形パターンメモリ4は1文字パターン等の図形パター
ンを格納するメモリであり、予め文字パターン等を格納
したROMあるいは必要時に外部装置から文字パターン
等をダウンロードするRAMで構成しである。
The graphic pattern memory 4 is a memory that stores graphic patterns such as single character patterns, and is composed of a ROM that stores character patterns in advance or a RAM that downloads character patterns and the like from an external device when necessary.

アウトプットメモリ(アウトプットバツプア)5は、プ
リント時に1行分又は1ユニツト(後述する)分の出力
データをセットするメモリであり、データ容量としては
2行分又は2ユニツト分の容量があり、データの入出力
に交互に使用される。
The output memory (output buffer) 5 is a memory in which one line or one unit (described later) of output data is set during printing, and has a data capacity of two lines or two units. , used alternately for data input and output.

このアウトプットメモリ5から読出された出力データは
後述する並直列変換器12に出力されると共に、図形パ
ターンメモリ4にアドレスデータとして出力される。
The output data read from the output memory 5 is output to a parallel-to-serial converter 12, which will be described later, and is also output to the graphic pattern memory 4 as address data.

CGコントローラ(CGC)6は、レーザプリンタ等の
ラスタスキャン型のプリンタ7からのラスタ同期信号を
計数して得られる位置情報をアドレスデータとしてアウ
トプットメモリ5に出力すると共に、ラスタ番号(ライ
ンNo、)をアドレスデータとして図形パターンメモリ
4に出力する。
A CG controller (CGC) 6 outputs position information obtained by counting raster synchronization signals from a raster scan type printer 7 such as a laser printer to the output memory 5 as address data, and also outputs raster numbers (line numbers, ) is output to the graphic pattern memory 4 as address data.

したがって、この図形パターンメモリ4は、アウトプッ
トメモリ5の出力データ、すなわちページメモリ6の出
力テ゛−夕とラスタ番号とによって生成されたアドレス
データでアクセスされる。
Therefore, this graphic pattern memory 4 is accessed with the output data of the output memory 5, that is, the address data generated from the output data and raster number of the page memory 6.

つまり、CGC6は、ページメモリ乙の出力デ゛−タと
ラスタ番号とによって図形パターンメモリ4のアクセス
アドレスを生成するアドレス生成手段を構成する。
In other words, the CGC 6 constitutes an address generating means that generates an access address for the graphic pattern memory 4 based on the output data of the page memory B and the raster number.

データセレクタ8及びアドレスセレクタSは、図形パタ
ーンメモリ4に対するデータ及びアドレスの切換えを司
るセレクタである。
The data selector 8 and the address selector S are selectors that control switching of data and addresses for the graphic pattern memory 4.

データセレクタ10及びアドレスセレクタ11は、アウ
トプットメモリ5に対するデータ及びナトレスの切換え
を司るセレクタである。
The data selector 10 and the address selector 11 are selectors that control data and Natres switching for the output memory 5.

並直列(p−s)変換器12は1図形パターンメモリ4
又はアウトプットメモリ5から読出されるパラレルの出
力データをシリアルデータに変換(P→S変換)して、
ビデオデータとしてプリンタフに出力する。
Parallel-serial (p-s) converter 12 has one figure pattern memory 4
Or convert the parallel output data read from the output memory 5 into serial data (P → S conversion),
Output to printer as video data.

プリンタインタフェース1!1は、プリンタ7との間で
の制御コードの転送及びプリンタ7からのレディ4H号
等の授受を司る。
The printer interface 1!1 controls the transfer of control codes to and from the printer 7 and the exchange of Ready 4H and the like from the printer 7.

次に、ページメモリ乙について第2図を参照して説明す
る。
Next, page memory B will be explained with reference to FIG.

このページメモリ乙には、外部装置からのデータがイメ
ージデータであれは、そのままそのイメージデータが格
納され、また図形コード(文字コートを含む)データで
あれば、マイコン1によって各図形コードデータに対応
する図形パターンメモリ4の格納アドレスを示す内部コ
ートに変換されて、その内部コードが制御コードに従っ
て二次元的に配置される。
In this page memory B, if the data from the external device is image data, that image data is stored as is, and if it is graphic code (including character code) data, the microcomputer 1 corresponds to each graphic code data. The internal code is converted into an internal code indicating the storage address of the graphic pattern memory 4, and the internal code is two-dimensionally arranged according to the control code.

このページメモリ乙におけるマツピンクについて第2図
を参照して述べる。なお、ここでは、主走査方向と行方
向が一致する垂直モートの場合について述べるが、主走
査方向と文字方向とが一致する水平モードの場合も同様
に考えることができるので、説明は省略する。
Pine pink in this page memory B will be described with reference to FIG. Here, we will discuss the case of a vertical mode in which the main scanning direction and the line direction match, but the same can be considered in the case of a horizontal mode in which the main scanning direction and character direction match, so the explanation will be omitted.

まず、一般的なキャラクタマツプ方式は第2図(イ)に
示すようなものであるが、この方式ではプロポーショナ
ルフォントが扱えない。
First, a general character map method is shown in FIG. 2(a), but this method cannot handle proportional fonts.

そこで、ここでは同図(ロ)に示すようにプロポーショ
ナルフォントのユニット幅(基本輻)でマツピングする
ようにしている。
Therefore, mapping is performed here using the unit width (basic convergence) of the proportional font, as shown in FIG.

この場合、■ユニットUは、同図(ハ)に示すように5
文字の種類、ユニット番号、フォント種類、アングライ
ンの有無等の修飾情報で全体として約16ビツ1−程度
必要になり、また1〜8ユニツトで1文字を表現する。
In this case, ■Unit U is 5 units as shown in the same figure (C).
Modification information such as character type, unit number, font type, presence or absence of angle lines, etc. requires about 16 bits in total, and one character is expressed by 1 to 8 units.

次に1図形パターンメモリ4について第6図を参照して
説明する。
Next, the one-figure pattern memory 4 will be explained with reference to FIG.

この図形パターンメモリ4に格納した図形パターンは、
第3図に示すように、例えば画素密度240dpi  
(ドツト/インチ)の場合では、12cPIで6LPI
の文字は24X40ドツトのマトリクスになる。また、
プロポーショナルフォントでは、文字間を1/60’の
整数倍で表現するものとした場合、1/60’が1ユニ
ツトUの幅となり4ドツトに相当する。
The figure pattern stored in this figure pattern memory 4 is
As shown in Figure 3, for example, the pixel density is 240 dpi.
(dots/inch), 12cPI is 6LPI
The characters become a matrix of 24x40 dots. Also,
In a proportional font, when character spacing is expressed as an integral multiple of 1/60', 1/60' is the width of one unit U, which corresponds to 4 dots.

したがって、上述したページメモリ乙の必要容量は、A
4サイズの印字用紙を考えると、長手方向が11インチ
で660ユニツト、短手方向を最大66行まで印字でき
るものとすると、87120バイト必要になる(ただし
、■ユニットは2バイトとしている)。ここでは、メモ
リ素子の構成上128にバイトのメモリを使用するもの
とする。
Therefore, the required capacity of page memory B mentioned above is A
Considering 4 sizes of printing paper, assuming that the longitudinal direction is 11 inches and 660 units can be printed, and the width direction can print up to 66 lines, 87120 bytes are required (However, ① units are assumed to be 2 bytes). Here, it is assumed that a 128-byte memory is used due to the structure of the memory element.

なお、画素密度240dpiの場合、主走査19201
−;ット、副走査2640ラインでA4サイズの全有効
範囲を形成し、ビットマツプメモリで対応するとした場
合には、633.6K バイトのメモリが必要になる。
In addition, in the case of pixel density 240 dpi, main scanning 19201
-; If the entire effective range of A4 size is formed with 2640 sub-scanning lines and supported by bitmap memory, 633.6 Kbytes of memory will be required.

しかし、一般的なCRTターミナルのハードコピー装置
としてのイメージプリンタを考えた場合、画素密度を半
分(120dpiJ としても実用上の問題はないので
、上記のようにキャラクタフタマツプとして考えたメモ
リ容量を120dpiのビットマツプメモリとして使用
することに実用上の問題はないと考えられる。
However, when considering an image printer as a hard copy device for a general CRT terminal, there is no practical problem even if the pixel density is reduced to half (120 dpi). It is thought that there is no practical problem in using it as a bitmap memory.

ただし1図形パターンメモリ素子としてRAMを使用す
る場合には、ページ−メモリたけでは不足な分を図形パ
ターンメモリ素子に割当てて使用することもできる。
However, when a RAM is used as one graphic pattern memory element, the amount of page memory that is insufficient can be allocated to the graphic pattern memory element for use.

次に、各メモリ間のデータの’A Icを第4図を参照
して説明する。
Next, the 'A Ic of data between each memory will be explained with reference to FIG.

ページメモリ3から読出されたデータは、アウトプット
メモリ5に一旦1行分又はlユニット列分格納される。
The data read from the page memory 3 is temporarily stored in the output memory 5 for one row or one unit column.

そして、このときC:GC6によってアウトプットメモ
リ5から読出された出力データは、アクセスアドレスの
一部として図形パターンメモリ4に転送され、図形パタ
ーンメモリ4の先頭アドレス(文字種、フォント種、ユ
ニット番号)が指定され、それと共にCGCG内のライ
ンカウンタ15の出力(ラスタ番号)が図形パターンメ
モリ4のアクセスアドレスとして出力されてユニット内
のラインNo、が指定される。
At this time, the output data read from the output memory 5 by the C:GC 6 is transferred to the graphic pattern memory 4 as part of the access address, and the start address (character type, font type, unit number) of the graphic pattern memory 4 is is specified, and at the same time, the output (raster number) of the line counter 15 in the CGCG is output as the access address of the graphic pattern memory 4, and the line number in the unit is specified.

一方、このときドツトカウンタ16は、1行のドツト数
を決定し、1行終了したときには行カウンタ(アドレス
カウンタ)17をカウントアツプする。
On the other hand, at this time, the dot counter 16 determines the number of dots in one line, and counts up the line counter (address counter) 17 when one line is completed.

そして、図形パターンメモリ4から読出されたデータは
1選択手段である選択回路18に転送される。
The data read from the graphic pattern memory 4 is then transferred to a selection circuit 18 which is one selection means.

また、この選択回路18には、アウトプットメモリ5か
ら読出されたデータ、すなわちページメモリ3からの出
力データが、図形パターンメモリ4への転送時に転送さ
れる。
Further, data read from the output memory 5, that is, output data from the page memory 3, is transferred to the selection circuit 18 when transferred to the graphic pattern memory 4.

そこで、この選択回路18は、マイコン1からのキャラ
クタプリンタ機能及びイメージプリンタ機能の設定結果
に応じて出力されるキャラクタ/イメージのいずれかを
指示するCHR/IMG信号に応じてアウトプットメモ
リ5の出力データ及び図形パターンメモリ4の出力デー
タのいずれかを選択する。
Therefore, this selection circuit 18 outputs the output from the output memory 5 in response to the CHR/IMG signal which instructs either the character/image to be output according to the setting results of the character printer function and the image printer function from the microcomputer 1. Either the data or the output data of the graphic pattern memory 4 is selected.

つまり、この選択回路18は、イメージが指示されたと
きには、アウトプットメモリ5の出力データ、すなわち
ページメモリ3の出力デ°−夕を選択し、キャラクタが
指示されたときには図形パターンメモリ4の出力データ
を選択して、並直列変換器12に出力する。
That is, when an image is specified, this selection circuit 18 selects the output data of the output memory 5, that is, the output data of the page memory 3, and when a character is specified, the selection circuit 18 selects the output data of the figure pattern memory 4. is selected and output to the parallel-to-serial converter 12.

次に、このドツトカウンタ15及び並直列変換器12に
ついて第5図を参照して説明する6まず、ラスタ同期信
号とプリント出力との関係について第6図を参照して説
明しておくと、主走査はその有効期間としてラスタゲー
ト(LGATE)信号、クロックとしてワイズクロック
(WCLK)信号があり、副走査はその有効期間として
フレームゲート(FGATE)信号、クロックとしてラ
スタ同期(Lsync)信号がある。
Next, the dot counter 15 and parallel-to-serial converter 12 will be explained with reference to FIG. 5.6 First, the relationship between the raster synchronization signal and print output will be explained with reference to FIG. Scanning has a raster gate (LGATE) signal as its valid period and a width clock (WCLK) signal as its clock, while sub-scanning has its valid period as a frame gate (FGATE) signal and its clock as a raster synchronization (Lsync) signal.

なお、Lsync信号は、LGATE信号に先行して発
生するものとする。
Note that the Lsync signal is assumed to be generated prior to the LGATE signal.

第5図に戻って、並直列変換器12は、最大16ビツト
まで扱えるシフトレジスタからなり。
Returning to FIG. 5, the parallel/serial converter 12 consists of a shift register that can handle up to 16 bits.

アウトプットメモリ5からのイメージデータあるいは図
形パターンメモリ4からの図形パターンデータが入力さ
れる。
Image data from the output memory 5 or graphic pattern data from the graphic pattern memory 4 are input.

この場合、アウトプットメモリ5には、−主走査線分の
120バイト(イメージのとき960ドツト)のデータ
が、主走査と主走査との間を利用してページメモリ3か
らDMA転送あるいはマイコン1によるブロック転送に
よって一主走査線毎に格納卒れる。
In this case, 120 bytes of data (960 dots for images) for -main scanning lines are transferred to the output memory 5 from the page memory 3 by DMA transfer or transferred to the microcomputer 1 using the space between main scanning lines. Due to block transfer, data is stored one main scanning line at a time.

なお、マイコン1には、LGATE信号の後縁をインタ
ラブド信号として入力しておき、イメージのときに12
0dpiの画素密度を副走査方向でも実現するために、
奇数番目のインタラブドではアウトプットメモリ5のデ
ータを更新しないでそのまま同じデータを出力する。
Note that the trailing edge of the LGATE signal is input to the microcomputer 1 as an interwoven signal, and when the image is
In order to achieve a pixel density of 0 dpi in the sub-scanning direction,
In odd-numbered interlinked data, the data in the output memory 5 is not updated and the same data is output as is.

このように、240dpiのプリンタを120dpiと
して使用するために画像品質が劣化するが、斜めに対向
するドツトでは1ドツト補間する様な工夫をハード的に
追加することもできる。
In this way, image quality deteriorates because a 240 dpi printer is used as a 120 dpi printer, but it is also possible to add hardware measures such as one-dot interpolation for diagonally opposing dots.

なi、ページメモリ乙のデータをそのまま出力データと
するイメージプリンタとして機能するときには、水平走
査方向、垂直走査方向共、 II数個のタイミングで1
つのデータを出力することによって図形を拡大する。
When functioning as an image printer that outputs the data in page memory B as it is, 1 at several timings in both the horizontal and vertical scanning directions.
Expand the shape by outputting two pieces of data.

一方、クロックセレクタ20は、WCLK信号及びこの
WCLK信号を172分周(周期が倍)したIZ’2W
CLK信号とを入力し、マイコン1からのCHR/IM
G信号に応じて両者のいずれかを選択して、シフトレジ
スタ(並直列変換器)12及びドツトカウンタコントロ
ーラ21にクロック信号として出力する。
On the other hand, the clock selector 20 receives the WCLK signal and the IZ'2W signal obtained by dividing the WCLK signal by 172 (doubling the period).
CLK signal and CHR/IM from microcontroller 1.
One of the two is selected according to the G signal and output as a clock signal to the shift register (parallel-serial converter) 12 and dot counter controller 21.

それによって、1/2WCLK信号が選択されたときに
は、シフトレジスタ12に入力される16ビツトのデー
タは、32クロツクの周期で更新され、主走査方向の1
20dpiを実現することができる。
As a result, when the 1/2WCLK signal is selected, the 16-bit data input to the shift register 12 is updated at a cycle of 32 clocks, and the 16-bit data input to the shift register 12 is updated at a cycle of 32 clocks.
20 dpi can be achieved.

また、ドツトカウンタコントローラ21は、プリントを
開始する前にマイコン1によって16進カウンタとして
動作するようにセットされており。
Further, the dot counter controller 21 is set by the microcomputer 1 to operate as a hexadecimal counter before starting printing.

16ビツトのデータの出力が終了すると、アウトプット
メモリ5のアドレスカウンタ17をカウントアツプする
と共に、シストレジスタ12にロード(LOAD)信号
を出力して、現在出力されている出力データをシフトレ
ジスタ12にロードさせる。
When the output of the 16-bit data is completed, the address counter 17 of the output memory 5 is counted up, and a load (LOAD) signal is output to the system register 12 to transfer the currently output data to the shift register 12. Let it load.

例えばキャラクタプリンタとしては図形パターンの高さ
を4ビツト間隔で選択できるものとした場合、図形パタ
ーンメモリ乙の並列出力を8ビツト、図形の高さを28
ドツトとしたとき、8−8−8−4の周期で図形パター
ンメモリ4に図形アドレスを、またシフトレジスタ12
にLOAD信号を出力し、28ビツト周期でアウトプッ
トメモリ5のアドレスカウンタ17をカラン1−アップ
させる。
For example, for a character printer, if the height of the graphic pattern can be selected in 4-bit intervals, the parallel output of the graphic pattern memory B is 8 bits, and the height of the graphic is 28 bits.
When it is a dot, the figure address is stored in the figure pattern memory 4 at a cycle of 8-8-8-4, and the shift register 12 is
It outputs a LOAD signal to increment the address counter 17 of the output memory 5 by 1 at a cycle of 28 bits.

なお1図形パターンの高さは、プリント開始前にマイコ
ン1によって予めトラ1−カウンタコン1〜ローラ21
にセットできるものとする。
Note that the height of one figure pattern is set in advance by the microcomputer 1 before printing starts.
It shall be possible to set the

次に、各信号のタイミングについて第7図を参照して説
明する。
Next, the timing of each signal will be explained with reference to FIG.

Lsync信号は、L G A T E m号に先1テ
シて発生するので、主走査カウンタ系のリセット信号。
The Lsync signal is generated one time before the L G A T E m, so it is a reset signal for the main scanning counter system.

初期メモリ読出し、シフトレジスタLOAD号の作成に
利用する。
Used for initial memory reading and creating shift register LOAD number.

また、CGコントO−ラ(CGC)6の動作時には、ア
ウトプットメモリ5からのイメージデータあるいは図形
パターンメモリ4からの図形パターンデータをプリンタ
に出力し、CPU (マイコン1)動作時には、ページ
メモリろからの読出しデータをアウトプットメモリ5に
転送する。
Also, when the CG controller (CGC) 6 is operating, image data from the output memory 5 or figure pattern data from the figure pattern memory 4 is output to the printer, and when the CPU (microcomputer 1) is operating, it is output to the page memory filter. The read data is transferred to the output memory 5.

この場合、イメージデーターの場合はl主走査毎に12
0バイトのデータを、キャラクタデータの場合で場合は
垂直モードのときには4主走査毎にlユニット列のデー
タを、水平モートのときには28〜40主走査毎に1行
分のデータを転送する必要があり、1回の動作で全デー
タが転送できなければ、複数回に分けて転送する。
In this case, in the case of image data, 12
In the case of character data, it is necessary to transfer 1 unit column of data every 4 main scans in vertical mode, and 1 row of data every 28 to 40 main scans in horizontal mode. Yes, if all data cannot be transferred in one operation, it is divided into multiple transfers.

次に、このように構成したこのプリンタ制御装置の作用
について簡単に説明する。
Next, the operation of this printer control device configured as described above will be briefly explained.

まず、キャラクタプリンタとして機能するときについて
説明すると、外部装置から転送された図形コード(文字
コードを含む)がマイコン1によって各図形コードに対
応する図形パターンメモリ4の格納アドレスを示す内部
コードに変換されて、ページメモリ3に二次元的に配置
される。
First, to explain when it functions as a character printer, graphic codes (including character codes) transferred from an external device are converted by the microcomputer 1 into internal codes that indicate the storage address of the graphic pattern memory 4 corresponding to each graphic code. and are arranged two-dimensionally in the page memory 3.

そして、ページメモリ乙に1ページ分の出力データが揃
ったときに、アウトプットメモリ5に1行分又は1ユニ
ット列分のデータをセットしてプリントを開始する。
Then, when the output data for one page is completed in the page memory B, data for one row or one unit column is set in the output memory 5 and printing is started.

プリント期間中は、第7図に示すタイミングのようにア
ラ1−プツトメモリ5及び図形パターンメモリ4はマイ
コン1及びCGC6によって時分割制御される。
During the printing period, the alarm memory 5 and the graphic pattern memory 4 are time-divisionally controlled by the microcomputer 1 and the CGC 6 as shown in FIG.

まず、マイコン1による制御期間中は、プリンタフの主
走査と主走査との再同期に要する期間ではあり、この期
間内に次に印字する1行分又はlユニット列分の出力デ
ータが複数回の分けて少しずつアウトプットメモリ5に
セラ1−される。
First, the control period by the microcomputer 1 is the period required for resynchronizing the printer's main scanning and main scanning, and during this period, the output data for one line or one unit column to be printed next will be printed multiple times. The output memory 5 is divided into parts and stored little by little.

一方、CG(lによる制御期間中は、アウトプットメモ
リ5及び図形パターンメモリ4はセレクタ8〜11によ
ってマイコン1による制御下を離れてCGC6の制御下
に入る。
On the other hand, during the control period by CG(l), the output memory 5 and the graphic pattern memory 4 are removed from the control of the microcomputer 1 and placed under the control of the CGC 6 by the selectors 8 to 11.

そして、cacsは、プリンタ7からのラスタ同期信号
を計数して得られる位置情報をアドレスとしてアウトプ
ットメモリ5から図形の内部コードをアクセスし、その
内部コードを図形パターンメモリ4の格納アドレスの一
部とすると同時に、図形パターンメモリ4にラインNo
、(ラスタ番号)をアドレスの残部として与えて図形パ
ターンデータを得る。
Then, cacs accesses the internal code of the figure from the output memory 5 using the position information obtained by counting the raster synchronization signals from the printer 7 as an address, and uses the internal code as part of the storage address of the figure pattern memory 4. At the same time, the line number is stored in the figure pattern memory 4.
, (raster number) as the remainder of the address to obtain graphic pattern data.

このようにして図形パターンメモリ4から読出された図
形パターンデータは、選択回路18を介して並直列変換
器12に転送されてシリアルデータに変換されてプリン
タフに出力され、印字が行なわれる。
The graphic pattern data thus read out from the graphic pattern memory 4 is transferred to the parallel/serial converter 12 via the selection circuit 18, converted into serial data, and output to the printer for printing.

次に、イメージプリンタとして機能するときには、ペー
ジメモリ乙にイメージデータが格納され。
Next, when functioning as an image printer, image data is stored in page memory B.

1ページ分のデータを格納したときに、上述したと同様
にしてアウトプットメモリ5に1行分のデータをセット
する。
When one page's worth of data is stored, one line's worth of data is set in the output memory 5 in the same manner as described above.

そして、CGC6による制御下でアウトプットメモリ5
からの出力データをそのまま出力データとして選択回路
18を介して並直列変換器12に転送してシリアルデー
タに変換し、プリンタに出力して印字する。
Then, under the control of the CGC 6, the output memory 5
The output data is directly transferred as output data to the parallel-to-serial converter 12 via the selection circuit 18, where it is converted into serial data, and output to a printer for printing.

このように、このプリンタにおいては、プリンタデータ
を格納するページメモリと1図形パターンを格納するパ
ターンメモリとを備え、ページメモリの出力データとラ
スタ番号とによってパターンメモリのアクセスアドレス
を生成すると共に。
In this manner, this printer includes a page memory for storing printer data and a pattern memory for storing one graphic pattern, and generates an access address for the pattern memory based on the output data of the page memory and the raster number.

ページメモリ及びパターンメモリの出力データのいずれ
かを選択して出力するようにしている。
Either the output data of the page memory or the pattern memory is selected and output.

それによって、最小限のメモリ容量でキャラクタプリン
タ機能及びイメージプリンタ機11ピを併有させること
ができる。
As a result, it is possible to have both a character printer function and an 11-pin image printer with a minimum memory capacity.

つまり、特に小型のヒジ不スコンピュータでは、ワード
プロセッシング機能、グラフィック機能等か重要視され
ており、プリンタ、もその目的に対応することが要求さ
れる。
In other words, especially in small-sized computers, importance is placed on word processing functions, graphic functions, etc., and printers are also required to be compatible with these purposes.

この場合、ワードプロセッシング機能は高速で高印字品
質が要求されるが、グラフィック鍋能はコンピュータの
CRT上で図形を作成しそのままのイメージをハードコ
ピーとする場合が多いので。
In this case, the word processing function requires high speed and high print quality, but in graphic pot production, figures are often created on a computer's CRT and the exact image is made into a hard copy.

必すしもワードプロセッシング機能時程の性能が要求さ
れない。
It does not necessarily require the same performance as a word processing function.

したがって、この発明を実施することによって、このよ
うなホストシステムの端末としてプリンタを使用する場
合、キャラクタプリンタとしての高速性、高印字品質を
維持しつつ、グラフィック機能にも容易に対応すること
かできる。
Therefore, by implementing the present invention, when a printer is used as a terminal for such a host system, it is possible to easily support graphic functions while maintaining high speed and high print quality as a character printer. .

効果 以上説明したように、この発明によれば、最小限のメモ
リ容量でキャラクタプリンタ機能及びイメージプリンタ
機能を併有させることかできる。
Effects As explained above, according to the present invention, it is possible to have both a character printer function and an image printer function with a minimum memory capacity.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は、この発明の一実施例を示すブロック図。 第2図(イ)〜(ハ)は、ページメモリのマツピングの
説明に供する説明図。 第3図(イ)、(ロ)は、図形パターンメモリの図形パ
ターンの説明に供する説明図。 第4図は、メモリ間のデータの流れの説明に供する要部
ブロック図。 第5図は、同じくそのドツトカウンタ及び並直列変換器
の要部ブロック図。 第6図は、ラスタ同期信号とプリント出力との関係の説
明に供する説明図、 第7図は、制御タイミングの説明に供するタイミングチ
ャート図である。 1・・・マイクロコンピュータ 3・・・ページメモリ 4・・・図形パターンメモリ5
・・・アウトプットメモリ 6・・・CGコントローラ  7・・・プリンタ12・
・・並直列変換器   18・・・選択回路第2図 でη泊      (イ) 副走コ゛r方向 (ロ) 第3図 (イ) フ  フ  フ  コ  フ 第4図 ビデオデータ 第5図 第6図
FIG. 1 is a block diagram showing one embodiment of the present invention. FIGS. 2A to 2C are explanatory diagrams for explaining page memory mapping. FIGS. 3A and 3B are explanatory diagrams for explaining graphic patterns in a graphic pattern memory. FIG. 4 is a block diagram of main parts for explaining the flow of data between memories. FIG. 5 is a block diagram of the main parts of the dot counter and parallel-to-serial converter. FIG. 6 is an explanatory diagram for explaining the relationship between raster synchronization signals and print output, and FIG. 7 is a timing chart diagram for explaining control timing. 1...Microcomputer 3...Page memory 4...Graphic pattern memory 5
...Output memory 6...CG controller 7...Printer 12.
...Parallel-to-serial converter 18... Selection circuit η in Figure 2 (a) Sub-travel direction (b) Figure 3 (a) Fufufukofu Figure 4 Video data Figure 5 Figure 6 figure

Claims (1)

【特許請求の範囲】[Claims] 1 ラスタスキャン型のプリンタを制御するプリンタ制
御装置において、少なくとも1ページ分のプリントデー
タを格納するページメモリと、図形パターンを格納する
パターンメモリと、前記ページメモリの出力データとラ
スタ番号とによつて前記パターンメモリのアクセスアド
レスを生成するアドレス生成手段と、前記ページメモリ
及びパターンメモリの出力データを選択する選択手段と
を設けたことを特徴とするプリンタ制御装置。
1 In a printer control device that controls a raster scan type printer, a page memory that stores print data for at least one page, a pattern memory that stores a graphic pattern, and output data of the page memory and a raster number A printer control device comprising: address generation means for generating an access address for the pattern memory; and selection means for selecting output data from the page memory and the pattern memory.
JP18279684A 1984-09-03 1984-09-03 Printer control apparatus Pending JPS6161860A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18279684A JPS6161860A (en) 1984-09-03 1984-09-03 Printer control apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18279684A JPS6161860A (en) 1984-09-03 1984-09-03 Printer control apparatus

Publications (1)

Publication Number Publication Date
JPS6161860A true JPS6161860A (en) 1986-03-29

Family

ID=16124566

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18279684A Pending JPS6161860A (en) 1984-09-03 1984-09-03 Printer control apparatus

Country Status (1)

Country Link
JP (1) JPS6161860A (en)

Similar Documents

Publication Publication Date Title
JP2647534B2 (en) Output device
JPS6035687B2 (en) Print data control device
JPS6161860A (en) Printer control apparatus
GB2185608A (en) Laser printer control system
JPS58117036A (en) Print controller
JP2502753B2 (en) Image output device
JP2782798B2 (en) Image output device
JPH0729448B2 (en) Printer controller
JPH0645252B2 (en) Rastaskian printer controller
JP2752821B2 (en) Image recording device
JP3304769B2 (en) Address translation device
JPH02711B2 (en)
JP2911529B2 (en) Printing equipment
JP2564521B2 (en) Computer terminal
JP4454831B2 (en) Image forming apparatus and image forming method
JP2850371B2 (en) Image output device
JPH1093813A (en) Recording device
JPS60245362A (en) Printer control device
JP2690567B2 (en) Printing control device
JPS61100473A (en) Printer-controlling system
JPS6364086A (en) Output unit
JPH05211593A (en) Printer
JPS6198439A (en) Printer
JPS61106262A (en) Printer
JPH02226195A (en) Character generation system