JPH05324144A - Function setting circuit - Google Patents

Function setting circuit

Info

Publication number
JPH05324144A
JPH05324144A JP4128966A JP12896692A JPH05324144A JP H05324144 A JPH05324144 A JP H05324144A JP 4128966 A JP4128966 A JP 4128966A JP 12896692 A JP12896692 A JP 12896692A JP H05324144 A JPH05324144 A JP H05324144A
Authority
JP
Japan
Prior art keywords
output
function setting
current path
read
signal
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
JP4128966A
Other languages
Japanese (ja)
Inventor
Riyuuji Norikura
龍次 糊倉
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
Toshiba Electronic Device Solutions Corp
Original Assignee
Toshiba Corp
Toshiba Microelectronics 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, Toshiba Microelectronics Corp filed Critical Toshiba Corp
Priority to JP4128966A priority Critical patent/JPH05324144A/en
Publication of JPH05324144A publication Critical patent/JPH05324144A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To make it possible to instantaneously set up a port function and an output signal after turning on a power supply. CONSTITUTION:Reading signals 51 to 54 are respectively read out from ROM cells 55a to 55d. When the reading signal 51 is in a high level, an output PAD is set up to a CMOS type output PAD, and at the time of a low level, set up to an n-channel open drain type output PAD. The initial output statue of the output PAD is set up by the reading signal 52. When the reading signal 53 is in a low level, a p-channel MOSFET 61 is turned on and an input PAD is pulled up. When the reading signal is in a high level, an n-channel MOSFET 62 is turned on and the input PAD is pulled down. Thus, the port function and the initial output signal are instantaneously set up after turning on the power supply.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、CPUのポート機能
の選択及び初期動作時のポート出力データの設定に関す
るものであり、特に、CPUのポートの出力形式、例え
ばCMOS型、Nチャネルオープンドレイン型、プルア
ップ入力型、プルダウン入力型の選択、ポート初期出力
をハイレベル、ロウレベル、未接続のいずれかに設定す
る為に使用されるものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to selection of a CPU port function and setting of port output data at the time of initial operation, and in particular to a CPU port output format such as CMOS type or N channel open drain type. , Pull-up input type, pull-down input type, and set the port initial output to high level, low level, or unconnected.

【0002】[0002]

【従来の技術】従来、CPUのポート機能は以下の2つ
の方法によって設定されていた。
2. Description of the Related Art Conventionally, the port function of a CPU has been set by the following two methods.

【0003】(1)第1の方法は、その集積回路の製造
工程時にCPUのポート機能の設定を行うものである。
即ち、複数のマスクを用意し、所望のCPUのポート機
能に合わせてマスクパターンを選択して、ポートを形成
し、CPUに所望のポート機能を持たせるものである。
(1) The first method is to set the port function of the CPU during the manufacturing process of the integrated circuit.
That is, a plurality of masks are prepared, a mask pattern is selected according to a desired port function of the CPU, a port is formed, and the CPU has a desired port function.

【0004】(2)第2の方法は、CPU自身がROM
等に記憶された命令に従ってポート機能を設定する方式
である。この方式では、図4に示すように、電源電圧V
DDが立ち上がり、CPUの電源リセット解除後、通常
の命令サイクル又は専用の命令サイクルを用いて、CP
Uがポート機能設定用のデータをROMから読み出し、
読み出したデータに基づいて、CPUの各ポートの機能
を設定する。
(2) In the second method, the CPU itself is the ROM
It is a method of setting a port function in accordance with an instruction stored in, for example. In this method, as shown in FIG.
After DD rises and the CPU power supply reset is released, CP is activated by using a normal instruction cycle or a dedicated instruction cycle.
U reads the data for port function setting from ROM,
The function of each port of the CPU is set based on the read data.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、マスク
によってCPUのポート機能を選択する方法では、製造
マスクを用いて機能選択を行う為、機能選択を行う為の
マスクが多数必要であり、さらに短期生産が困難であ
る。特に、機能の種類が増えると、それだけ多数のマス
クが必要になり、さらに短期生産が困難になる。
However, in the method of selecting the CPU port function by the mask, since the manufacturing mask is used to select the function, a large number of masks are required to perform the function selection. Is difficult. In particular, as the number of types of functions increases, so many masks are required, and short-term production becomes more difficult.

