JPS6360759A - Method for character rotation processing in printer - Google Patents

Method for character rotation processing in printer

Info

Publication number
JPS6360759A
JPS6360759A JP20532086A JP20532086A JPS6360759A JP S6360759 A JPS6360759 A JP S6360759A JP 20532086 A JP20532086 A JP 20532086A JP 20532086 A JP20532086 A JP 20532086A JP S6360759 A JPS6360759 A JP S6360759A
Authority
JP
Japan
Prior art keywords
data
byte
ram
shift registers
rotation processing
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
JP20532086A
Other languages
Japanese (ja)
Inventor
Yutaka Miyagi
宮城 裕
Eigo Kumagai
熊谷 英剛
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.)
TOHOKU NIPPON DENKI KK
NEC Corp
NEC Tohoku Corp
Original Assignee
TOHOKU NIPPON DENKI KK
NEC Corp
NEC Tohoku Corp
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 TOHOKU NIPPON DENKI KK, NEC Corp, NEC Tohoku Corp filed Critical TOHOKU NIPPON DENKI KK
Priority to JP20532086A priority Critical patent/JPS6360759A/en
Publication of JPS6360759A publication Critical patent/JPS6360759A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K15/00Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
    • G06K15/02Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers

Abstract

PURPOSE:To reduce rotation processing time and to enable high-speed printing, by a method wherein data is rotated leftwards 90 deg. or leftwards 270 deg. by being fetched from the direction at right angles to shift registers by one byte in a predetermined order and data is rotated leftwards 180 deg. by being fetched from the travel direction of the shift registers by one byte in a fixed order. CONSTITUTION:Data of 72 bytes is read while shift registers 15 are changed over by 8 pieces to develop the data for one character on the 24 shift registers 15. After that, with a 90 deg. leftward rotation signal RO1 a rotation angle is specified 90 deg., and a command for writing one byte in a RAM 20 is conducted, whereby the data '1' is fetched from the direction right angles to the shift registers 15 to write one byte in the RAM 20 through an output buffer 11as an output data 18. In this manner, with a command for writing 72 bytes in the RAM, the output data 18 which was rotated leftwards 90 deg. is written in the RAM 20. Conventionally, 8-byte reading from the RAM has been required to rotate data for one byte, but one-byte reading is sufficient according to the invention; thus, a rotation processing time is reduced and a high-speed printing can be carried out.

Description

