JPH06325186A - One-chip microcomputer and its manufacture - Google Patents

One-chip microcomputer and its manufacture

Info

Publication number
JPH06325186A
JPH06325186A JP5112944A JP11294493A JPH06325186A JP H06325186 A JPH06325186 A JP H06325186A JP 5112944 A JP5112944 A JP 5112944A JP 11294493 A JP11294493 A JP 11294493A JP H06325186 A JPH06325186 A JP H06325186A
Authority
JP
Japan
Prior art keywords
chip microcomputer
signal
logic level
output signal
outputs
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
JP5112944A
Other languages
Japanese (ja)
Inventor
Shinya Miyaji
信哉 宮地
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 JP5112944A priority Critical patent/JPH06325186A/en
Publication of JPH06325186A publication Critical patent/JPH06325186A/en
Pending legal-status Critical Current

Links

Landscapes

  • Microcomputers (AREA)

Abstract

PURPOSE:To provide a one-chip microcomputer which has a function for preventing malfunction right after resetting when connected to a peripheral controller and its manufacture. CONSTITUTION:This microcomputer has a central arithmetic unit 101 which initially sets parameters such as polarity information after resetting and outputs a setting end signal, an external output suppression signal generating device 105 which outputs an external output suppression signal after resetting and cancels the external output suppression signal once inputting the setting end signal, an output signal generating device 107 which outputs an internal output signal based upon the set parameters once inputting the parameters such as the polarity information, an initial value storage device 301 which outputs previously set initial value information to the output signal suppressing device 309, and the external output signal suppressing device 309 which outputs the initial value information as an external output signal while inputting the external output suppression signal, but outputs the internal output signal as the external output signal once the external output suppression signal is canceled.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、組み込み用途に用いら
れる1チップマイクロコンピュータの周辺制御装置との
接続に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to connection of a one-chip microcomputer used for embedded applications with a peripheral control device.

【0002】[0002]

【従来の技術】近年、1チップマイクロコンピュータ
は、様々な機器に組み込まれ、機器の制御に広く用いら
れている。通常、組み込まれた1チップマイクロコンピ
ュータは外部周辺装置を制御するための出力信号を発生
する装置を備えている。図7は、従来の1チップマイク
ロコンピュータの一例であり、上記の出力信号を発生す
る装置がPWM(Pulse Width Modulation)信号を発生
する場合について説明する。同図において破線内は、1
チップマイクロコンピュータを構成する、中央演算装置
701、リセット信号702、パラメータ703、出力
信号発生装置704、外部出力信号705である。内蔵
ROM、内蔵RAMその他は省略してある。
2. Description of the Related Art In recent years, a one-chip microcomputer has been incorporated into various devices and widely used for controlling the devices. Usually, the built-in one-chip microcomputer has a device for generating an output signal for controlling an external peripheral device. FIG. 7 is an example of a conventional one-chip microcomputer, and a case where the device that generates the output signal described above generates a PWM (Pulse Width Modulation) signal will be described. In the figure, the inside of the broken line is 1
A central processing unit 701, a reset signal 702, a parameter 703, an output signal generator 704, and an external output signal 705, which constitute a chip microcomputer. Built-in ROM, built-in RAM and others are omitted.

【0003】中央演算装置701は、入力されたリセッ
ト信号702が解除されると動作を開始し、出力信号発
生装置704に対して極性情報等のパラメータ703の
設定を行なう。リセット信号702は、1チップマイク
ロコンピュータをリセットする。パラメータ703は、
出力信号発生装置704が発生すべき出力信号を表すパ
ラメータである。
The central processing unit 701 starts its operation when the input reset signal 702 is released, and sets a parameter 703 such as polarity information in the output signal generator 704. The reset signal 702 resets the one-chip microcomputer. Parameter 703 is
It is a parameter representing the output signal to be generated by the output signal generator 704.

【0004】出力信号発生装置704は、中央演算装置
701よりパラメータ703が入力されると、そのパラ
メータに従った外部出力信号705を出力する。706
は、外部出力信号705によって制御される1チップマ
イクロコンピュータに接続された外部周辺装置である。
中央演算装置701は、リセット信号702が解除され
た後、出力信号発生装置704にパラメータ703(タ
イミング情報T1、T2、T3、及び極性情報)を設定
する。これを受けて出力信号発生装置704は、極性情
報が正論理の場合図8−1、負論理の場合図8−2に示
す様なパラメータ703に対応した波形を出力する。
When the parameter 703 is input from the central processing unit 701, the output signal generator 704 outputs an external output signal 705 according to the parameter. 706
Is an external peripheral device connected to a one-chip microcomputer controlled by an external output signal 705.
After the reset signal 702 is released, the central processing unit 701 sets the parameter 703 (timing information T1, T2, T3, and polarity information) in the output signal generator 704. In response to this, the output signal generator 704 outputs a waveform corresponding to the parameter 703 as shown in FIG. 8A when the polarity information is positive logic and as shown in FIG. 8B when the polarity information is negative logic.

