JPH01240938A - Data read back method - Google Patents

Data read back method

Info

Publication number
JPH01240938A
JPH01240938A JP63068398A JP6839888A JPH01240938A JP H01240938 A JPH01240938 A JP H01240938A JP 63068398 A JP63068398 A JP 63068398A JP 6839888 A JP6839888 A JP 6839888A JP H01240938 A JPH01240938 A JP H01240938A
Authority
JP
Japan
Prior art keywords
command data
control register
data
cpu
bus
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
JP63068398A
Other languages
Japanese (ja)
Inventor
Hiroshi Kuriyama
栗山 広志
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 Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP63068398A priority Critical patent/JPH01240938A/en
Publication of JPH01240938A publication Critical patent/JPH01240938A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To simplify constitution and to prevent a load from being applied on a CPU by storing command data in each memory area at the time of writing each command data and reading each command data by designating each memory area at the time of reading back. CONSTITUTION:In case of performing write on a control register 22-1, a RAM 27 receives a write signal and the command data passing a data bus 21, and stores the command data in the memory area corresponding to the control register 22-1. Next, in case of reading back the command data in the control register 22-1, stored command data is read out from the memory area of the control register 22-1 by the input of a read signal by the RAM 27, and the command data is sent to the CPU 20 via the data bus 21. In such a way, it is possible to make a three-state buffer unnecessary, and the number of out of the data bus 21 can be also reduced. Also, since read back can be performed only by designating an address to the RAM 27 by the CPU 20, the load on the CPU 20 can be reduced.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は、例えばラッチ形のコントロールレジスタに書
込んだ指令データをリードバックするデータリードバッ
ク方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Field of Industrial Application) The present invention relates to a data readback method for reading back command data written in, for example, a latch type control register.

(従来の技術) cpu <中央処理@II)から各デバイスに発せられ
る各指令データ、例えばデバイスとして印字機に印字動
作許可の指令データを発する場合は、この指令データを
ラッチ形の書込み専用コントロールレジスタに書込み、
このコントロールレジスタから印字機に与えている。そ
して、印字動作を不許可とする場合は、コントロールレ
ジスタに印字動作不許可の指令データを書込むことにな
る。
(Prior art) Each command data issued from the CPU <central processing @II) to each device, for example, when issuing command data for permission of printing operation to a printing machine as a device, this command data is stored in a latch type write-only control register. write to,
This control register is given to the printing machine. If the printing operation is not permitted, command data for not allowing the printing operation is written in the control register.

ところで、このような指令データを各デバイスに発する
に使用される各ラッチ形のコントローラレジスタは書込
み専用であって直接読み出すことができなくなっている
。従って、読出す場合は、コントローラレジスタの出力
端子にバッファを接続し、このバッファを介してCPU
で読み出しが行なわれる。第3図はかかるコントロール
レジスタへの指令データの書込み読み出しを行う場合の
回路構成図である。cpuiにはアドレスバス2及びコ
ントロールバス3を介してタイミング口ジツり回路4が
接続されている。そして、このタイミングロジック回路
4にライト線5を介して各コントロールレジスタ6−1
〜5−nが共通接続されるとともにリード線7を介して
各3ステートバツフア8−1〜B−nが共通接続されて
いる。そして、各コントロールレジスタ6−1〜5−n
の出力端子がそれぞれ各3ステートバツフア8−1〜8
−nに接続されている。又、CPUIはデータバス9を
介して各コントロールレジスタ6−1〜5−n及び各3
ステートバツフア8−1〜f3−nと接続されている。
By the way, each latch type controller register used to issue such command data to each device is write-only and cannot be directly read. Therefore, when reading, a buffer is connected to the output terminal of the controller register, and the CPU
Reading is performed at FIG. 3 is a circuit configuration diagram when writing and reading command data to and from such a control register. A timing control circuit 4 is connected to the CPU via an address bus 2 and a control bus 3. Each control register 6-1 is connected to this timing logic circuit 4 via a write line 5.
5-n are commonly connected, and the three-state buffers 8-1 to B-n are also commonly connected via lead wires 7. And each control register 6-1 to 5-n
The output terminals of each are 3-state buffers 8-1 to 8.
- connected to n. The CPU also controls each control register 6-1 to 5-n and each control register 3 via the data bus 9.
It is connected to state buffers 8-1 to f3-n.

