JPH073666B2 - Microcomputer - Google Patents
MicrocomputerInfo
- Publication number
- JPH073666B2 JPH073666B2 JP1006564A JP656489A JPH073666B2 JP H073666 B2 JPH073666 B2 JP H073666B2 JP 1006564 A JP1006564 A JP 1006564A JP 656489 A JP656489 A JP 656489A JP H073666 B2 JPH073666 B2 JP H073666B2
- Authority
- JP
- Japan
- Prior art keywords
- bit
- register
- data
- contents
- status control
- 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 - Lifetime
Links
Landscapes
- Executing Machine-Instructions (AREA)
- Microcomputers (AREA)
Description
【発明の詳細な説明】 [概要] ビット操作命令を実行する機能を備えたマイクロコンピ
ュータに関し、 読出データがステータスデータであり書込データがコン
トロールデータとなるビットを含むレジスタに対しても
ビット操作命令を使用することができるようにすること
を目的とし、 読出データはステータスデータであり書込データはコン
トロールデータとなるステータス・コントロールビット
を備えたレジスタと、ビット操作命令に応答して該レジ
スタの内容を読み込みその所定のビットを操作した後該
レジスタに書き込むMPUと、を有するマイクロコンピュ
ータにおいて、該ビット操作命令を他の命令と区別する
ための信号を該ビット操作の命令コードから生成し、該
信号を用いて、該ステータス・コントロールビットのみ
に関しては該ビット操作後の該レジスタへの書き込みの
際にその時点での該ステータス・コントロールビットの
内容を保持する手段を付設して構成する。DETAILED DESCRIPTION OF THE INVENTION [Outline] A microcomputer having a function of executing a bit operation instruction, and a bit operation instruction for a register including a bit in which read data is status data and write data is control data Read data is status data and write data is control data, and the contents of the register in response to a bit operation instruction. And an MPU which reads the specified bit and then writes it to the register, and generates a signal for distinguishing the bit operation instruction from other instructions from the instruction code of the bit operation. Using only the status control bit A means for holding the contents of the status control bit at that time when writing to the register after the bit operation is additionally provided.
[産業上の利用分野] 本発明は、読出データはステータスデータであり書込デ
ータはコントロールデータとなるビットを含むレジスタ
に対し、ビット操作命令を実行する機能を備えたマイク
ロコンピュータに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microcomputer having a function of executing a bit operation instruction with respect to a register including a bit in which read data is status data and write data is control data.
[従来の技術] この種のマイクロコンピュータでは、MPUはビット操作
命令に応答して、第1ステップで該レジスタの全ビット
の内容を読み込み、第2ステップでその所定のビットを
操作し、第3ステップでその全ビットの内容を該レジス
タに書き込む。[Prior Art] In this type of microcomputer, in response to a bit manipulation instruction, the MPU reads the contents of all bits of the register in the first step, manipulates the predetermined bit in the second step, and In step, the contents of all the bits are written in the register.
[発明が解決しようとする課題] しかし、読み込み後書き込みまでの間に、ステータスビ
ットの内容がMPUと無関係に周辺I/Oにより書き換えられ
た場合には、このステータスビットは第3ステップの書
込動作により元のデータに再度書き換えられることにな
る。[Problems to be solved by the invention] However, if the contents of the status bit are rewritten by the peripheral I / O irrespective of the MPU between reading and writing, this status bit is written in the third step. The original data is rewritten by the operation.
したがって、このようなレジスタに対してビット操作命
令を実行すると周辺I/Oに対するその後の制御が適正に
行われない場合があり、該レジスタに対しビット操作命
令を使用することが実質的にできない。Therefore, if a bit operation instruction is executed for such a register, the subsequent control for the peripheral I / O may not be performed properly, and it is substantially impossible to use the bit operation instruction for the register.
本発明の目的は、上記問題点に鑑み、読出データがステ
ータスデータであり書込データがコントロールデータと
なるビットを含むレジスタに対しても、ビット操作命令
を使用することができるマイクロコンピュータを提供す
ることにある。In view of the above problems, an object of the present invention is to provide a microcomputer capable of using a bit operation instruction even for a register including a bit in which read data is status data and write data is control data. Especially.
[課題を解決するための手段] この目的を達成するために、本発明では、読出データは
ステータスデータであり書込データはコントロールデー
タとなるステータス・コントロールビットを備えたレジ
スタと、ビット操作命令に応答して、該レジスタの内容
を読み込みその所定のビットを操作した後該レジスタに
書き込むMPUと、を有するマイクロコンピュータにおい
て、該ビット操作命令を他の命令と区別するための信号
を該ビット操作の命令コードから生成し、該信号を用い
て、該ステータス・コントロールビットのみに関しては
該ビット操作後の該レジスタへの書き込みの際にその時
点での該ステータス・コントロールビットの内容を保持
する手段を付設している。[Means for Solving the Problems] In order to achieve this object, according to the present invention, read data is status data and write data is a register having a status control bit, which is control data. In response, in a microcomputer having an MPU for reading the contents of the register and operating a predetermined bit of the MPU and writing the MPU to the register, a signal for distinguishing the bit operation instruction from other instructions A means for holding the contents of the status control bit at that point in time when writing to the register after the bit operation is performed by using the signal and generating from the instruction code. is doing.
[作用] 本発明によれば、読み込み後書き込みまでの間におい
て、ステータス・コントロールビットの内容がMPUと無
関係に周辺I/O等(他のMPUを含む)により書き換えられ
ても、ステータス・コントロールビットのみに関しては
ビット操作後のレジスタへの書き込みの際にその時点で
のステータス・コントロールビットの内容を保持するの
で、このようなレジスタに対しビット操作命令によりそ
の内容を適正に変更することができ、したがって、この
ようなレジスタに対してもビット操作命令を使用するこ
とができる。[Operation] According to the present invention, even if the contents of the status control bits are rewritten by peripheral I / O (including other MPUs) regardless of the MPU between the reading and the writing, the status control bits are With regard to only, since the contents of the status control bit at that time are retained when writing to the register after bit manipulation, it is possible to appropriately change the contents by a bit manipulation instruction for such a register, Therefore, the bit manipulation instruction can be used for such a register.
[実施例] 以下、図面に基づいて本発明の一実施例を説明する。[Embodiment] An embodiment of the present invention will be described below with reference to the drawings.
第1図はマイクロコンピュータの要部構成を示す。FIG. 1 shows a main configuration of a microcomputer.
MPU10はアドレスデコーダ12に対しアドレス信号及びリ
ード/ライト信号R/Wを供給し、アドレスデコーダ12は
これらの信号からタイマ/カウンタ14の構成要素を選択
する信号及びタイマ/カウンタ14の構成要素に対する後
述のリード信号RD1、RD2及びライト信号WR1、WR2を作成
してタイマ/カウンタ14に供給する。MPU10は、リセッ
ト信号RESETをタイマ/カウンタ14へ供給してタイマ/
カウンタ14を初期化し、データバスDBを介してタイマ/
カウンタ14の動作モードを設定し、ビット操作命令を実
行していることを示すリードモディファイアライト信号
RMWをタイマ/カウンタ14へ供給してタイマ/カウンタ1
4に対するビット操作命令の実行を可能にする。The MPU 10 supplies an address signal and a read / write signal R / W to the address decoder 12, and the address decoder 12 selects the components of the timer / counter 14 from these signals and the components of the timer / counter 14 will be described later. Read signals RD 1 and RD 2 and write signals WR 1 and WR 2 are generated and supplied to the timer / counter 14. The MPU10 supplies the reset signal RESET to the timer / counter 14 to
The counter 14 is initialized, and the timer /
Read modifier write signal that indicates that the operation mode of counter 14 is set and that bit manipulation instructions are being executed
Supply RMW to timer / counter 14 to supply timer / counter 1
Enables the execution of bit manipulation instructions for 4.
タイマ/カウンタ14は、クロック発生器16から供給され
るクロックパルスφに基づいて動作し、タイマ/カウン
タ14がタイマモードでタイムアップした場合には割り込
み要求信号をMPU10へ供給する。MPU10はこの割り込み要
求に基づいて割り込み処理を行う。The timer / counter 14 operates based on the clock pulse φ supplied from the clock generator 16, and supplies an interrupt request signal to the MPU 10 when the timer / counter 14 times out in the timer mode. The MPU 10 performs interrupt processing based on this interrupt request.
第2図は第1図に示すタイマ/カウンタ14の詳細構成を
示す。クロック発生器16から出力されるクロックパルス
φは分周回路18に供給されて分周され、分周回路18の各
分周段から出力される異なる周期のクロックパルスがセ
レクタ20に供給される。セレクタ20は、ステータス・コ
ントロールレジスタ22の第4〜7ビットの内容により指
定される周期のクロックパルスを選択してアンドゲート
24の一方の入力端子に供給させる。アンドゲート24の他
方の入力端子にはステータス・コントロールレジスタ22
の第0ビットの内容が供給されており、このビットが
“1"の場合にはセレクタ20からのクロックパルスがアン
ドゲート24を通ってカウンタ26のCK端子に供給され計数
される。ここで、データレジスタ28には、MPU10からデ
ータバスDBを介して、カウンタ26の初期値が設定され
る。この際、データレジスタ28にはアドレスデコーダ12
からライト信号WR2が供給される。カウンタ26は、リロ
ード制御回路30からの制御信号によりこのデータレジス
タ28の内容がロードされて、初期設定される。カウンタ
26の計数値が大きくなり、オーバフロー(OVF)ビット
が“1"(Hレベル)になると、ステータス・コントロー
ルレジスタ22の第2ビットがセットされる。FIG. 2 shows the detailed structure of the timer / counter 14 shown in FIG. The clock pulse φ output from the clock generator 16 is supplied to the frequency dividing circuit 18 to be frequency-divided, and the clock pulse having a different cycle output from each frequency dividing stage of the frequency dividing circuit 18 is supplied to the selector 20. The selector 20 selects a clock pulse having a cycle designated by the contents of the 4th to 7th bits of the status control register 22 and performs an AND gate.
Supply to one input terminal of 24. The status control register 22 is connected to the other input terminal of the AND gate 24.
The content of the 0th bit is supplied. When this bit is "1", the clock pulse from the selector 20 is supplied to the CK terminal of the counter 26 through the AND gate 24 and counted. Here, the initial value of the counter 26 is set in the data register 28 from the MPU 10 via the data bus DB. At this time, the data register 28 has an address decoder 12
The write signal WR 2 is supplied from. The counter 26 is initialized by loading the contents of the data register 28 by a control signal from the reload control circuit 30. counter
When the count value of 26 becomes large and the overflow (OVF) bit becomes "1" (H level), the second bit of the status control register 22 is set.
ステータス・コントロールレジスタ22は、この第2ビッ
トのみがステータス・コントロールビットであり、すな
わち、読出データはステータスデータであり書込データ
はコントロールデータとなるビットであり、他の7ビッ
トはコントロールビットである。In the status control register 22, only the second bit is the status control bit, that is, the read data is the status data and the write data is the control data, and the other 7 bits are the control bits. .
ステータス・コントロールレジスタ22の第3ビットが
“1"である場合には、すなわちタイマモードの場合に
は、この第2ビットのセットにより、リロード制御回路
30はデータレジスタ28の内容をカウンタ26にロードさせ
る。この際、アドレスデコーダ12からデータレジスタ28
にリード信号RD2が供給される。また、カウンタ26から
出力されるオーバフローパルスはDフリップフロップ32
のCK端子にも供給され、オーバフローパルスがカウンタ
26から出力される毎にDフリップフロップ32の出力が反
転する。ステータス・コントロールレジスタ22の第1ビ
ット及び第2ビットの出力は、アンドゲート34に供給さ
れており、この第1ビットが“1"である場合には、カウ
ンタ26からのオーバフローパルスによりステータス・コ
ントロールレジスタ22の第2ビットが“1"になるとアン
ドゲート34から割り込み要求信号が出力されてMPU10へ
供給される。When the third bit of the status control register 22 is "1", that is, in the timer mode, the reload control circuit is set by setting the second bit.
30 loads the contents of data register 28 into counter 26. At this time, the address decoder 12 to the data register 28
Is supplied with the read signal RD 2 . The overflow pulse output from the counter 26 is the D flip-flop 32.
Is also supplied to the CK pin of the
The output of the D flip-flop 32 is inverted every time it is output from 26. The output of the first bit and the second bit of the status control register 22 is supplied to the AND gate 34. When the first bit is "1", the status control is performed by the overflow pulse from the counter 26. When the second bit of the register 22 becomes "1", an interrupt request signal is output from the AND gate 34 and supplied to the MPU 10.
ここで、例えばステータス・コントロールレジスタ22の
第1ビットが“1"である場合に、この第1ビットのみを
“0"にして割り込みをマスクするには、MPU10に備えら
れたビットリセット命令を実行する。この命令の実行は
3つのサイクルに分けられる。第1サイクル(リードサ
イクル)では、MPU10はデータバスDBを介してステータ
ス・コントロールレジスタ22の全ビットの内容を内部レ
ジスタにロードし、第2サイクル(ビット操作サイク
ル)ではこの内部レジスタの第1ビットを“0"にし、第
3サイクル(ライトサイクル)ではこの内部レジスタの
内容をデータバスDBを介しステータス・コントロールレ
ジスタ22にストアする。Here, for example, when the first bit of the status control register 22 is "1", in order to mask the interrupt by setting only this first bit to "0", execute the bit reset instruction provided in the MPU10. To do. Execution of this instruction is divided into three cycles. In the first cycle (read cycle), the MPU 10 loads the contents of all bits of the status control register 22 into the internal register via the data bus DB, and in the second cycle (bit operation cycle) the first bit of this internal register. Is set to "0", and the contents of this internal register are stored in the status control register 22 via the data bus DB in the third cycle (write cycle).
第3図はこの3つのサイクルを示しており、Aはステー
タス・コントロールレジスタ22のアドレス、TDはこのス
テータス・コントロールレジスタ22のビット操作前の内
容、PCは内部レジスタの第1ビットを“0"にするビット
操作命令が書き込まれた主メモリ上のアドレスを示すプ
ログラムカウンタの値、PDはこのビット操作命令のコー
ド、TD′はビット操作後のステータス・コントロールレ
ジスタ22の内容を示す。FIG. 3 shows these three cycles. A is the address of the status control register 22, TD is the contents of this status control register 22 before bit manipulation, and PC is the first bit of the internal register "0". The value of the program counter indicating the address in the main memory where the bit manipulation instruction is written, PD is the code of this bit manipulation instruction, and TD 'is the content of the status control register 22 after bit manipulation.
MPU10がステータス・コントロールレジスタ22の内容を
内部レジスタに読み込んだ後、内部レジスタの内容をス
テータス・コントロールレジスタ22に書き込むまでの間
に、カウンタ26からオーバーフローパルスが出力されて
ステータス・コントロールレジスタ22の第2ビットが
“0"から“1"にされた場合には、ライトサイクルでMPU1
0の内部レジスタの内容をステータス・コントロールレ
ジスタ22に書き込むことによって、ステータス・コント
ロールレジスタ22の第2ビットが元の値“0"に再度書き
換えられるという不都合が生ずる。After the MPU10 reads the contents of the status control register 22 into the internal register and before writing the contents of the internal register into the status control register 22, the counter 26 outputs an overflow pulse and the status control register 22 When 2 bits are changed from "0" to "1", MPU1 is written in the write cycle.
Writing the contents of the internal register of 0 to the status control register 22 causes a disadvantage that the second bit of the status control register 22 is rewritten to the original value "0".
そこで、本実施例では、ステータス・コントロールレジ
スタ22の第2ビットを第3に示す如く構成している。Therefore, in this embodiment, the second bit of the status control register 22 is constructed as shown in the third.
すなわち、この第2ビットの出力はフリップフロップ36
のQ出力であり、フリップフロップ36はオーバフローパ
ルスによりプリセットされる。フリップフロップ36のQ
出力、アドレスデコーダ12からのリード信号RD1及びMPU
10からのRMW(リードモディファイライト)信号は、ノ
アゲート38を介してNMOSトランジスタ40のゲートに供給
される。NMOSトランジスタ40はそのソースがアースさ
れ、ドレインがデータバスDBの第2ビットのデータバス
ラインDB2に接続されている。このデータバスラインDB2
上の信号は、オアゲート42の一方の入力端子に供給さ
れ、オアゲート42の他方の入力端子には、アドレスデコ
ーダ12からのライト信号WR1が供給される。オアゲート4
2の出力はナンドゲート44の一方の入力端子に供給さ
れ、ナンドゲート44の他方の入力端子には、MPU10から
のリッセト信号RESETが供給される。ナンドゲート44の
出力はフリップフロップ36のクリア端子に供給される。That is, the output of the second bit is the flip-flop 36.
, Q output, and flip-flop 36 is preset by an overflow pulse. Q of flip-flop 36
Output, read signal RD 1 from address decoder 12 and MPU
The RMW (read modify write) signal from 10 is supplied to the gate of the NMOS transistor 40 via the NOR gate 38. The source of the NMOS transistor 40 is grounded, and the drain is connected to the data bus line DB 2 of the second bit of the data bus DB. This data bus line DB 2
The upper signal is supplied to one input terminal of the OR gate 42, and the write signal WR 1 from the address decoder 12 is supplied to the other input terminal of the OR gate 42. OR gate 4
The output of 2 is supplied to one input terminal of the NAND gate 44, and the reset signal RESET from the MPU 10 is supplied to the other input terminal of the NAND gate 44. The output of the NAND gate 44 is supplied to the clear terminal of the flip-flop 36.
リッセト信号RESETがLレベルになると、ナンドゲート4
4の出力はHレベルになり、フリップフロップ36のQ出
力がLレベルにリッセトされる。When the reset signal RESET goes low, the NAND gate 4
The output of 4 becomes H level, and the Q output of the flip-flop 36 is reset to L level.
次に、第4図に基づいて第3図に示す回路構成の動作を
説明する。第4図はビット操作命令実行時のタイミング
チャートである。Next, the operation of the circuit configuration shown in FIG. 3 will be described with reference to FIG. FIG. 4 is a timing chart when the bit operation instruction is executed.
(1)リードサイクル ビット操作命令でない場合には、リードモディファイア
ライト信号RMWがLレベルであるので、リード信号RD1が
Lレベルになると、ノアゲート38の出力はフリップフロ
ップ36のQ出力の反転レベルとなる。したがって、Q出
力がHレベルのときはNMOSトランジスタ40がオフにな
り、データバスラインDB2にプリチャージされた電荷は
リード信号RD1がLレベルになっても放電されず、MPU10
はQ出力がHレベルであると判断する。また、Q出力が
LレベルのときはNMOSトランジスタ40がオンになり、デ
ータバスラインDB2にプリチャージされた電荷はリード
信号RD1がLレベルになると放電され、MPU10はQ出力が
Lレベルであると判断する。(1) Read cycle Since the read modifier write signal RMW is at the L level when it is not a bit operation instruction, when the read signal RD 1 goes to the L level, the output of the NOR gate 38 is the inverted level of the Q output of the flip-flop 36. Becomes Therefore, when the Q output is at the H level, the NMOS transistor 40 is turned off, and the charges precharged on the data bus line DB 2 are not discharged even when the read signal RD 1 goes to the L level, and the MPU 10
Determines that the Q output is at the H level. Further, when the Q output is at the L level, the NMOS transistor 40 is turned on, the charge precharged to the data bus line DB 2 is discharged when the read signal RD 1 becomes the L level, and the MPU 10 outputs the Q output at the L level. Judge that there is.
これに対し、ビット操作命令の場合には第4図に示す如
く、リードモディファイアライト信号RMWがHレベルに
なるので、フリップフロップ36のQ出力及びリード信号
RD1のレベルによらずノアゲート38の出力はLレベルと
なり、NMOSトランジスタ40がオフになる。したがって、
データバスラインDB2にプリチャージされた電荷はリー
ド信号RD1がLレベルになっても放電されず、MPU10はQ
出力がHレベルであると形式的に判断する。On the other hand, in the case of the bit operation instruction, as shown in FIG. 4, the read modifier write signal RMW becomes H level, so the Q output of the flip-flop 36 and the read signal.
The output of the NOR gate 38 becomes L level regardless of the level of RD 1 , and the NMOS transistor 40 is turned off. Therefore,
The charge precharged to the data bus line DB 2 is not discharged even when the read signal RD 1 goes to L level, and the MPU 10 has Q
It is formally determined that the output is at the H level.
なお、ライト信号WR1はHレベルであり、したがってフ
リップフロップ36のCLR端子はLレベルのままであって
クリアされない。The write signal WR 1 is at the H level, and therefore the CLR terminal of the flip-flop 36 remains at the L level and is not cleared.
(2)ビット操作サイクル MPU10は前サイクルで内部レジスタに読み込んだデータT
Dの第1ビットの値のみ“0"にしてデータTD′とする。
この際、ライト信号WR1はHレベルであり、フリップフ
ロップ36はクリアされない。(2) Bit operation cycle MPU10 reads the data T read in the internal register in the previous cycle.
Only the value of the first bit of D is set to "0" to make the data TD '.
At this time, the write signal WR 1 is at H level, and the flip-flop 36 is not cleared.
(3)ライトサイクル MPU10は内部レジスタの内容TD′をデータバスDB上に出
力する。したがって、データバスラインDB2はプリチャ
ージされる。一方、ビット操作命令でない場合のライト
サイクルと同様に、リード信号RD1はHレベルであるの
で、NMOSトランジスタ40はオフになっており放電されな
い。したがって、ライト信号WR1がLレベルになっても
ナンドゲート44の出力はLレベルのままであり、フリッ
プフロップ36はクリアされない。(3) Write cycle MPU10 outputs the contents TD 'of the internal register to the data bus DB. Therefore, the data bus line DB 2 is precharged. On the other hand, since the read signal RD 1 is at the H level as in the write cycle in the case of not a bit operation instruction, the NMOS transistor 40 is off and is not discharged. Therefore, even if the write signal WR 1 becomes L level, the output of the NAND gate 44 remains L level and the flip-flop 36 is not cleared.
したがって、MPU10がステータス・コントロールレジス
タ22の内容を内部レジスタに読み込んだ後ビット操作
し、この内部レジスタの内容をステータス・コントロー
ルレジスタ22に書き込むまでの間に、カウンタ26からオ
ーバーフローパルスが出力されてステータス・コントロ
ールレジスタ22の第2ビットが“0"から“1"にされて
も、ライトサイクルでステータス・コントロールレジス
タ22の第2ビットが元の値“0"に再度書き換えられると
いうことがない。Therefore, while the MPU10 reads the contents of the status control register 22 into the internal register and then manipulates the bits and writes the contents of this internal register to the status control register 22, an overflow pulse is output from the counter 26 to indicate the status. Even if the second bit of the control register 22 is changed from "0" to "1", the second bit of the status control register 22 is never rewritten to the original value "0" in the write cycle.
[発明の効果] 以上説明したように、本発明に係るマイクロコンピュー
タによれば、読み込み後書き込みまでの間において、レ
ジスタのステータス・コントロールビットの内容がMPU
と無関係に周辺I/O等により書き換えられても、ステー
タス・コントロールビットのみに関してはビット操作後
のレジスタへの書き込みの際にその時点でのステータス
・コントロールビットの内容を保持するので、このよう
なレジスタに対しビット操作命令によりその内容を適正
に変更することができ、したがって、このようなレジス
タに対してもビット操作命令を使用することができると
いう優れた効果を奏し、ソフト開発の効率化に寄与する
ところが大きい。[Effects of the Invention] As described above, according to the microcomputer of the present invention, the contents of the status control bits of the register are MPU between the reading and the writing.
Even if it is rewritten by peripheral I / O, etc. regardless of the above, since only the status control bit retains the contents of the status control bit at the time of writing to the register after bit manipulation. The contents of a register can be appropriately changed by a bit operation instruction, and therefore, the excellent effect that the bit operation instruction can be used even for such a register is exerted, and the efficiency of software development is improved. There is a big contribution.
第1図乃至第4図は本発明の一実施例に係り、 第1図はマイクロコンピュータの要部ブロック図、 第2図は第1図のタイマ/カウンタ14の構成を詳細に示
すブロック図、 第3図は第2図のステータス・コントロールレジスタ22
の第2ビットの構成を詳細に示す回路図、 第4図はビット操作命令実行時のタイミングチャートで
ある。 図中、 10はMPU 12はアドレスデコーダ 14はタイマ/カウンタ 16はクロック発生器 18は分周回路 20はセレクタ 22はステータス・コントロールレジスタ 24、34はアンドゲート 26はカウンタ 28はデータレジスタ 30はリロード制御回路 32、36はフリップフロップ 38はノアゲート 40はNMOSトランジスタ 42はオアゲート 44はナンドゲート1 to 4 relate to an embodiment of the present invention, FIG. 1 is a block diagram of a main part of a microcomputer, and FIG. 2 is a block diagram showing in detail the configuration of the timer / counter 14 of FIG. FIG. 3 shows the status control register 22 of FIG.
FIG. 4 is a circuit diagram showing in detail the configuration of the second bit of FIG. 4, and FIG. 4 is a timing chart at the time of executing a bit operation instruction. In the figure, 10 is the MPU 12, the address decoder 14 is the timer / counter 16, the clock generator 18 is the divider circuit 20, the selector 22 is the status control register 24, 34 is the AND gate 26, the counter 28 is the data register 30, and the data register 30 is reloaded. Control circuits 32 and 36 are flip-flops 38 are NOR gates 40 are NMOS transistors 42 are OR gates 44 are NAND gates
Claims (1)
データはコントロールデータとなるステータス・コント
ロールビットを備えたレジスタ(22)と、 ビット操作命令に応答して、該レジスタの内容を読み込
みその所定のビットを操作した後該レジスタに書き込む
MPU(10)と、 を有するマイクロコンピュータにおいて、 該ビット操作命令を他の命令と区別するための信号(RM
W)を該ビット操作の命令コードから生成し、該信号を
用いて、該ステータス・コントロールビットのみに関し
ては該ビット操作後に該レジスタへ書き込む際にその時
点での該ステータス・コントロールビットの内容を保持
する手段(38,40) を付設したことを特徴とするマイクロコンピュータ。1. A register (22) having a status control bit, wherein read data is status data and write data is control data, and the contents of the register are read in response to a bit operation command. Write to the register after manipulating the bit
In a microcomputer having an MPU (10), a signal (RM for distinguishing the bit operation instruction from other instructions
W) is generated from the instruction code of the bit operation, and by using the signal, when only the status control bit is written into the register after the bit operation, the contents of the status control bit at that time are retained. A microcomputer having means (38, 40) attached thereto.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1006564A JPH073666B2 (en) | 1989-01-12 | 1989-01-12 | Microcomputer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1006564A JPH073666B2 (en) | 1989-01-12 | 1989-01-12 | Microcomputer |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH02186488A JPH02186488A (en) | 1990-07-20 |
| JPH073666B2 true JPH073666B2 (en) | 1995-01-18 |
Family
ID=11641832
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1006564A Expired - Lifetime JPH073666B2 (en) | 1989-01-12 | 1989-01-12 | Microcomputer |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH073666B2 (en) |
-
1989
- 1989-01-12 JP JP1006564A patent/JPH073666B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH02186488A (en) | 1990-07-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4870562A (en) | Microcomputer capable of accessing internal memory at a desired variable access time | |
| US4819164A (en) | Variable frequency microprocessor clock generator | |
| US3623017A (en) | Dual clocking arrangement for a digital computer | |
| WO1989002128A1 (en) | Microcomputer with on-board chip selects and programmable bus stretching | |
| JPS62180427A (en) | Program control circuit | |
| JPS5983233A (en) | Variable cycle time microcomputer | |
| US4348720A (en) | Microcomputer arranged for direct memory access | |
| JPH0769791B2 (en) | Microprocessor | |
| JPS63148346A (en) | Information processor | |
| US4667285A (en) | Microcomputer unit | |
| JPH0764957A (en) | Timer device | |
| US4641278A (en) | Memory device with a register interchange function | |
| JPS62179033A (en) | Ic microprocessor | |
| KR100321745B1 (en) | A micro controller unit for external memory access | |
| JPH073666B2 (en) | Microcomputer | |
| US5555559A (en) | Microprocessor capable of ensuring flexible recovery time for I/O device by inserting idle states | |
| JP2784001B2 (en) | Instruction processing circuit of programmable controller | |
| JPS6339939B2 (en) | ||
| CN1187687C (en) | Method and device for reducing computer initial setting element | |
| JP2678112B2 (en) | Real-time output port | |
| JPS6261978B2 (en) | ||
| JPH0573296A (en) | Microcomputer | |
| JPH0683986A (en) | Single chip microcomputer | |
| JP2961219B2 (en) | Semiconductor integrated circuit | |
| JPS623458B2 (en) |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080118 Year of fee payment: 13 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090118 Year of fee payment: 14 |
|
| S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313532 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090118 Year of fee payment: 14 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| EXPY | Cancellation because of completion of term |