【0005】このように出力信号発生装置704にパラ
メータを設定することにより設定後は外部周辺装置70
6の極性に合わせた任意の波形を出力することができ
る。
By setting the parameters in the output signal generator 704 in this way, the external peripheral device 70 is set after the parameters are set.
It is possible to output an arbitrary waveform according to the polarity of 6.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上記の
従来技術によれば、リセット直後パラメータ設定が終了
するまでの間は、外部出力信号の極性は出力信号発生装
置固有のものがそのまま出力されるので、外部周辺装置
706が誤動作する可能性があるという問題があった。
However, according to the above-mentioned prior art, the polarity of the external output signal is output as it is, which is peculiar to the output signal generator, until the parameter setting is completed immediately after reset. However, there is a problem that the external peripheral device 706 may malfunction.

【0007】具体的には、図9−1にリセット直後TR
の期間にHになる出力信号により正論理動作の外部周辺
装置が誤動作する信号の例を、図9−2にリセット直後
TRの期間にローレベル(以下、Lレベル)になる出力
信号により負論理動作の外部周辺機器が誤動作する信号
の例を示す。この図9において、リセット直後出力信号
発生装置の極性は、アクティブレベルになっているの
で、外部周辺装置が誤動作してしまうことになる。
Specifically, the TR immediately after the reset is shown in FIG.
9-2 shows an example of a signal in which an external peripheral device having a positive logic operation malfunctions due to an output signal which becomes H during the period of FIG. An example of a signal that causes an external peripheral device to operate incorrectly will be shown. In FIG. 9, the polarity of the output signal generator immediately after the reset is the active level, so that the external peripheral device malfunctions.

【0008】本発明は上記問題点に鑑み、リセット直後
の誤動作を防ぐ機能を有した1チップマイクロコンピュ
ータ及びその製造方法を提供することを目的とする。
In view of the above problems, it is an object of the present invention to provide a one-chip microcomputer having a function of preventing malfunction immediately after reset and a method for manufacturing the same.

【0009】[0009]

【課題を解決するための手段】上記課題を解決するため
本発明の1チップマイクロコンピュータは、チップ内の
CPUによって設定されるパラメータに基づいて外部周
辺装置を制御する制御信号を出力する1チップマイクロ
コンピュータであって、CPUにより設定されたパラメ
ータに従って制御信号を発生する信号発生装置と、制御
信号が外部に出力されるのを抑制する抑制手段と、1チ
ップマイクロコンピュータに対して外部からリセット信
号が入力された時点で、抑制手段の抑制動作を起動さ
せ、CPUによる信号発生手段へのパラメータ設定が終
了した時点で、抑制手段の抑制動作を停止させる抑制制
御手段とを備えている。
In order to solve the above problems, a one-chip microcomputer of the present invention outputs a control signal for controlling an external peripheral device based on a parameter set by a CPU in a chip. A computer, a signal generator that generates a control signal according to a parameter set by the CPU, a suppressing unit that suppresses the output of the control signal to the outside, and a reset signal from the outside to the 1-chip microcomputer. And a suppression control unit that starts the suppression operation of the suppression unit when input, and stops the suppression operation of the suppression unit when the parameter setting to the signal generation unit by the CPU is completed.

【0010】前記1チップマイクロコンピュータは更
に、抑制時に出力すべき所定の論理レベルを保持する保
持手段を備え、前記抑制手段は、抑制時に保持手段に保
持された論理レベルの信号を出力する構成であってもよ
い。また、本発明の1チップマイクロコンピュータの製
造方法は、前記保持手段を、内蔵ROMを構成する回路
素子を用いて内蔵ROMへのプログラム書き込みと同時
に前記論理レベルの書き込みが可能なように製造する。
The one-chip microcomputer further comprises holding means for holding a predetermined logic level to be output during suppression, and the suppression means outputs the logic level signal held in the holding means during suppression. It may be. Further, in the method for manufacturing a one-chip microcomputer of the present invention, the holding means is manufactured by using a circuit element forming the built-in ROM so that the logic level can be written at the same time when the program is written in the built-in ROM.

【0011】また、チップ内のCPUによって初期設定
される値に基づいて、外部周辺装置を制御する制御信号
を出力する1チップマイクロコンピュータの製造方法で
あって、前記1チップマイクロコンピュータは、チップ
内のCPUから設定された値に基づいて外部周辺装置を
制御する制御信号を出力する信号発生手段と、前記制御
信号の論理極性を反転させた信号とそのままの信号のう
ち、どちらかを選択して出力する極性整合手段を備え、
前記極性整合手段は、内蔵ROMを構成する回路素子を
用いて、内蔵ROMへのプログラム書き込みと同時に前
記信号のうちどちらを選択するかを書き込み可能なよう
に製造してもよい。
A method of manufacturing a one-chip microcomputer that outputs a control signal for controlling an external peripheral device based on a value initially set by a CPU in the chip, wherein the one-chip microcomputer is in the chip. The signal generating means for outputting a control signal for controlling the external peripheral device based on the value set by the CPU of the CPU, the signal obtained by inverting the logic polarity of the control signal, or the signal as it is, is selected. Equipped with output polarity matching means,
The polarity matching means may be manufactured by using a circuit element forming the built-in ROM so that which of the signals is selected can be written at the same time when the program is written in the built-in ROM.