なお、前述の如く各コントロールレジスタ6−1〜5−
nにはそれぞれデバイス10−1〜10−1が接続され
ている。
In addition, as mentioned above, each control register 6-1 to 6-5-
Devices 10-1 to 10-1 are connected to each of n.

しかして、例えばコントロールレジスタ6−1に指令デ
ータを書込む場合、CPU1はアドレスバス2にコント
ロールレジスタ6−1を指定するアドレスを送出すると
ともにコントロールバス3にライト信号を送出し、この
後データバス9に指令データを送出する。これにより、
コントロールレジスタ6−1は自身のアドレスを受ける
とともにライト信号を、受けてデータバス9を通ってく
る指令データを受けて内部に書込む。このように指令デ
ータを書込むとコントロールレジスタ6−1はこの指令
データをデバイス1o−1へ与えるとともに各3ステー
トバツフア8−1〜F3−nに送る。
For example, when writing command data to the control register 6-1, the CPU 1 sends an address specifying the control register 6-1 to the address bus 2, sends a write signal to the control bus 3, and then sends a write signal to the data bus 3. Send command data to 9. This results in
The control register 6-1 receives its own address, receives a write signal, receives command data coming through the data bus 9, and writes it internally. When the command data is written in this way, the control register 6-1 gives this command data to the device 1o-1 and also sends it to each of the three-state buffers 8-1 to F3-n.

一方、CPU1は各コントロールレジスタ6−1〜5−
nに書込んだ指令データの内容を確認したり、又今とよ
うな内容の指令データが書込まれているのかを判断する
ために指令データのリードバックが行なわれる。例えば
コントロールレジスタ6−1の指令データをリードバッ
クする場合、cpuiは3ステートバッファ8−1のア
ドレスをアドレスバス2に送出するとともにリード信号
をコントロールバス3に送出する。そうすると、3ステ
ートバッファ8−7では自身のアドレスを受けるととも
にリード信号を受けると、コントロールレジスタ6−1
から受けた指令データをデータバス9を通してcpu 
iに渡す。しかして、CPU1はこの指令データからコ
ントロールレジスタ6−1に書込んだ指令データ内容を
判断する。
On the other hand, the CPU 1 controls each control register 6-1 to 6-5-.
The command data is read back in order to confirm the contents of the command data written to n and to determine whether the command data with the same contents as before has been written. For example, when reading back command data from the control register 6-1, the CPU sends the address of the 3-state buffer 8-1 to the address bus 2 and also sends a read signal to the control bus 3. Then, when the 3-state buffer 8-7 receives its own address and also receives the read signal, the control register 6-1
The command data received from the CPU is sent through the data bus 9.
Give it to i. The CPU 1 then determines the contents of the command data written into the control register 6-1 from this command data.

ところが、以上のような構成であるとコントロールレジ
スタ6−1〜6−nに対してそれぞれ3ステートバッフ
ァ8−1〜B−nを接続するので、コントロールレジス
タ6−1〜5−nの接続数が多くなればなるほど3ステ
ートバッファ8−1〜B−nの接続数も多くなる。この
ため、3ステートバッファ8−1〜8−nの専有面積が
広くなるとともにこれら3ステートバッファ8−1〜8
−nへのデータバス9のアウト数が増加する。さらに、
こればかりでなく消費電力の増加や回路基板に形成され
るパターンが複雑化する。
However, with the above configuration, 3-state buffers 8-1 to B-n are connected to control registers 6-1 to 6-n, respectively, so the number of connected control registers 6-1 to 5-n is limited. As the number of 3-state buffers 8-1 to B-n increases, the number of connected 3-state buffers 8-1 to B-n also increases. Therefore, the area occupied by the 3-state buffers 8-1 to 8-n becomes larger and the area occupied by the 3-state buffers 8-1 to 8-n increases.
-The number of outs of data bus 9 to n increases. moreover,
In addition to this, power consumption increases and the patterns formed on the circuit board become more complex.

(発明が解決しようとする課題) 以上のようにリードバック機能を持たせると、3ステー
トバッファ8−1〜B−nの接続数が多くなってシステ
ム全体が大型化してしまう。
(Problems to be Solved by the Invention) If the readback function is provided as described above, the number of connected 3-state buffers 8-1 to B-n will increase, resulting in an increase in the size of the entire system.

