JPH06338781A - Semiconductor device - Google Patents

Semiconductor device

Info

Publication number
JPH06338781A
JPH06338781A JP5128878A JP12887893A JPH06338781A JP H06338781 A JPH06338781 A JP H06338781A JP 5128878 A JP5128878 A JP 5128878A JP 12887893 A JP12887893 A JP 12887893A JP H06338781 A JPH06338781 A JP H06338781A
Authority
JP
Japan
Prior art keywords
terminal
circuit
output
control circuit
inverter
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
JP5128878A
Other languages
Japanese (ja)
Inventor
Masao Mio
雅夫 三尾
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP5128878A priority Critical patent/JPH06338781A/en
Publication of JPH06338781A publication Critical patent/JPH06338781A/en
Pending legal-status Critical Current

Links

Landscapes

  • Testing Or Measuring Of Semiconductors Or The Like (AREA)
  • Logic Circuits (AREA)
  • Stabilization Of Oscillater, Synchronisation, Frequency Synthesizers (AREA)

Abstract

PURPOSE:To effectively make respective terminal function by outputting data to the terminal on the other side when a clock generated at the outside is supplied to the terminal on one side. CONSTITUTION:The terminals 7, 8 are used as two terminals to which the data is outputted separately also as the two terminals to which an oscillation circuit 10 is connected. A first control circuit 9 outputs a signal to control the operations of an inverter 5 and buffers 3, 4. A second control circuit 12 and a decoder 13 which inputs the signals outputted from the first and second control circuits 9, 12 are provided, and the operation of the inverter 5 is controlled by the signal outputted from the first control circuit 9 and the signal outputted from the decoder 13. In other words, when both the signals outputted from the first and second control circuits 9, 12 are set at H levels, the signal generated at the outside is inputted to a functional block 11 by supplying to the terminal 7, and the terminal 8 functions as a port function to which the data is outputted.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、データが出力される端
子と、発振子回路が接続される端子とを兼用している端
子を設けている半導体装置に関し、例えば時計用クロッ
クとして使用される32kHz の発振子回路が接続される半
導体装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a semiconductor device provided with a terminal that also serves as a terminal to which data is output and a terminal to which an oscillator circuit is connected, and is used as a clock for a clock, for example. The present invention relates to a semiconductor device to which a 32 kHz oscillator circuit is connected.

【0002】[0002]

【従来の技術】図5はこの種の従来の半導体装置の構成
を示すブロック図である。データレジスタ1(2)はバ
ッファ3(4)を介して端子7(8)と接続されてい
る。端子7と端子8との間にはセラミック発振子、抵
抗、コンデンサからなるセラミック発振子回路10が接続
されており、また入力側を端子8と接続しており、発振
子回路10を駆動するインバータ5が介装されている。端
子7はNAND回路6の一側入力端子と接続されている。制
御回路9はバッファ3及び4の制御端子とNAND回路6の
他側入力端子と、インバータIVの入力側とに接続されて
いる。インバータIVの出力側はインバータ5の制御端子
と接続されている。NAND回路6の出力端子は、タイマ及
びCPU からなる機能ブロック11と接続されている。
2. Description of the Related Art FIG. 5 is a block diagram showing the structure of a conventional semiconductor device of this type. The data register 1 (2) is connected to the terminal 7 (8) via the buffer 3 (4). A ceramic oscillator circuit 10 including a ceramic oscillator, a resistor, and a capacitor is connected between the terminals 7 and 8, and an input side is connected to the terminal 8 to drive the oscillator circuit 10. 5 is installed. The terminal 7 is connected to one input terminal of the NAND circuit 6. The control circuit 9 is connected to the control terminals of the buffers 3 and 4, the other side input terminal of the NAND circuit 6, and the input side of the inverter IV. The output side of the inverter IV is connected to the control terminal of the inverter 5. The output terminal of the NAND circuit 6 is connected to the functional block 11 including a timer and a CPU.