【0006】次に、命令サイクルによるROM読み出し
方法では、CPUのリセット解除後、通常の命令サイク
ル又は専用の命令サイクルを用いて、ROM75からデ
ータを読み出し、CPUのポート機能の選択を行う。よ
って、図4に示されるように電源が投入されてから機能
設定用の命令の実行が完了するまでの間、CPUのポー
トの機能の選択及び出力信号の選択を行えないという問
題がある。
Next, in the ROM read method by the instruction cycle, after the reset of the CPU is released, the data is read from the ROM 75 and the port function of the CPU is selected by using a normal instruction cycle or a dedicated instruction cycle. Therefore, as shown in FIG. 4, there is a problem that the function of the port of the CPU and the selection of the output signal cannot be selected after the power is turned on until the execution of the function setting instruction is completed.

【0007】即ち、図4に示すように、一般に電源電圧
VDDの立ち上がりからリセット信号RESの出力まで
は、10msと3命令サイクル程度の時間がかかり、そ
の後、一般に8命令サイクル程度で設定が終了する。こ
の間、CPUのポートの出力形式を切り換えることが出
来ず、例えば、出力形式がNチャネルオープンドレイン
出力形式に固定されてしまう。よって、電源投入から1
0ms+11命令サイクルの間、CMOS形式等の別の
出力形式が必要なICにはこの方式は使用出来なかっ
た。この発明は上記実情に鑑みてなされたもので、CP
Uのポート機能及び出力信号を電源投入後、即座に設定
することを目的とする。
That is, as shown in FIG. 4, generally, it takes 10 ms, which is about 3 instruction cycles, from the rise of the power supply voltage VDD to the output of the reset signal RES, and thereafter, the setting is generally completed in about 8 instruction cycles. .. During this time, the output format of the CPU port cannot be switched, and for example, the output format is fixed to the N-channel open drain output format. Therefore, it is 1 after turning on the power.
This scheme could not be used for ICs that needed another output format such as CMOS format during 0ms + 11 instruction cycles. The present invention has been made in view of the above circumstances, and CP
The purpose is to set the port function and output signal of U immediately after the power is turned on.

【0008】[0008]

【課題を解決するための手段】この発明の機能設定回路
は、電源投入に応答して機能設定用データを出力する読
み出し専用メモリと、電流路の一端に電源電圧が供給さ
れ、ゲート電極に前記読み出し専用メモリからの機能設
定用データが供給され、電流路の他端が入出力回路の入
力端子に接続されているプルアップ用トランジスタと、
電流路の一端が前記プルアップ用トランジスタの電流路
の他端及び前記入力端子に接続され、ゲート電極に前記
読み出し専用メモリからの機能設定用データが供給さ
れ、電流路の他端が接地されているプルダウン用トラン
ジスタを具備し、電源投入後即座にその機能が設定され
ることを特徴とする
A function setting circuit according to the present invention comprises a read-only memory for outputting function setting data in response to power-on, a power supply voltage supplied to one end of a current path, and a gate electrode having the above-mentioned structure. Function setting data from the read-only memory is supplied, the other end of the current path is connected to the input terminal of the input / output circuit, and a pull-up transistor,
One end of the current path is connected to the other end of the current path of the pull-up transistor and the input terminal, the function setting data from the read-only memory is supplied to the gate electrode, and the other end of the current path is grounded. It is equipped with a pull-down transistor and its function is set immediately after the power is turned on.

【0009】[0009]

【作用】電源投入に応答して、読み出し専用メモリは機
能設定用データをプルアップ用トランジスタのゲート電
極に供給し、プルアップ用トランジスタの機能を設定す
る。また、読み出し専用メモリはプルダウン用トランジ
スタのゲート電極に機能設定用データを供給し、プルダ
ウン用トランジスタの機能を設定する。これにより、電
源投入後、即座にプルアップ用トランジスタ、プルダウ
ン用トランジスタの機能が設定される。
In response to the power-on, the read-only memory supplies the function setting data to the gate electrode of the pull-up transistor to set the function of the pull-up transistor. The read-only memory supplies the function setting data to the gate electrode of the pull-down transistor to set the function of the pull-down transistor. As a result, the functions of the pull-up transistor and the pull-down transistor are set immediately after the power is turned on.

