JPS6122504B2 - - Google Patents

Info

Publication number
JPS6122504B2
JPS6122504B2 JP3617577A JP3617577A JPS6122504B2 JP S6122504 B2 JPS6122504 B2 JP S6122504B2 JP 3617577 A JP3617577 A JP 3617577A JP 3617577 A JP3617577 A JP 3617577A JP S6122504 B2 JPS6122504 B2 JP S6122504B2
Authority
JP
Japan
Prior art keywords
output
circuit
shift
shift register
image data
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.)
Expired
Application number
JP3617577A
Other languages
Japanese (ja)
Other versions
JPS53122313A (en
Inventor
Norihiko Fukinuki
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP3617577A priority Critical patent/JPS53122313A/en
Publication of JPS53122313A publication Critical patent/JPS53122313A/en
Publication of JPS6122504B2 publication Critical patent/JPS6122504B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Description

【発明の詳細な説明】 (1) 発明の利用分野 本発明は、フアクシミリの符号化などで用いら
れるランレングスの計数を効率的に行なうための
装置構成に関するものである。すなわち、第2図
の説明図に示す如く2つの走査線について白、黒
の同じ状態が続く長さを白6、下が白1、黒4、
上が白3、白6というように計数することを効率
的に行なおうとするものである。
DETAILED DESCRIPTION OF THE INVENTION (1) Field of Application of the Invention The present invention relates to a device configuration for efficiently counting run lengths used in facsimile encoding. That is, as shown in the explanatory diagram of FIG. 2, the length of time in which the same white and black states continue for two scanning lines is 6 for white, 1 for white, 4 for black, and 4 for white.
This is an attempt to efficiently count white 3, white 6, and so on.

(2) 従来技術 これまで符号化を布線論理によつて行なう場合
が多かつたが、これによれば高度の処理を行なう
のに不都合が多かつた。
(2) Prior Art Until now, encoding has often been performed using wired logic, but this has many disadvantages when performing advanced processing.

一方、すべてをプログラム制御によればこの問
題は解決されるが、計算機時間が不足するという
問題があり、実現が阻まれることが多かつた。
On the other hand, if everything were controlled by a program, this problem would be solved, but there was a problem of insufficient computer time, which often prevented realization.

(3) 発明の目的 本発明はかかる点を解決することを目的とし、
さらに詳しく云えば、符号化において特に時間を
要する部分のみを布線論理によつて行なうための
手段を提供することを目的とする。
(3) Purpose of the invention The purpose of the present invention is to solve the above problems,
More specifically, the object is to provide a means for performing only the time-consuming portion of encoding using wiring logic.

(4) 発明の総括説明 従来プログラ制御において特に時間的に問題が
多かつたのは、たとえば2ラインを一括して符号
化する場合、あるいは2ライン間のずれに着目し
て符号化する場合この各ラインの画像情報がそれ
ぞれ別の場所に記憶されること、その結果、汎用
処理装置で処理する場合、2バイト間にまたがる
演算となつて処理時間を要していた点であつた。
これを解決するため、このための特殊計数回路を
汎用処理装置の周辺装置として設け、経済的なシ
ステムを実現する。
(4) General explanation of the invention In conventional program control, there were particularly many problems in terms of time, for example, when encoding two lines at once, or when encoding by focusing on the deviation between two lines. The problem is that the image information for each line is stored in different locations, and as a result, when processed by a general-purpose processing device, the calculations span two bytes, which takes processing time.
In order to solve this problem, a special counting circuit for this purpose is provided as a peripheral device of the general-purpose processing device to realize an economical system.

(5) 実施例 以下、本発明を実施例を参照して詳細に説明す
る。第1図はそのための構成図である。そして計
数回路1を除いては周知の計算機の構成である。
すなわち、アドレスバス2、データバス3を中心
に、ホトセンサアレイ4、中央処理装置CPU
5、プログラムメモリ(ROM)6、データのた
めのメモリ(RAM)7、データ送出のための回
路TRAN8から成る。
(5) Examples Hereinafter, the present invention will be explained in detail with reference to examples. FIG. 1 is a block diagram for this purpose. The configuration of the computer, except for the counting circuit 1, is a well-known computer.
That is, the address bus 2, the data bus 3, the photo sensor array 4, and the central processing unit CPU.
5, a program memory (ROM) 6, a data memory (RAM) 7, and a data sending circuit TRAN8.

ホトセンサアレイ4から得られた画像情報は1
バイト単位に周知の如くCPUならびにメモリの
制御のもとに順次ランレングス符号化された送出
回路8よりデータとして送出される。
The image information obtained from the photosensor array 4 is 1
The data is sequentially run-length encoded in byte units under the control of the CPU and memory, and is sent out as data from the sending circuit 8, as is well known.

本発明の中心は計数回路1にあり、その詳細を
第3図に示す。
The center of the present invention is the counting circuit 1, the details of which are shown in FIG.

いまある走査線のあらかじめ分割された位置の
8ビツトの情報がシフトレジスタ11に入力端子
D6〜D7を経て、そして、次の走査線の対応する
位置の8ビツトの情報がシフトレジスタ12に入
力端子E0〜E7を経てセツトされる。一方、後述
する方法により、フリツプフロツプ13,14に
はそれぞれの走査線の対応する位置の直前の情報
が蓄積されている。ただし走査線の先頭の場合に
は適当な初期値を入力端子G0,G1よりセツナす
ることもある。
The 8-bit information of the pre-divided positions of the current scanning line is input to the shift register 11.
Then, the 8-bit information at the corresponding position of the next scanning line is set to the shift register 12 via input terminals E0 to E7 . On the other hand, information immediately before the corresponding position of each scanning line is stored in the flip-flops 13 and 14 by a method to be described later. However, in the case of the beginning of a scanning line, an appropriate initial value may be set from the input terminals G 0 and G 1 .

さて、シフトレジスタ11,12にセツトされ
た情報は、フリツプフロツプ13,14の最終段
出力と排他的論理和回路15,16において比較
される。そして、双方とも一致すれば、論理和回
路17を経て反転回路18の出力を“1”にす
る。その結果、論理和回路20は“1”となりパ
ルス発生回路19のパルスを論理積回路21を経
て出力させる。
Now, the information set in shift registers 11 and 12 is compared with the final stage outputs of flip-flops 13 and 14 in exclusive OR circuits 15 and 16. If both match, the output of the inversion circuit 18 is set to "1" via the OR circuit 17. As a result, the OR circuit 20 becomes "1" and causes the pulse of the pulse generating circuit 19 to be outputted via the AND circuit 21.

この論理積回路21の出力は、まずシフトレジ
スタ11,12に加えられ、1ビツトづつシフト
(図では下方へ)させる。また、フリツプフロツ
プ13,14にも加えられ、それぞれシフトレジ
スタ11,12の最終段出力を該フリツプフロツ
プにセツトする。
The output of this AND circuit 21 is first applied to shift registers 11 and 12, and shifted one bit at a time (downward in the figure). It is also added to flip-flops 13 and 14, and sets the final stage outputs of shift registers 11 and 12, respectively, to the flip-flops.

さらにランレングスカウンタ22に1を加え
る。また、ビツトカウンタ23にも1を加える。
Further, 1 is added to the run length counter 22. Also, 1 is added to the bit counter 23.

以上の動作により下記事項が可能になる。すな
わち、ランレングスカウンタ22に2本の走査線
にわたつて同じ状態が続いた数が計数される。さ
らにシフトレジスタ11,12をシフトさせ、フ
リツプフロツプ13,14を更新したことによ
り、画像の次のビツト位置について同様の処理が
行なえるようになる。また、ビツトカウンタ23
でこの処理の回数を数え、シフトレジスタにセツ
トした8ビツト分の終了を知ることが可能にな
る。
The above operations enable the following items. That is, the run length counter 22 counts the number of times the same state continues over two scanning lines. Further, by shifting the shift registers 11 and 12 and updating the flip-flops 13 and 14, the same processing can be performed for the next bit position of the image. In addition, the bit counter 23
By counting the number of times this process has been performed, it is possible to know when the 8 bits set in the shift register have been completed.

さて、以上のようにして同一状態を計数してい
る間に、少くとも一方の走査線の状態が変化し排
他的論理和回路の少くとも一方が“1”となる場
合について述べる。この場合、論理和回路17が
“1”となるため、反転回路18の出力は“0”
となり、パルス発生器の出力は、論理積回路でイ
ンヒビツトされ、以後の動作を停止する。
Now, a case will be described in which the state of at least one scanning line changes and at least one of the exclusive OR circuits becomes "1" while counting the same state as described above. In this case, since the OR circuit 17 becomes "1", the output of the inverting circuit 18 becomes "0".
Therefore, the output of the pulse generator is inhibited by the AND circuit, and further operation is stopped.

一方、排他的論理和回路17の出力は出力端子
C7に出力される。これは中央処理装置などから
のルツクイン(あるいは割込み)により中央処理
装置に伝えられる。中央処理装置はランレングス
カウンタ出力A0,A1……A7,B9,B1……B7を読
取ることによりランレングス計数結果を得ること
ができる。またその時の状態はC0,C1から読取
ることができる。
On the other hand, the output of the exclusive OR circuit 17 is the output terminal
Output to C7 . This information is transmitted to the central processing unit by a look-in (or an interrupt) from the central processing unit. The central processing unit can obtain the run length counting result by reading the run length counter outputs A0 , A1 ... A7 , B9 , B1 ... B7 . Also, the state at that time can be read from C 0 and C 1 .

読取つたのち、中央処理装置なリセツト信号を
入力端子F7より加える。これによりランレング
スカウンタ22は0にリセツトされる。
After reading, a central processing unit reset signal is applied from input terminal F7 . As a result, the run length counter 22 is reset to zero.

また、遅延素子25を経て、論理和回路20を
経てパルス発生回路19のパルス出力をアンドゲ
ート21より出力させる。
Further, the pulse output of the pulse generation circuit 19 is outputted from the AND gate 21 via the delay element 25 and the OR circuit 20 .

この結果、フリツプフロツプ13,14は新し
い状態に変更される。そして以下前述と同じ動作
を行なう。
As a result, flip-flops 13 and 14 are changed to a new state. Then, the same operations as described above are performed.

なお、シフトレジスタ11,12をセツトして
から8ビツトシフトしてしまうと次にまた新しい
画像データをセツトする必要がある。このためビ
ツトカウンタ23がある値になつたときにC6
り読み出せるように(あるいは割込めるように)
しておく。このカウンタは8を周期で計数してお
けば、特に最初を除いてF6によつてリセツトす
ることは不要である。
Note that if the shift registers 11 and 12 are set and then shifted by 8 bits, it is necessary to set new image data next time. For this reason, when the bit counter 23 reaches a certain value, it can be read from C6 (or it can be interrupted).
I'll keep it. If this counter counts 8 in cycles, it is not necessary to reset it by F6 except at the beginning.

またフリツプフロツプ13,14は次々と前の
状態が残つているので通常はそのままでよいが、
特に走査線の先頭などで初期設定をするときには
G0,G1から入力すればよい。
Also, flip-flops 13 and 14 retain their previous states one after another, so normally they can be left as they are, but
Especially when making initial settings such as at the beginning of a scan line.
You can input from G 0 and G 1 .

さて本発明は下記の如く多く変形がある。 Now, the present invention has many variations as described below.

(1) 2ライン一括に限らず、任意の数(1本を含
む)の走査線の処理が可能である。
(1) It is possible to process any number of scanning lines (including one), not just two lines at once.

(2) 入力端子D0〜D7,E0〜E7,F6,F7,G0
G1、出力端子A0〜A7,B0〜B7,C0,C1は現在
マイクロコンピユータ周辺回路で公知となつて
いる双方向バスに接続できるようにまとめるこ
とができる。C6,C7も同様に可能であるが、
割込出力として扱つた方がシステム上有利であ
る。
(2) Input terminals D 0 to D 7 , E 0 to E 7 , F 6 , F 7 , G 0 ,
G 1 , output terminals A 0 -A 7 , B 0 -B 7 , C 0 , C 1 can be grouped together so that they can be connected to a bidirectional bus, which is currently known in microcomputer peripheral circuits. C 6 and C 7 are also possible, but
It is more advantageous for the system to handle it as an interrupt output.

(3) 公知のいわゆるDMA(Direct Memory
Access)機能により、メモリ部と直接情報を
送受してもよい。
(3) Well-known so-called DMA (Direct Memory)
Access) function may be used to directly send and receive information to and from the memory unit.