【0003】次にこの半導体装置の動作を説明する。制
御回路9が出力する信号がLレベルの場合、NAND回路6
の他側入力端子がLレベルになる。またインバータ11の
出力側がHレベルとなり、インバータ5の出力はフロー
ティング状態となって、NAND回路6から端子7の電圧が
機能ブロック11へ入力されない。一方、バッファ3,4
がともに動作状態になり、データレジスタ1,2夫々の
データが端子7,8へ各別に出力される。
Next, the operation of this semiconductor device will be described. When the signal output from the control circuit 9 is at L level, the NAND circuit 6
The other side input terminal becomes L level. Further, the output side of the inverter 11 becomes H level, the output of the inverter 5 becomes a floating state, and the voltage of the terminal 7 is not input from the NAND circuit 6 to the functional block 11. On the other hand, buffers 3 and 4
Become the operating state, and the data of the data registers 1 and 2 are output to the terminals 7 and 8 respectively.

【0004】次に制御回路9が出力する信号がHレベル
の場合、バッファ3,4の出力はフローティング状態と
なる。一方、インバータ11の出力側がLレベルになっ
て、インバータ5が動作状態になり、端子7,8に接続
されている発振子回路10が発振動作をする。このときNA
ND回路6から端子7の発振クロックが機能ブロック11へ
入力される。機能ブロック11に入力された発振クロック
はCPU の駆動に、またタイマのカウントソースとして使
用される。
Next, when the signal output from the control circuit 9 is at H level, the outputs of the buffers 3 and 4 are in a floating state. On the other hand, the output side of the inverter 11 becomes the L level, the inverter 5 becomes the operating state, and the oscillator circuit 10 connected to the terminals 7 and 8 oscillates. NA at this time
The oscillation clock of the terminal 7 is input from the ND circuit 6 to the functional block 11. The oscillation clock input to the function block 11 is used to drive the CPU and as the count source for the timer.

【0005】[0005]

【発明が解決しようとする課題】このように構成されて
いる半導体装置は、発振子回路を接続せずに、外部で発
生させたクロックを一方の端子に与えて、機能ブロック
を動作させるような使用方法にする場合、その端子をタ
イマのカウントソース入力端子として機能させることが
でき端子の用途が広がる。しかしそのような使用方法に
よる場合は、発振子回路を駆動するインバータの出力側
と接続されている他方の端子は使用されていない状態に
なり、端子がより有効に機能していないという問題があ
る。本発明は斯かる問題に鑑み、外部で発生させたクロ
ックを一方の端子に与える場合に他方の端子にデータを
出力させて、夫々の端子が有効に機能するようにした半
導体装置を提供することを目的とする。
In the semiconductor device having such a structure, a clock generated externally is applied to one terminal without operating the oscillator circuit to operate the functional block. When used, the terminal can be made to function as the count source input terminal of the timer, and the usage of the terminal is expanded. However, when using such a method, there is a problem that the other terminal connected to the output side of the inverter that drives the oscillator circuit is in an unused state, and the terminal does not function more effectively. . In view of such a problem, the present invention provides a semiconductor device in which, when an externally generated clock is applied to one terminal, data is output to the other terminal so that each terminal effectively functions. With the goal.

【0006】[0006]

【課題を解決するための手段】本発明に係る半導体装置
は、信号を出力する第2制御回路と、第1制御回路及び
第2制御回路が出力する各信号を入力すべきデコーダと
を備えて、第1制御回路が出力する信号及びデコーダが
出力する信号によりバッファ及び発振子回路を駆動する
インバータの動作を制御するようにし、一方の端子に外
部で発生させたクロックを与える場合、他方の端子にデ
ータが出力される構成にする。
A semiconductor device according to the present invention comprises a second control circuit for outputting a signal, and a decoder for inputting each signal output by the first control circuit and the second control circuit. , The operation of the inverter driving the buffer and the oscillator circuit is controlled by the signal output by the first control circuit and the signal output by the decoder, and when the clock generated externally is applied to one terminal, the other terminal The data is output to.

