JPS63317869A - Action mode control circuit - Google Patents

Action mode control circuit

Info

Publication number
JPS63317869A
JPS63317869A JP62154689A JP15468987A JPS63317869A JP S63317869 A JPS63317869 A JP S63317869A JP 62154689 A JP62154689 A JP 62154689A JP 15468987 A JP15468987 A JP 15468987A JP S63317869 A JPS63317869 A JP S63317869A
Authority
JP
Japan
Prior art keywords
operation mode
mode
control signal
flip
signal input
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
JP62154689A
Other languages
Japanese (ja)
Inventor
Tadashi Kubo
久保 忠
Keisuke Tanaka
啓介 田中
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP62154689A priority Critical patent/JPS63317869A/en
Publication of JPS63317869A publication Critical patent/JPS63317869A/en
Pending legal-status Critical Current

Links

Landscapes

  • Microcomputers (AREA)

Abstract

PURPOSE:To obtain a single-chip microcomputer having an action mode which is opened to users by increasing the action mode to be set without increasing the number of terminals. CONSTITUTION:In case the output signal levels a2 and a3 of flip-flops 4 and 5 are initialized at low values after reset initialization, the value of a chip 3 is set at (000) or (100) after the reset initialization (a1, a2, a3) based on the input level of a control signal. Then a ROM extension mode can be defined with (a1, a2, a3)=(100) as long as a single-chip mode is defined with (a1, a2, a3)=(000). Then it is possible to obtain four types action modes (001), (101), (011) and (111) that are available with a manufacturer only when a flip-flop 5 is set at a high level (unopened) by a program and the output signal of a3 is set at a high level.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、シングルチップ・マイクロコンピュータの半
導体集積回路の動作モード制御回路に関するものである
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to an operation mode control circuit for a semiconductor integrated circuit of a single-chip microcomputer.

従来の技術 シングルチップ・マイクロコンピュータの応用分野の拡
大に伴い、その使用動作形態が多様化している。たとえ
ば、シングルチップ・マイクロコンピュータ単体で使用
する場合と、外部にROMやRAM等を拡張接続して使
用する場合、さらに使用者(ユーザー)が用いる動作モ
ードの他に、製造者(メーカー)が半導体集積回路の検
査を行なうために用いる動作モードも存する。このよう
にシングルチップ・マイクロコンピュータでは、使用目
的に応じた複数の動作形態を有している。
2. Description of the Related Art As the field of application of single-chip microcomputers expands, the operational forms in which they are used are diversifying. For example, when using a single-chip microcomputer alone, when using it by connecting an external ROM or RAM, etc., and in addition to the operation mode used by the user, the manufacturer There are also operating modes used to test integrated circuits. In this way, a single-chip microcomputer has a plurality of operating modes depending on the purpose of use.

これらの複数の動作モードの切り換えは、特定の信号入
力端子に制御信号を与えることにより行なわれるが、使
用者の用いる動作モードの設定は容易に設定ができ、製
造者が用いる動作モード設定は、使用者が容易に設定を
行なえないことが望まれる。特にシングルチップ・マイ
クロコンピュータでは、チップ内部に集積したROMの
内容を検査する動作モードを備えることが多いが、ソフ
トウエア保護の意味からも、このような動作モードは使
用者により容易に設定が行なえない方が好ましい。
Switching between these multiple operation modes is performed by applying a control signal to a specific signal input terminal, but the operation mode setting used by the user can be easily set, and the operation mode setting used by the manufacturer is It is desirable that the user cannot easily make settings. In particular, single-chip microcomputers often have an operating mode that inspects the contents of the ROM integrated inside the chip, but from the standpoint of software protection, such an operating mode cannot be easily set by the user. It is preferable not to have it.

従来よりしばしば用いられる動作モード設定方法として
、k本の動作モード制御用の信号入力端子を設け、それ
ぞれの端子にハイレベルまたはロウレベルの信号を入力
し、これらの信号レベルをデコードすることで、最大2
k通りの動作モードの設定を可能にする方法がある。
Conventionally, the operation mode setting method often used is to provide k signal input terminals for operation mode control, input high-level or low-level signals to each terminal, and decode these signal levels. 2
There is a method that allows setting of k different operating modes.

