JPH0736692A - Each bit settable register - Google Patents

Each bit settable register

Info

Publication number
JPH0736692A
JPH0736692A JP5181762A JP18176293A JPH0736692A JP H0736692 A JPH0736692 A JP H0736692A JP 5181762 A JP5181762 A JP 5181762A JP 18176293 A JP18176293 A JP 18176293A JP H0736692 A JPH0736692 A JP H0736692A
Authority
JP
Japan
Prior art keywords
setting
bit
register
signal line
signal lines
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.)
Withdrawn
Application number
JP5181762A
Other languages
Japanese (ja)
Inventor
Takaharu Nakamura
隆治 中村
Kazuo Kawabata
和生 川端
Kazuchika Obuchi
一央 大渕
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP5181762A priority Critical patent/JPH0736692A/en
Publication of JPH0736692A publication Critical patent/JPH0736692A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)
  • Microcomputers (AREA)

Abstract

PURPOSE:To provide a register which is capable of setting the value of '1' or '0' for each bit without increasing the size of a program when the control program of an MPU is described and without lowering execution speed. CONSTITUTION:This register is provided with one or plural designated bits C7 preliminarily designating either one operation of the setting or release of each signal line of plural signal lines d0 to d6, a means 1 detecting that the preliminarily fixed setting code '1' is written in the designated bit C7, a means 2 detecting that the preliminarily fixed release code '0' is written in the designated bit C7, a discrimination means 4 discriminating which signal line of the plural signal lines d0 to d6 the operation of the setting or the release is performed for is instructed or not and an output means 5 outputting the designated value to the designated signal line of to plural signal lines d0 to d6 by performing the setting or the release of the signal line in accordance with the results of the detections 1 and 2 of the setting or the release and the result of the discrimination 4 of the presence or absence of the instruction of the setting or the release each signal line d0 to d6.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、マイクロプロセッサM
PUによる一度の書込み動作で書き込めるという意味で
同一のアドレスの複数のデータビットに,有意な"1"又
は"0" の値を書き込むことで,同じ複数の信号線(デー
タビット)の各信号線(ビット)のONの設定又はOF
Fの解除を互に独立に制御する機器のビット毎に設定可
能なレジスタに関するものであり、該レジスタとして
は、MPUによる書込み動作のみが可能であって,制御
プログラムの効率的な記述と高速実行とが可能となるこ
とが望まれている。
BACKGROUND OF THE INVENTION The present invention relates to a microprocessor M.
By writing significant "1" or "0" values to multiple data bits at the same address in the sense that PU can write in one write operation, each signal line of the same multiple signal lines (data bits) (Bit) ON setting or OF
The present invention relates to a register that can be set for each bit of a device that controls the release of F independently of each other. As the register, only write operation by MPU is possible, efficient description of control program and high-speed execution It is hoped that this will be possible.

【0002】[0002]