【0007】[0007]

【作用】第1制御回路の出力信号がLレベルであると、
第2制御回路の出力信号に関係なくバッファが動作状態
に、インバータの出力がフローティング状態になり2つ
の端子に各別にデータを出力する。第1制御回路の出力
信号がHレベルであり、第2制御回路の出力信号がLレ
ベルであると、バッファの出力がフローティング状態
に、インバータが動作状態になり、発振子回路が発振動
作して一方の端子に発振クロックを与える。第1制御回
路及び第2制御回路の出力信号がともにHレベルである
と、一方のバッファの出力がフローティング状態に、他
方のバッファが動作状態になる。またインバータの出力
がフローティング状態になる。そして一方の端子に外部
で発生させたクロックを与える場合、他方の端子にデー
タを出力する。これにより、一方の端子に、外部で発生
させたクロックを与える場合は、他方の端子にデータが
出力され、他方の端子はポート機能として働く。
When the output signal of the first control circuit is L level,
The buffer is in the operating state and the output of the inverter is in the floating state regardless of the output signal of the second control circuit, and the data is separately output to the two terminals. When the output signal of the first control circuit is at the H level and the output signal of the second control circuit is at the L level, the output of the buffer is in the floating state, the inverter is in the operating state, and the oscillator circuit oscillates. Apply the oscillation clock to one terminal. When the output signals of the first control circuit and the second control circuit are both at H level, the output of one buffer is in a floating state and the other buffer is in an operating state. Also, the output of the inverter becomes floating. When an externally generated clock is applied to one terminal, the data is output to the other terminal. As a result, when an externally generated clock is applied to one terminal, data is output to the other terminal and the other terminal functions as a port.

【0008】[0008]

【実施例】以下本発明をその実施例を示す図面により詳
述する。図1は本発明に係る半導体装置の構成を示すブ
ロック図である。データレジスタ1はバッファ3の入力
側と接続され、その出力側は端子7と、NAND回路6の一
側入力端子と、後述する発振子回路を駆動するインバー
タ5の入力側とに接続されている。データレジスタ2は
バッファ4の入力側と接続され、その出力側は端子8と
インバータ5の出力側とに接続されている。端子7と端
子8との間にはセラミック発振子、抵抗、コンデンサか
らなる発振子回路10が接続されている。
The present invention will be described in detail below with reference to the drawings showing the embodiments thereof. FIG. 1 is a block diagram showing the configuration of a semiconductor device according to the present invention. The data register 1 is connected to the input side of the buffer 3, and its output side is connected to the terminal 7, one side input terminal of the NAND circuit 6 and the input side of the inverter 5 which drives the oscillator circuit described later. . The data register 2 is connected to the input side of the buffer 4, and its output side is connected to the terminal 8 and the output side of the inverter 5. An oscillator circuit 10 including a ceramic oscillator, a resistor, and a capacitor is connected between the terminals 7 and 8.

【0009】第1制御回路9はバッファ3の制御端子
と、AND 回路13a の一側入力端子と、NAND回路6の他側
入力端子とに接続されている。第2制御回路12はインバ
ータ13c の入力側と接続され、その出力側はAND 回路13
a の他側入力端子と接続されている。AND 回路13a の出
力端子は、バッファ4の制御端子と、インバータ13b の
入力側とに接続されている。インバータ13b の出力側
は、インバータ5の制御端子と接続されている。NAND回
路6の出力端子は、タイマ、CPU からなる機能ブロック
11と接続されている。なお、AND 回路13a 、インバータ
13b,13c により、第1制御回路9及び第2制御回路12が
出力する信号をデコードするデコード回路13を構成して
いる。
The first control circuit 9 is connected to the control terminal of the buffer 3, one side input terminal of the AND circuit 13a, and the other side input terminal of the NAND circuit 6. The second control circuit 12 is connected to the input side of the inverter 13c, and its output side is connected to the AND circuit 13
Connected to the other input terminal of a. The output terminal of the AND circuit 13a is connected to the control terminal of the buffer 4 and the input side of the inverter 13b. The output side of the inverter 13b is connected to the control terminal of the inverter 5. The output terminal of NAND circuit 6 is a functional block consisting of a timer and a CPU.
Connected with 11. In addition, AND circuit 13a, inverter
13b and 13c constitute a decoding circuit 13 that decodes the signals output from the first control circuit 9 and the second control circuit 12.