【発明の詳細な説明】 (産業上の利用分野〕 本発明は、印字装置の文字回転処理方法に関する。[Detailed description of the invention] (Industrial application field) The present invention relates to a character rotation processing method for a printing device.

〔概要〕〔overview〕

本発明は、メモリに格納されたデータを読出し所定角度
の回転処理を行う印字装置の回転処理方法において、 上記データを全ビット−度にシフトレジスタに展開し、
このシフトレジスタの直角方向より所定の順序で1バイ
トずつ取り出すことにより90’左回転もしくは270
 ”左回転させ、上記シフトレジスタの進行方向から所
定の順序で1バイトずつ取り出すことにより左180°
回転させることにより、回転処理時間を短縮し、高速度
印字を可能としたものである。
The present invention provides a rotation processing method for a printing device in which data stored in a memory is read out and rotated by a predetermined angle, the data being developed in a shift register in all bits,
By taking out one byte at a time in a predetermined order from the right angle direction of this shift register, 90' left rotation or 270'
``Rotate to the left and take out bytes one byte at a time in a predetermined order from the advancing direction of the shift register.
By rotating, the rotation processing time is shortened and high-speed printing becomes possible.

〔従来の技術〕[Conventional technology]

従来、印字装置の文字回転処理方法は、RAM(ランダ
ムアクセスメモリ)より1バイトのデータを読込んでは
ビット演算処理をするということを8回繰り返して、そ
こで、1バイトのデータを回転させ、そしてその1バイ
トのデータをRAMに書込み、それを1文字(nバイト
分)、n回繰り返すことで行われていた。
Conventionally, the character rotation processing method of printing devices reads 1 byte of data from RAM (random access memory) and performs bit arithmetic processing eight times, then rotates the 1 byte of data, and then This was done by writing that 1 byte of data into RAM and repeating it for 1 character (n bytes) n times.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来の印字装置の文字回転処理方法は、(ア)
ビット演算処理が必要であること、(イ)1バイトのデ
ータを回転するのにRAMより8バイトのデータを読込
まなくてはならないこと、 (つ)演算方法が複雑であること、 などから、高密度の文字においては、回転処理時間がか
かり過ぎ、高速度印字には適さない欠点がある。
The character rotation processing method of the conventional printing device described above is (a)
This is because bit arithmetic processing is required, (a) 8 bytes of data must be read from RAM to rotate 1 byte of data, and (i) the calculation method is complicated. For high-density characters, the rotation process takes too much time, making it unsuitable for high-speed printing.

本発明の目的は、上記の欠点を除去することにより、回
転処理時間が短く、高速度印字が可能な印字装置の文字
回転処理方式を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a character rotation processing method for a printing device that can shorten the rotation processing time and perform high-speed printing by eliminating the above-mentioned drawbacks.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は、メモリに格納されたデータを読出し所定の角
度の回転処理を行う印字装置の文字回転処理方法におい
て、〔8×N〕(Nは自然数)個の〔8×N〕ビットの
シフトレジスタに上記データをシフトさせながら1バイ
トずつ〔8×N2〕バイトのデータを展開させ、この展
開された〔3×N2〕バイトのデータを上記シフトレジ
スタの直角方向から1バイトずつ所定の順序で取り出す
ことにより90″左回転もしくは270 ’左回転させ
、上記シストレジスタの進行方向から1バイトずつ所定
の順序で取り出すことにより180’左回転させること
を特徴とする。
The present invention relates to a character rotation processing method for a printing device that reads data stored in a memory and performs rotation processing by a predetermined angle. While shifting the above data, expand [8 x N2] bytes of data one byte at a time, and take out the expanded [3 x N2] bytes of data one byte at a time from the right angle direction of the shift register in a predetermined order. It is characterized in that it is rotated 90'' to the left or rotated 270' to the left, and rotated to the left by 180' by taking out one byte at a time in a predetermined order from the advancing direction of the register.

〔作用〕[Effect]

本発明は、メモリから読出されたデータを1バイトずつ
順に、例えば24個の24ビツトのシフトレジスタに展
開し、この展開された72バイトのデータを、上記シフ
トレジスタの直角方向から所定の順序で取り出すことに
より90°左回転もくしは270°左回転させ、上記シ
ストレジスタの進行方向から所定の順序で取り出すこと
で18o°左回転させる。
In the present invention, data read from a memory is expanded one byte at a time into, for example, 24 24-bit shift registers, and the expanded 72-byte data is placed in a predetermined order from the direction perpendicular to the shift registers. The comb is rotated 90 degrees to the left by taking it out, and the comb is rotated 270 degrees to the left by taking it out in a predetermined order from the traveling direction of the cyst register.

従って、回転させたいデータをレジスタ上に展開し所定
の取出しを行うだけでよく、回転処理時間を短くするこ
とが可能となる。
Therefore, it is only necessary to develop the data to be rotated on the register and take out the data in a predetermined manner, thereby making it possible to shorten the rotation processing time.

〔実施例〕〔Example〕

以下、本発明の実施例について図面を参照して説明する
Embodiments of the present invention will be described below with reference to the drawings.

第1図は本発明の一実施例による印字装置の要部を示す
ブロック構成図である。本実施例は、文字回転処理回路
10と、印字データを格納するRAM(ランダムアクセ
スメモリ)20と、データバス40とRAM20および
文字回転処理回路10との間のデータのやり取りを制御
する双方向のバッファ30とを含んでいる。
FIG. 1 is a block diagram showing the main parts of a printing device according to an embodiment of the present invention. In this embodiment, a character rotation processing circuit 10, a RAM (random access memory) 20 that stores print data, and a bidirectional system that controls data exchange between a data bus 40, RAM 20, and the character rotation processing circuit 10 are used. buffer 30.

そして、文字回転処理回路10は、出力データ18を出
力する8ビット片方向の出力用バッファ1)と、入力デ
ータ17を入力する8ビット片方向の入力用バッファ1
2と、出力用カウンタ13および入力用カウンタ14と
、24個の24ビツトのシフトレジスタ15と、入力が
各シフトレジスタ15の出力に接続されり24ヒツトの
バッファ16とを含み、シフトレジスタ15は上より8
個ずつのグループ15a 、 15bおよび15cに分
けられ、入力用バッファ12からそれぞれ1バイトの入
力データ17a 、17bおよび17Cが入力される。
The character rotation processing circuit 10 includes an 8-bit unidirectional output buffer 1 for outputting output data 18 and an 8-bit unidirectional input buffer 1 for inputting input data 17.
2, an output counter 13, an input counter 14, 24 24-bit shift registers 15, and a 24-bit buffer 16 whose input is connected to the output of each shift register 15. 8 from the top
They are divided into groups 15a, 15b and 15c, and one byte of input data 17a, 17b and 17C is input from the input buffer 12, respectively.