【従来の技術】MPUを使用しレジスタを介して複数の
信号線を制御する場合の従来の構成例を図5に示す。図
中、ROMは、制御の手順をMPUの制御言語(機械
語)で記述したプログラムを格納して置く読出し専用の
メモリ素子である。RAMは、上記プログラムの記述に
従ってMPUがデータ処理をして行く過程で発生するデ
ータ等を一時的に記憶して置く為の読出し書込み可能な
メモリ素子である。MPUは、ROM内のプログラムの
記述を順次読み出し,其処に記述されている手順に従っ
て,データの加工,生成処理や其の結果に従って,外部
の被制御回路への出力信号線のON/OFF等を行うデ
ータ処理部である。ICとあるのは、外部回路と接続さ
れる複数の信号線d0〜d6を有し、MPUがIC内に設け
た特定番地b0〜b6のレジスタにデータバスを介して,有
意な"1"又は"0" の値を書き込むことで,MPUが任意
の信号線のON/OFFを行うことが出来る様にしたも
のである。従来、このIC内のレジスタは、例えば,図
4の構成例に示す様に、予め定めた特定のアドレスb0
b6に対してMPUが書き込み動作を行った時に、その時
のデータバスの値( b0〜b6の其の瞬間の値)を、の D
型フリップフロップFFのラッチに保持して、信号線d0
d6として出力する様に構成していた。一旦, このアドレ
スb0〜b6のレジスタに対してデータの書き込みが行われ
ると、次に同じアドレスb0〜b6に対して書込み動作が行
われるまで、前の信号線d0〜d6の"1"又は"0" の状態は
保持される。また、図3の従来例に示す様に、MPUの
特定アドレスb0〜b6に対する信号線d0〜d6の各出力(
の D型FFの出力Q)を読み出し検出して、スイッチSWを
制御することにより、一旦、信号線d0〜d6に設定した値
の"1"又は"0" を、後刻、MPUが、アドレスb0〜b6
レジスタに読み出せる様に構成する場合もあった。
2. Description of the Related Art FIG. 5 shows a conventional configuration example in the case of controlling a plurality of signal lines via a register using an MPU. In the figure, a ROM is a read-only memory device that stores a program in which a control procedure is described in the control language (machine language) of the MPU. The RAM is a readable / writable memory element for temporarily storing data and the like generated during the process of data processing by the MPU according to the description of the program. The MPU sequentially reads the description of the program in the ROM, and according to the procedure described therein, processes the data, generates the data, and turns on / off the output signal line to the external controlled circuit according to the result. This is a data processing unit. The IC means that it has a plurality of signal lines d 0 to d 6 connected to an external circuit, and the MPU provides significant registers to registers at specific addresses b 0 to b 6 provided in the IC via a data bus. By writing a value of "1" or "0", the MPU can turn on / off any signal line. Conventionally, the register in the IC, for example, as shown in the configuration example of FIG. 4, the predetermined specific address b 0 ~
When the MPU performs a write operation on b 6 , the value of the data bus at that time (the value at that moment of b 0 to b 6 ) is
Held in the latch of the flip-flop FF, and the signal line d 0 ~
It was configured to output as d 6 . Once the writing of data to registers in the address b 0 ~b 6 is performed until the write operation then the same address b 0 ~b 6 is performed, prior to the signal line d 0 to d 6 The "1" or "0" state of is retained. Further, as shown in the conventional example of FIG. 3, the output of the signal line d 0 to d 6 for a specific address b 0 ~b 6 of MPU (
The output Q) of the D-type FF is read and detected, and the switch SW is controlled to temporarily set the value "1" or "0" set in the signal lines d 0 to d 6 to the MPU later. In some cases, the registers at addresses b 0 to b 6 can be read.

【0003】[0003]