【0010】図2は、端子7,8間に発振子回路を接続
せずに外部で発生させたクロックを端子7に入力して機
能ブロックのカウントソースに用いている状態を示すブ
ロック図であり、図1における半導体装置から発振子回
路を除いた他の構成と同様となっており、同一構成部分
には同一符号を付している。
FIG. 2 is a block diagram showing a state in which an externally generated clock is input to the terminal 7 and is used as a count source of a functional block without connecting an oscillator circuit between the terminals 7 and 8. The configuration is the same as that of the semiconductor device shown in FIG. 1 except for the oscillator circuit, and the same components are designated by the same reference numerals.

【0011】次に半導体装置の動作を図1により説明す
る。いま、制御回路9が出力する信号がLレベルである
場合、制御回路12が出力する信号に関係なくAND 回路13
a の出力側はLレベルになり、バッファ3,4はともに
動作状態になる。このときインバータ13b の出力側はH
レベルになり、インバータ5の出力はフローティング状
態になる。また、NAND回路6の他側入力端子がLレベル
であるため、NAND回路6から端子7の電圧が機能ブロッ
ク11へ入力されない状態となる。そして端子7,8には
データレジスタ1,2のデータが各別に出力され、端子
7,8はポート機能として働く。
Next, the operation of the semiconductor device will be described with reference to FIG. Now, when the signal output by the control circuit 9 is at the L level, the AND circuit 13 regardless of the signal output by the control circuit 12.
The output side of a becomes L level, and the buffers 3 and 4 are both in operation. At this time, the output side of the inverter 13b is H
The output level of the inverter 5 becomes a floating state. Since the other input terminal of the NAND circuit 6 is at the L level, the voltage of the terminal 7 is not input from the NAND circuit 6 to the functional block 11. Then, the data of the data registers 1 and 2 are separately output to the terminals 7 and 8, and the terminals 7 and 8 serve as a port function.

【0012】次に制御回路9が出力する信号がHレベル
であり、制御回路12が出力する信号がLレベルである
と、AND 回路13a の出力側がHレベルになり、バッファ
3,4の出力はともにフローティング状態となり、一
方、インバータ13b の出力側がLレベルであるためイン
バータ5は動作状態となる。このときNAND回路6の他側
入力端子はHレベルであるため発振子回路10を接続して
いるとインバータ5により発振子回路10が駆動されて発
振子回路10が発振する。そして、この発振クロックはNA
ND回路6から機能ブロック11へ入力され、CPU の駆動
に、またタイマのカウントソースとして使用される。
Next, when the signal output from the control circuit 9 is at the H level and the signal output from the control circuit 12 is at the L level, the output side of the AND circuit 13a becomes the H level, and the outputs of the buffers 3 and 4 become Both are in a floating state, while the output side of the inverter 13b is at the L level, so that the inverter 5 is in an operating state. At this time, since the other input terminal of the NAND circuit 6 is at the H level, if the oscillator circuit 10 is connected, the oscillator circuit 10 is driven by the inverter 5 and the oscillator circuit 10 oscillates. And this oscillation clock is NA
It is input from the ND circuit 6 to the functional block 11 and used for driving the CPU and as a count source for the timer.