なお、第1図において、WRはRAM書込み信号、■は
RAM読出し信号、CEはチップイネーブル信号、RO
,は90°左回転指示信号、RO2は270°左回転指
示信号、RO’sは180″′左回転指示信号である。
In FIG. 1, WR is a RAM write signal, ■ is a RAM read signal, CE is a chip enable signal, and RO
, is a 90° left rotation instruction signal, RO2 is a 270° left rotation instruction signal, and RO's is a 180° left rotation instruction signal.

次に、本実施例の動作について第2図ないし第4図を参
照して説明する。RAM20から入力データ17として
1バイトのデータを読出すと、入力用バッファ12を介
して入力データ17aとしてグループ15aの8個のシ
フトレジスタ15に1バイトセントされる。次にデータ
を1バイト読出すと、入力用カウンタ14をアップして
入力データ17bとしてグループ15bの8個のシフト
レジスタ15に1ハイトセフトされる。同様にして、次
に読出された1バイトの入力データ17cはグループ1
5cの8個のシフトレジスタ15に1バイトセントされ
る。このようにして、グループ15a、15bおよび1
5cの8個ずつのシフトレジスタ15を切換えながら、
72バイトのデータを読出すと、24個のシフトレジス
タ15上に1文字分のデータが展開できる。
Next, the operation of this embodiment will be explained with reference to FIGS. 2 to 4. When one byte of data is read from the RAM 20 as input data 17, one byte is sent to eight shift registers 15 of group 15a as input data 17a via input buffer 12. Next, when one byte of data is read out, the input counter 14 is incremented and one height is shifted to the eight shift registers 15 of group 15b as input data 17b. Similarly, the next 1 byte of input data 17c is group 1.
One byte is sent to eight shift registers 15 of 5c. In this way, groups 15a, 15b and 1
While switching the eight shift registers 15 of 5c,
When 72 bytes of data are read, one character's worth of data can be developed on 24 shift registers 15.

次に、90°左回転信号RO,により回転角を90゜に
指定し、1バイトRAM20に書込む命令を実行すると
、第2図に示す■のデータがシフトレジスタ15の直角
方向から取り出され、出力用バッファ1)を介して出力
データ18として1バイトRAM20に書込まれる。続
いて1バイトRAM20に書込む命令を実行すると、出
力用カウンタ13をアップして、第2図に示す■のデー
タがRAM20に書込まれる。このようにして、72バ
イトRAMに書込む命令を実行すると、第2図に示す順
序(■、■、・・・、■、■)に従ってデータが取り込
まれ、90゜左回転された出力データ18がRAM20
に書込まれる。
Next, when the rotation angle is designated as 90° by the 90° counterclockwise rotation signal RO, and an instruction to write to the 1-byte RAM 20 is executed, the data shown in FIG. The data is written into the 1-byte RAM 20 as output data 18 via the output buffer 1). Subsequently, when an instruction to write into the 1-byte RAM 20 is executed, the output counter 13 is incremented and the data marked with ■ shown in FIG. 2 is written into the RAM 20. In this way, when the instruction to write to the 72-byte RAM is executed, data is taken in in the order (■, ■, ..., ■, ■) shown in FIG. 2, and the output data 18 is rotated 90 degrees to the left. is RAM20
written to.