【0012】前記内蔵ROMを構成する回路素子は、プ
ログラム可能読み取り専用記憶(PROM)の記憶セル
であってもよい。前記内蔵ROMを構成する回路素子
は、消去及びプログラム可能読み取り専用記憶(EPR
OM)の記憶セルであってもよい。
The circuit elements that make up the internal ROM may be programmable read-only memory (PROM) memory cells. The circuit elements constituting the internal ROM are erasable and programmable read-only memory (EPR).
OM) storage cell.

【0013】[0013]

【作用】上記の手段により、本発明の1チップマイクロ
コンピュータは、請求項1の発明によれば、外部からの
リセット信号が入力された後、CPUによる信号発生手
段へのパラメータ設定が完了するまで、抑制制御手段
は、抑制手段に対して信号発生手段の制御信号を抑制す
るように制御する。これにより、リセット後、パラメー
タ設定により信号発生手段の制御信号が正しい値になる
まで抑制手段は、外部出力を抑制するので、外部のプル
アップ又はプルダウン抵抗により外部周辺装置への制御
信号をインアクティブにすることとあいまって、リセッ
ト時の外部周辺装置の誤動作を防ぐことができる。
By the above means, the one-chip microcomputer of the present invention, according to the first aspect of the invention, until the parameter setting by the CPU is completed after the external reset signal is input. The suppression control means controls the suppression means to suppress the control signal of the signal generation means. As a result, after resetting, the suppressing means suppresses the external output until the control signal of the signal generating means becomes the correct value by the parameter setting, so that the control signal to the external peripheral device is inactivated by the external pull-up or pull-down resistor. In addition, the malfunction of the external peripheral device at the time of reset can be prevented.

【0014】加えて、請求項2の発明によれば、リセッ
ト直後、信号発生手段の制御信号が抑制されている間、
抑制手段は、保持手段に保持されたリセット直後に出力
すべき論理レベルを出力する。これにより、プルアップ
又はプルダウン抵抗を必要とせず、リセット時の外部周
辺装置の誤動作を防ぐことができる。本発明の1チップ
マイクロコンピュータの製造方法は、請求項3の発明に
よれば、前記保持手段は、内蔵ROMを構成する回路素
子を用いて内蔵ROMへの書き込みと同時に保持すべき
論理レベルの書き込みが可能なように製造される。
In addition, according to the invention of claim 2, immediately after resetting, while the control signal of the signal generating means is suppressed,
The suppressing unit outputs the logic level to be output immediately after the reset held by the holding unit. As a result, a pull-up or pull-down resistor is not required, and a malfunction of the external peripheral device at the time of reset can be prevented. According to the invention of claim 3, in the method for manufacturing a one-chip microcomputer of the present invention, the holding means uses a circuit element forming the built-in ROM to write to the built-in ROM and simultaneously write to a logic level to be held. Is manufactured to be possible.

【0015】請求項4の発明によれば、極性整合手段
は、信号発生手段から出力される制御信号の極性を外部
装置に合わせて出力する。この極性整合手段は、内蔵R
OMを構成する回路素子を用いて内蔵ROMへの書き込
みと同時に保持すべき論理レベルの書き込みが可能なよ
うに製造される。請求項5の発明によれば、上記内蔵R
OMを構成する回路素子はPROMの記憶セルであり、
請求項6の発明によれば、EPROMの記憶セルであ
る。
According to the invention of claim 4, the polarity matching means outputs the polarity of the control signal outputted from the signal generating means in accordance with the external device. This polarity matching means has a built-in R
It is manufactured so that the logic level to be held can be written simultaneously with the writing to the built-in ROM by using the circuit element that constitutes the OM. According to the invention of claim 5, the built-in R
The circuit element forming the OM is a PROM memory cell,
According to the invention of claim 6, it is a memory cell of an EPROM.

【0016】上記の製造方法により、内蔵ROMの書き
込みと同時に外部装置の制御信号の論理レベルを設定で
きるので、リセット直後パラメータ設定が完了するまで
の間、どのような論理極性の外部装置に対してもインア
クティブな信号を出力することができる。
According to the above-described manufacturing method, since the logic level of the control signal of the external device can be set at the same time when the built-in ROM is written, the external device having any logical polarity can be set immediately after reset until the parameter setting is completed. Can also output an inactive signal.

【0017】[0017]

【実施例】【Example】

(実施例1)図1は本発明の第1の実施例における1チ
ップマイクロコンピュータのブロック図である。内蔵R
OM、内蔵RAMその他は省略してある。同図におい
て、101は中央演算装置であり、外部から入力される
リセット信号102が解除されると動作を開始し、出力
パラメータ(T1、T2、T3、及び極性情報)103
を設定した後設定終了信号104を出力する。
(Embodiment 1) FIG. 1 is a block diagram of a one-chip microcomputer in the first embodiment of the present invention. Built-in R
The OM, built-in RAM and others are omitted. In the figure, 101 is a central processing unit, which starts operation when a reset signal 102 input from the outside is released, and outputs parameters (T1, T2, T3, and polarity information) 103.
After setting, the setting end signal 104 is output.