【発明が解決しようとする課題】上記の図3,図4の従
来例の如く、レジスタが7 bit(7本)の出力信号線d0
〜d6を制御する場合を考える。これ等の7本の信号線d0
〜d6を互いに独立した制御信号として使用する場合は、
他の信号線(ビット)の設定状態とは独立に、各信号線
(ビット)のON/OFFを行う必要がある。(即ち、
或るビットへの "1/0"の書き込みに伴って、他ビットの
"1/O"が変化してはいけない。)そこで、其の様な動作
をMPUが行なえる様に、従来は、先ず図4の構成例で
は、MPUが一旦7本の信号線d0〜d6を或る状態に設定
して了った後に、或る特定の信号線の例えば信号線d0
みをOFF("0") からON("1") へ切り換え様とした場
合は、残る他の信号線d1〜d6が其の時,何の様な状態に
なっていたかを知った上で、アドレスb0〜b6のレジスタ
に対する設定を行わないと、他の信号線d1〜d6の状態
が、信号線d0を変更した事によって変化して了う。そこ
で、7本の信号線d0〜d6に"1"又は"0" の値を設定する
時には、該設定値を、予め定めたRAM上のアドレスに
も記憶して置き、次に再び信号線d0〜d6の中の何れか1
つ又は複数の信号線に対し、ON("1") 又はOFF
("0") の制御を行う必要が生じた場合には、先ず、先に
記憶して置いたRAM上の既設定値を読み出し、ON又
はOFFする特定の信号線に対応するビットに対して、
図示しないが、論理和又は論理積の演算を施して、変化
してはならない他の信号線に対応するビットは、以前の
設定値と同じとしてから、アドレスb0〜b6のレジスタに
対する書込み動作(設定)を行う必要がある。そして此
のレジスタに対する設定と同時に、先のRAM上のアド
レスに記憶されていた既設定値に対しても、その更新動
作を行って置く必要がある。従って、図4の構成で設定
動作を行う為には、(1) 信号線の設定に先立って,既設
定値をメモリRAMから読み出す動作を行うこと。(2)
読み出した既設定値と新規の設定状態を求める為の論理
演算を行うこと。(3) 信号線の設定に際し、設定した値
をメモリRAMに書き込んで置く動作を行うこと。(4)
必要なレジスタのサイズと同一サイズのRAM領域を確
保して置くことが必要である。上記(1),(2),(3) はプロ
グラムサイズの増大と実行時の実行速度の低下を招き,
上記(4) は所要メモリ量の増大を招くという欠点があ
る。次に、図3の構成例では、レジスタを書込みのみな
らず読出しも可能な構成としている為に、MPUは、図
4の例の様にRAMを用いて設定値の写しを記憶して置
く必要が無くなるが、然し、(1)信号線の設定に先立っ
て,既設定値をレジスタの出力(D型FFの出力Q)の読出し
動作を行うこと。(2) 読み出した既設定値と新規の設定
状態を求める為の論理演算を行うこと。(3)読み出しの
為に, レジスタ構成の際の読出しパルスの検出回路とス
イッチSWとを設けることが必要である。上記(1),(2)
はプログラムサイズの増大と実行時の実行速度の低下を
招き, 上記(3)はレジスタを構成するICの回路規模の
増大を招くという欠点がある。
As in the conventional example shown in FIGS. 3 and 4, the output signal line d 0 of which the register is 7 bits (7 lines) is used.
Consider the case of controlling ~ d 6 . These seven signal lines d 0
When using ~ d 6 as independent control signals,
It is necessary to turn on / off each signal line (bit) independently of the setting states of other signal lines (bits). (That is,
Along with writing "1/0" to a certain bit,
"1 / O" must not change. Therefore, in the prior art, in the configuration example of FIG. 4, the MPU once sets the seven signal lines d 0 to d 6 to a certain state so that the MPU can perform such an operation. After that, if only a certain specific signal line, for example, the signal line d 0 is switched from OFF (“0”) to ON (“1”), the remaining other signal lines d 1 to d 6 are changed. At that time, if the state of the other signal lines d 1 to d 6 is changed to the signal line d 0 unless the register for the addresses b 0 to b 6 is set after knowing what the state is like. It changes and ends by changing. Therefore, when setting the value of "1" or "0" to d 0 to d 6 7 signal lines is a set value, every stored in the address on the predetermined RAM, then again signal Any one of the lines d 0 to d 6
ON ("1") or OFF for one or more signal lines
When it becomes necessary to control ("0"), first read the preset value on the RAM that was stored and stored previously, and for the bit corresponding to the specific signal line to turn ON or OFF. ,
Although not shown, by performing the calculation of the logical sum or logical product, bits corresponding to the other signal line that should not be changed, since the same as the previous setting value, a write operation to the register address b 0 ~b 6 (Setting) is required. At the same time as setting this register, it is necessary to update and set the already set value stored in the previous address on the RAM. Therefore, in order to perform the setting operation with the configuration of FIG. 4, (1) perform the operation of reading the preset value from the memory RAM before setting the signal line. (2)
Perform a logical operation to obtain the read preset value and the new setting state. (3) When setting the signal line, write the set value into the memory RAM and place it. (Four)
It is necessary to secure a RAM area of the same size as the necessary register size. The above (1), (2), and (3) increase the program size and decrease the execution speed at the time of execution.
The above (4) has a drawback that it increases the required memory amount. Next, in the configuration example of FIG. 3, since the register is configured to be readable and writable, the MPU needs to store a copy of the set value using the RAM as in the example of FIG. However, (1) Prior to setting the signal line, read the preset value from the register output (D type FF output Q). (2) Perform a logical operation to obtain the read preset value and the new setting state. (3) It is necessary to provide a read pulse detection circuit and a switch SW in the register configuration for reading. Above (1), (2)
Has the drawback of increasing the program size and lowering the execution speed at the time of execution, and (3) above has the drawback of increasing the circuit scale of the IC that constitutes the register.

【0004】上記の図4の従来の方法の場合のプログラ
ムの記述は、MOV A,DATA REG BK(メモ
リ上の設定された現在値を読み)、AND A,#1
(必要な論理演算を施し)、MOV DATA RE
G,A(データレジスタに設定し)、MOV DATA
REG BK,A(メモリ上に設定値を保持する)と
なる。また、図3の従来の方法の場合のプログラムの記
述は、MOV A,DATA REG(データレジスタ
の現在値を読み)、AND A,#1(必要な論理演算
を施し)、MOV DATA REG,A(データレジ
スタに設定する)となる。
A program in the case of the conventional method shown in FIG.
The description of the system is MOV A, DATA REG BK (memo
Read the current value set above), AND A, # 1
(Perform necessary logical operations), MOV DATA RE
G, A (set in the data register), MOV DATA
REG BK, A (hold the setting value in the memory)
Become. In addition, the program description for the conventional method of FIG.
The description is MOV A, DATA REG (data register
Read the current value of), AND A, # 1 (required logical operation
), MOV DATA REG, A (data register
Set to a star).