【0010】[0010]

【実施例】以下、図面を参照してこの発明の一実施例に
係る機能設定回路を備えるCPUについて説明する。ま
ず、図1に示すCPUは、複数のROMセル55a乃至
55d、アンドゲートA1、A2、オアゲート66、P
チャネルMOSFET63、NチャネルMOSFET6
4、65、プルアップ用のトランジスタ61、プルダウ
ン用トランジスタ62を有する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS A CPU having a function setting circuit according to an embodiment of the present invention will be described below with reference to the drawings. First, the CPU shown in FIG. 1 has a plurality of ROM cells 55a to 55d, AND gates A1 and A2, OR gates 66 and P.
Channel MOSFET 63, N-channel MOSFET 6
4, 65, a pull-up transistor 61, and a pull-down transistor 62.

【0011】次に、機能設定回路の構成について説明す
る。入力PAD(入力端子)は、PチャネルMOSFE
T61の電流路の他端とNチャネルMOSFET62の
電流路の一端の接続点に接続されている。また、入力P
ADはインバータ67の入力端に接続されており、イン
バータ67の出力信号はCPU内の図示せぬ内部回路に
供給される。PチャネルMOSFET61の電流路の一
端には電源電圧VDDが供給されており、ゲート電極に
はROMセル55cからの読み出し信号53が供給され
る。NチャネルMOSFET62の電流路の他端は接地
されており、ゲート電極にはROMセル55dからの読
み出し信号54が供給される。アンドゲートA1の第1
の入力端にはCPUからのポートデータが供給されてお
り、その反転入力端にはリセット信号RESが供給され
ている。
Next, the structure of the function setting circuit will be described. Input PAD (input terminal) is P channel MOSFE
It is connected to the connection point between the other end of the current path of T61 and one end of the current path of the N-channel MOSFET 62. Also, input P
AD is connected to the input terminal of the inverter 67, and the output signal of the inverter 67 is supplied to an internal circuit (not shown) in the CPU. The power supply voltage VDD is supplied to one end of the current path of the P-channel MOSFET 61, and the read signal 53 from the ROM cell 55c is supplied to the gate electrode. The other end of the current path of the N-channel MOSFET 62 is grounded, and the read signal 54 from the ROM cell 55d is supplied to the gate electrode. First of AND gate A1
The port data from the CPU is supplied to the input terminal of, and the reset signal RES is supplied to the inverting input terminal.

【0012】アンドゲートA2の第1の入力端にはリセ
ット信号RESが供給されており、第2の入力端にはR
OMセル55bからの読み出し信号52が供給されてい
る。アンドゲートA1の出力端とアンドゲートA2の出
力端はオアゲート66の入力端に接続され、オアゲート
66の出力端はPチャネルMOSFET63とNチャネ
ルMOSFET65のゲート電極に接続されている。
A reset signal RES is supplied to the first input terminal of the AND gate A2, and R is supplied to the second input terminal.
The read signal 52 from the OM cell 55b is supplied. The output end of the AND gate A1 and the output end of the AND gate A2 are connected to the input end of the OR gate 66, and the output end of the OR gate 66 is connected to the gate electrodes of the P-channel MOSFET 63 and the N-channel MOSFET 65.