【0018】105は外部出力抑制信号発生装置であ
り、外部から入力されるリセット信号102が解除され
ると外部出力抑制信号106を出力し、中央演算装置1
01から設定終了信号104が入力されると外部出力抑
制信号106を取り消す。107は出力信号発生装置で
あり、出力パラメータ103が入力されないと常にLレ
ベルを出力し、出力パラメータ103が入力されるとそ
のパラメータに従った内部出力信号108を出力する。
Reference numeral 105 denotes an external output suppression signal generator, which outputs an external output suppression signal 106 when the reset signal 102 input from the outside is released, and the central processing unit 1
When the setting end signal 104 is input from 01, the external output suppression signal 106 is canceled. An output signal generator 107 always outputs an L level when the output parameter 103 is not input, and outputs an internal output signal 108 according to the parameter when the output parameter 103 is input.

【0019】109は外部出力信号抑制装置であり、外
部出力抑制信号106が入力されると外部出力信号11
0の出力を抑制し、外部出力抑制信号106が取り消さ
れると内部出力信号108を外部出力信号110として
出力する。111はプルアップ抵抗であり、外部出力信
号110が出力されない時に信号をインアクティブのハ
イレベル(以下、Hレベル)にする。
Reference numeral 109 denotes an external output signal suppression device, which receives the external output suppression signal 106 and outputs the external output signal 11
The output of 0 is suppressed, and when the external output suppression signal 106 is canceled, the internal output signal 108 is output as the external output signal 110. Reference numeral 111 is a pull-up resistor, which makes the signal inactive high level (hereinafter, H level) when the external output signal 110 is not output.

【0020】112は外部周辺装置であり、負論理で動
作する。上記のように構成された1チップマイクロコン
ピュータの信号生成の詳細を図2のタイミングチャート
を使用して説明する。リセット時、出力信号発生装置1
07は内部出力信号108をLレベルにして出力する
(図2−1)。ところがリセット時には外部出力抑制信
号発生装置105より外部出力抑制信号106が出力さ
れているので、外部出力信号抑制装置109は外部出力
信号110を出力せず、プルアップ抵抗111のため外
部出力信号110はHレベルとなる(図2−2)。
An external peripheral device 112 operates in negative logic. Details of signal generation of the 1-chip microcomputer configured as described above will be described with reference to the timing chart of FIG. At reset, output signal generator 1
07 sets the internal output signal 108 to the L level and outputs it (FIG. 2-1). However, since the external output suppression signal 106 is output from the external output suppression signal generator 105 at the time of reset, the external output signal suppression device 109 does not output the external output signal 110, and the external output signal 110 is not output due to the pull-up resistor 111. It becomes H level (Fig. 2-2).

【0021】リセット後、中央演算装置101が出力パ
ラメータ103を設定することによって、出力信号発生
装置107は所定の内部出力信号108を出力する(図
2−3)。この後、中央演算装置101が設定終了信号
104を外部出力抑制信号発生装置105に出力する
(図2のTcタイミング)ことにより、外部出力抑制信
号106が取り消され、外部出力信号抑制装置109は
内部出力信号108を外部出力信号110として出力す
る(図2−4)ことにより外部周辺装置112は正常な
動作を行なう。
After resetting, the central processing unit 101 sets the output parameter 103, whereby the output signal generator 107 outputs a predetermined internal output signal 108 (FIG. 2-3). After that, the central processing unit 101 outputs the setting end signal 104 to the external output suppression signal generation device 105 (Tc timing in FIG. 2), so that the external output suppression signal 106 is canceled and the external output signal suppression device 109 internally operates. By outputting the output signal 108 as the external output signal 110 (FIG. 2-4), the external peripheral device 112 operates normally.

【0022】この様に、本実施例における1チップマイ
クロコンピュータにおいては、リセット後、パラメータ
設定により出力信号が正しい出力信号になるまで出力を
抑制する装置を付加し、抑制時には外部に用意した信号
を有効にさせることにより既存の1チップマイクロコン
ピュータと既存の外部周辺装置を極性によるリセット直
後の外部周辺装置の誤動作の問題を防ぎつつ簡単に接続
することができる。
As described above, in the one-chip microcomputer according to the present embodiment, after reset, a device for suppressing the output is added until the output signal becomes the correct output signal by the parameter setting. When enabled, the existing 1-chip microcomputer and the existing external peripheral device can be easily connected while preventing the problem of malfunction of the external peripheral device immediately after resetting due to the polarity.

【0023】(実施例2)図3は本発明の第2の実施例
における1チップマイクロコンピュータを示すブロック
図である。同図において、図1と同じ符号を付したもの
は第1の実施例と同じであるので説明を省略する。
(Embodiment 2) FIG. 3 is a block diagram showing a one-chip microcomputer in the second embodiment of the present invention. In the same figure, those given the same reference numerals as those in FIG.

【0024】301は初期値格納装置であり、あらかじ
め設定されている初期値情報302を出力する。この初
期値格納装置301は、内蔵ROMと同じ回路素子を用
いて構成され、内蔵ROMへのプログラム書き込みと同
時に初期値が書き込まれる。309は外部出力信号抑制
装置であり、外部出力抑制信号106が入力されると初
期値情報302を、外部出力抑制信号106が取り消さ
れると内部出力信号108を外部出力信号110として
出力する。
An initial value storage device 301 outputs preset initial value information 302. The initial value storage device 301 is configured by using the same circuit element as the built-in ROM, and the initial value is written at the same time when the program is written in the built-in ROM. An external output signal suppression device 309 outputs the initial value information 302 when the external output suppression signal 106 is input, and outputs the internal output signal 108 as the external output signal 110 when the external output suppression signal 106 is canceled.