【0013】次に第1制御回路9 が出力する信号がHレ
ベルであり、第2制御回路12が出力する信号がHレベ
ルであると、バッファ3の出力がフローティング状態と
なる。一方バッファ4はAND 回路13a の出力側がLレベ
ルであるため動作状態となりデータレジスタ2のデータ
を端子8へ出力する。また、インバータ5の出力はイン
バータ13b の出力側がHレベルのためフローティング状
態となる。このときNAND回路6の他側入力端子がHレベ
ルであるため、NAND回路6から端子7の電圧が機能ブロ
ック11へ入力される状態になる。そのため、図2に示す
ように端子7に外部で発生させたクロックを与えると機
能ブロック11へ入力され、CPU の駆動に、またタイマの
カウントソースとして使用される。そのため端子8はデ
ータが出力されるポート機能として働く。
Next, when the signal output from the first control circuit 9 is at H level and the signal output from the second control circuit 12 is at H level, the output of the buffer 3 is in a floating state. On the other hand, the buffer 4 is in the operating state because the output side of the AND circuit 13a is at the L level and outputs the data of the data register 2 to the terminal 8. The output of the inverter 5 is in a floating state because the output side of the inverter 13b is at H level. At this time, since the other input terminal of the NAND circuit 6 is at the H level, the voltage of the terminal 7 is input from the NAND circuit 6 to the functional block 11. Therefore, as shown in FIG. 2, when an externally generated clock is applied to the terminal 7, it is input to the functional block 11 and used for driving the CPU and as a count source for the timer. Therefore, the terminal 8 works as a port function for outputting data.

【0014】図3は本発明に係る半導体装置の他の実施
例の構成を示すブロック図である。端子7と8との間
に、シュミット回路14及びスイッチ回路15の直列回路が
介装されており、また抵抗とコンデンサとからなるRC発
振子回路16が接続されている。スイッチ回路15はインバ
ータ13b が出力する信号がLレベルのときにオンするよ
うになっている。それ以外の構成は図1に示す構成と同
様であり、同一構成部分には同一符号を付している。
FIG. 3 is a block diagram showing the configuration of another embodiment of the semiconductor device according to the present invention. A series circuit of a Schmitt circuit 14 and a switch circuit 15 is interposed between the terminals 7 and 8, and an RC oscillator circuit 16 including a resistor and a capacitor is connected. The switch circuit 15 is turned on when the signal output from the inverter 13b is L level. The other configurations are similar to those shown in FIG. 1, and the same components are designated by the same reference numerals.

【0015】次にこの半導体装置の動作を説明する。第
1制御回路9が出力する信号がLレベルの場合は、第2
制御回路12が出力する信号に関係なくバッファ3,4は
ともに動作状態になる。このときスイッチ回路15はオフ
していて、またNAND回路6の他側入力端子はLレベルで
あるため、NAND回路6から端子7の電圧が機能ブロック
11へ入力されない状態になる。このとき端子7,8には
データレジスタ1,2のデータが出力され、端子7,8
はポート機能として働く。
Next, the operation of this semiconductor device will be described. When the signal output from the first control circuit 9 is at L level, the second
The buffers 3 and 4 are both in operation regardless of the signal output from the control circuit 12. At this time, the switch circuit 15 is off and the other input terminal of the NAND circuit 6 is at the L level, so that the voltage from the NAND circuit 6 to the terminal 7 is a functional block.
11 is not entered. At this time, the data of the data registers 1 and 2 are output to the terminals 7 and 8, and
Acts as a port function.

【0016】次に第1制御回路9が出力する信号がHレ
ベルであり、第2制御回路12が出力する信号がLレベル
であると、バッファ3,4の出力はともにフローティン
グ状態となり、スイッチ回路15はオンする。このときRC
発振子回路16を接続していると、シュミット回路14及び
RC発振子回路16により駆動されて発振動作する。このと
き、NAND回路6の他側入力端子がHレベルであるため、
発振クロックがNAND回路6から機能ブロック11へ入力さ
れ、発振クロックはCPU の駆動に、またタイマのカウン
トソースに使用される。
Next, when the signal output from the first control circuit 9 is at the H level and the signal output from the second control circuit 12 is at the L level, the outputs of the buffers 3 and 4 are both in the floating state and the switch circuit. 15 turns on. RC at this time
When the oscillator circuit 16 is connected, the Schmitt circuit 14 and
It is driven by the RC oscillator circuit 16 and oscillates. At this time, since the other input terminal of the NAND circuit 6 is at the H level,
The oscillation clock is input from the NAND circuit 6 to the functional block 11, and the oscillation clock is used to drive the CPU and count source of the timer.