【0013】PチャネルMOSFET63の電流路の一
端には電源電圧VDDが供給されており、電流路の他端
はNチャネルMOSFET64の電流路の一端に接続さ
れている。NチャネルMOSFET64の電流路の他端
はNチャネルMOSFET65の電流路の一端に接続さ
れている。また、NチャネルMOSFET64の電流路
の他端とNチャネルMOSFET65の電流路の一端の
接続点は出力PAD(出力端子)に接続されている。N
チャネルMOSFET65の電流路の他端は接地されて
いる。NチャネルMOSFET64のゲート電極には、
ROMセル55aからの読み出し信号51が供給されて
いる。
The power supply voltage VDD is supplied to one end of the current path of the P-channel MOSFET 63, and the other end of the current path is connected to one end of the current path of the N-channel MOSFET 64. The other end of the current path of the N-channel MOSFET 64 is connected to one end of the current path of the N-channel MOSFET 65. The connection point between the other end of the current path of the N-channel MOSFET 64 and the one end of the current path of the N-channel MOSFET 65 is connected to the output PAD (output terminal). N
The other end of the current path of the channel MOSFET 65 is grounded. In the gate electrode of the N-channel MOSFET 64,
The read signal 51 from the ROM cell 55a is supplied.

【0014】次に、図1に示すCPUのポート機能の設
定動作について説明する。電源投入後、電源電圧VDD
が図2(a)に示すように回路の動作電圧4.5Vまで
立ち上がると、ROMセル55a〜55dは、その記憶
データを読み出し、読み出し信号51〜54として出力
する。
Next, the setting operation of the port function of the CPU shown in FIG. 1 will be described. After the power is turned on, the power supply voltage VDD
2 rises to the operating voltage of the circuit of 4.5 V as shown in FIG. 2A, the ROM cells 55a to 55d read the stored data and output it as read signals 51 to 54.

【0015】ROMセル55aからの読み出し信号51
がハイレベルの場合、Nチャネル型MOSFET64は
オンし出力PADはCMOS型出力PADに設定され
る。また、この読み出し信号51がロウレベルの場合、
Nチャネル型MOSFET64はオフし出力PADはN
チャネルオープンドレイン型PADに設定される。
Read signal 51 from ROM cell 55a
Is high level, the N-channel type MOSFET 64 is turned on and the output PAD is set to the CMOS type output PAD. When the read signal 51 is low level,
The N-channel MOSFET 64 is turned off and the output PAD is N
It is set to a channel open drain type PAD.

【0016】ROM55bからの読み出し信号52につ
いて説明する。電源投入直後は図2(c)に示すように
リセット信号RES ̄は、ロウレベルであり、その反転
信号RESはハイレベルである。この為、アンドゲート
A1の出力は、ポートデータにかかわらず、ロウレベル
となる。
The read signal 52 from the ROM 55b will be described. Immediately after the power is turned on, the reset signal RES- is at a low level and its inverted signal RES is at a high level as shown in FIG. 2 (c). Therefore, the output of the AND gate A1 becomes low level regardless of the port data.

【0017】一方、アンドゲートA2の出力信号は、読
み出し信号52のレベルに応じて、ハイまたはロウレベ
ルになる。よって、読み出し信号52がハイレベルであ
れば、オアゲート66の出力端からハイレベルの信号が
得られ、ロウレベルであれば、ロウレベルの信号が得ら
れる。オアゲート66の出力信号はPチャネル型MOS
FET63と、Nチャネル型MOSFET65のゲート
電極に供給される。
On the other hand, the output signal of the AND gate A2 becomes high or low level depending on the level of the read signal 52. Therefore, when the read signal 52 is high level, a high level signal is obtained from the output end of the OR gate 66, and when it is low level, a low level signal is obtained. The output signal of the OR gate 66 is a P-channel MOS
It is supplied to the FET 63 and the gate electrode of the N-channel MOSFET 65.

【0018】よって、読み出し信号51がハイレベル
で、NチャネルMOSFET64がオンで、出力PAD
がCMOS型出力PADに設定されている場合、読み出
し信号52に応じてハイ又はロウレベルのいずれかの出
力信号が出力PADから出力される。一方、読み出し信
号51がロウレベルでNチャネルMOSFET64がオ
フで出力PADがNチャネルオープンドレイン型PAD
に設定されている場合は、読み出し信号52がハイレベ
ルであれば、出力PADからの出力信号はロウレベルに
固定され、読み出し信号52がロウレベルであれば、出
力PADは開放状態となる。
Therefore, the read signal 51 is at a high level, the N-channel MOSFET 64 is on, and the output PAD is
Is set to the CMOS type output PAD, an output signal of either high level or low level is output from the output PAD according to the read signal 52. On the other hand, the read signal 51 is low level, the N-channel MOSFET 64 is off, and the output PAD is the N-channel open drain type PAD.
When the read signal 52 is at the high level, the output signal from the output PAD is fixed at the low level, and when the read signal 52 is at the low level, the output PAD is opened.