【0025】上記ように構成された本実施例における1
チップマイクロコンピュータの信号生成の詳細を図2の
タイミングチャートを使用して説明する。リセット時、
出力信号発生装置107はLレベル出力になる(図2−
1)。ところがリセット時には外部出力抑制信号発生装
置105より外部出力抑制信号106が出力されている
ので、外部出力信号抑制装置109は外部出力信号11
0として初期値格納装置301の出力する初期値情報3
02を出力する(図2−2)。
1 in the present embodiment configured as described above
Details of signal generation of the chip microcomputer will be described with reference to the timing chart of FIG. At reset,
The output signal generator 107 becomes an L level output (Fig. 2-
1). However, since the external output suppression signal generator 105 outputs the external output suppression signal 106 at the time of reset, the external output signal suppression device 109 outputs the external output signal 11
Initial value information 3 output from the initial value storage device 301 as 0
02 is output (FIG. 2-2).

【0026】リセット後,中央演算装置101が出力パ
ラメータ103を設定することによって出力信号発生装
置107は意図した内部出力信号108を出力する(図
2−3)。この後、中央演算装置101が設定終了信号
104を外部出力抑制信号発生装置105に出力する
(Tcのタイミング)ことにより外部出力抑制信号10
6が取り消され、外部出力信号抑制装置109は内部出
力信号108を外部出力信号110として出力する(図
2−4)ことにより外部周辺装置112は正常な動作を
行なう。
After the reset, the central processing unit 101 sets the output parameter 103 so that the output signal generator 107 outputs the intended internal output signal 108 (FIG. 2-3). Thereafter, the central processing unit 101 outputs the setting end signal 104 to the external output suppression signal generation device 105 (timing of Tc), so that the external output suppression signal 10 is generated.
6 is canceled and the external output signal suppressing device 109 outputs the internal output signal 108 as the external output signal 110 (FIGS. 2-4), whereby the external peripheral device 112 operates normally.

【0027】この様に、本実施例の1チップマイクロコ
ンピュータにおいては、リセット後、パラメータ設定に
より出力信号が正しい出力信号になるまであらかじめ設
定した値を出力する装置を付加することにより信号を有
効にさせることにより既存の1チップマイクロコンピュ
ータと既存の外部周辺装置を極性によるリセット直後の
外部周辺装置の誤動作の問題を防ぎつつ簡単に接続する
ことができる。また、第1の実施例の1チップマイクロ
コンピュータに比べて外部回路が不必要で、かつ、初期
値格納装置への初期値の設定は、1チップマイクロコン
ピュータにおいてはプログラムの内蔵ROMへの書き込
み時に同時に行なえるので、工数は増加しないという効
果も有している。
As described above, in the one-chip microcomputer of this embodiment, after resetting, the signal is made effective by adding a device that outputs a preset value until the output signal becomes a correct output signal by parameter setting. By doing so, the existing 1-chip microcomputer and the existing external peripheral device can be easily connected while preventing the problem of malfunction of the external peripheral device immediately after resetting due to the polarity. Further, as compared with the one-chip microcomputer of the first embodiment, an external circuit is unnecessary, and the initial value is set in the initial value storage device when the program is written in the built-in ROM in the one-chip microcomputer. Since it can be done at the same time, it also has the effect that the number of man-hours does not increase.

【0028】(実施例3)図4は第3の実施例における
1チップマイクロコンピュータを示すブロック図であ
る。同図において、図1と同じ符号を付したものは第1
の実施例と同じであるので説明を省略する。401は出
力信号発生装置であり、出力パラメータ103が入力さ
れないと常にLレベルを出力パラメータ103を入力す
ると設定したパラメータに従った正論理の内部出力信号
108を出力する。
(Embodiment 3) FIG. 4 is a block diagram showing a one-chip microcomputer in the third embodiment. In the figure, the same reference numerals as those in FIG.
The description is omitted because it is the same as the embodiment described above. An output signal generator 401 outputs an internal output signal 108 of the positive logic according to the set parameter when the output parameter 103 is input when the output parameter 103 is not input.

【0029】402は極性整合装置であり、あらかじめ
接続する周辺装置に合わせて、入力された内部出力信号
108を正論理または負論理に極性整合させた後、外部
出力信号110として出力する。この極性整合装置40
2は、論理否定回路と切り替えスイッチからなり、内部
出力信号108の論理を反転するか、又は、そのままと
するかを選択的に出力する。切り替えスイッチは、内蔵
ROMと同じ回路素子を用いて構成されており、内蔵R
OM書き込みと同時にどちらを選択するかが設定され
る。
Reference numeral 402 denotes a polarity matching device, which polarizes the input internal output signal 108 to positive logic or negative logic in accordance with a peripheral device to be connected in advance, and then outputs it as an external output signal 110. This polarity matching device 40
Reference numeral 2 includes a logical NOT circuit and a changeover switch, and selectively outputs whether to invert the logic of the internal output signal 108 or to leave it as it is. The changeover switch is configured by using the same circuit element as the built-in ROM, and has a built-in R
Which is selected at the same time as the OM writing is set.