【0017】次に第1制御回路9が出力する信号がHレ
ベルであり、第2制御回路12が出力する信号がHレベル
であると、バッファ3の出力はフローティング状態とな
り、一方、バッファ4は動作状態となり、データレジス
タ2のデータが端子8へ出力される。また、スイッチ回
路15がオフする。このときNAND回路6の他側入力端子が
Hレベルであるため、端子7に外部で発生させたクロッ
クが与えられるとNAND回路6から機能ブロック11へ入力
され、CPU の駆動に、タイマのカウントソースとして使
用される。
Next, when the signal output from the first control circuit 9 is at H level and the signal output from the second control circuit 12 is at H level, the output of the buffer 3 is in a floating state, while the buffer 4 is The operation state is entered, and the data of the data register 2 is output to the terminal 8. Further, the switch circuit 15 is turned off. At this time, since the other input terminal of the NAND circuit 6 is at the H level, when an externally generated clock is applied to the terminal 7, it is input from the NAND circuit 6 to the functional block 11 to drive the CPU and count source of the timer. Used as.

【0018】図4は本発明に係る半導体装置の更に他の
実施例の構成を示すブロック図である。端子7と8との
間に、インバータ17,18,19の直列回路を介装させてお
り、またインダクタンス及びコンデンサからなるLC発振
子回路20が接続されている。それ以外の構成は図1に示
した半導体装置の構成と同様となっており、同一構成部
分には同一符号を付している。
FIG. 4 is a block diagram showing the configuration of still another embodiment of the semiconductor device according to the present invention. Between the terminals 7 and 8, a series circuit of inverters 17, 18, and 19 is interposed, and an LC oscillator circuit 20 including an inductance and a capacitor is connected. The other configuration is the same as that of the semiconductor device shown in FIG. 1, and the same components are designated by the same reference numerals.

【0019】次にこの半導体装置の動作を説明する。い
ま第1制御回路9が出力する信号がLレベルの場合は、
第2制御回路12の出力に関係なくバッファ3,4がとも
に動作状態となる。このときインバータ19の出力はフロ
ーティング状態になり、NAND回路6の他側入力端子はL
レベルであるためNAND回路6から端子7の電圧が機能ブ
ロック11へ入力されない状態になる。このとき端子7,
8にはデータレジスタ1,2のデータが各別に出力さ
れ、端子7,8はポート機能として働く。
Next, the operation of this semiconductor device will be described. If the signal output from the first control circuit 9 is at the L level,
The buffers 3 and 4 are both in operation regardless of the output of the second control circuit 12. At this time, the output of the inverter 19 is in a floating state, and the other input terminal of the NAND circuit 6 is L
Since it is at the level, the voltage of the terminal 7 is not input from the NAND circuit 6 to the functional block 11. At this time, terminal 7,
The data of the data registers 1 and 2 are separately output to 8, and the terminals 7 and 8 function as port functions.

【0020】次に第1制御回路9が出力する信号がHレ
ベルであり、第2制御回路12が出力する信号がLレベル
であると、バッファ3,4の出力はともにフローティン
グ状態となり、一方、インバータ19は動作状態となる。
このときLC発振子回路20を接続しているとインバータ1
7,18,19が動作してLC発振子回路20が駆動されて発振動
作する。そして、この発振クロックがNAND回路6から機
能ブロック11へ入力され、CPU の駆動に、タイマのカウ
ントソースに使用される。
Next, when the signal output from the first control circuit 9 is at H level and the signal output from the second control circuit 12 is at L level, the outputs of the buffers 3 and 4 are both in a floating state, while The inverter 19 is in the operating state.
At this time, if the LC oscillator circuit 20 is connected, the inverter 1
7, 18 and 19 operate to drive the LC oscillator circuit 20 to oscillate. Then, this oscillation clock is input from the NAND circuit 6 to the functional block 11 and used for driving the CPU and as the count source of the timer.