第2図は、動作モード制御信号入力端子を2本用いた場
合の機能ブロック図の一例である。1゜2は制御信号入
力端子、3は2つの端子の信号レベルをデコードし、そ
れぞれの動作モードに必要な信号を生成するためのデコ
ーダである。この例の場合、2本の制御信号入力端子を
それぞれハイレベルまたはロウレベルに設定する組み合
わせは22=4通りであり最大4つの動作モードを設定
することが可能である。
FIG. 2 is an example of a functional block diagram when two operation mode control signal input terminals are used. 1.2 is a control signal input terminal, and 3 is a decoder for decoding the signal levels of the two terminals and generating signals necessary for each operation mode. In this example, there are 22=4 combinations of setting the two control signal input terminals to high level or low level, and it is possible to set a maximum of four operation modes.

発明が解決しようとする問題点 前述のような従来の動作モード制御回路では、制御信号
入力端子をハイレベルまたはロウレベルに設定するだけ
で、使用者が容易に所望の動作モードを指定できるとい
う利点はあるが、動作モードの総数が増えると制御信号
入力端子の数も増やさなければならない。この点は、製
造者にとり、コスト面やシングルチップ・マイクロコン
ピュータの性能面から見ても不利であり、さらに半導体
集積回路を検査するための動作モードも使用者に容易に
設定されることができるという欠点がある。
Problems to be Solved by the Invention In the conventional operation mode control circuit as described above, the advantage is that the user can easily specify the desired operation mode by simply setting the control signal input terminal to high or low level. However, as the total number of operating modes increases, the number of control signal input terminals must also increase. This point is disadvantageous for manufacturers in terms of cost and performance of single-chip microcomputers, and furthermore, the operating mode for testing semiconductor integrated circuits can be easily set by the user. There is a drawback.

本発明は、前述のような問題を解決するもので、制御信
号入力端子数を増やすことなく複数の動作モードの設定
を可能とし、しかも、製造者が用いる動作モードは、使
用者により容易に設定できないシングルチップ・マイク
ロコンピュータの動作モード制御回路を提供することを
目的とするものである。
The present invention solves the above-mentioned problems by making it possible to set multiple operation modes without increasing the number of control signal input terminals, and moreover, the operation modes used by the manufacturer can be easily set by the user. The purpose of the present invention is to provide an operation mode control circuit for a single-chip microcomputer that cannot be used.

問題点を解決するための手段 前述の問題点を解決するために、本発明は、k本の制御
信号入力端子の信号レベルと、プログラムによりハイレ
ベルまたはロウレベルに設定できるn個のフリップフロ
ップの出力レベルとをデコードし、それぞれの動作モー
ドに必要な信号を生成するためのデコーダを備え、k本
の制御信号入力端子で最大2(k+n)通りの動作モー
ドを設定するものである。
Means for Solving the Problems In order to solve the above-mentioned problems, the present invention provides a method for controlling the signal levels of k control signal input terminals and the outputs of n flip-flops that can be set to high or low levels by a program. The device is equipped with a decoder for decoding levels and generating signals necessary for each operation mode, and a maximum of 2 (k+n) operation modes can be set using k control signal input terminals.

作用 本発明によると、制御信号入力端子数を増やすことなく
、多くの動作モードの設定が可能となる。
Effects According to the present invention, many operation modes can be set without increasing the number of control signal input terminals.

また、フリップフロップの出力レベルをプログラムによ
り設定するので、製造者の用いる動作モード設定のため
のプログラム方法を使用者に公開しないことにより、使
用者が容易に製造者の用いる動作モードを設定できなく
することができる。
In addition, since the output level of the flip-flop is set by a program, the programming method for setting the operating mode used by the manufacturer is not disclosed to the user, making it difficult for the user to easily set the operating mode used by the manufacturer. can do.