【0030】上記構成において、1チップマイクロコン
ピュータの信号生成の詳細を図5のタイミングチャート
を使用して説明する。リセット時、出力信号発生装置4
01はLレベル出力になる。その後、中央演算装置10
1が出力パラメータ103を設定することによって出力
信号発生装置401は正論理の内部出力信号108を出
力する(図5−1)。
Details of signal generation of the one-chip microcomputer in the above configuration will be described with reference to the timing chart of FIG. At reset, output signal generator 4
01 becomes an L level output. Then, the central processing unit 10
1 sets the output parameter 103, the output signal generator 401 outputs the positive logic internal output signal 108 (FIG. 5-1).

【0031】極性整合装置402に入力された内部出力
信号108は、あらかじめ設定された論理に変換されて
外部出力信号110として出力される。この実施例で
は、論理を反転する作用を行なっており(図5−2)、
外部出力信号110として外部周辺装置112に出力さ
れ外部周辺装置112は正常な動作を行なう。この様
に、第3の実施例の1チップマイクロコンピュータにお
いては、外部周辺装置の極性に応じて、あらかじめ1チ
ップマイクロコンピュータに極性の整合をとる装置を付
加することにより、リセット後、パラメータ設定により
出力信号が正しい出力信号になるまでインアクティブな
信号を出力することにより既存の1チップマイクロコン
ピュータと既存の外部周辺装置との極性によるリセット
直後の外部周辺装置の誤動作の問題を防ぎつつ簡単に接
続することができる。また、第1、第2の実施例の1チ
ップマイクロコンピュータに比べてハードウェア/ソフ
トウェアの負担が少なくて済み、かつ、極性整合装置へ
の極性の設定は、1チップマイクロコンピュータにおい
てはプログラムの内蔵ROMへの書き込み時に同時に行
なえるので、工数は増加しないという効果も有してい
る。
The internal output signal 108 input to the polarity matching device 402 is converted into a preset logic and output as an external output signal 110. In this embodiment, the logic is inverted (FIG. 5-2),
The external output signal 110 is output to the external peripheral device 112, and the external peripheral device 112 operates normally. As described above, in the one-chip microcomputer of the third embodiment, by adding a device for preliminarily matching the polarities to the one-chip microcomputer according to the polarity of the external peripheral device, the parameters can be set after the reset. By outputting an inactive signal until the output signal becomes a correct output signal, it is possible to easily connect while preventing the malfunction of the external peripheral device immediately after resetting due to the polarity of the existing 1-chip microcomputer and the existing external peripheral device. can do. Further, the load of hardware / software is less than that of the 1-chip microcomputer of the first and second embodiments, and the polarity setting for the polarity matching device is performed by the built-in program in the 1-chip microcomputer. Since it can be performed simultaneously when writing to the ROM, it also has an effect that the number of steps does not increase.

【0032】なお、第1〜3の実施例では、外部周辺装
置は負論理で動作するとして説明したが正論理でも構わ
ないし、出力信号発生装置としてPWMを例にあげたが
他の装置でも構わない。また、第1〜2の実施例では、
外部出力信号は、負論理の信号でリセット直後パラメー
タ設定終了まではインアクティブになるように構成され
ているが、これに限るるものではなく、図6に示すよう
な正論理・リセット時インアクティブ(図6−1)、正
論理・リセット時アクティブ(図6−2)、負論理・リ
セット時インアクティブ(図6−3)、負論理・リセッ
ト時アクティブ(図6−4)、の4パターンの信号を生
成することが可能である。同様に第3の実施例において
は正論理・リセット時インアクティブ(図5−2)、負
論理・リセット時インアクティブ(図5−3)の2パタ
ーンの信号を生成することが可能である。これらのパタ
ーンは、1チップマイクロコンピュータを機器に組み込
む際に外部周辺装置の仕様に合わせて選択することがで
きる。
In the first to third embodiments, the external peripheral device has been described as operating in negative logic, but may be in positive logic and PWM is taken as an example of the output signal generating device, but other devices may be used. Absent. In addition, in the first and second embodiments,
The external output signal is a negative logic signal and is configured to be inactive until the parameter setting is completed immediately after reset. However, the external output signal is not limited to this, and positive logic / inactive at reset as shown in FIG. (Figure 6-1), positive logic / reset active (Figure 6-2), negative logic / reset inactive (Figure 6-3), negative logic / reset active (Figure 6-4). It is possible to generate a signal of Similarly, in the third embodiment, it is possible to generate two patterns of signals: positive logic / inactive at reset (FIG. 5-2) and negative logic / inactive at reset (FIG. 5-3). These patterns can be selected according to the specifications of the external peripheral device when the 1-chip microcomputer is incorporated in the device.

【0033】また、第3の実施例において、出力信号発
生装置は正論理の信号を出力するとしたが負論理でも構
わない。
Further, in the third embodiment, the output signal generator outputs the signal of positive logic, but it may be of negative logic.