【0005】本発明の目的は、多数の信号線の制御のた
め多数のレジスタを実装する場合でも収容するICの規
模が増大せず、MPUの制御プログラムの記述の際にプ
ログラムサイズが増大せず,実行速度も低下しない様な,
ビット毎に"1" 又は"0" の値の設定が可能なレジスタを
実現することにある。
An object of the present invention is to prevent an increase in the scale of an IC to be accommodated even when a large number of registers are mounted for controlling a large number of signal lines, and an increase in the program size when writing a control program for an MPU. The execution speed does not decrease,
It is to realize a register that can set a value of "1" or "0" for each bit.

【0006】[0006]

【課題を解決するための手段】この目的達成のための本
発明のレジスタの基本構成は、図1の原理図を参照し、
MPUによる一度の書き込み動作で書き込める同一のア
ドレス上に複数のデータビット(b0〜b6)が配置された
レジスタを介して同じ複数の信号線( d0〜d6)の各信号
線のONの設定又はOFFの解除を互に独立して制御す
る機器のビット毎に設定可能なレジスタにおいて、該複
数の信号線(d0〜d6)の各信号線の設定又は解除の何れ
か一方の動作を予め指定する1個又は複数個の指定ビッ
ト(C7)と、該指定ビット(C7)に予め定めた設定コード
("1")が書き込まれた事を検出する手段(1)と、該指定ビ
ット(C7)に予め定めた解除コード("0")が書き込まれた
事を検出する手段(2)と、該複数の信号線(d0〜d6)の
中の何れの信号線に対して前記設定又は解除の操作を行
うかが指示されているか否かを識別する識別手段(4)
と、該設定又は解除の検出(1,2)の結果と各信号線(d0
d6) 毎の設定又は解除の指示の有無の識別(4)の結果と
に従って, 該複数の信号線(d0〜d6) の中の指定された
信号線に指定された値を設定又は解除をして出力する出
力手段(5)とを備えるように構成する。
The basic configuration of the register of the present invention for achieving this object will be described with reference to the principle diagram of FIG.
ON of the signal lines of the plurality of data bits on the same address can be written at once in the write operation by MPU (b 0 ~b 6) is the same plurality of signal lines through the placed register (d 0 ~d 6) In a register that can be set for each bit of a device that independently controls the setting or cancellation of OFF, setting or canceling one of the setting or cancellation of each signal line of the plurality of signal lines (d 0 to d 6 ). One or a plurality of designated bits (C 7 ) for designating the operation in advance and a preset code for the designated bits (C 7 ).
And ( "1") means for detecting that has been written (1), means for detecting that the predetermined release code to the specified bit (C 7) ( "0") is written as (2) Identification means (4) for identifying whether or not it is instructed to which of the plurality of signal lines (d 0 to d 6 ) the setting or cancellation operation is to be performed
And the result of detection (1, 2) of the setting or cancellation and each signal line (d 0 ~
d 6 ) According to the result of identification (4) of the presence or absence of the setting or cancellation instruction for each, set the specified value to the specified signal line among the plurality of signal lines (d 0 to d 6 ). And an output means (5) for releasing and outputting.

【0007】[0007]