【0019】その後、リセット信号RES ̄がハイレベ
ルになると、アンドゲートA2はオフし、アンドゲート
A1はポートデータの信号レベルに応じた出力信号を出
力する。この為、読み出し信号51がハイレベルの場
合、ポートデータに応じた信号が出力PADから出力さ
れる。一方、読み出し信号51がロウレベルの場合、ポ
ートデータがハイレベルならば出力PADからの出力信
号はロウレベル、ポートデータがロウレベルならば出力
PADは開放状態となる。
After that, when the reset signal RES_ becomes high level, the AND gate A2 is turned off and the AND gate A1 outputs an output signal according to the signal level of the port data. Therefore, when the read signal 51 is at high level, a signal corresponding to the port data is output from the output PAD. On the other hand, when the read signal 51 is low level, the output signal from the output PAD is low level if the port data is high level, and the output PAD is open state if the port data is low level.

【0020】次に、読み出し信号53がロウレベルの場
合には、PチャネルMOSFET61がオンし、入力P
ADはプルアップされる。また、読み出し信号53がハ
イレベルの場合には、PチャネルMOSFET61はオ
フし、入力PADはプルアップされない。
Next, when the read signal 53 is at low level, the P-channel MOSFET 61 is turned on and the input P
AD is pulled up. When the read signal 53 is at high level, the P-channel MOSFET 61 is turned off and the input PAD is not pulled up.

【0021】読み出し信号54がハイレベルの場合、N
チャネルMOSFET62がオンし、入力PADはプル
ダウンされる。また、読み出し信号54がロウレベルの
場合、NチャネルMOSFET62はオフし、入力PA
Dはプルダウンされない。これにより、図2に示すよう
に電源投入後、即座に、ROMセル51〜54の記載デ
ータに応じてCPUのポート機能の切り換えが終了す
る。
When the read signal 54 is at high level, N
The channel MOSFET 62 is turned on and the input PAD is pulled down. When the read signal 54 is low level, the N-channel MOSFET 62 is turned off and the input PA
D is not pulled down. As a result, as shown in FIG. 2, the switching of the port function of the CPU is completed immediately after the power is turned on in accordance with the data described in the ROM cells 51 to 54.

【0022】次に、ROMセル55a乃至55dの具体
的構成例について説明する。図3(a)に示すROMセ
ルは、EPROMセルを用いた例であり、抵抗1とEP
ROMセル3の書き込み量で決定される接続点2の分圧
がインバータ5のしきい値電圧以下の場合は、出力信号
4はハイレベルになり、接続点2の分圧がインバータ5
のしきい値電圧以上になった場合は、出力信号4はロウ
レベルになる。インバータ5の出力信号4が図1に示す
読み出し信号51乃至54となる。
Next, a specific configuration example of the ROM cells 55a to 55d will be described. The ROM cell shown in FIG. 3A is an example in which an EPROM cell is used.
When the voltage division at the connection point 2 determined by the writing amount of the ROM cell 3 is equal to or lower than the threshold voltage of the inverter 5, the output signal 4 becomes high level, and the voltage division at the connection point 2 becomes equal to the inverter 5.
When the voltage exceeds the threshold voltage of, the output signal 4 becomes low level. The output signal 4 of the inverter 5 becomes the read signals 51 to 54 shown in FIG.