【0034】[0034]

【発明の効果】以上のように、本発明の1チップマイク
ロコンピュータ及びその製造方法によれば、リセット直
後外部出力信号の出力を抑制することによりリセット直
後の外部周辺装置の誤動作を防ぎつつ、どのような極性
の外部周辺装置であっても整合をとって接続することが
できるという効果がある。
As described above, according to the one-chip microcomputer of the present invention and the manufacturing method thereof, it is possible to prevent the malfunction of the external peripheral device immediately after the reset by suppressing the output of the external output signal immediately after the reset. Even an external peripheral device having such a polarity can be connected with matching.

【0035】さらに、第2の実施例の1チップマイクロ
コンピュータ及びその製造方法によれば、上記効果に加
えて (1)外部にプルアップ/プルダウン抵抗のような外部
回路が不必要である (2)初期値格納装置への初期値の書き込みは内蔵RO
Mへのプログラム書き込みと同時に行なうことができる
ので設計工数は増加しない。 という効果がある。
Further, according to the one-chip microcomputer of the second embodiment and the method of manufacturing the same, in addition to the above effects, (1) an external circuit such as a pull-up / pull-down resistor is unnecessary externally. ) Writing the initial value to the initial value storage device is done by the built-in RO
Since the programming can be performed at the same time as writing the program into M, the design man-hours do not increase. There is an effect.

【0036】また、第3の実施例の1チップマイクロコ
ンピュータ及びその製造方法においては (1)ピン単位、または、バス単位に極性を簡単に自由
に設定することができるためシステムへの適応性が高
い。 (2)第1、2の実施例に較べて、ハードウェア、ソフ
トウェアの増加が少なくて済む。
Further, in the one-chip microcomputer and the manufacturing method thereof according to the third embodiment, (1) the polarity can be easily set freely in the pin unit or the bus unit, so that the system adaptability is improved. high. (2) Compared to the first and second embodiments, the increase in hardware and software is small.

【0037】(3)極性整合装置の設定は内蔵ROMへ
のプログラム書き込みと同時に行なうことができるので
設計工数は増加しない。 という効果があることがわかる。
(3) Since the polarity matching device can be set at the same time when the program is written in the built-in ROM, the number of design steps does not increase. You can see that there is an effect.

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

【図1】本発明の第1の実施例における1チップマイク
ロコンピュータの構成図。
FIG. 1 is a configuration diagram of a one-chip microcomputer according to a first embodiment of the present invention.

【図2】本発明の第1の実施例における1チップマイク
ロコンピュータの出力波形。
FIG. 2 is an output waveform of the one-chip microcomputer according to the first embodiment of the present invention.

【図3】本発明の第2の実施例における1チップマイク
ロコンピュータの構成図。
FIG. 3 is a configuration diagram of a one-chip microcomputer according to a second embodiment of the present invention.

【図4】本発明の第3の実施例における1チップマイク
ロコンピュータの構成図。
FIG. 4 is a configuration diagram of a one-chip microcomputer according to a third embodiment of the present invention.

【図5】本発明の第3の実施例における1チップマイク
ロコンピュータの出力波形。
FIG. 5 is an output waveform of the one-chip microcomputer according to the third embodiment of the present invention.

【図6】本発明の第1、第2の実施例における1チップ
マイクロコンピュータの出力波形。
FIG. 6 is an output waveform of the one-chip microcomputer in the first and second embodiments of the present invention.

【図7】従来の1チップマイクロコンピュータの構成
図。
FIG. 7 is a block diagram of a conventional one-chip microcomputer.

【図8】従来の1チップマイクロコンピュータの出力波
形。
FIG. 8 is an output waveform of a conventional 1-chip microcomputer.

【図9】従来の1チップマイクロコンピュータの出力波
形。
FIG. 9 is an output waveform of a conventional one-chip microcomputer.

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