そこで本発明は、簡単な構成でかつCPLIに負担の掛
からないデータリードバック方法を提供することを目的
とする。
Therefore, an object of the present invention is to provide a data readback method that has a simple configuration and does not place a burden on the CPLI.

[発明の構成] (課題を解決するための手段と作用) 本発明は、中央処理装置により書込まれた各指令データ
をそれぞれ各デバイスに対して与える書込み専用の各コ
ントロールレジスタの書込まれた各指定データをリード
バックするデータリードバック方法において、各指令デ
ータの書込み時にこれら指令データを書込むべき各コン
トロールレジスタのアドレスと対応する各メモリエリア
に記憶させ、リードバック時に各メモリエリアを指定し
て各コントロールレジスタに書込まれた各指令データを
読み取るようにして上記目的を達成しようとするデータ
リードバック方法である。
[Structure of the Invention] (Means and Effects for Solving the Problems) The present invention provides a control register for each write-only control register that gives each command data written by a central processing unit to each device. In the data readback method of reading back each specified data, when writing each command data, these command data are stored in each memory area corresponding to the address of each control register to be written, and each memory area is specified at the time of readback. This data readback method attempts to achieve the above object by reading each command data written in each control register.

(実施例) 以下、本発明の一実施例について図面を寝照して説明す
る。
(Example) Hereinafter, an example of the present invention will be described with reference to the drawings.

第1図はデータリードバック方法を適用したデータリー
ドバック装置の構成図である。CPU20にはデータバ
ス21を介して複数の書込み専用のコントロールレジス
タ22−1〜22−nが接続されている。又、CPU2
0にはアドレスバス23及びコントロールバス24を介
してタイミングロジック回路25が接続され、さらにこ
のタイミングロジック回路25にライト線26を介して
前記各コントロールレジスタ22−1〜22−nが接続
されている。
FIG. 1 is a block diagram of a data readback device to which the data readback method is applied. A plurality of write-only control registers 22-1 to 22-n are connected to the CPU 20 via a data bus 21. Also, CPU2
0 is connected to a timing logic circuit 25 via an address bus 23 and a control bus 24, and each of the control registers 22-1 to 22-n is further connected to this timing logic circuit 25 via a write line 26. .

さて、CPU20には前記データバス21及びアドレス
バス23を介してRAM (ランダム・アクセス・メモ
リ)27が接続されている。そして、このRAM27と
タイミングロジック回路25との間はライト線26及び
リード線28で接続されている。このRAM27には第
2図に示すように各コントロールレジスタ22−1〜2
2−nの各アドレスに対応した各メモリエリアが形成さ
れ、これらメモリエリアにそれぞれ指令データが記憶さ
れるようになっている。
Now, a RAM (Random Access Memory) 27 is connected to the CPU 20 via the data bus 21 and address bus 23. The RAM 27 and the timing logic circuit 25 are connected by a write line 26 and a lead line 28. This RAM 27 includes each control register 22-1 to 22-2 as shown in FIG.
Each memory area corresponding to each address of 2-n is formed, and command data is stored in each of these memory areas.

次に上記の如く構成された装置でのデータリードバック
作用について説明する。
Next, a data readback operation in the device configured as described above will be explained.

先ず、指令データの書込み作用について説明する。例え
ば、コントロールレジスタ22−1に書込みを行う場合
、、CPU20はアドレスバスにコントロールレジスタ
22−1のアドレスを送出するとともにコントロールバ
ス24にライト信号を送出し、この後データバス21に
指令データを送出する。これにより、タイミングロジッ
ク回路25は入力されたアドレス及びライト信号をデコ
ードしてライト信号をライト線26に送出する。
First, the writing operation of command data will be explained. For example, when writing to the control register 22-1, the CPU 20 sends the address of the control register 22-1 to the address bus, sends a write signal to the control bus 24, and then sends command data to the data bus 21. do. Thereby, the timing logic circuit 25 decodes the input address and write signal and sends the write signal to the write line 26.

なお、このライト信号はコントロールレジスタ22−1
のみを指定するものとなっている。これにより、コント
ロールレジスタ22−1のみが作動し、このコントロー
ルレジスタ22−1はデータバス21を通ってくる指令
データを受けて内部に書込み、かつこの指令データをデ
バイス10−1へ与える。
Note that this write signal is sent to the control register 22-1.
only. As a result, only the control register 22-1 operates, and the control register 22-1 receives the command data coming through the data bus 21, writes it internally, and provides this command data to the device 10-1.