【0023】図3(b)に示すROMセルは、マスクR
OMセルを用いた例であり、マスクROMセル11又は
12にイオンを打ち込み、マスクROMセル11がオ
フ、マスクROMセル12がオンの場合、出力信号14
はロウレベルになる。一方、マスクROMセル12がオ
フ、マスクROMセル11がオンの場合、出力信号14
はハイレベルになる。出力信号14が読み出し信号51
乃至54となる。
The ROM cell shown in FIG. 3B has a mask R
This is an example using an OM cell. When the mask ROM cell 11 or 12 is implanted with ions and the mask ROM cell 11 is off and the mask ROM cell 12 is on, the output signal 14
Goes low. On the other hand, when the mask ROM cell 12 is off and the mask ROM cell 11 is on, the output signal 14
Goes high. The output signal 14 is the read signal 51.
Through 54.

【0024】図3(c)に示すROMセルは、マスクR
OMセルとEPROMセルいずれにも適用できる例であ
り、マスクROMセル24がオン状態で、コンデンサC
1に電荷が蓄積される前は、電源電圧VDD(ハイレベ
ル)がインバータ21bに供給され、インバータ21b
はこのハイレベルの信号を反転し、ロウレベルの信号2
3を出力する。
The ROM cell shown in FIG. 3C has a mask R
This is an example applicable to both the OM cell and the EPROM cell. The mask ROM cell 24 is in the ON state and the capacitor C
Before the charge is stored in 1, the power supply voltage VDD (high level) is supplied to the inverter 21b,
Inverts this high-level signal and outputs the low-level signal 2
3 is output.

【0025】コンデンサC1に電荷が蓄積された後は、
インバータ21bの入力端にロウレベルの信号が供給さ
れ、インバータ21bの入力端からハイレベルの信号が
出力される。このハイレベルの信号はコンデンサC2に
供給され、コンデンサC2は充電される。インバータ2
1bの出力信号がハイレベルであり、コンデンサC2が
充電されているので、信号23はハイレベルになり、ハ
イレベルの信号23はラッチ回路21a及び21bによ
ってラッチされる。
After the electric charge is accumulated in the capacitor C1,
A low level signal is supplied to the input terminal of the inverter 21b, and a high level signal is output from the input terminal of the inverter 21b. This high level signal is supplied to the capacitor C2, and the capacitor C2 is charged. Inverter 2
Since the output signal of 1b is high level and the capacitor C2 is charged, the signal 23 becomes high level, and the high level signal 23 is latched by the latch circuits 21a and 21b.

【0026】マスクROM24セルがオフ状態の場合、
コンデンサC1に電荷が蓄積されることはなく、インバ
ータ21bの入力端の電位は常時電源電圧VDDによっ
てハイレベルに保持され、インバータ21bはロウレベ
ルの信号23を出力する。ロウレベルの信号23はラッ
チ回路21a及び21bによってラッチされる。
When the mask ROM 24 cell is off,
The electric charge is not accumulated in the capacitor C1, the potential of the input end of the inverter 21b is always held at the high level by the power supply voltage VDD, and the inverter 21b outputs the low-level signal 23. The low-level signal 23 is latched by the latch circuits 21a and 21b.

【0027】図3(d)に示すROMセルはマスクRO
M、EPROMのいずれにも適用できる例であり、マス
クROM34がオンで、マスクROM35がオフの場
合、読み出し信号33はハイレベルとなる。また、マス
クROM34がオフで、マスクROM35がオンの場合
には、読み出し信号33はロウレベルとなる。読み出し
信号33は、インバータ31a、31bによって構成さ
れるラッチ回路により、保持される。尚、ROMセル5
5a乃至55dとして、図3(a)乃至図3(d)のい
ずれのメモリセルを使用しても良い。
The ROM cell shown in FIG. 3D is a mask RO.
This is an example applicable to both M and EPROM. When the mask ROM 34 is on and the mask ROM 35 is off, the read signal 33 becomes high level. Further, when the mask ROM 34 is off and the mask ROM 35 is on, the read signal 33 becomes low level. The read signal 33 is held by the latch circuit including the inverters 31a and 31b. The ROM cell 5
Any of the memory cells of FIGS. 3A to 3D may be used as 5a to 55d.