同様に、270 ”左回転の場合には、270 ”左回
転指示信号RO8により回転角を270°に指定して書
込みを行うことにより、第3図に示す順序(■、■、・
−1■、■)に従ってデータが順次シフトレジスタ15
の直角方向から取り出され、270 ”左回転された出
力データ18がRAM20に書込まれる。
Similarly, in the case of 270" counterclockwise rotation, the rotation angle is designated as 270° by the 270" counterclockwise rotation instruction signal RO8 and written, so that the order shown in FIG. 3 (■, ■, .
-1■,■), the data is sequentially transferred to the shift register 15.
The output data 18 is taken out from the right angle direction and rotated counterclockwise by 270'' and is written into the RAM 20.

一方、180°左回転の場合には、180°左回転信号
RChにより回転角を1806に指定して書込みを行う
ことにより、第4図に示す順序(■、■、−1■、■)
で、シフトレジスタ15の進行方向から1バイトずつバ
ッファ16により取り出し、出力用バッファ1)を介し
て出力データ18としてRAM20に書込まれる。
On the other hand, in the case of 180° counterclockwise rotation, the rotation angle is designated as 1806 by the 180° counterclockwise rotation signal RCh and written in the order shown in FIG. 4 (■, ■, -1■, ■).
Then, one byte at a time from the advancing direction of the shift register 15 is taken out by the buffer 16 and written to the RAM 20 as output data 18 via the output buffer 1).

以上のように、本実施例によれば、RAM20から単純
に72バイト読込み、シフトレジスタ15に展開し、そ
して回転角を指定して、また単純にRAM20に72バ
イト書込むだけで所望の回転角で一文字が回転できる。
As described above, according to this embodiment, the desired rotation angle can be obtained by simply reading 72 bytes from the RAM 20, expanding it to the shift register 15, specifying the rotation angle, and simply writing 72 bytes to the RAM 20. You can rotate a single character with .

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、データ全バイトを一度に
シフトレジスタ上に展開し、指定の回転角に対応して、
所定の方向および順序に従ってこのシフトレジスタ上の
データを1バイトずつ取出すことにより、従来の方法で
必要であった、ピッド演算処理が一切必要ないこと、ま
た、1バイトのデータを回転するのに、RAMより8バ
イト読込んでいたのを1バイトで済むことのために、回
転処理時間が短縮され、高速度印字ができる効果がある
As explained above, the present invention expands all bytes of data onto the shift register at once, and in response to a specified rotation angle,
By taking out the data on this shift register one byte at a time in a predetermined direction and order, there is no need for any PID calculation processing, which was necessary in the conventional method, and in order to rotate one byte of data, Because only 1 byte is required instead of 8 bytes to be read from RAM, the rotation processing time is shortened and high-speed printing is possible.

さらに、入出力条件が極めて単純であるため、ソフトウ
ェアの作成が簡単に行うことができる効果が付加される
Furthermore, since the input/output conditions are extremely simple, software can be created easily.

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

第1図は本発明の一実施例による印字装置の要部を示す
ブロック構成図。 第2図は90°左回転の場合のレジスタ上のデータの取
出し順序を示す説明図。 第3図は270°左回転の場合のレジスタ上のデータの
取出し順序を示す説明図。 第4図は180°左回転の場合のレジスタ上のデータを
バッファを介して取出す順序を示す説明図。 10・・・文字回転処理回路、1)・・・出力用バッフ
ァ、12・・・入力用バッファ、13・・・出力用カウ
ンタ、14・・・入力用カウンタ、15・・・シフトレ
ジスタ、15a、 15b。 15cm・−グループ、16.30・・・バッファ、1
7.17a1)7b 、17c・・・入力データ、18
・・・出力データ、20・・・RAM、40・・・デー
タバス、CE ・・・チップイネーブル信号、RD ・
RA M読出し信号、RO,・・・90゜左回転指示信
号、ROt・・・270°左回転指示信号、RO3・・
・180°左回転指示信号、■・・・RA M書込み信
号。
FIG. 1 is a block diagram showing the main parts of a printing device according to an embodiment of the present invention. FIG. 2 is an explanatory diagram showing the order of taking out data on the register in the case of 90° left rotation. FIG. 3 is an explanatory diagram showing the order of taking out data on the register in the case of 270° counterclockwise rotation. FIG. 4 is an explanatory diagram showing the order in which data on a register is taken out via a buffer in the case of 180° left rotation. DESCRIPTION OF SYMBOLS 10... Character rotation processing circuit, 1)... Output buffer, 12... Input buffer, 13... Output counter, 14... Input counter, 15... Shift register, 15a , 15b. 15cm・-Group, 16.30...Buffer, 1
7.17a1) 7b, 17c...input data, 18
...Output data, 20...RAM, 40...Data bus, CE...Chip enable signal, RD ・
RAM readout signal, RO,...90° left rotation instruction signal, ROt...270° left rotation instruction signal, RO3...
・180° counterclockwise rotation instruction signal, ■...RAM write signal.