一方、このときタイミングロジック回路25から送出さ
れるライト信号はRAM27にも送出されているので、
このRAM27はライト信号及びデータバス21を通っ
てくる指令データを受け、この指令データをコントロー
ルレジスタ22−1と対応するメモリエリアに記憶する
On the other hand, since the write signal sent from the timing logic circuit 25 at this time is also sent to the RAM 27,
This RAM 27 receives a write signal and command data coming through the data bus 21, and stores this command data in a memory area corresponding to the control register 22-1.

次にリードバック作用について説明する。例えば、コン
トロールレジスタ22−1の指令データをリードバック
する場合、CPU20はアドレスバス23にコントロー
ルレジスタ22−1のアドレスを送出するとともにコン
トロールバス24にリード信号を送出する。これにより
、タイミングロジック回路25はアドレス及びリード信
号をデコードしてそのリード信号をリード線28に送出
する。しかして、RAM27ではリード信号の入力によ
りコントロールレジスタ22−1のメモリエリアから記
憶されている指令データが読み出され、この指令データ
がデータバス21を通してCPU20に送られる。ここ
で、CPU20は読み出した指令データからコントロー
ルレジスタ22−1に書込んだ指令データを判断する。
Next, the readback effect will be explained. For example, when reading back command data from the control register 22-1, the CPU 20 sends the address of the control register 22-1 to the address bus 23 and a read signal to the control bus 24. Thereby, the timing logic circuit 25 decodes the address and read signal and sends the read signal to the lead line 28. In the RAM 27, the command data stored in the memory area of the control register 22-1 is read by inputting the read signal, and this command data is sent to the CPU 20 through the data bus 21. Here, the CPU 20 determines the command data written to the control register 22-1 from the read command data.

