JPH03114850A - Printer control apparatus - Google Patents

Printer control apparatus

Info

Publication number
JPH03114850A
JPH03114850A JP25392789A JP25392789A JPH03114850A JP H03114850 A JPH03114850 A JP H03114850A JP 25392789 A JP25392789 A JP 25392789A JP 25392789 A JP25392789 A JP 25392789A JP H03114850 A JPH03114850 A JP H03114850A
Authority
JP
Japan
Prior art keywords
font
data
character
address
memory
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
JP25392789A
Other languages
Japanese (ja)
Inventor
Kenichi Yamamoto
健一 山本
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.)
Toshiba TEC Corp
Original Assignee
Tokyo Electric 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 Tokyo Electric Co Ltd filed Critical Tokyo Electric Co Ltd
Priority to JP25392789A priority Critical patent/JPH03114850A/en
Publication of JPH03114850A publication Critical patent/JPH03114850A/en
Pending legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)

Abstract

PURPOSE:To reduce memory capacity and cost and to restrain processing speed from falling down by providing a circuit only for use in generating character font for landscape by rotating character font for portrait through 90 degrees. CONSTITUTION:When the address of font memory A2 from where the memory is transferred is selected by means of a microprocessor 11, character font data is read out from the selected transferring address based on transfer data size and scan width which are set in advance by means of a font rotation circuit 16 so that the character font data is rotated through 90 degrees and transferred to an address which is set in advance in a memory B2. In this manner, character font for landscape is generated in an exclusive circuit, whereby a region for character font for landscape is not needed, resulting in reduction in memory capacity and cost, thereby a lowering of processing speed can be reduced to a minimum.

Description