【作用】本発明のレジスタでは、新たに設けた1つ又は
複数の指定ビットC7が、レジスタ出力の所定の複数の信
号線(d0〜d6) の各信号線の設定の"1" か解除の"0" か
を予め定める。そして其の設定の検出手段(1)が該設定
/解除を定める指定ビットC7に設定コード"1" が書き込
まれた事を検出し、其の解除の検出手段(2)が該指定ビ
ットC7に解除コード"0"が書き込まれた事を検出する。
そして識別手段( 4)が、各信号線(d0〜d6) 毎の設定/
解除の指示の有無を識別する。そして出力手段(5)が、
該設定又は解除の検出(1,2)の結果と各信号線(d0〜d6)
毎の設定又は解除の指示の有無の識別(4)の結果とに従
って、複数の信号線(d0〜d6) の中の指定された信号線
に指定された値を設定又は解除をして出力する。従っ
て、本発明のレジスタは、従来例の様な, MPUの制御
プログラムによる論理演算を介在させた "1/0"の書込み
処理のON/OFF処理を行わなくても、複数の信号線
(d0〜d6) の各信号線を、他の信号線から独立して "1/
0"の書込み処理のON/OFF処理をすることが可能と
なる。
[Action] In the register of the present invention, one newly provided or specified bit C 7 is predetermined plurality of signal lines of the register output settings for each signal line (d 0 ~d 6) "1 " Whether to release or "0" is determined in advance. Then, the setting detection means (1) detects that the setting code "1" is written in the designated bit C 7 that determines the setting / release, and the release detection means (2) detects the setting bit C. It is detected that the release code "0" is written in 7 .
Then, the identifying means (4) sets / sets each signal line (d 0 to d 6 ).
Identify whether or not there is a cancellation instruction. And the output means (5)
The result of detection (1, 2) of the setting or cancellation and each signal line (d 0 to d 6 )
Set or cancel the value specified for the specified signal line among the multiple signal lines (d 0 to d 6 ) according to the result of identification (4) of the presence or absence of the setting or cancellation instruction for each. Output. Therefore, the register of the present invention does not require the ON / OFF processing of the "1/0" write processing that involves the logical operation by the control program of the MPU as in the conventional example, and does not require a plurality of signal lines.
Each signal line (d 0 to d 6 ) is independent of other signal lines by "1 /
It is possible to perform ON / OFF processing of the write processing of 0 ".

【0008】[0008]

【実施例】図1の原理図はそのまま本発明のレジスタの
基本構成を示し、図2は其の実施例の回路構成例を示
す。図1において、本発明のレジスタのC7ビットは、出
力の7本の信号線(7 bitの出力データ)d0〜d6の各信号
線(ビット)の「設定の"1"/解除の"0"」を制御する指定
ビットであり、この指定ビットC7が"1" の時に、各信号
線d0〜d6の「設定」の動作を行い、指定ビットC7が"0"
の時に、「解除」の動作を行う。また、b0〜b6は、7 bi
t の「汎用データ」のビットであり、その中の或るビッ
トの例えばb1に"0" が書き込まれた時は、該当する出力
ビットd1に変更を与えず、b1に"1" が書き込まれた時
は、「設定/ 解除」の指定ビットC7の"1" の設定によ
り、出力の該当ビットd1を「 1(設定)」又は「 0(解
除)」に変更する。既に「 1(設定)」になっているビ
ットb1に対し,重ねて「設定」が指示された場合は、結
果として其のビットb1に変化は起こらない。「 0(解
除)」の重複についても同様である。図2において、本
発明のレジスタが値("1"又は"0")を出力する出力回路
は、典型的な「R-S(リセット・セット) フリップフロッ
プFF」である。本発明のレジスタb0〜b6,C7の「設定/
解除」の指定ビットC7の出力が、検出回路により,
「設定の"1"」であった場合には、その指定ビットC7
出力そのままの検出出力が、"1" となる。また、指
定ビットC7の出力が、検出回路の反転回路INVによ
り,「解除の"0"」であった場合には、その指定ビットC7
の出力の反転出力が、"1" となる。そして各「汎用
データ」ビットb0〜b6毎に設けられた「有意な書き込み
指示の有無を検出する識別手段は、前記出力又は反
転出力の信号が "1"であり且つ「汎用データビットd0
〜d6」の中の例えばデータビットd1に対応するビットb1
が"1" であった時のみ、該データビットd1の出力回路
の RS-FFのセット端子S 又はリセット端子R に"1"を与
え、其の RS-FFの出力Q を所定の「 1(設定)」又は
「 0(解除)」の状態とする。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The principle diagram of FIG. 1 shows the basic structure of the register of the present invention as it is, and FIG. 2 shows an example of the circuit structure of the embodiment. In FIG. 1, the C 7 bit of the register of the present invention is “setting“ 1 ”/ release of 7 signal lines (7 bit output data) of output, d 0 to d 6 of each signal line (bit). "0""a designated bit that controls, when the designated bit C 7 is" 1 ", performs an operation of" setting "of the signal line d 0 to d 6, designated bits C 7 is" 0 "
At the time of, the operation of "release" is performed. Also, b 0 to b 6 is 7 bi
a bit "generic data" t, when the "0" is written, for example, b 1 of a certain bit therein do not give a change to output bits d 1 applicable, to b 1 "1" When is written, the corresponding bit d 1 of the output is changed to “1 (set)” or “0 (release)” by setting “1” of the designated bit C 7 of “set / release”. When “set” is instructed repeatedly for the bit b 1 which is already “1 (set)”, the bit b 1 is not changed as a result. The same applies to the duplication of "0 (release)". In FIG. 2, the output circuit from which the register of the present invention outputs a value ("1" or "0") is a typical "RS (reset set) flip-flop FF". The registers b 0 to b 6 and C 7 of the present invention have "setting / setting".
The output of the designated bit C 7 of `` release '' is detected by the detection circuit.
When was the "setting" 1 "" is output as the detection output of the specified bit C 7 becomes "1". If the output of the designated bit C 7 is “released“ 0 ”” by the inverting circuit INV of the detection circuit, the designated bit C 7
The inverted output of the output of is "1". The "identifying means for detecting the presence / absence of a significant write instruction" provided for each "general-purpose data" bits b 0 to b 6 has a "1" as the output or inverted output signal and a "general-purpose data bit d 0
Bits b 1 corresponding to the example data bit d 1 in the to d 6 "
Is "1", "1" is given to the set terminal S or reset terminal R of RS-FF of the output circuit of the data bit d 1 , and the output Q of the RS-FF is set to "1". (Set) or 0 (cancel).