(4) 1回に扱う画像データのビツト数は構成上8
ビツトに限らず任意とすることが可能である。
(4) The number of bits of image data handled at one time is 8 due to the structure.
It is not limited to bits, but can be any value.

(6) まとめ 以上、本発明の構成によれば、ランレングス計
数を必要とする符号化において高速性を要求され
るランレングス計数を高速に行なつて、プログラ
ム制御を容易に実現しうる点、マイクロコンピユ
ータの周辺回路などとして実用に供して効果はす
こぶる大である。
(6) Summary As described above, according to the configuration of the present invention, program control can be easily realized by performing run-length counting at high speed, which is required in encoding that requires run-length counting. When used in practical applications such as peripheral circuits for microcomputers, the effect is extremely large.

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

第1図は本発明の計数回路を含む処理装置の構
成の一例を示す。第2図は公知の2ライン一括の
ランレングス計数の説明図である。第3図は、本
発明のランレングス計数回路の実施例の構成を示
すものである。
FIG. 1 shows an example of the configuration of a processing device including a counting circuit according to the present invention. FIG. 2 is an explanatory diagram of the known run length counting for two lines at once. FIG. 3 shows the configuration of an embodiment of the run length counting circuit of the present invention.

Claims (1)

【特許請求の範囲】[Claims] 1 走査線に沿つて、あらかじめ定めらた一定間
隔で区切られた画像データを入力するシフトレジ
スタと、上記レフトレジスタの出力を保持する保
持手段と、上記シフトレジスタをシフトし、その
出力を上記保持手段にシフトするシフト手段と、
上記シフト手段のシフト数を計数し、その計数値
が外部信号によつてリセツトされる第1カウンタ
と、上記シフトレジスタの出力と上記保持手段の
出力によつて上記画像データの状態の変化を検出
する検出手段と、上記検出手段の出力によつて、
状態の変化があつたとき上記シフトを阻止する回
路と、上記シフトレジスタに上記画像データが入
力された後、上記シフトレジスタのシフト数を計
数し、上記画像データの数のシフトを計数したと
きに出力信号を発生する第2カウンタとを具備し
て構成されたことを特徴とするランレングス計数
回路。
1. A shift register for inputting image data separated at predetermined intervals along a scanning line, a holding means for holding the output of the left register, and a holding means for shifting the shift register and holding the output thereof. a shift means for shifting to the means;
A first counter counts the number of shifts of the shift means and the count value is reset by an external signal, and a change in the state of the image data is detected by the output of the shift register and the output of the holding means. and the output of the detection means,
a circuit that blocks the shift when a state changes, and a circuit that counts the number of shifts in the shift register after the image data is input to the shift register, and when the shift of the number of image data is counted. A run-length counting circuit comprising: a second counter that generates an output signal.
JP3617577A 1977-04-01 1977-04-01 Counter circuit for run length Granted JPS53122313A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3617577A JPS53122313A (en) 1977-04-01 1977-04-01 Counter circuit for run length

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3617577A JPS53122313A (en) 1977-04-01 1977-04-01 Counter circuit for run length