このように上記一実施例においては、各指令データの書
込み時にこれら指令データを書込むべき各コントロール
レジスタ22−1〜22−nのアドレスと対応する各メ
モリエリアに記憶させ、リードバック時に各メモリエリ
アを指定して各コントロールレジスタ22−1〜22−
nk:書込まれた各指令データを読み取るようにしたの
で、3ステートバツフアが全く不要となってその分だけ
回路基板上のスペースを有効に使用でき、かつ回路基板
のパターン形成が簡単となる。そのうえ、データバス2
1のアウト数も削減できる。又、CP(J20はRAM
27に対してアドレス指定するだけでリードバックでき
るので、CPLI20の負担は少ない。さらに、各コン
トロールレジスタ22−1〜22〜nに対するビット操
作や論理演算が可能となってより負担が軽減する。
In this way, in the above embodiment, when each command data is written, these command data are stored in each memory area corresponding to the address of each control register 22-1 to 22-n to be written, and when read back, each memory area is stored. By specifying the area, each control register 22-1 to 22-
nk: Since each written command data is read, there is no need for a 3-state buffer at all, so space on the circuit board can be used more effectively, and pattern formation on the circuit board is simplified. . Moreover, data bus 2
The number of 1 outs can also be reduced. Also, CP (J20 is RAM
Since readback can be performed simply by specifying an address to CPLI 27, the load on the CPLI 20 is small. Further, bit operations and logical operations can be performed on each control register 22-1 to 22-n, further reducing the burden.

なお、本発明は上記一実施例に限定されるものでなくそ
の主旨を逸脱しない範囲で変形してもよい。例えば、ラ
ッチ形のコントロールレジスタ22−1〜22−1に限
らず他の形のコントロールレジスタにも適用できる。
Note that the present invention is not limited to the above-mentioned embodiment, and may be modified without departing from the spirit thereof. For example, the present invention is applicable not only to the latch type control registers 22-1 to 22-1 but also to other types of control registers.

[発明の効果コ 以上詳記したように本発明によれば、簡単な構成でかつ
CPUに負担の掛からないデータリードバック方法を提
供できる。
[Effects of the Invention] As described in detail above, according to the present invention, it is possible to provide a data readback method that has a simple configuration and does not place a burden on the CPU.

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

第1図は本発明に係わるデータリードバック方法を適用
したデータリードバック装茸の一実施例を示す構成図、
第2図は同装置におけるRAM内の模式図、第3図は従
来技術を説明するための図である。 20・・・CPU、21・・・データバス、22−1〜
22−n・・・コントロールレジスタ、23・・・アド
レスバス、24・・・コントロールバス、25・・・タ
イミングロジック回路、26・・・ライト線、27・・
・RAM、28・・・リード線。 出願人代理人 弁理士 鈴 江 武 産業 1 図 第2図
FIG. 1 is a configuration diagram showing an embodiment of a data readback device to which a data readback method according to the present invention is applied;
FIG. 2 is a schematic diagram of the inside of the RAM in the same device, and FIG. 3 is a diagram for explaining the prior art. 20...CPU, 21...Data bus, 22-1~
22-n...Control register, 23...Address bus, 24...Control bus, 25...Timing logic circuit, 26...Write line, 27...
・RAM, 28...Lead wire. Applicant's agent Patent attorney Takeshi Suzue Sangyo 1 Figure 2

Claims (1)

【特許請求の範囲】[Claims] 中央処理装置により書込まれた各指令データをそれぞれ
各デバイスに対して与える書込み専用の各コントロール
レジスタの前記書込まれた各指定データをリードバック
するデータリードバック方法において、前記各指令デー
タの書込み時にこれら指令データを書込むべき前記各コ
ントロールレジスタのアドレスと対応する各メモリエリ
アに記憶させ、前記リードバック時に前記各メモリエリ
アを指定して前記各コントロールレジスタに書込まれた
各指令データを読み取ることを特徴とするデータリード
バック方法。
In a data readback method for reading back each specified data written in each write-only control register that provides each command data written by a central processing unit to each device, writing each command data. At times, these command data are stored in each memory area corresponding to the address of each of the control registers to be written, and at the time of readback, each of the memory areas is specified and each command data written in each of the control registers is read. A data readback method characterized by:
JP63068398A 1988-03-23 1988-03-23 Data read back method Pending JPH01240938A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63068398A JPH01240938A (en) 1988-03-23 1988-03-23 Data read back method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63068398A JPH01240938A (en) 1988-03-23 1988-03-23 Data read back method

Publications (1)

Publication Number Publication Date
JPH01240938A true JPH01240938A (en) 1989-09-26

Family

ID=13372549

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63068398A Pending JPH01240938A (en) 1988-03-23 1988-03-23 Data read back method

Country Status (1)

Country Link
JP (1) JPH01240938A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008522260A (en) * 2004-11-19 2008-06-26 カーヴェー−ソフトウエア ゲーエムベーハー Method and apparatus for secure parameterization according to IEC 61508 SIL1 to 3 or EN954-1 categories 1 to 4
CN102685003A (en) * 2012-04-26 2012-09-19 华为技术有限公司 Data switching device and read-back method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008522260A (en) * 2004-11-19 2008-06-26 カーヴェー−ソフトウエア ゲーエムベーハー Method and apparatus for secure parameterization according to IEC 61508 SIL1 to 3 or EN954-1 categories 1 to 4
CN102685003A (en) * 2012-04-26 2012-09-19 华为技术有限公司 Data switching device and read-back method
CN102685003B (en) * 2012-04-26 2015-01-21 华为技术有限公司 Data switching device and read-back method

Similar Documents

Publication Publication Date Title
US4764896A (en) Microprocessor assisted memory to memory move apparatus
JPH01240938A (en) Data read back method
JPH11259195A (en) Bus noise prevention circuit
JPS59231625A (en) Address setting system
JPH064398A (en) Information processor
JPH09311812A (en) Microcomputer
JP2671629B2 (en) Memory check system
JPH0322073A (en) Data transfer controller
JPH064469A (en) Input/output device control system
JPS63142446A (en) Address generating system
JPH04111149A (en) Circuit system for dma device
JPS63259746A (en) Inter-bank-memory data transmission system
JPH05120211A (en) Data bus width controller
JPH02307149A (en) Direct memory access control system
JPH07168783A (en) Memory structure
JPS6140658A (en) Data processor
JPH11282590A (en) Plural system bus control microcomputer
JPH0390946A (en) Storage device
JPS61237158A (en) Shared memory device
JPH05189963A (en) Memory access control circuit for dynamic memory
JPH11224485A (en) Memory access method, memory device, memory module, digital device
JPH05257698A (en) Electronic computer
JPS6348688A (en) Memory device
JPS61133465A (en) Switching method of cpu
JPS63144496A (en) Write control system for storage device