【0009】[0009]

【発明の効果】以上説明した如く、本発明のレジスタに
よれば、互に独立な値("1"又は"0")の設定を必要とする
汎用I/Oの各ビットの出力端子を、一度の書込み動作
で書き込めるという意味で同一のアドレスに配置したレ
ジスタにより制御する場合に、収容するICの回路規模
の増大を必要とせず,各ビットの設定/解除を、MPU
等による論理演算処理をすること無く、他のビットと独
立に行うことが可能となり、制御プログラムの高速の実
行,プログラムサイズの縮小,ひいてはプログラムの作
成がし易いハードウェアの提供を可能とする効果が得ら
れる。
As described above, according to the register of the present invention, the output terminal of each bit of the general-purpose I / O which requires setting of mutually independent values ("1" or "0"), When controlling with registers arranged at the same address in the sense that data can be written in a single write operation, the MPU can set / cancel each bit without increasing the circuit scale of the accommodated IC.
It becomes possible to perform the control program at high speed, reduce the program size, and eventually provide hardware that makes it easy to create a program, without performing logical operation processing such as Is obtained.

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

【図1】 本発明のビット毎に設定可能なレジスタの基
本構成を示す原理図
FIG. 1 is a principle diagram showing a basic configuration of a register that can be set for each bit of the present invention.

【図2】 本発明の実施例のレジスタの回路構成図FIG. 2 is a circuit configuration diagram of a register according to an embodiment of the present invention.

【図3】 従来技術によるレジスタの回路構成例図FIG. 3 is a diagram illustrating a circuit configuration example of a register according to a conventional technique.

【図4】 従来技術によるレジスタの別の回路構成例図FIG. 4 is a diagram of another circuit configuration example of a register according to the related art.

【図5】 従来のレジスタを介して複数の信号線を制御
する場合の制御回路の構成例図
FIG. 5 is a diagram illustrating a configuration example of a control circuit when controlling a plurality of signal lines via a conventional register.

【符号の説明】[Explanation of symbols]