【0021】次に第1制御回路9が出力する信号がHレ
ベルであり、第2制御回路12が出力する信号がHレベル
であると、バッファ3の出力はフローティング状態にな
るが、バッファ4は動作状態になりデータレジスタ2の
データが端子8へ出力される。一方、インバータ19の出
力はフローティング状態となる。このときNAND回路6の
他側入力端子がHレベルであるため端子7に外部で発生
させたクロックが与えられるとNAND回路6から機能ブロ
ック11へ入力され、CPU の駆動に、タイマのカウントソ
ースに使用される。したがって端子8はポート機能とし
て働く。なお、端子7,8間にインバータ17,18,19の直
列回路を介装させたことにより、インバータ夫々のしき
い値電圧の相異を利用して発振させ易くすることができ
る。
Next, when the signal output from the first control circuit 9 is at the H level and the signal output from the second control circuit 12 is at the H level, the output of the buffer 3 is in a floating state, but the buffer 4 is The operation state is entered and the data of the data register 2 is output to the terminal 8. On the other hand, the output of the inverter 19 is in a floating state. At this time, since the other side input terminal of the NAND circuit 6 is at the H level, when an externally generated clock is given to the terminal 7, the NAND circuit 6 inputs the clock to the functional block 11 to drive the CPU and the count source of the timer. used. Therefore, the terminal 8 functions as a port function. By interposing the series circuit of the inverters 17, 18 and 19 between the terminals 7 and 8, it is possible to facilitate oscillation by utilizing the difference in the threshold voltage of each inverter.

【0022】[0022]

【発明の効果】以上詳述したように本発明の半導体装置
によれば、外部で発生させたクロックを一方の端子に与
えて機能ブロックに入力する場合、他方の端子をデータ
が出力されるポート機能として働かせることができる。
そのためデータが出力される端子と、発振子回路が接続
される端子とを兼用する端子の機能をより有効に割当て
ることができる優れた効果を奏する。
As described above in detail, according to the semiconductor device of the present invention, when the clock generated externally is applied to one terminal and input to the functional block, the other terminal outputs data. It can work as a function.
Therefore, there is an excellent effect that the function of the terminal that also serves as the terminal to which the data is output and the terminal to which the oscillator circuit is connected can be more effectively assigned.

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

【図1】本発明に係る半導体装置の構成を示すブロック
図である。
FIG. 1 is a block diagram showing a configuration of a semiconductor device according to the present invention.

【図2】外部で発生させたクロックを入力する場合の状
態を示す半導体装置のブロック図である。
FIG. 2 is a block diagram of a semiconductor device showing a state in which a clock generated externally is input.

【図3】本発明に係る半導体装置の他の実施例の構成を
示すブロック図である。
FIG. 3 is a block diagram showing the configuration of another embodiment of the semiconductor device according to the present invention.

【図4】本発明に係る半導体装置の更に他の実施例の構
成を示すブロック図である。
FIG. 4 is a block diagram showing a configuration of still another embodiment of the semiconductor device according to the present invention.

【図5】従来の半導体装置の構成を示すブロック図であ
る。
FIG. 5 is a block diagram showing a configuration of a conventional semiconductor device.

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