実施例 第1図は本発明の一実施例を示すブロック図である。こ
の例は、一本の制御信号入力端子1と2個のプログラム
により出力レベルが設定できるフリップフロップ4,5
によりデコーダで最大23(=8)通りの動作モード信
号を生成できるシングルチップ・マイクロコンピュータ
の動作モード制御回路の構成を示したものである。以後
の説明では、簡単のだ桧、使用者の用いる動作モードを
、通常シングルチップ・マイクロコンピュータでよく用
いられるシングルチップモード、ROM拡張モード、R
AM拡張モード、ROM−RAM拡張モードの4つとし
た場合について述べる。
Embodiment FIG. 1 is a block diagram showing an embodiment of the present invention. This example has one control signal input terminal 1 and two flip-flops 4 and 5 whose output level can be set by a program.
This figure shows the configuration of an operation mode control circuit for a single-chip microcomputer that can generate up to 23 (=8) types of operation mode signals using a decoder. In the following explanation, the operation modes used by the user will be briefly explained as single-chip mode, which is commonly used in single-chip microcomputers, ROM expansion mode, and R
The following describes four cases: AM expansion mode and ROM-RAM expansion mode.

本発明においては、動作モードの切り換えをプログラム
により行なうため、チップのリセット初期化後、内部R
OMまたは外部ROMのどちらのプログラムが実行され
るかについての動作モードの設定は、第1図の制御信号
入力端子1の出力レベルa1によって決定される。例え
ば、リセット初期化後の7リツプフロツブ4および同5
の出力信号レベルa2.a3の初期設定がロウレベルだ
とすれば、チップのリセット初期化後(a+  a2a
3)の値は制御信号入力のレベルにより(000)また
は(100)となり<a+  aza3)= (000
)の場合をシングルチップモードとするならば(a+ 
 az a:+)= (100)の場合は、ROM拡張
モードとなる。このROMの動作モードのリセット初期
化設定の後、プログラムによりフリップフロップのレベ
ルを設定し、RAMの動作モードを決定する。この設定
をフリップフロップ4の出力a2の値で決定するとすれ
ば、(a+  az az)= (010)の場合はR
AM拡張モード、(a+  82  az)= (11
0)の場合はROM−RAM拡張モードとなる。以上で
、使用者の用いる4つの動作モードの割り付けが決定さ
れ、次に製造者の用いる動作モードの割り付けであるが
、これは、フリップフロップ5をプログラムによりハイ
レベルに設定し、azの出力信号レベルをハイレベルに
することにより設定される(a+  az  az) 
−(001)。
In the present invention, since the operation mode is switched by a program, after the chip is reset and initialized, the internal R
The setting of the operating mode as to which program is executed in the OM or the external ROM is determined by the output level a1 of the control signal input terminal 1 shown in FIG. For example, 7 lip flops 4 and 5 after reset initialization.
The output signal level a2. If the initial setting of a3 is low level, after the chip is reset and initialized (a + a2a
The value of 3) will be (000) or (100) depending on the level of the control signal input, and <a+ aza3) = (000
) is a single-chip mode, then (a+
When az a:+)=(100), the mode is ROM expansion mode. After this reset initialization of the ROM operating mode, the level of the flip-flop is set by a program and the RAM operating mode is determined. If this setting is determined by the value of the output a2 of the flip-flop 4, if (a+ az az) = (010), R
AM extended mode, (a+82 az)=(11
0), it becomes ROM-RAM expansion mode. As described above, the allocation of the four operation modes used by the user has been determined, and the next allocation of the operation modes used by the manufacturer is to set the flip-flop 5 to a high level by a program and to Set by setting the level to high level (a+ az az)
-(001).

(101)、(011)、(111)の最大4つの異な
る動作モードを割り付けることができる。
Up to four different operation modes (101), (011), and (111) can be assigned.

このプリップフロップ5のプログラムによるハイレベル
設定方法を使用者に公開しなければ、使用者は容易に製
造者の用いる動作モードに設定することができない。前
述の例では、一本の制御信号入力端子の場合を示したが
、一般には、k本の制御信号入力端子であれば、チップ
のリセット初期化後の動作モード2k通りが設定可能で
あり、初期設定でRAMの動作モードも決定しておき、
後にプログラムによりRAMの動作モードを切り換える
ことも可能である。
Unless the high level setting method of the flip-flop 5 is disclosed to the user, the user cannot easily set it to the operating mode used by the manufacturer. Although the above example shows the case of one control signal input terminal, in general, if there are k control signal input terminals, 2k operation modes can be set after the chip is reset and initialized. The RAM operation mode is also determined in the initial settings.
It is also possible to switch the operating mode of the RAM later by a program.