b0〜b6はMPUにより書き込まれる汎用データビット
(7bit)、C7は「設定/解除」の指定ビット、d0〜d6
出力の信号線(7本)であり,出力のデータビット(7 b
it)、は指定ビットC7が設定コード"1" である事を検
出する検出回路、は指定ビットC7が解除コード"0" で
ある事を検出する検出回路、は指定ビットC7の出力、
は書き込まれた各データビットb0〜b6毎の「設定/ 解
除」の指定の有無を検出する識別回路、はレジスタの
出力回路である。
b 0 to b 6 are general-purpose data bits (7 bits) written by the MPU, C 7 is a “setting / releasing” designation bit, d 0 to d 6 are output signal lines (7 lines), and output data bits (7 b
it), is a detection circuit that detects that the designated bit C 7 is the setting code "1", is a detection circuit that detects that the designated bit C 7 is a release code "0", is the output of the designated bit C 7 ,
Is an identification circuit for detecting the presence / absence of designation of “setting / cancellation” for each written data bit b 0 to b 6 , and is an output circuit of the register.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 MPUによる一度の書き込み動作で書き
込める同一アドレス上に複数のビット(b0〜b6)が配置
されたレジスタを介して同じ複数の信号線(d0〜d6)の
各信号線のONの設定又はOFFの解除を互に独立して
制御する機器のビット毎に設定可能なレジスタにおい
て、該複数の信号線(d0〜d6)の各信号線の設定又は解
除の何れか一方の動作を予め指定する1個又は複数個の
指定ビット(C7)と、該指定ビット(C7)に予め定めた設定
コード("1")が書き込まれた事を検出する手段(1)と、該
指定ビット(C7)に予め定めた解除コード("0")が書き込
まれた事を検出する手段(2)と、該複数の信号線(d0〜d
6)の中の何れの信号線に対して前記設定又は解除の操
作を行うかが指示されているか否かを識別する識別手段
(4) と、該設定又は解除の検出(1,2)の結果と各信号線
(d0〜d6) 毎の設定又は解除の指示の有無の識別(4)の結
果とに従って, 該複数の信号線(d0〜d6) の中の指定さ
れた信号線に指定された値を設定又は解除をして出力す
る出力手段(5) とを備えたことを特徴とするビット毎に
設定可能なレジスタ。
1. Each signal of the same plurality of signal lines (d 0 to d 6 ) through a register in which a plurality of bits (b 0 to b 6 ) are arranged at the same address and which can be written by a single write operation by the MPU. In a register that can be set for each bit of a device that independently controls ON / OFF of lines, setting or canceling each signal line of the plurality of signal lines (d 0 to d 6 ). One or a plurality of designated bits (C 7 ) for designating one of the operations in advance, and a means for detecting that a predetermined setting code ("1") is written in the designated bit (C 7 ) ( 1), the designated bits and (means for detecting that the predetermined release code to C 7) ( "0") is written (2), the plurality of signal lines (d 0 to d
Identification means for identifying which signal line in 6 ) is instructed to perform the setting or cancellation operation
(4), the result of detection (1, 2) of the setting or cancellation and each signal line
accordance with the result of (d 0 to d 6) for each of the setting or the presence of release of the order identification (4), specified in the designated signal lines in the plurality of signal lines (d 0 to d 6) A register which can be set for each bit, comprising an output means (5) for setting or releasing a value and outputting the value.
JP5181762A 1993-07-23 1993-07-23 Each bit settable register Withdrawn JPH0736692A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5181762A JPH0736692A (en) 1993-07-23 1993-07-23 Each bit settable register

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5181762A JPH0736692A (en) 1993-07-23 1993-07-23 Each bit settable register

Publications (1)

Publication Number Publication Date
JPH0736692A true JPH0736692A (en) 1995-02-07

Family

ID=16106448

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5181762A Withdrawn JPH0736692A (en) 1993-07-23 1993-07-23 Each bit settable register

Country Status (1)

Country Link
JP (1) JPH0736692A (en)

Similar Documents

Publication Publication Date Title
EP0660229A1 (en) Method and apparatus for modifying the contents of a register
JPH0736692A (en) Each bit settable register
EP0461631A2 (en) Data storing device having a plurality of registers allotted for one address
US4675843A (en) Programmable logic controller
JPH0887441A (en) Flash memory access system
JP2731047B2 (en) Program operand check method
JPS5953586B2 (en) Logout control device
JP2600376B2 (en) Memory controller
JP2687476B2 (en) Vector data processing device
US4658376A (en) Magnetic bubble file system
JPS629442A (en) Error detecting circuit
JPS61131047A (en) Pipeline controlling system
JPH0226252B2 (en)
JPS62256138A (en) Data processor
JPH0528056A (en) Memory device
JPH04128961A (en) Multi-processor control system
JPH01263819A (en) Integrated circuit
JPS62256139A (en) Data processor
JPH05334099A (en) Write circuit for state setting register
JPH05265942A (en) Data inputting and outputting method for dma control part
JPS6336406A (en) Programmable controller
JPH03139724A (en) Data processor
JPH03113649A (en) Write data transfer device
JPH03164849A (en) Microprocessor and microprocessor system
JPS6292038A (en) Control system for record of history memory

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20001003