【0028】上記実施例では、製品毎のデータによって
CPUのポート機能の初期状態を決定するので、製造工
程を減らし生産期間の短縮化を図れる。また、メモリの
データを変えることによりCPUのポート機能を変更出
来るので自由度が増し、汎用に用いることができる。第
2に、CPUの初期状態が選択した機能で安定している
ので、応用分野が広がる。
In the above embodiment, since the initial state of the port function of the CPU is determined by the data for each product, the manufacturing process can be reduced and the production period can be shortened. In addition, since the port function of the CPU can be changed by changing the data in the memory, the degree of freedom is increased and it can be used for general purposes. Secondly, since the initial state of the CPU is stable with the selected function, the application field is expanded.

【0029】第3に、上記実施例はクロック信号とは無
関係に、CPUのポート機能の設定を行うので、機能の
設定終了までの(リセット時間+命令実行時間)の非選
択状態を無くすことができる。
Thirdly, in the above embodiment, since the CPU port function is set regardless of the clock signal, it is possible to eliminate the non-selected state of (reset time + instruction execution time) until the setting of the function is completed. it can.

【0030】[0030]

【発明の効果】この発明によれば、ポート機能及び出力
信号を電源投入後、即座に設定できる。
According to the present invention, the port function and the output signal can be set immediately after the power is turned on.

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

【図1】この発明の実施例に係るCPUの構成を示す
図。
FIG. 1 is a diagram showing a configuration of a CPU according to an embodiment of the present invention.

【図2】図1に示すCPUのポート機能の設定動作に係
るタイミングチャート。
FIG. 2 is a timing chart relating to a port function setting operation of the CPU shown in FIG.

【図3】図1に示すROMセルの具体的な構成を示す
図。
3 is a diagram showing a specific configuration of the ROM cell shown in FIG.

【図4】従来のCPUのポート機能の設定動作に係るタ
イミングチャート。
FIG. 4 is a timing chart relating to a port function setting operation of a conventional CPU.

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

55a〜55d…ROMセル、51〜54…読み出し信
号、61、63…Pチャネル型MOSFET、62、6
4、65…Nチャネル型MOSFET。
55a to 55d ... ROM cells, 51 to 54 ... Read signals, 61, 63 ... P-channel MOSFETs, 62, 6
4, 65 ... N-channel MOSFET.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 電源投入に応答して機能設定用データを
出力する読み出し専用メモリと、 電流路の一端に電源電圧が供給され、ゲート電極に前記
読み出し専用メモリからの機能設定用データが供給さ
れ、電流路の他端が入出力回路の入力端子に接続されて
いるプルアップ用トランジスタと、 電流路の一端が前記プルアップ用トランジスタの電流路
の他端及び前記入力端子に接続され、ゲート電極に前記
読み出し専用メモリからの機能設定用データが供給さ
れ、電流路の他端が接地されているプルダウン用トラン
ジスタを具備し、電源投入後即座にその機能が設定され
ることを特徴とする機能設定回路。
1. A read-only memory that outputs function setting data in response to power-on, a power supply voltage is supplied to one end of a current path, and a function setting data from the read-only memory is supplied to a gate electrode. A pull-up transistor in which the other end of the current path is connected to the input terminal of the input / output circuit, and one end of the current path is connected to the other end of the current path of the pull-up transistor and the input terminal, and a gate electrode Is provided with a function setting data from the read-only memory and the other end of the current path is grounded, and the function is set immediately after the power is turned on. circuit.
【請求項2】 電源投入に応答して機能設定用データを
出力する読み出し専用メモリと、 前記読み出し専用メモリからの前記機能設定用データと
CPUからのポートデータをリセット信号に応答して、
切り替えて出力する選択回路と、 電流路の一端に電源電圧が供給され、ゲート電極に前記
選択回路の出力信号が供給される第1のトランジスタ
と、 電流路の一端に前記第1のトランジスタの電流路の他端
が接続され、ゲート電極に前記読み出し専用メモリから
の機能設定用データが供給され、電流路の他端が出力端
子に接続されている第2のトランジスタと、 電流路の一端が前記出力端子に接続され、ゲート電極に
前記選択回路の出力信号が供給され、電流路の他端が接
地されている第3のトランジスタとを具備し、 前記読み出し専用メモリからの機能設定用データに応じ
て出力回路の機能及び初期出力が設定されることを特徴
とする機能設定回路。
2. A read-only memory for outputting function setting data in response to power-on, and a function for resetting the function setting data from the read-only memory and the port data from the CPU,
A selection circuit for switching and outputting; a first transistor in which a power supply voltage is supplied to one end of a current path and an output signal of the selection circuit is supplied to a gate electrode; and a current of the first transistor in one end of a current path. The other end of the current path is connected, the gate electrode is supplied with the function setting data from the read-only memory, and the other end of the current path is connected to the output terminal. A third transistor which is connected to the output terminal, the output signal of the selection circuit is supplied to the gate electrode, and the other end of the current path is grounded, and which corresponds to the function setting data from the read-only memory. A function setting circuit in which the function of the output circuit and the initial output are set.
【請求項3】 前記第1と前記第3のMOSトランジス
タは反対導電型であり、前記機能設定データに応答して
前記第2のトランジスタがオンのとき、前記出力回路
は、CMOS型に設定され、前記第2のトランジスタが
オフのとき、前記出力回路は、オープンドレイン型に設
定されることを特徴とする請求項2記載の機能設定回
路。
3. The first and third MOS transistors have opposite conductivity types, and when the second transistor is turned on in response to the function setting data, the output circuit is set to CMOS type. 3. The function setting circuit according to claim 2, wherein the output circuit is set to an open drain type when the second transistor is off.
【請求項4】 前記第1乃至第3のMOSトランジスタ
は前記選択回路の出力及び前記読みだし専用メモリから
の機能設定データに応答して、前記出力端子からの初期
出力をローレベル、ハイレベル及びハイインピーダンス
の一つに設定することを特徴とする請求項2記載の機能
設定回路。
4. The first to third MOS transistors respond to the output of the selection circuit and the function setting data from the read-only memory to change the initial output from the output terminal to low level, high level and The function setting circuit according to claim 2, wherein the function setting circuit is set to one of high impedance.
JP4128966A 1992-05-21 1992-05-21 Function setting circuit Withdrawn JPH05324144A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4128966A JPH05324144A (en) 1992-05-21 1992-05-21 Function setting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4128966A JPH05324144A (en) 1992-05-21 1992-05-21 Function setting circuit

