JPS6118771B2 - - Google Patents
Info
- Publication number
- JPS6118771B2 JPS6118771B2 JP53161728A JP16172878A JPS6118771B2 JP S6118771 B2 JPS6118771 B2 JP S6118771B2 JP 53161728 A JP53161728 A JP 53161728A JP 16172878 A JP16172878 A JP 16172878A JP S6118771 B2 JPS6118771 B2 JP S6118771B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- input
- buffer
- program
- register
- 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
Links
- 238000000034 method Methods 0.000 claims description 7
- 230000007257 malfunction Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000003111 delayed effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
Landscapes
- Input From Keyboards Or The Like (AREA)
- Information Transfer Systems (AREA)
Description
【発明の詳細な説明】 本発明はデータ処理装置の入力方式に関する。[Detailed description of the invention] The present invention relates to an input method for a data processing device.
従来、プログラムの入力命令で外部入力装置か
らデータを入力し処理する装置では、入力命令が
発行されてからデータ入力が可能となり、入力命
令未発行時に発生したデータは無視されていた。 Conventionally, in a device that inputs and processes data from an external input device in response to a program input command, data input becomes possible after the input command is issued, and data generated when the input command is not issued is ignored.
そのため、キーボード等のプログラムの実行と
非同期にデータが発生する入力装置では、内部処
理のため入力命令の発行が遅れると正常に打鍵し
たデータが使われてしまうことがあり、オペレー
タは入力が可能か不可能かを確認しながらキー打
鍵する必要があり操作性が悪く、しかも装置に入
力可能を示すランプがブザーの回路を付加する必
要があつた。 Therefore, with input devices such as keyboards that generate data asynchronously with the execution of a program, if the issuance of input commands is delayed due to internal processing, data that has been correctly pressed may be used, making it difficult for the operator to input data. Operability was poor because it was necessary to press the keys while confirming whether the input was possible, and it was necessary to add a lamp and buzzer circuit to the device to indicate that input was possible.
この欠点をなくすため、キーボード等からの入
力によりデータ作成する専用装置では入力データ
を常に有効とする方法としてFIFO(フアースト
イン、フアーストアウト)バツフアを設けて発生
データを一時FIFOバツフアに格納しておき、入
力命令実行時にFIFOバツフアからデータを取出
す方法がとられている。 In order to eliminate this drawback, in a dedicated device that creates data by inputting from a keyboard, etc., a FIFO (first-in, first-out) buffer is installed as a method to ensure that the input data is always valid, and the generated data is temporarily stored in the FIFO buffer. , a method is used to retrieve data from the FIFO buffer when an input command is executed.
しかし、FIFOバツフアの制御をデータ処理を
主とする装置に取り入れると、装置がデータのプ
リント出力や内部演算で長時間入力命令が出され
ていない時にオペレータがミスタツチしたデータ
もバツフアに入り、次に入力命令が発行された時
にプログラムに引きとられ予期せぬデータが入り
誤動作の原因となる事が多くなるという欠点があ
つた。 However, when FIFO buffer control is incorporated into a device that primarily processes data, data mismatched by the operator when the device is printing out data or performing internal calculations for a long time when no input commands have been issued will also enter the buffer. The drawback is that when an input command is issued, unexpected data is often captured by the program and causes malfunctions.
いずれの場合も入力命令未発行時の処理はシス
テム固定であり入力項目の流れに従つたデータ処
理プログラムを実現するのは困難であつた。 In either case, the processing when no input command is issued is fixed to the system, and it is difficult to implement a data processing program that follows the flow of input items.
本発明は、外部入力装置で発生したデータは常
にバツフアに格納しておき、該にプログラムの命
令により指示された入力命令未発行時の発生デー
タを有効とするか無効とするかのモードにより、
プログラムの入力命令発行時にすでにバツフアに
格納されているデータをそのままプログラムに渡
すか、無視して新たな入力データのみをプログラ
ムに渡すか制御することにより前記両欠点を解決
し、入力項目の連続性を考慮したデータ入力方式
をプログラムの組み方により自由に実現できる装
置を提供することにある。 According to the present invention, data generated by an external input device is always stored in a buffer, and data generated when an input command has not been issued as instructed by a program command is set to be valid or invalid.
Both of the above drawbacks can be solved by controlling whether the data already stored in the buffer is passed to the program as is when the program input command is issued, or whether it is ignored and only new input data is passed to the program, and the continuity of input items is improved. It is an object of the present invention to provide a device that can freely realize a data input method that takes account of the above factors by programming the program.
本発明によれば複数データを格納できるバツフ
アとバツフアへの書込アドレスを制御する回路
(以下W・Pレジスタと呼ぶ)と読出しアドレス
を制御する回路(以下R・Pレジスタと呼ぶ)と
バツフア内の未処理データ数を記憶する回路(以
下DNBカウンタと呼ぶ)により、外部入力装置
の発生データをプログラムの入力命令の発行タイ
ミングとは無関係に全て有効データとしてプログ
ラムに渡すデータ入力装置において、プログラム
の命令によりモードを記憶する回路と、入力命令
発行時に出力される信号によりW・Pレジスタ、
R・Pレジスタ、DNBカウンタを初期値にセツ
トする回路により、入力命令発行時に該にバツフ
アに入つていたデータを撫視することがプログラ
ムの命令で指定でき、入力項目の連続性に合つた
外部入力装置からの入力制御プログラムを容易に
実現できるデータ処理装置が得られる。 According to the present invention, there is a buffer that can store multiple data, a circuit for controlling the write address to the buffer (hereinafter referred to as W/P register), a circuit for controlling the read address (hereinafter referred to as R/P register), and a buffer inside the buffer. The data input device that stores the number of unprocessed data (hereinafter referred to as DNB counter) passes all the data generated by the external input device to the program as valid data, regardless of the timing of issuing the program input command. A circuit that stores the mode according to an instruction, and a W/P register that uses a signal that is output when an input instruction is issued.
By using a circuit that sets the R/P register and DNB counter to their initial values, it is possible to specify by a program command that the data that was in the buffer when the input command is issued is specified, and the data that matches the continuity of the input items can be specified. A data processing device that can easily implement an input control program from an external input device is obtained.
次に本発明の実施例について図面を参照して説
明する。第1図において、外部入力装置1はキー
ボード11とキーボードによる打鍵データ格納す
る1文字長のレジスタ12とにより構成されてい
る。FIFOバツフア回路2は4文字分のデータを
格納するバツフア21と、該バツフア21からデ
ータを読出す読出レジスタ22と、前記データを
記憶する主記憶装置23と、前記バツフア21を
制御するための2ビツトから成るカウンタ26,
27,28とを含む。FIFO制御回路3はプログ
ラムにより指示される制御回路で、FIFOバツフ
ア回路2を制御するためのワンシヨツト31とフ
リツプフロツプ32とNANDゲート33とを含ん
でいる。次に第1図、第2図において、FIFOバ
ツフア21へのデータの書込は次のように行われ
る。 Next, embodiments of the present invention will be described with reference to the drawings. In FIG. 1, an external input device 1 includes a keyboard 11 and a register 12 of one character length for storing keystroke data from the keyboard. The FIFO buffer circuit 2 includes a buffer 21 for storing data for four characters, a read register 22 for reading data from the buffer 21, a main memory 23 for storing the data, and a buffer 21 for controlling the buffer 21. A counter 26 consisting of bits,
27 and 28. The FIFO control circuit 3 is a control circuit instructed by a program, and includes a one shot 31, a flip-flop 32, and a NAND gate 33 for controlling the FIFO buffer circuit 2. Next, in FIGS. 1 and 2, writing of data to the FIFO buffer 21 is performed as follows.
キーボード11でキーが打鍵されると出力コー
ドがDOレジスタ12にセツトされ信号STB11
1が出力される。 When a key is pressed on the keyboard 11, an output code is set in the DO register 12 and a signal STB11 is output.
1 is output.
信号STBによりDOレジスタの内容はW.Pレジ
スタ26で示されるバツフアのアドレスF0に書
き込み、DNBカウンタ28の内容を+1して未
処理データがFIFOバツフア内にある事を示し、
さらにW.Pレジスタの内容を+1して次のデータ
打鍵に備える。 In response to the signal STB, the contents of the DO register are written to address F0 of the buffer indicated by the WP register 26, and the contents of the DNB counter 28 are increased by 1 to indicate that the unprocessed data is in the FIFO buffer.
Furthermore, the contents of the WP register are incremented by 1 in preparation for the next data keystroke.
以後データが入力される事にW・Pレジスタの
内容は1→2→3→0→1……となりデータはF
1→F2→F3→F0→F1……の位置に格納さ
れる。 After that, as data is input, the contents of the W/P register will be 1 → 2 → 3 → 0 → 1... and the data will be F.
It is stored in the positions 1→F2→F3→F0→F1...
FIFOバツフア21からのデータ読出しはプロ
グラムの命令で制御されるモードフリツプフロツ
プ32の状態により、入力命令発行時に異つた動
きをする。 Data read from the FIFO buffer 21 operates differently when an input command is issued, depending on the state of the mode flip-flop 32 controlled by program commands.
入力命令未発行時の発生データを無効とする命
令を実行するとモードフリツプフロツプの強制セ
ツト信号MSETが発生し信号MODE(311)は
“1”となり、有効とする命令を実行すると強制
リセツト信号MRESTが発生し信号MODEは
“0”となる。入力命令(INP)発行時MODE信
号が“1”なら(第2図)INP信号で駆動され
るワンシヨツト回路31の出力信号とNANDゲー
ト33により信号CLRが“0”になり、WPレジ
スタ、R・Pレジスタ、DNBカウンタをそれぞ
れリセツト(初期化するので該にFIFOバツフア
21に格納されていたデータA,B,Cは無視さ
れその後打鍵されたデータDが入力されると
DNBカウンタの内容は1となりANDゲート2
4,25が満足してDIレジスタ22を通し主記
憶装置にデータが取り込まれる。同時にDNBカ
ウンタを−1,R,Pレジスタを+1して次のデ
ータ入力に備える。 When an instruction to invalidate the data generated when no input command is issued is executed, the mode flip-flop forced set signal MSET is generated and the signal MODE (311) becomes "1", and when an instruction to make it valid is executed, the forced reset signal is generated. MREST occurs and the signal MODE becomes "0". When the input command (INP) is issued, if the MODE signal is "1" (Fig. 2), the signal CLR becomes "0" due to the output signal of the one-shot circuit 31 driven by the INP signal and the NAND gate 33, and the WP register, R. The P register and DNB counter are each reset (initialized, so the data A, B, and C stored in the FIFO buffer 21 are ignored, and when the data D pressed after that is input)
The content of the DNB counter becomes 1 and AND gate 2
4 and 25 are satisfied, the data is taken into the main storage device through the DI register 22. At the same time, the DNB counter is -1 and the R and P registers are +1 to prepare for the next data input.
プログラムで指定された文字数データが主記憶
装置に取り込まれると入力命令は終了しINP信号
は“0”になるのでその後の打鍵データはFIFO
バツフア21に保留される。 When the character count data specified by the program is loaded into the main memory, the input command ends and the INP signal becomes "0", so the subsequent keystroke data is stored in the FIFO.
It is held in buffer 21.
次の入力命令発行以前にMODEが“0”に切
り換えられていると、入力命令実行開始時に
CLR信号は“1”のままとなりW.Pレジスタ、
R.Pレジスタ、DNBカウンタの内容は変化しない
(第2図)。従つて、該にFIFOバツフア21に
格納されていたデータG.H.Iはそのまま有効デー
タとしてその後打鍵されたデータJとともにDO
レジスタを通して主記憶装置に取り込まれる。 If MODE is switched to “0” before issuing the next input command, when the input command execution starts
The CLR signal remains “1” and the WP register
The contents of the RP register and DNB counter do not change (Figure 2). Therefore, the data GHI stored in the FIFO buffer 21 is treated as valid data and is sent to the DO along with the data J that was subsequently pressed.
Loaded into main memory through registers.
このようにプログラムではモードを制御する命
令を一連の処理プログラムの中に入れるだけで、
入力命令が未発行時に入力されたデータを有効に
も無効にもでき入力項目の連続性を考慮したデー
タ入力処理プログラムを容量に実現できるように
なる。 In this way, in a program, all you have to do is put an instruction to control the mode into a series of processing programs.
Data inputted when an input command has not been issued can be made valid or invalidated, and a data input processing program that takes into account the continuity of input items can be realized in a large capacity.
以上説明したように、プログラムによりデータ
未発行時に発生したデータを有効とするか無効と
するかの制御を可能とすることにより、入力項目
の処理フローに合いしかもミスオペレーシヨンに
よる誤動作を防止できるデータ処理装置が実現で
きる。 As explained above, by making it possible to control whether data generated when data has not been issued is made valid or invalid by a program, data that matches the processing flow of input items and can prevent malfunctions due to erroneous operations can be created. A processing device can be realized.
第1図は本発明の一実施例を示した回路、第2
図は第1図の回路におけるタイムチヤートを示す
図である。
1…外部入力装置、11…キーボード、12…
レジスタ、2…FIFOバツフア回路、21…バツ
フア、22…読出しレジスタ、23…主記憶装
置、24,25…ANDゲート、26,27,2
8…カウンタ、3…FIFO制御回路、31…ワン
シヨツト、32…フリツプフロツプ、33…
NANDゲート。
FIG. 1 shows a circuit showing one embodiment of the present invention, and FIG.
This figure is a diagram showing a time chart in the circuit of FIG. 1. 1...External input device, 11...Keyboard, 12...
Register, 2... FIFO buffer circuit, 21... Buffer, 22... Read register, 23... Main storage device, 24, 25... AND gate, 26, 27, 2
8... Counter, 3... FIFO control circuit, 31... One shot, 32... Flip-flop, 33...
NAND gate.
Claims (1)
ツフアを介してデータを入力し、処理する装置に
おいて、入力命令が未発行時にバツフアに入つた
データを、その後入力命令実行時に有効データと
して処理の対象とするか、無効データとして無視
するかをプログラムの命令により指定する手段を
備えたデータ処理装置。1 In a device that inputs and processes data from an external input device via a buffer according to a program command, is the data that entered the buffer when the input command has not been issued treated as valid data when the input command is subsequently executed? , a data processing device comprising means for specifying whether to ignore data as invalid data by a program command.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16172878A JPS5587226A (en) | 1978-12-25 | 1978-12-25 | Data processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16172878A JPS5587226A (en) | 1978-12-25 | 1978-12-25 | Data processor |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5587226A JPS5587226A (en) | 1980-07-01 |
| JPS6118771B2 true JPS6118771B2 (en) | 1986-05-14 |
Family
ID=15740750
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP16172878A Granted JPS5587226A (en) | 1978-12-25 | 1978-12-25 | Data processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5587226A (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS59109934A (en) * | 1982-12-15 | 1984-06-25 | Toshiba Corp | digital input circuit |
-
1978
- 1978-12-25 JP JP16172878A patent/JPS5587226A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5587226A (en) | 1980-07-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6772276B2 (en) | Flash memory command abstraction | |
| US3659272A (en) | Digital computer with a program-trace facility | |
| JPH03204737A (en) | Debug circuit of signal processing processor | |
| JPH0414385B2 (en) | ||
| US4047245A (en) | Indirect memory addressing | |
| US3480917A (en) | Arrangement for transferring between program sequences in a data processor | |
| JPS6118771B2 (en) | ||
| US3427592A (en) | Data processing system | |
| KR900005306A (en) | Computer system and method for setting recovery time | |
| KR0153537B1 (en) | Signal processing structure to preselect memory address data | |
| JPS5864534A (en) | Data transfer system of computer device | |
| JP2690222B2 (en) | Development support equipment | |
| JPS6238729B2 (en) | ||
| JPH0720769Y2 (en) | Small electronic calculator with programming function | |
| JPH0364903B2 (en) | ||
| JPS5917468B2 (en) | Program counter trajectory storage device | |
| JPH0353671B2 (en) | ||
| JPH03273349A (en) | Access control system | |
| KR950005523B1 (en) | Step Run Processing Method of Programmable Logic Controller | |
| JPH05197596A (en) | Tracer | |
| JPS5938827A (en) | Microprocessor ipl system | |
| JPH0683986A (en) | Single chip microcomputer | |
| JPS6124737B2 (en) | ||
| JPS5853380B2 (en) | Program erase method | |
| JPS592028B2 (en) | display terminal device |