Claims (1)

【特許請求の範囲】[Claims] (1)メモリに格納されたデータを読出し所定の角度の
回転処理を行う印字装置の文字回転処理方法において、 〔8×N〕(Nは自然数)個の〔8×N〕ビットのシフ
トレジスタに上記データをシフトさせながら1バイトず
つ〔8×N^2〕バイトのデータを展開させ、 この展開された〔8×N^2〕バイトのデータを上記シ
フトレジスタの直角方向から1バイトずつ所定の順序で
取り出すことにより90゜左回転もしくは270゜左回
転させ、上記シストレジスタの進行方向から1バイトず
つ所定の順序で取り出すことにより180゜左回転させ
る ことを特徴とする印字装置の文字回転処理方法。
(1) In a character rotation processing method for a printing device that reads data stored in a memory and rotates it by a predetermined angle, a shift register of [8 x N] bits (N is a natural number) is used. Shifting the above data, expand [8 x N^2] byte data one byte at a time, and transfer the expanded [8 x N^2] byte data one byte at a time from the right angle direction of the shift register. A character rotation processing method for a printing device, characterized in that the characters are rotated to the left by 90 degrees or 270 degrees by taking them out in order, and the characters are rotated to the left by 180 degrees by taking out bytes one byte at a time from the advancing direction of the register in a predetermined order. .
JP20532086A 1986-09-01 1986-09-01 Method for character rotation processing in printer Pending JPS6360759A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20532086A JPS6360759A (en) 1986-09-01 1986-09-01 Method for character rotation processing in printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20532086A JPS6360759A (en) 1986-09-01 1986-09-01 Method for character rotation processing in printer

Publications (1)

Publication Number Publication Date
JPS6360759A true JPS6360759A (en) 1988-03-16

Family

ID=16504994

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20532086A Pending JPS6360759A (en) 1986-09-01 1986-09-01 Method for character rotation processing in printer

Country Status (1)

Country Link
JP (1) JPS6360759A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6126342A (en) * 1988-08-31 2000-10-03 Canon Kabushiki Kaisha Output device capable of high quality output of characters over a large range of sizes

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6126342A (en) * 1988-08-31 2000-10-03 Canon Kabushiki Kaisha Output device capable of high quality output of characters over a large range of sizes

Similar Documents

Publication Publication Date Title
JPH0425582B2 (en)
JPH0248931B2 (en)
JP2009223758A (en) Image processing apparatus
JPS6312072A (en) Memory controller
JPS6360759A (en) Method for character rotation processing in printer
JPH06101039B2 (en) Window image data read processing method
JPS6359188B2 (en)
JPS6057593B2 (en) Character pattern processing method
JPS61223964A (en) Data transfer device
JP2610887B2 (en) Image data rotation processor
JPH0830506A (en) Method for controlling data transfer and data transfer circuit
JPS62226380A (en) Image rotating circuit
JPS58166585A (en) Buffer storage control system
JPS6370891A (en) Rotary logic of rectangular area for image data
JPS6361351A (en) Data transfer method
JPS6111864A (en) Data processing system
JPH0457197B2 (en)
JPS62133559A (en) Memory interface circuit
JPS61289446A (en) Hardware stack control system
JPH0766349B2 (en) Shifter circuit
JPS61157981A (en) Data transfer device
JPH01287728A (en) Data processor
JPS58140858A (en) Transfer system for arithmetic data
JPH036776A (en) Image rotation processor
JPH0449459A (en) Dma transfer method