【発明の詳細な説明】 [産業上の利用分野〕 本発明は、通常のポートレート印字(用紙の長手方向に
対して直角方向に文字列が並ぶ印字方法)で使用される
文字フォントを90度回転させて印字させるランドスケ
ープ印字(用紙の長手方向に文字列が並ぶ印字方法)機
能を備えたレーザプリンタ等のプリンタ制御装置に関す
る。
Detailed Description of the Invention [Industrial Field of Application] The present invention is directed to a character font used in normal portrait printing (a printing method in which character strings are arranged perpendicular to the longitudinal direction of paper). The present invention relates to a printer control device, such as a laser printer, that has a landscape printing function (printing method in which character strings are arranged in the longitudinal direction of a sheet of paper) that prints by rotating it.

[従来の技術] 従来のこの種のプリンタ制御装置としては、第6図に示
すものが知られている。同図において1は制御部本体と
してのマイクロプロセッサ、2はマイクロプロセッサに
対する制御プログラムの領域AI、ポートレート印字用
の各種文字フォントデータを記憶する領域A2、上記ポ
ートレート印字用の各種文字フォントデータを90度回
転させたランドスケープ印字用の文字フォントデータを
記憶する領域A3等からなる不揮発性メモリ、3は特に
前記各文字フォントデータの書き込みおよび読出しが可
能なラスター領域B1を有する各種データの書き込みお
よび読出しが可能なRAM(ランダム争アクセスΦメモ
リ) 4は上記RAM3のラスター領域B1から文字フ
ォントデータを読出してレーザプリンタエンジン部5に
出力するためのデータ出力回路、5は上記データ出力回
路4を介して与えられた文字フォントデータに基づいて
用紙に印字を行うレーザプリンタエンジン部である。
[Prior Art] As a conventional printer control device of this type, the one shown in FIG. 6 is known. In the figure, 1 is a microprocessor as the main body of the control unit, 2 is an area AI for a control program for the microprocessor, an area A2 is for storing various character font data for portrait printing, and an area A2 is for storing various character font data for portrait printing. A non-volatile memory consisting of an area A3 for storing character font data for landscape printing rotated by 90 degrees, 3 is a raster area B1 in which each character font data can be written and read, and in particular, various data can be written and read. 4 is a data output circuit for reading character font data from the raster area B1 of the RAM 3 and outputting it to the laser printer engine section 5; This is a laser printer engine unit that prints on paper based on given character font data.

このような構成の従来装置においては、マイクロプロセ
ッサ1は不揮発性メモリ2における領域Al内の制御プ
ログラムにしたがって動作し、所望文字についてポート
レート印字を行うときにはその所望文字のコードから不
揮発性メモリ2におけるポートレート用文字フォント領
域A2の該当するアドレスを算出する。そして、当該領
域A2から該当アドレスの文字フォントデータを読出し
てRAM3のラスター領域B1に書き込む。一方、所望
文字についてランドスケープ印字を行うときにはその所
望文字のコードから不揮発性メモリ2におけるランドス
ケープ用文字フォント領域へ3の該当するアドレスを算
出する。そして、領域A3から該当アドレスの文字フォ
ントデータを読出してRAM3のラスター領域B1に書
き込む。
In the conventional device with such a configuration, the microprocessor 1 operates according to a control program in the area A1 in the nonvolatile memory 2, and when performing portrait printing for a desired character, the microprocessor 1 operates based on the code of the desired character in the nonvolatile memory 2. The corresponding address of the portrait character font area A2 is calculated. Then, the character font data at the corresponding address is read from the area A2 and written into the raster area B1 of the RAM 3. On the other hand, when landscape printing is performed for a desired character, a corresponding address 3 is calculated for the landscape character font area in the nonvolatile memory 2 from the code of the desired character. Then, character font data at the corresponding address is read from area A3 and written into raster area B1 of RAM3.

しかして、ラスター領域B1に書き込まれた文字フォン
トデータが読出され、データ出力回路4の作用によりレ
ーザプリンタエンジン部5に出力されて印字されるもの
となっている。
Thus, the character font data written in the raster area B1 is read out and output to the laser printer engine section 5 by the action of the data output circuit 4 for printing.

[発明が解決しようとする課題] しかるに、この従来装置においては不揮発性メモリ2に
ポートレート用フォント領域A2とは別にランドスケー
プ用フォント領域A3を設ける必要があり、メモリ容量
が増大してコストが高くなる問題があった。
[Problems to be Solved by the Invention] However, in this conventional device, it is necessary to provide a landscape font area A3 in the nonvolatile memory 2 separately from the portrait font area A2, which increases the memory capacity and increases the cost. There was a problem.

ランドスケープ印字時、マイクロプロセッサ1にて所望
文字のポートレート用文字フォントを読出し、マイクロ
プロセッサ1自身で90度回転させてランドスケープ用
文字フォントを作成してラスター領域B1に書き込むこ
とも考えられるが、この場合、マイクロプロセッサ1は
他の処理も行っており負担が増大するため処理速度が極
端に低下する。
At the time of landscape printing, it is conceivable that the microprocessor 1 reads the portrait character font of the desired character, rotates it by 90 degrees to create a landscape character font, and writes it in the raster area B1. In this case, the microprocessor 1 also performs other processing, which increases the burden and extremely slows down the processing speed.

そこで本発明は、ポートレート用文字フォントを90度
回転させてランドスケープ用文字フォントを生成するた
めの専用の回路を設けることにより、ランドスケープ用
文字フォント領域を不要にでき記憶容量の低減およびコ
ストの低下をはかるとともに、処理速度の低下を最小限
に抑制できるプリンタ制御装置を提供しようとするもの
である。
Therefore, the present invention provides a dedicated circuit for generating a landscape character font by rotating a portrait character font by 90 degrees, thereby eliminating the need for a landscape character font area, reducing storage capacity and cost. It is an object of the present invention to provide a printer control device that can minimize the decrease in processing speed.

[課題を解決するための手段] 本発明は、予め設定された制御プログラムに従ってプリ
ンタを印字動作させるマイクロプロセッサと、各種文字
の形状に関するフォントデータを記憶するためのフォン
トメモリと、転送先メモリと、マイクロプロセッサに−
よるフォントメモリの転送元アドレス指定に応じて起動
し、予め設定された転送データサイズおよびスキャン幅
に基づいてフォントメモリの指定された転送元アドレス
から文字フォントデータを読出して90度回転した文字
のフォントデータに変換し、転送先メモリの予め設定さ
れた転送先アドレスへ転送するフォント回転回路とを備
えたプリンタ制御装置である。
[Means for Solving the Problems] The present invention includes a microprocessor that causes a printer to perform a printing operation according to a preset control program, a font memory for storing font data regarding the shapes of various characters, a transfer destination memory, to the microprocessor
The character font data is read from the specified transfer source address of the font memory based on the transfer data size and scan width set in advance, and the font of the character rotated by 90 degrees is activated in response to the transfer source address specification of the font memory. This printer control device includes a font rotation circuit that converts the data into data and transfers it to a preset destination address in a destination memory.

そして、マイクロプロセッサは、フォント回転回路に対
する転送データサイズ、スキャン幅、転送先アドレスを
設定する手段を有し、フォント回転回路は、マイクロプ
ロセッサによる転送データサイズ、スキャン幅、転送先
アドレスのいずれかの設定が行われる毎にその設定デー
タを最新データに書換えて記憶保持する記憶保持手段を
有することが望ましい。
The microprocessor has means for setting the transfer data size, scan width, and transfer destination address for the font rotation circuit, and the font rotation circuit has means for setting the transfer data size, scan width, and transfer destination address by the microprocessor. It is desirable to have a memory holding means that rewrites the setting data to the latest data and stores and holds the setting data each time the setting is performed.

[作 用] このような構成の本発明においては、マイクロプロセッ
サによりフォントメモリの転送元アドレスが指定される
と、フォント回転回路によって予め設定された転送デー
タサイズおよびスキャン幅に基づいて指定された転送元
アドレスから文字フォントデータが読出され、90度回
転した文字のフォントデータに変換されて、転送先メモ
リの予め設定された転送先アドレスへ転送される。
[Function] In the present invention having such a configuration, when the microprocessor specifies the transfer source address of the font memory, the font rotation circuit performs the specified transfer based on the preset transfer data size and scan width. Character font data is read from the original address, converted to character font data rotated by 90 degrees, and transferred to a preset destination address in the destination memory.

[実施例] 以下、本発明をレーザプリンタの制御装置に適用した一
実施例について図面を参照しながら説明する。
[Embodiment] Hereinafter, an embodiment in which the present invention is applied to a control device for a laser printer will be described with reference to the drawings.

第1図は制御装置のブロック構成図である。同図におい
て11は制御部本体としてのマイクロプロセッサ、12
は上記マイクロプロセッサ11に対する制御プログラム
の領域A1、およびポートレート印字用の各種文字フォ
ントデータを記憶するための領域(フォントメモリ)A
2等からなる不揮発性メモリ、13は前記各文字フォン
トデータの書き込みおよび読出しが可能なラスター領域
B1や、転送先メモリとして機能するデータ領域82等
が形成されたRAM (ランダムΦアクセス・メモリ)
、14は上記RAM13のラスター領域B1から文字フ
ォントデータを読出してレーザプリンタエンジン部15
に出力するためのデータ出力回路、15は上記データ出
力回路14を介して与えられた文字フォントデータに基
づいて用紙に印字を行うレーザプリンタエンジン部、1
6は前記マイクロプロセッサ11による前記領域A2の
転送元アドレス指定に応じて起動し、予め設定された転
送データサイズおよびスキャン幅に基づいて前記領域A
2の指定された転送元アドレスから文字フォントデータ
を読出して90度回転した文字のフォントデータに変換
し、前記データ領域B2の予め設定された転送先アドレ
スへ転送するフォント回転囲路である。
FIG. 1 is a block diagram of the control device. In the same figure, 11 is a microprocessor as the main body of the control unit, and 12
is an area A1 for the control program for the microprocessor 11, and an area (font memory) A for storing various character font data for portrait printing.
2, a non-volatile memory 13, a RAM (random Φ access memory) in which a raster area B1 in which each character font data can be written and read, a data area 82 which functions as a transfer destination memory, etc. are formed;
, 14 reads the character font data from the raster area B1 of the RAM 13 and outputs it to the laser printer engine section 15.
15 is a laser printer engine unit that prints on paper based on the character font data given through the data output circuit 14;
6 is activated in response to the transfer source address specification of the area A2 by the microprocessor 11, and transfers the area A2 based on the preset transfer data size and scan width.
This is a font rotation path that reads character font data from a designated transfer source address in No. 2, converts it into character font data rotated by 90 degrees, and transfers it to a preset transfer destination address in the data area B2.

上記フォント回転回路16は、第2図に示すように、8
ビツト(−1ワード)のデータが書き込み可能な8個の
文字回転用レジスタ21〜28と、各レジスタ21〜2
8に対応して設けられ該当レジスタ21〜28から選択
的に1ビツトデータを読出すセレクタ31〜38と、各
セレクタ31〜38に対応して設けられ該当レジスタ3
1〜38の出力を一時記憶しビットデータbltO〜b
IL7として出力するバッファ41〜48とを有する。
As shown in FIG.
Eight character rotation registers 21 to 28 into which bit (-1 word) data can be written, and each register 21 to 2.
Selectors 31 to 38 are provided corresponding to selectors 31 to 38 and selectively read 1-bit data from the corresponding registers 21 to 28, and selectors 31 to 38 are provided corresponding to selectors 31 to 38 and selectors 31 to 38 are provided corresponding to selectors 31 to 38 to selectively read 1-bit data from the corresponding registers 21 to 28, respectively.
Temporarily store outputs 1 to 38 and create bit data bltO to b
It has buffers 41 to 48 that output as IL7.

しかして、マイクロプロセッサ11により1文字を構成
するフォントデータのサイズいわゆる転送データサイズ
(ワードまたはビット単位)、該転送データサイズのフ
ォントデータを読出す際のスキャン幅、前記データ領域
B2における該転送データサイズのフォントデータの転
送先アドレスがそれぞれ設定されると、その各設定デー
タを記憶するものとなっている。なお、この設定データ
は次のデータ設定が行われるまで保持され、該当するデ
ータの設定が行われる毎に最新のデータに書き換えられ
る。
The microprocessor 11 determines the size of font data constituting one character, the so-called transfer data size (word or bit unit), the scan width when reading font data of the transfer data size, and the transfer data in the data area B2. When the transfer destination address of size font data is set, each setting data is stored. Note that this setting data is held until the next data setting is performed, and is rewritten to the latest data each time the corresponding data is set.

ここで上記フォント回転回路16の動作を説明する。な
お、本実施例では第3図に示すごと(転送データサイズ
32ワード(256ビツト)からなる1個の文字フォン
ト(例えば「a」)を8x8ビツトの4ブロツクに分割
し、90度回転させて転送する場合について説明する。
Here, the operation of the font rotation circuit 16 will be explained. In this embodiment, one character font (for example, "a") consisting of 32 words (256 bits) of transferred data is divided into 4 blocks of 8 x 8 bits and rotated 90 degrees as shown in FIG. The case of transfer will be explained.

この場合、予めマイクロプロセッサ11によりフォント
回転回路16に対して転送データサイズとして327−
ドが設定され、スキャン幅として2ワードが設定されて
いる。また、データ領域B2に対する転送先アドレスと
して例えば[7030Hlが設定されている。ここで文
字raJをランドスケープ印字する必要が生じた場合、
マイクロプロセッサ11においては文字raJの文字コ
ードからポートレート用文字フォント領域A2の転送元
アドレスが算出され、その算出結果である[A 000
 Hlがフォント回転回路16に与えられる。この転送
元アドレスの入力によってフォント回転回路16は起動
し、第4図の流れ図にしたがって動作する。すなわち、
入力された転送元アドレス[A OOO[1を第1のテ
ンポラリ(−時記憶用レジスタ)TMPIに書き込むと
ともに、予め設定されている転送先アドレス[7030
H]を第2のテンポラリTMP2に書き込む。また、第
3のテンポラリTMP3および第4のテンポラリTMP
4をそれぞれ「0」にクリアする。
In this case, the microprocessor 11 sets the transfer data size to the font rotation circuit 16 as 327-
The scan width is set to 2 words. Further, for example, [7030Hl is set as the transfer destination address for the data area B2. If it becomes necessary to print the characters raJ in landscape,
In the microprocessor 11, the transfer source address of the portrait character font area A2 is calculated from the character code of the character raJ, and the calculation result is [A 000
Hl is applied to the font rotation circuit 16. The font rotation circuit 16 is activated by inputting this transfer source address and operates according to the flowchart shown in FIG. That is,
The input transfer source address [A OOO[1] is written to the first temporary (-time storage register) TMPI, and the preset transfer destination address [7030
H] to the second temporary TMP2. In addition, a third temporary TMP3 and a fourth temporary TMP
Clear each of 4 to "0".

この状態で、第5図に示す1ブロツク(8x8ビット)
の回転処理を実行する。先ずテンポラリTMP 1の内
容をアドレスXとし、テンポラリTMP2の内容をアド
レスYとする。またカウンタNを「0」に初期化する。
In this state, one block (8x8 bits) shown in Figure 5
Executes rotation processing. First, let the contents of temporary TMP 1 be address X, and let the contents of temporary TMP 2 be address Y. Also, a counter N is initialized to "0".

次いでポートレート用フォント領域A2のアドレスXか
ら1ワードデータを読出し、Nビット出力に対応する文
字回転用レジスタ21〜28へ書き込む。しかる後、ア
ドレスXを予め設定されているスキャン幅分進めるとと
もにカウンタNを「+1」更新する。次いで、上記と同
様にしてポートレート用フォント領域A2のアドレスX
から1ワードデータを読出し、Nビット出力に対応する
文字何転用レジスタ21〜28へ書き込む。こうして、
カウンタNが「7」に達するまで上記と同様の処理を繰
り返し、カウンタNが「7」となり7ビツト出力bl 
17に対応する文字回転用レジスタ28にアドレスXの
1ワードデータを書き込み、かつアドレスXを該当スキ
ャン幅分進めたならば、上記カウンタNを「0」に再度
初期化する。次いで、各文字回転用レジスタ21〜28
のNビット目を各セレクタ31〜38により選択出力し
て各バッファ41〜48を介してRAM13におけるデ
ータ領域B2のアドレスYに書き込む。しかる後、アド
レスYを前記スキャン幅分用すとともにカウンタNを「
+1」更新する。次いで、上記と同様にして各文字回転
用レジスタ21〜28のNビット目を各セレクタ31〜
38により選択出力して各バッファ41〜48を介して
RAM13におけるデータ領域B2のアドレスYに書き
込む。こうして、カウンタNが「7」に達するまで上記
と同様の処理を繰り返し、カウンタNが「7」となり各
文字回転用レジスタ21〜28の7ビツト目を各セレク
タ31〜38により選択出力して各バッファ41〜48
を介してRAM13におけるデータ領域B2のアドレス
Yに書き込み、かつアドレスYを前記スキャン幅分用し
たならば、1ブロツクの回転処理を終了する。以上でフ
ォント領域A2におけるアドレス[AOOOH] 、[
AOO2H] 。
Next, one word of data is read from the address X of the portrait font area A2 and written to the character rotation registers 21 to 28 corresponding to the N-bit output. Thereafter, the address X is advanced by a preset scan width and the counter N is updated by "+1". Next, address X of portrait font area A2 is set in the same manner as above.
One word of data is read from the N-bit output and written to the character diversion registers 21-28 corresponding to the N-bit output. thus,
The same process as above is repeated until the counter N reaches "7", and the counter N reaches "7" and the 7-bit output bl
When one word of address X is written into the character rotation register 28 corresponding to number 17 and address X is advanced by the corresponding scan width, the counter N is reinitialized to "0". Next, each character rotation register 21 to 28
The Nth bit is selected and outputted by each selector 31-38 and written to address Y of data area B2 in RAM 13 via each buffer 41-48. After that, the address Y is used for the scan width, and the counter N is set to "
+1” updated. Next, in the same manner as above, the Nth bit of each character rotation register 21 to 28 is set to each selector 31 to 28.
38 and is selectively outputted and written to address Y of data area B2 in RAM 13 via each buffer 41-48. In this way, the same process as above is repeated until the counter N reaches "7", and the 7th bit of each character rotation register 21-28 is selected and outputted by each selector 31-38, and each Buffers 41-48
When the data is written to address Y in the data area B2 in the RAM 13 via the address Y and the address Y is used for the scan width, the rotation process for one block is completed. With the above, addresses [AOOOH], [ in font area A2
AOO2H].

[A004H]・・・・・・[AO14H]の8×8ビ
ツトデータがデータ領域におζ1るアドレス[7030
1,[7028H]  、   [7026H]・・・
・・・[7016H]の8×8ビツトエリアに転送され
たことになる。
[A004H]... Address [7030] where the 8x8 bit data of [AO14H] is located in the data area.
1, [7028H], [7026H]...
...It is transferred to the 8x8 bit area of [7016H].

次に、前記第2のテンポラリTMP2の内容に「1」を
加算する。また、前記第1のテンポラリTMPIの内容
に(8×スキャン幅)を加算する。
Next, "1" is added to the contents of the second temporary TMP2. Furthermore, (8×scan width) is added to the contents of the first temporary TMPI.

さらに、前記第3のテンポラリTMP3の内容に(8×
スキャン幅)を加算する。次いで、T43のテンポラリ
TMP3の内容と予め設定されている転送データサイズ
とを比較し、両者が不一致ならば前述した1ブロツクの
回転処理を再度実行する。
Furthermore, the contents of the third temporary TMP3 are changed to (8×
scan width). Next, the contents of the temporary TMP3 of T43 are compared with the preset transfer data size, and if they do not match, the above-described one-block rotation process is executed again.

これにより、フォント領域A2におけるアドレス[AO
16H] 、[AO18H] 、[A020H]・・・
・・・[AO30H]の8×8ビツトデータがデータ領
域におけるアドレス[7031H]。
As a result, the address [AO
16H], [AO18H], [A020H]...
...8x8 bit data of [AO30H] is address [7031H] in the data area.

[7029H] 、  [7027H] ・・・・・・
[7017H]の8×8ビツトエリアに転送される。
[7029H] , [7027H] ...
It is transferred to the 8x8 bit area of [7017H].

こうして、第3のテンポラリTMP3の内容が転送デー
タサイズに一致するまで1ブロツクの回転処理を繰り返
し、一致したならば前記第1のテンポラリTMP 1の
内容から(8Xスキャン幅)を減算し、その値に「1」
を加算する。また、前記第2のテンポラリTMP2の内
容から「1」を減算し、さらにその値から(8xスキャ
ン幅)を減算する。さらに、前記第4のテンポラリTM
P4の内容に「1」を加算する。次いで、第4のテンポ
ラリTMP4の内容と予め設定されているスキャン幅と
を比較し、両者が不一致ならば前記第3のテンポラリT
MP 3を「0」にクリアした後、前述した1ブロツク
の回転処理を再度実行する。これにより、フォント領域
A2におけるアトL、X [AOOIH] 、[AOO
3H] 。
In this way, the rotation process for one block is repeated until the contents of the third temporary TMP3 match the transfer data size, and when they match, (8X scan width) is subtracted from the contents of the first temporary TMP1, and the value is ``1''
Add. Also, "1" is subtracted from the contents of the second temporary TMP2, and (8x scan width) is further subtracted from that value. Furthermore, the fourth temporary TM
Add "1" to the contents of P4. Next, the contents of the fourth temporary TMP4 are compared with the preset scan width, and if they do not match, the third temporary TMP4 is
After clearing MP3 to "0", the above-described one-block rotation process is executed again. As a result, at L, X [AOOIH], [AOO
3H].

[A005H]・・・・・・[A015H]の8×8ビ
ツトデータがデータ領域におけるアドレス[7014H
] 、  [7012H] 、[7010H]・・・・
・・[7000H]の8×8ビツトエリアに転送される
。続いて、フォント領域A2におけるアドレス[Ao 
17H] 、  [AO19H][A021H]・・・
・・・[AO31H]の8X8ピットデータがデータ領
域におけるアドレス[7015H] 、[7013H]
 、[7011H]・・・・・・[7001H]の8×
8ビツトエリアに転送される。
[A005H]...The 8x8 bit data of [A015H] is located at address [7014H] in the data area.
], [7012H], [7010H]...
...Transferred to the 8x8 bit area of [7000H]. Next, the address [Ao
17H], [AO19H] [A021H]...
...8x8 pit data of [AO31H] is at address [7015H], [7013H] in the data area
, [7011H]...8× of [7001H]
Transferred to 8-bit area.

こうして、第3のテンポラリTMP3の内容が転送デー
タサイズに再度一致し、なおかつ第4のテンポラリTM
P3の内容がスキャン幅に一致したならば、フォント回
転回路16はその動作を停止する。
In this way, the contents of the third temporary TMP3 match the transfer data size again, and the contents of the fourth temporary TMP3
If the contents of P3 match the scan width, the font rotation circuit 16 stops its operation.

以上のように動作するフォント回転回路16を設けてな
る本実施例のプリンタ制御装置においては、マイクロプ
ロセッサ11は予め上記フォント回転回路16に対して
転送データサイズ(32ワード)、スキャン幅(2ワー
ド)および転送先アドレス([7030H] )を設定
しておく。なお、これらの設定データはマイクロプロセ
ッサ111;より適宜変更可能であり、上記フォント回
転回路16においてはマイクロプロセッサ11によりデ
ータの変更が行われるまで最新の設定データが保持され
ている。したがって、マイクロプロセッサ11において
は必要に応じて所望のデータのみを設定変更すればよい
In the printer control device of this embodiment, which is provided with the font rotation circuit 16 that operates as described above, the microprocessor 11 specifies the transfer data size (32 words), scan width (2 words), and scan width (2 words) for the font rotation circuit 16 in advance. ) and forwarding address ([7030H]). Note that these setting data can be changed as appropriate by the microprocessor 111, and the latest setting data is held in the font rotation circuit 16 until the data is changed by the microprocessor 11. Therefore, in the microprocessor 11, it is only necessary to change the settings of desired data as necessary.

この状態で、今、第3図に示すように例えば文字r a
 Jをランドスケープ印字する必要が生じた場合、マイ
クロプロセッサ11は文字raJの文字コードから転送
元アドレスを算出し、その算出結果(例えば[AO10
H])をフォント回転回路16に書き込む。この転送元
アドレスの書き込みによって上記フォント回転回路16
が動作を開始する。すなわち、転送元アドレスで示され
る不揮発性メモリ12におけるポートレート用フォント
領域A2から文字raJのポートレート用文字フォント
データを1ワード(8ビツト)単位で読出し、1ブロツ
ク(8X8ビツト)単位で90度回転させて、転送先ア
ドレスで示されるRAM13におけるデータ領域に書き
込む。こうして、ポートレート用フォント領域A2に転
送データサイズで記憶された文字「a」のポートレート
用文字フォントデータが同一サイズのデータ領域b2に
転送されたならば、マイクロプロセッサ11は転送先の
データ領域B2に書き込まれた文字ファントデータをラ
ンドスケープ用文字フォントデータとしてRAM13の
ラスター領域B1に書き込む。しかして、このラスター
領域B1から読出された文字フォントデータはデータ出
力回路14の作用によりレーザプリンタエンジン部15
に与えられ、用紙に文字raJがランドスケープ印字さ
れる。
In this state, as shown in Figure 3, for example, the letter r a
When it becomes necessary to print J in landscape, the microprocessor 11 calculates the transfer source address from the character code of the character raJ, and prints the calculation result (for example, [AO10
H]) is written into the font rotation circuit 16. By writing this transfer source address, the font rotation circuit 16
starts working. That is, the portrait character font data of the character raJ is read in units of 1 word (8 bits) from the portrait font area A2 in the non-volatile memory 12 indicated by the transfer source address, and the data is read out at 90 degrees in units of 1 block (8 x 8 bits). The data is rotated and written into the data area in the RAM 13 indicated by the transfer destination address. In this way, when the portrait character font data of the character "a" stored in the transfer data size in the portrait font area A2 is transferred to the data area b2 of the same size, the microprocessor 11 The character phant data written in B2 is written in the raster area B1 of the RAM 13 as landscape character font data. The character font data read from the raster area B1 is then transferred to the laser printer engine section 15 by the action of the data output circuit 14.
is given, and the characters raJ are printed in landscape on the paper.

なお、文字raJをポートレート印字する必要が生じた
場合には、マイクロプロセッサ11は文字raJの転送
元アドレスを算出して、その転送元アドレスで示される
ポートレート用フォント領域A2から文字「a」のポー
トレート用文字フォントデータを読出して直接RAM1
3のラスター領域B1に書き込む。こうすることにより
レーザプリンタエンジン部15によって用紙に文字ra
Jがポートレート印字される。
Note that when it becomes necessary to print the character raJ in a portrait format, the microprocessor 11 calculates the transfer source address of the character raJ, and prints the character "a" from the portrait font area A2 indicated by the transfer source address. Reads the portrait character font data and stores it directly in RAM1.
Write to the raster area B1 of No. 3. By doing this, the laser printer engine section 15 prints the characters ra on the paper.
J is printed in portrait.

このように本実施例によれば、専用のフォント回転回路
16を用いて所望文字のポートレート用文字フォントを
90度回転させて所望文字のう、ンドスケーブ用文字フ
ォントを生成しているので、マイクロプロセッサ11が
自身でランドスケープ用文字フォントを生成する場合に
比べて処理時間を高速化できる。また、不揮発性メモリ
12にランドスケープ用文字フォントのための領域を設
ける必要がないのでメモリ容量が少なくて済み、コスト
を低減できる。
According to this embodiment, the portrait character font of the desired character is rotated by 90 degrees using the dedicated font rotation circuit 16 to generate the portrait character font of the desired character. Processing time can be faster than when the processor 11 generates landscape character fonts by itself. Further, since there is no need to provide an area for landscape character fonts in the nonvolatile memory 12, the memory capacity can be reduced, and costs can be reduced.

また、マイクロプロセッサ11としてはランドスケープ
印字の場合には算出された転送元アドレスをフォント回
転回路16に与える作業と、データ領域R2内のランド
スケープ用文字フォントをラスター領域B1に書き込む
作業とが必要となるが、これはポートレート印字の際の
転送元アドレスからポートレート用文字フォントを読出
してスター領域B1に書き込む作業とほぼ同一の負荷レ
ベルである。しかもフォント回転回路16に対する転送
データサイズ、スキャン幅および転送先アドレスの各設
定データは必要に応じて必要なデータのみを設定しさえ
すれば良く、回路動作の度に同一データの書き込みを行
う必要がないので、負担とはならない。したがって、マ
イクロプロセッサ11の処理速度が低下することはほと
んどなく、処理速度の低下は最小限に抑制される。
Furthermore, in the case of landscape printing, the microprocessor 11 needs to provide the calculated transfer source address to the font rotation circuit 16, and write the landscape character font in the data area R2 to the raster area B1. However, this is almost the same load level as the task of reading out a portrait character font from the transfer source address and writing it into the star area B1 during portrait printing. Furthermore, each setting data for the transfer data size, scan width, and transfer destination address for the font rotation circuit 16 only needs to be set as necessary, and there is no need to write the same data every time the circuit operates. Since there is no such thing, it is not a burden. Therefore, the processing speed of the microprocessor 11 hardly decreases, and the decrease in the processing speed is suppressed to a minimum.

なお、本発明をレーザプリンタ以外のプリンタの制御装
置にも適用できるのは言うまでもないことである。
It goes without saying that the present invention can also be applied to control devices for printers other than laser printers.

[発明の効果] 以上詳述したように、本発明によれば、専用の回路でラ
ンドスケープ用文字フォントを生成でき、ランドスケー
プ用文字フォント領域を不要にして記憶容量の低減およ
びコストの低下をはかるとともに、処理速度の低下を最
小限に抑制できるプリンタ制御装置を提供できる。
[Effects of the Invention] As detailed above, according to the present invention, a landscape character font can be generated using a dedicated circuit, eliminating the need for a landscape character font area, reducing storage capacity and cost. , it is possible to provide a printer control device that can minimize reduction in processing speed.

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

第1図ないし第5図は本発明の一実施例を示す図であっ
て、第1図はブロック構成図、第2図はフォント回転回
路のu路図、第3図は文字raJの文字フォントが90
度回転した例を示す図、第4図および第5図はフォント
回転回路の動作を示す流れ図、第6図は従来例のブロッ
ク構成図である。 11・・・マイクロプロセッサ、12・・・不揮発性メ
モリ、13・・・RAM、16・・・フォント回転回路
、A2・・・ポートレート用ファント領域(フォントメ
モリ)、B1・・・ラスター領域、B2・・・データ領
域(転送先メモリ)。
1 to 5 are diagrams showing one embodiment of the present invention, in which FIG. 1 is a block diagram, FIG. 2 is a u-path diagram of a font rotation circuit, and FIG. 3 is a character font of the character raJ. is 90
4 and 5 are flowcharts showing the operation of the font rotation circuit, and FIG. 6 is a block diagram of a conventional example. DESCRIPTION OF SYMBOLS 11... Microprocessor, 12... Nonvolatile memory, 13... RAM, 16... Font rotation circuit, A2... Portrait phant area (font memory), B1... Raster area, B2...Data area (transfer destination memory).

Claims (2)

【特許請求の範囲】[Claims] (1)予め設定された制御プログラムに従ってプリンタ
を印字動作させるマイクロプロセッサと、各種文字の形
状に関するフォントデータを記憶するためのフォントメ
モリと、転送先メモリと、前記マイクロプロセッサによ
る前記フォントメモリの転送元アドレス指定に応じて起
動し、予め設定された転送データサイズおよびスキャン
幅に基づいて前記フォントメモリの指定された転送元ア
ドレスから文字フォントデータを読出して90度回転し
た文字のフォントデータに変換し、前記転送先メモリの
予め設定された転送先アドレスへ転送するフォント回転
回路とを具備したことを特徴とするプリンタ制御装置。
(1) A microprocessor that causes the printer to print according to a preset control program, a font memory for storing font data regarding the shapes of various characters, a transfer destination memory, and a transfer source of the font memory by the microprocessor. Activated in response to address specification, reads character font data from the designated transfer source address of the font memory based on a preset transfer data size and scan width, and converts it into 90 degree rotated character font data; A printer control device comprising: a font rotation circuit for transferring a font to a preset destination address in the destination memory.
(2)前記マイクロプロセッサは、前記フォント回転回
路に対する転送データサイズ、スキャン幅、転送先アド
レスをそれぞれ設定する手段を有し、前記フォント回転
回路は、前記マイクロプロセッサによる転送データサイ
ズ、スキャン幅、転送先アドレスのいずれかの設定が行
われる毎にその設定データを最新データに書換えて記憶
保持する記憶保持手段を有することを特徴とする請求項
1記載のプリンタ制御装置。
(2) The microprocessor has means for setting a transfer data size, a scan width, and a transfer destination address for the font rotation circuit, and the font rotation circuit is configured to set a transfer data size, a scan width, and a transfer destination address by the microprocessor. 2. The printer control device according to claim 1, further comprising a memory holding means for rewriting the setting data to the latest data and storing and holding the setting data every time any setting of the destination address is performed.
JP25392789A 1989-09-29 1989-09-29 Printer control apparatus Pending JPH03114850A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25392789A JPH03114850A (en) 1989-09-29 1989-09-29 Printer control apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25392789A JPH03114850A (en) 1989-09-29 1989-09-29 Printer control apparatus

Publications (1)

Publication Number Publication Date
JPH03114850A true JPH03114850A (en) 1991-05-16

Family

ID=17257961

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25392789A Pending JPH03114850A (en) 1989-09-29 1989-09-29 Printer control apparatus

Country Status (1)

Country Link
JP (1) JPH03114850A (en)

Similar Documents

Publication Publication Date Title
JPH03114850A (en) Printer control apparatus
JPH04325267A (en) Output method and its device
JP2005332292A (en) Image data rotation processor
JP2502530B2 (en) Printer
JP2617252B2 (en) Printer
JP2001154910A (en) Memory access system
JPH03114856A (en) Printer data management system
EP0376271A2 (en) Print data generator
US6014225A (en) Frame buffer control method and circuit
JPH0813556B2 (en) Character font rotation controller for printer
JP2711673B2 (en) Image data transfer control method and device
JP2898000B2 (en) Character data expansion processor
JPH04213776A (en) Method and device for processing image
JPH09300731A (en) Printing controller
JPS60134334A (en) Printing controlling system
JPH0636555A (en) Dynamic semiconductor memory and device for generating image data
JPH02295772A (en) Raster scan type perfecting printer
JPS59116782A (en) Generator for character signal or the like
JPH0528405B2 (en)
JPH0195063A (en) Output data rotating method
JPS6374092A (en) Printer
JPH0761087A (en) Efficient utilization method for frame memory
JPH05212915A (en) Controller for page printer
JPH05254216A (en) Printer apparatus
JP2001171184A (en) Image data-processing apparatus