1,2 データレジスタ 3,4 バッファ 5 インバータ 6 NAND回路 7,8 端子 9 第1制御回路 10 セラミック発振子回路 12 第2制御回路 1, 2 Data register 3, 4 Buffer 5 Inverter 6 NAND circuit 7, 8 terminal 9 First control circuit 10 Ceramic oscillator circuit 12 Second control circuit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 夫々のバッファから出力されるデータが
各別に出力される2つの端子と、発振子回路が接続され
る2つの端子とを兼用しており、前記2つの端子間に介
装され前記発振子回路を駆動するインバータと、前記バ
ッファ及び前記インバータの動作を制御する信号を出力
する第1制御回路とを備えている半導体装置において、
信号を出力する第2制御回路と、該第2制御回路及び前
記第1制御回路の各出力信号を入力すべきデコーダとを
備え、第1制御回路の出力信号及びデコーダの出力信号
により、バッファ及びインバータの動作を制御して、一
方の端子に外部で発生させたクロックを与える場合に、
他方の端子にデータが出力される構成にしてあることを
特徴とする半導体装置。
1. A dual terminal for outputting data output from each buffer and two terminals to which an oscillator circuit is connected are also used, and are interposed between the two terminals. A semiconductor device comprising: an inverter that drives the oscillator circuit; and a first control circuit that outputs a signal that controls the operation of the buffer and the inverter,
A second control circuit that outputs a signal; and a decoder to which each output signal of the second control circuit and the first control circuit is to be input, the buffer and the output signal of the first control circuit When controlling the operation of the inverter and giving an externally generated clock to one terminal,
A semiconductor device having a structure in which data is output to the other terminal.
【請求項2】 2つの端子間に、シュミット回路及びス
イッチ回路の直列回路を介装していることを特徴とする
請求項1記載の半導体装置。
2. The semiconductor device according to claim 1, wherein a series circuit of a Schmitt circuit and a switch circuit is interposed between the two terminals.
【請求項3】 2つの端子間に、奇数個のインバータの
直列回路を介装していることを特徴とする請求項1記載
の半導体装置。
3. A semiconductor device according to claim 1, wherein a series circuit of an odd number of inverters is interposed between the two terminals.
JP5128878A 1993-05-31 1993-05-31 Semiconductor device Pending JPH06338781A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5128878A JPH06338781A (en) 1993-05-31 1993-05-31 Semiconductor device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5128878A JPH06338781A (en) 1993-05-31 1993-05-31 Semiconductor device

Publications (1)

Publication Number Publication Date
JPH06338781A true JPH06338781A (en) 1994-12-06

Family

ID=14995593

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5128878A Pending JPH06338781A (en) 1993-05-31 1993-05-31 Semiconductor device

Country Status (1)

Country Link
JP (1) JPH06338781A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011071841A (en) * 2009-09-28 2011-04-07 Renesas Electronics Corp Semiconductor device, and method for controlling the same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011071841A (en) * 2009-09-28 2011-04-07 Renesas Electronics Corp Semiconductor device, and method for controlling the same

Similar Documents

Publication Publication Date Title
JPH0562705B2 (en)
US5479644A (en) Microcomputer having an oscillator part with variable driving ability
JPH0816276A (en) Microcomputer
JPH06338781A (en) Semiconductor device
JP2578817B2 (en) Microprocessor
JPH0916545A (en) Microcomputer
JP3668188B2 (en) Flip-flop circuit
JP2695547B2 (en) Return input circuit
JPH06232703A (en) Oscillator
JPH11284437A (en) Oscillator circuit
JPH04267607A (en) Drive circuit for oscillation
JP2002232269A (en) Clock generation circuit
JP2003108259A (en) Clock noise eliminating circuit
JPH0722245B2 (en) Oscillator circuit
JP2002232268A (en) Clock generation circuit
JPH0254617A (en) Input/output buffer circuit
JPH06202755A (en) Semiconductor integrated circuit
JPH0426221A (en) Oscillation circuit
JPH09172324A (en) Semiconductor device
JPH05243979A (en) Oscillator circuit
JPH05333955A (en) Semiconductor integrated circuit
JPH01171241A (en) Semiconductor integrated circuit
JPS6155774A (en) 1 chip microcomputer
JP2003087054A (en) Oscillation circuit
JPH04361419A (en) Semiconductor integrated circuit