Publications (1)

Publication Number Publication Date
JPH05324144A true JPH05324144A (en) 1993-12-07

Family

ID=14997821

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4128966A Withdrawn JPH05324144A (en) 1992-05-21 1992-05-21 Function setting circuit

Country Status (1)

Country Link
JP (1) JPH05324144A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006285423A (en) * 2005-03-31 2006-10-19 Fujitsu Ltd Semiconductor integrated circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006285423A (en) * 2005-03-31 2006-10-19 Fujitsu Ltd Semiconductor integrated circuit

Similar Documents

Publication Publication Date Title
JP4459967B2 (en) Mode register
US4733371A (en) Semiconductor memory device with high voltage switch
US4616143A (en) High voltage bootstrapping buffer circuit
JPH05144273A (en) Semiconductor integrated circuit device
JP3169987B2 (en) Integrated circuit including input buffer circuit
JPH10199288A (en) Fuse option circuit for memory device
JP3630847B2 (en) Latch circuit
JPH05324144A (en) Function setting circuit
US6353560B1 (en) Semiconductor memory device
US5822259A (en) UPROM cell for low voltage supply
JP2005252060A (en) Semiconductor device
JPH04278291A (en) Memory cell circuit
JPS5846797B2 (en) semiconductor memory
JPH0555489A (en) Input circuit
JPH05335898A (en) Input buffer circuit
JP2634960B2 (en) memory
US6463558B1 (en) Semiconductor memory device
JPS5836438B2 (en) semiconductor storage device
JPH03248397A (en) Sense amplifier circuit
JPS6122496A (en) Semiconductor memory device
JPH07307660A (en) Output buffer circuit
JPH0440800B2 (en)
JPH04344392A (en) Semiconductor memory circuit
JPH08306198A (en) Semiconductor memory
JPH0322730B2 (en)

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: 19990803