101 中央演算装置 102 リセット信号 103 出力パラメータ 104 設定終了信号 105 外部出力抑制信号発生装置 106 外部出力抑制信号 107 出力信号発生装置 108 内部出力信号 109 外部出力信号抑制装置 110 外部出力信号 111 プルアップ抵抗 112 外部周辺装置 301 初期値格納装置 302 初期値情報 101 central processing unit 102 reset signal 103 output parameter 104 setting end signal 105 external output suppression signal generator 106 external output suppression signal 107 output signal generator 108 internal output signal 109 external output signal suppression device 110 external output signal 111 pull-up resistor 112 External peripheral device 301 Initial value storage device 302 Initial value information

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 CPUと、CPUによって設定されるパ
ラメータに応じた、外部周辺装置の制御信号を出力する
制御信号出力手段とを備えたワンチップマイクロコンピ
ュータにおいて、 上記制御信号を所定の論理レベルに維持する論理レベル
維持手段と、 上記所定の論理レベルを切り換える論理レベル切り換え
手段と、 論理レベル維持手段の論理レベル維持動作を、ワンチッ
プマイクロコンピュータのリセット動作時に開始させ、
制御信号発生手段へのパラメータの設定完了時に停止さ
せる論理レベル制御手段とを備えたことを特徴とするワ
ンチップマイクロコンピュータ。
1. A one-chip microcomputer comprising a CPU and a control signal output means for outputting a control signal of an external peripheral device according to a parameter set by the CPU, wherein the control signal is set to a predetermined logic level. Logic level maintaining means for maintaining, logic level switching means for switching the predetermined logic level, and logic level maintaining operation of the logic level maintaining means is started at the time of reset operation of the one-chip microcomputer,
A one-chip microcomputer comprising: a logic level control means for stopping the control signal generation means when the setting of the parameter is completed.
【請求項2】 上記論理レベル切り換え手段は、論理レ
ベル反転回路と、論理レベル反転回路を迂回する迂回回
路と、上記判定回路または迂回回路を選択する選択回路
とを有することを特徴とする請求項1に記載のワンチッ
プマイクロコンピュータ。
2. The logic level switching means includes a logic level inversion circuit, a detour circuit that bypasses the logic level inversion circuit, and a selection circuit that selects the determination circuit or the detour circuit. 1. The one-chip microcomputer according to 1.
【請求項3】 上記論理レベル切り換え手段は、所定の
論理レベルを示す情報が設定される再設定可能なメモリ
を有することを特徴とする請求項1に記載のワンチップ
マイクロコンピュータ。
3. The one-chip microcomputer according to claim 1, wherein the logic level switching means has a resettable memory in which information indicating a predetermined logic level is set.
【請求項4】 上記論理レベル切り換え手段は、1回だ
け論理レベルを切り換えることが可能な切り換え回路を
有することを特徴とする請求項1に記載のワンチップマ
イクロコンピュータ。
4. The one-chip microcomputer according to claim 1, wherein the logic level switching means has a switching circuit capable of switching the logic level only once.
【請求項5】 上記切り換え回路は、所定の論理レベル
を示す情報を1回だけ設定することが可能なメモリを有
することを特徴とする請求項4に記載のワンチップマイ
クロコンピュータ。
5. The one-chip microcomputer according to claim 4, wherein the switching circuit has a memory capable of setting information indicating a predetermined logic level only once.
【請求項6】 上記切り換え回路は、回路部分の一部を
遮断することにより、論理レベルを切り換えることが可
能な回路であることを特徴とする請求項4に記載のワン
チップマイクロコンピュータ。
6. The one-chip microcomputer according to claim 4, wherein the switching circuit is a circuit capable of switching a logic level by cutting off a part of a circuit portion.
【請求項7】 請求項4に記載のワンチップマイクロコ
ンピュータにおける論理レベル切り換え手段を切り換え
ることにより、ワンチップマイクロコンピュータのリセ
ット動作時から、制御信号発生手段へのパラメータの設
定完了時までの間に、出力する制御信号のレベルが所定
のレベルに設定されたワンチップマイクロコンピュータ
を製造する製造方法。
7. By switching the logic level switching means in the one-chip microcomputer according to claim 4, from the time of the reset operation of the one-chip microcomputer to the time of completing the setting of the parameters in the control signal generating means. A manufacturing method for manufacturing a one-chip microcomputer in which a level of a control signal to be output is set to a predetermined level.
JP5112944A 1993-05-14 1993-05-14 One-chip microcomputer and its manufacture Pending JPH06325186A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5112944A JPH06325186A (en) 1993-05-14 1993-05-14 One-chip microcomputer and its manufacture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5112944A JPH06325186A (en) 1993-05-14 1993-05-14 One-chip microcomputer and its manufacture

Publications (1)

Publication Number Publication Date
JPH06325186A true JPH06325186A (en) 1994-11-25

Family

ID=14599424

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5112944A Pending JPH06325186A (en) 1993-05-14 1993-05-14 One-chip microcomputer and its manufacture

Country Status (1)

Country Link
JP (1) JPH06325186A (en)

Similar Documents

Publication Publication Date Title
JP2597153B2 (en) Write protector
JPH0114739B2 (en)
US5606715A (en) Flexible reset configuration of a data processing system and method therefor
JPH06325186A (en) One-chip microcomputer and its manufacture
JPH08179857A (en) Reset circuit
JPH01290040A (en) Digital signal switching circuit
JP3066063U (en) Flash memory with recovery capability
JP2001273274A (en) Semiconductor integrated circuit and test mode setting circuit therefor
JPH04199228A (en) Semiconductor integrated circuit device
JP3951371B2 (en) Watchdog timer and microcomputer
JPH054039Y2 (en)
JP2859184B2 (en) Field programmable gate array
JP2501666Y2 (en) Unit duplication device
JP3310482B2 (en) Microcomputer
JP2003296296A (en) Microcontroller
JP2767794B2 (en) Microcomputer
JP2680672B2 (en) I / O device switching method
JPH0535890A (en) Microcomputer
JPS62248043A (en) Memory switching circuit for fetching microcomputer instruction
JPH11149407A (en) Memory system and using method for external non-volatile memory
JPH06149682A (en) Memory data protection circuit
JPS60204004A (en) Sequence controller
JPH0830442A (en) Program starting method for computer control unit, and computer control unit
JPH11272642A (en) 1-chip microcomputer and start address setting method
JPH0651826A (en) Teaching device for robot