Publications (2)

Publication Number Publication Date
JPS53122313A JPS53122313A (en) 1978-10-25
JPS6122504B2 true JPS6122504B2 (en) 1986-05-31

Family

ID=12462397

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3617577A Granted JPS53122313A (en) 1977-04-01 1977-04-01 Counter circuit for run length

Country Status (1)

Country Link
JP (1) JPS53122313A (en)

Also Published As

Publication number Publication date
JPS53122313A (en) 1978-10-25

Similar Documents

Publication Publication Date Title
GB1036024A (en) Data processing
JPS6122504B2 (en)
JPH0149072B2 (en)
SU1089585A1 (en) Device for collecting and processing information for monitoring system
JPH0134422B2 (en)
JP2804406B2 (en) Pulse measuring device
KR100192050B1 (en) Interrupt circuit for measuring convergence of image process board
JP2726127B2 (en) Shared memory access control circuit
US5479165A (en) Two-dimensional coding apparatus
JP3210356B2 (en) Data zero judgment device
SU750748A1 (en) Device for monitoring data transmission system terminal units
JPS63259476A (en) Jitter measuring circuit
JPS6111803Y2 (en)
JPS6041772B2 (en) Parity creation circuit
KR910006684Y1 (en) Central processing unit signal control circuit
KR950012497B1 (en) Programmable acknoledge signal generating circuit
SU1718252A1 (en) Device for reading graphic information
JPS6350723B2 (en)
JPH02171812A (en) Processor acceleration circuit without wait state function
JPS62113245A (en) Operation monitoring device for signal processor
JPH07200456A (en) External device interface of CPU
JPH05233138A (en) Interruption signal generation circuit of coordinate input device
JPH06251132A (en) Interface device
JPH01108862A (en) Coding circuit
JPS6367604A (en) Process signal converter