発明の効果 前述のように本発明によれば、動作モードを決定するた
めの制御信号入力端子の数を増やすことなく、シングル
チップ・マイクロコンピュータの動作モードの設定でき
る総数を増やすことが可能である。また、使用者に公開
しない、製造者の用いる動作モードに切り変えるための
フリップフロップを持つことで使用者が容易に製造者の
用いる動作モードに設定できないようにできる。
Effects of the Invention As described above, according to the present invention, it is possible to increase the total number of operation modes that can be set for a single-chip microcomputer without increasing the number of control signal input terminals for determining the operation mode. . Further, by providing a flip-flop for switching to the operation mode used by the manufacturer, which is not disclosed to the user, it is possible to prevent the user from easily setting the operation mode to the operation mode used by the manufacturer.

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

第1図は本発明の一実施例を示すブロック図、第2図は
従来の実施例を示すブロック図である。 1.2・・・・・・制御信号入力端子、2・・・・・・
デコーダ、4.5・・・・・・フリップフロップ。 代理人の氏名 弁理士 中尾敏男 ほか1名第1図
FIG. 1 is a block diagram showing one embodiment of the present invention, and FIG. 2 is a block diagram showing a conventional embodiment. 1.2... Control signal input terminal, 2...
Decoder, 4.5...Flip-flop. Name of agent: Patent attorney Toshio Nakao and one other person Figure 1

Claims (1)

【特許請求の範囲】[Claims] 動作モードを決定するためのk本の制御信号入力端子の
信号レベルと、プログラムによりハイレベルまたはロウ
レベルに設定できるn個のフリップフロップの出力レベ
ルとをデコードし、それぞれの動作モードに必要な信号
を生成するデコーダを備え、k本の制御信号入力端子に
より、マイクロコンピュータのリセット初期化で決定さ
れる2^k通りの動作モードに加え、前記フリップフロ
ップにより、さらに2^n通りの動作モードの決定を可
能とし最大2^(^k^+^n^)通りの動作モード信
号生成手段をそなえたことを特徴とする動作モード制御
回路。
It decodes the signal levels of k control signal input terminals for determining the operation mode and the output levels of n flip-flops that can be set to high or low level by program, and generates the signals necessary for each operation mode. In addition to the 2^k operation modes determined by reset initialization of the microcomputer through the k control signal input terminals, the flip-flop determines an additional 2^n operation modes. What is claimed is: 1. An operation mode control circuit characterized in that the operation mode control circuit is equipped with a maximum of 2^(^k^+^n^) types of operation mode signal generation means.
JP62154689A 1987-06-22 1987-06-22 Action mode control circuit Pending JPS63317869A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62154689A JPS63317869A (en) 1987-06-22 1987-06-22 Action mode control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62154689A JPS63317869A (en) 1987-06-22 1987-06-22 Action mode control circuit

Publications (1)

Publication Number Publication Date
JPS63317869A true JPS63317869A (en) 1988-12-26

Family

ID=15589778

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62154689A Pending JPS63317869A (en) 1987-06-22 1987-06-22 Action mode control circuit

Country Status (1)

Country Link
JP (1) JPS63317869A (en)

Similar Documents

Publication Publication Date Title
JPS63317869A (en) Action mode control circuit
JPH08105947A (en) Ic circuit
KR100357177B1 (en) Device for instruction interpretating of micro computer
JPS60101664A (en) Controlling circuit of bus circuit
JPS60142282A (en) Semiconductor integrated circuit
JPH0358141A (en) Integrated circuit with logic for user
JPS6167148A (en) Microcomputer
KR100219529B1 (en) Micro controller
JPH03238532A (en) Semiconductor integrated circuit
JP3283505B2 (en) Microcomputer
JPH0559356U (en) Digital LSI test circuit
JPS61134982A (en) Memory access circuit
JPH0353342A (en) Test mode setting circuit
JPH05232188A (en) Testing circuit for semiconductor integrated circuit
JPH0241793B2 (en)
JPH04145510A (en) Single-chip microcomputer
JPH0315776A (en) Mode setting circuit
JPS60132218A (en) Microcomputer
JP2715872B2 (en) Information processing device
JPH02284520A (en) Semiconductor integrated circuit
JPS5971557A (en) Semiconductor integrated circuit device
JPH0160792B2 (en)
JPS60193056A (en) Single chip microcomputer
JPH06150022A (en) Memory chip selection control circuit
JPS59210381A (en) Testing circuit of integrated circuit device