JPH02297683A - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JPH02297683A
JPH02297683A JP1119303A JP11930389A JPH02297683A JP H02297683 A JPH02297683 A JP H02297683A JP 1119303 A JP1119303 A JP 1119303A JP 11930389 A JP11930389 A JP 11930389A JP H02297683 A JPH02297683 A JP H02297683A
Authority
JP
Japan
Prior art keywords
circuit
signal
clock
conversion
level
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
JP1119303A
Other languages
Japanese (ja)
Inventor
Kenichi Mitsusue
光末 賢一
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP1119303A priority Critical patent/JPH02297683A/en
Publication of JPH02297683A publication Critical patent/JPH02297683A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve accuracy for A/D conversion by holding the output of an output buffer, which goes to be a noise source when an A/D converter is operated, constant. CONSTITUTION:A signal outputted from a NOR circuit 15 is inverted by an inverter 12 and signal line 25 goes to be ''1'' level. Then, the signal is inputted to an OR circuit 17 and a clock signal phi1 to be outputted form the OR circuit 17 is held at the ''1'' level. A signal of a ''0'' level inverted by an inverter 10 is inputted to an AND circuit 18 and a clock signal phi2 to be inputted to a CPU 3 is held at the ''0'' level. Accordingly, the clock signal is not supplied to the CPU 3 and the CPU 3 stops operation. Samely, the other peripheral circuit 5 stops the operation. However, since the clock signals phi1 and phi2 are supplied from clock drivers 19 and 20 to an A/D converter 4, the A/D conversion is executed. Thus, the noise is suppressed and the accuracy is improved for the A/D conversion.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、A/Dコンバータを内蔵するマイクロコンピ
ュータに関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microcomputer with a built-in A/D converter.

〔従来の技術〕[Conventional technology]

従来のA/Dコ/バータを含むマイクロコンビ為−夕に
ついて、第6図を用いて説明する。
A microcombination system including a conventional A/D converter will be explained with reference to FIG.

まず構成要素について説明する。First, the constituent elements will be explained.

発振器1はクロックを発生し分局回路2はその信号をク
ロック信号φ1とφ2に分局する。分周回路202つの
クロック端子はクロックドライバ29と30に接続され
、クロック、ドライバ29と30の出力側は、A/Dコ
/バータ4、中央演算処理装置(CPU)46と他の周
辺回路5のクロック端子に接続されている。CPU46
はA/Dコンバータ4と接続されている。
Oscillator 1 generates a clock, and branching circuit 2 splits the signal into clock signals φ1 and φ2. The two clock terminals of the frequency dividing circuit 20 are connected to clock drivers 29 and 30, and the output sides of the clock drivers 29 and 30 are connected to an A/D converter 4, a central processing unit (CPU) 46, and other peripheral circuits 5. connected to the clock terminal of the CPU46
is connected to the A/D converter 4.

次に動作について説明する。Next, the operation will be explained.

従来の1チツプマイコンでは、A/Dコンノ(−タ4.
CPU46および周辺回路5は、発振器1で発生し分周
回路2で分周されたクロック信号φ1とφ2に同期して
動作する。アナログデジタル変換(A/D変換)時には
CPU46が変換開始信号をA/Dコンバータ4に送信
しA/D変換をはじめる。A/D変換終了時にはA/D
コンバータ4より変換終了を知らせる割り込み信号が“
1”レベルになりA/D変換が終了したことをCPU4
6に知らせる。A/Dコンバータ動作時にもCPU46
と他の周辺回路5は動作している。
In the conventional one-chip microcontroller, the A/D controller (-ta 4.
The CPU 46 and the peripheral circuit 5 operate in synchronization with clock signals φ1 and φ2 generated by the oscillator 1 and divided by the frequency dividing circuit 2. During analog-to-digital conversion (A/D conversion), the CPU 46 sends a conversion start signal to the A/D converter 4 to start A/D conversion. A/D at the end of A/D conversion
Converter 4 sends an interrupt signal indicating the end of conversion.
1” level and that the A/D conversion is completed.
Let 6 know. The CPU 46 also operates when the A/D converter is operating.
and other peripheral circuits 5 are operating.

〔発明が解決しようとする課趙〕[The problem that the invention aims to solve]

上述した従来のA/Dコンバータを含むマイクロコンピ
ュータでは、A/Dコy /< −p ノA / D変
換時にCPUをはじめ他の回路が動作を続けているため
、例えばボートに接続された出カッ(ツファの出力値が
′″1”レベルから″″0°0°レベル″lO″レベル
からl′1″レベルへ遷移する際に瞬間的に電源よりG
NDK買通を流が流れ、電源電圧レベルとGND[圧レ
ベルに変化が生じ、その結果ノイズが生じる。このノイ
ズがA/Dコンバータに影響を与え、A/D変換の精変
を悪くし本発明のマイクロコンピュータは、発振器、分
周回路、CPU%A/Dコンバータと他の周辺回路以外
に、第1のクロックドライバと第2のクロックドライバ
と、基本クロック信号の供給を禁止するための回路と、
記憶回路を有し、基本クロック信号を入力とする第1の
クロックドライバの出力はアナログデジタル変換器に接
続され、第2のクロックドライバは中央演算処理装置と
接続され、中央演算処理装置のアナログデジタル変換開
始信号とアナログデジタル変換器のアナログデジタル変
換終了信号は前記記憶回路に接続され、前記記憶回路の
出力がクロック信号の供給を禁止するための回路忙接続
され、基本クロック信号の供給を禁止するための回路は
第2のクロックドライバに接続されている回路を有する
In a microcomputer including the conventional A/D converter described above, the CPU and other circuits continue to operate during A/D conversion, so for example, the output connected to the boat is (When the output value of the tsufa transitions from the ``1'' level to the ``0°0° level'' from the lO'' level to the l'1'' level, the G
Current flows through the NDK shopping channel, causing changes in the power supply voltage level and GND pressure level, resulting in noise. This noise affects the A/D converter and impairs the precision of the A/D conversion. a first clock driver, a second clock driver, a circuit for prohibiting the supply of a basic clock signal,
The output of the first clock driver, which has a memory circuit and receives the basic clock signal as input, is connected to an analog-to-digital converter, and the second clock driver is connected to the central processing unit, and the output of the first clock driver is connected to the analog-to-digital converter. The conversion start signal and the analog-to-digital conversion end signal of the analog-to-digital converter are connected to the storage circuit, and the output of the storage circuit is connected to a circuit for inhibiting the supply of a clock signal, inhibiting the supply of the basic clock signal. The circuit for has a circuit connected to a second clock driver.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明に係わる1実施例を示している。FIG. 1 shows one embodiment of the present invention.

まず構成要素について説明する。First, the constituent elements will be explained.

発振器1はクロックを発生し、分周回路2はそのクロッ
ク信号を分周する。CPU3はクロックドライバ8と9
に接続され念2つのクロック端子とラッチ6に接続され
た変換開始信号端子、AND回路14に接続されfc変
換終了信号端子、およびAND回路13に接続された変
換モード信号端子を有する。A/Dコンバータ4はクロ
ックドライバ19と20に接続され念2つのクロック端
子を有する。他の周辺回路5は2つのクロック端子を有
する。CPU3の変換開始信号端子はラッチ6のデータ
入力端子(Di子)に接続され、ラッチ6のクロック入
力端子(G端子)はクロックドライバ19の出力側に接
続され、クロックドライバ19の入力側は分周回路2の
クロック入力端子に接続されている。ラッチ6の出力端
子(Q端子)はラッチ7のD端子とAND回路13に接
続され、ラッチ7のQ端子はインバータ11とA/Dコ
ンバニタ4の変換開始信号端子と接続され、G端子クロ
ックドライバ20の出力側に接続され、クロックドライ
バ200Å力側は分局回路2のクロック−2端子に接続
されている。AND回路130入力側はラッチ6のQ端
子とCPU3の変換モード信号端子とインバータ11と
接続され、出力側はNOR回路150入力側に接続され
ている。NOR回路15の出力側はインバータ12とN
OR回路16の入力側に接続されている。AND回路1
4は入力側をクロックドライバ19とA/Dコンバータ
4の変換終了信号端子に接続され、出力側はNOR回路
16の入力側とCPU3の変換終了信号端子に接続され
ている。A/Dコンバータ4のクロック端子φ1とφ2
はクロックドライバ19と20に接続されている。NO
R回路16の出力側はNOR回路15の入力側に接続さ
れている。OR回路17の入力側はインバータ12と分
局回路2のφ1端子に接続され、出力側はクロツクドラ
イバ8を介してCPU3のクロック端子と他の周辺回路
5のクロック端子に接続されている。
An oscillator 1 generates a clock, and a frequency divider circuit 2 divides the frequency of the clock signal. CPU3 has clock drivers 8 and 9
It has two clock terminals connected to and a conversion start signal terminal connected to latch 6, an fc conversion end signal terminal connected to AND circuit 14, and a conversion mode signal terminal connected to AND circuit 13. The A/D converter 4 is connected to clock drivers 19 and 20 and has two clock terminals. Other peripheral circuit 5 has two clock terminals. The conversion start signal terminal of the CPU 3 is connected to the data input terminal (Di terminal) of the latch 6, the clock input terminal (G terminal) of the latch 6 is connected to the output side of the clock driver 19, and the input side of the clock driver 19 is connected to the It is connected to the clock input terminal of the circuit 2. The output terminal (Q terminal) of the latch 6 is connected to the D terminal of the latch 7 and the AND circuit 13, the Q terminal of the latch 7 is connected to the conversion start signal terminal of the inverter 11 and the A/D converter 4, and the G terminal clock driver The output side of the clock driver 200A is connected to the clock -2 terminal of the branch circuit 2. The input side of the AND circuit 130 is connected to the Q terminal of the latch 6, the conversion mode signal terminal of the CPU 3, and the inverter 11, and the output side is connected to the input side of the NOR circuit 150. The output side of the NOR circuit 15 is connected to the inverter 12 and N
It is connected to the input side of the OR circuit 16. AND circuit 1
4 has its input side connected to the clock driver 19 and the conversion end signal terminal of the A/D converter 4, and its output side connected to the input side of the NOR circuit 16 and the conversion end signal terminal of the CPU 3. Clock terminals φ1 and φ2 of A/D converter 4
are connected to clock drivers 19 and 20. NO
The output side of the R circuit 16 is connected to the input side of the NOR circuit 15. The input side of the OR circuit 17 is connected to the inverter 12 and the φ1 terminal of the branch circuit 2, and the output side is connected to the clock terminal of the CPU 3 and the clock terminals of other peripheral circuits 5 via the clock driver 8.

AND回路18の入力側は分周回路2のφ2端子とイン
バータ10と接続され、出力側はクロックドライバ9を
介してCPU3と他の周辺回路5のクロック端子に接続
されている。インバータ100入力側はインバータ12
に接続されている。
The input side of the AND circuit 18 is connected to the φ2 terminal of the frequency dividing circuit 2 and the inverter 10, and the output side is connected to the clock terminals of the CPU 3 and other peripheral circuits 5 via the clock driver 9. Inverter 100 input side is inverter 12
It is connected to the.

次に動作について説明する。動作の説明は21−26の
各信号のタイミング図を用いて行う。タイミング図を第
2図に示す。タイミング図は横軸に時間をとっている。
Next, the operation will be explained. The operation will be explained using timing diagrams of each signal 21-26. A timing diagram is shown in FIG. The timing diagram shows time on the horizontal axis.

破線部は時間の省略を示している。Broken line portions indicate time omissions.

発振器lで発生したクロック信号を分周回路2でφ1と
φ2に分周する。φ1とφ2のクロック信号に従って各
ユニットは所定の動作を行う。A/Dコンバータ動作開
始時間をT1とする0時間T1でCPU3のA/D変換
開始信号端子より′″1”レベルが出力され信号線23
は”1“レベル状態となりラッチ6ではG端子に入力さ
れたφlのクロックのタイミングで入力端子の値を読み
込むためラッチ6のQ端子からは1”レベルが出力され
る。この時クロックφ2は“O″レベルある。この”O
“レベル信号がラッチ70G端子へ入力されるので、時
間T1以前1c記憶され比信号である。@0°レベルQ
端子から出力される。
A clock signal generated by an oscillator 1 is frequency-divided into φ1 and φ2 by a frequency divider circuit 2. Each unit performs a predetermined operation according to clock signals φ1 and φ2. At time 0 T1, where the A/D converter operation start time is T1, the ``1'' level is output from the A/D conversion start signal terminal of the CPU 3 and the signal line 23
is in the “1” level state, and the latch 6 reads the value of the input terminal at the timing of the clock φl input to the G terminal, so the Q terminal of the latch 6 outputs the “1” level. At this time, the clock φ2 is “1” level. There is an O'' level.
“Since the level signal is input to the latch 70G terminal, it is stored 1c before time T1 and is a ratio signal. @0° level Q
Output from the terminal.

これがインバータIIKより反転され、”1“レベルが
AND回路13に入力される。CPU3からの変換モー
ド信号47は”l“レベルのため、AND回路130入
力はすべて′″1”レベルとなり、出力は信号@24に
“1“レベルを与える。
This is inverted by the inverter IIK, and the "1" level is input to the AND circuit 13. Since the conversion mode signal 47 from the CPU 3 is at the "1" level, all inputs to the AND circuit 130 are at the "1" level, and the output gives the signal @24 the "1" level.

NOR回路15にはAND回路13より11”レベルが
入力されるので他の入力に関係なく出力は@O″レベル
となる。NOR回路15とNOR回路16はラッチ回路
を構成しており、NOR回路16あるいはNOR回路1
5の入力側に信号が入力されない限り出力値は一定に保
持される。NOR回路15より出力されたイサ号がイン
バータ12で反転され信号@25は”1”レベルとなり
、OR回路17に入力される。OR回路17より出力さ
れるクロック信号φ1は′l”レベルに保持される。ま
た、AND回路18にはインバータlOで反転された1
0″レベルの信号が入力されるのでCPO3に入力され
るクロック信号φ2は“0“レベルに保持される。この
ためCPU3にはクロック信号が供給されないためCP
U3は動作を停止する。同様に他の周辺回路5も動作を
停止する。
Since the 11'' level is inputted to the NOR circuit 15 from the AND circuit 13, the output becomes @O'' level regardless of other inputs. NOR circuit 15 and NOR circuit 16 constitute a latch circuit, and NOR circuit 16 or NOR circuit 1
As long as no signal is input to the input side of 5, the output value is held constant. The isa signal output from the NOR circuit 15 is inverted by the inverter 12, and the signal @25 becomes "1" level and is input to the OR circuit 17. The clock signal φ1 outputted from the OR circuit 17 is held at the 'l' level.
Since a 0'' level signal is input, the clock signal φ2 input to the CPO3 is held at the 0'' level.Therefore, since no clock signal is supplied to the CPU3, the clock signal φ2 is input to the CPO3.
U3 stops operating. Similarly, other peripheral circuits 5 also stop operating.

しかしA/Dコンバータ4にはクロックドライバ19.
20よりクロック信号φ1とφ2が供給されているため
A/D変換は行われる。
However, the A/D converter 4 has a clock driver 19.
Since clock signals φ1 and φ2 are supplied from 20, A/D conversion is performed.

A/Dコンバータ終了時間をT2とする。T2になると
A/D変換が終了したという信号じ1”レベル)がA/
Dコンバータ4!9AND[5][14に入力される。
Let the A/D converter end time be T2. When T2 is reached, the signal indicating that A/D conversion has been completed (1" level) becomes A/D.
Input to D converter 4!9AND[5][14.

クロック信号φ1は@l“レベルなのでAND回路14
の出力は”1”レベルとなる。NOR回路16に′″1
″1″レベルされるためNOR回M15とNOR00M
16!り構成されるラッチ回路はリセットされNOR回
路15の出力は′″1”レベルとなる。これがインバー
タ12を介して反転し“0”レベルとなる。この10”
レベルがOR回路17に入力され、さらにインバータl
Oを介して@1”レベルの信号がAND回路に入力され
る。OR回路17とAND回路18の出力はクロック信
号φ1.φ2のレベルに従って出力され、CPU31C
クロック信号が送信されるので、CPU3は動作を始め
る。同様に他の周辺回路5も動作を始める。
Since the clock signal φ1 is at @l" level, the AND circuit 14
The output of is "1" level. '''1 to NOR circuit 16
NOR times M15 and NOR00M to be leveled “1”
16! The latch circuit constructed by the above is reset and the output of the NOR circuit 15 becomes ``1'' level. This is inverted via the inverter 12 and becomes the "0" level. This 10"
The level is input to the OR circuit 17, and the inverter l
A @1'' level signal is input to the AND circuit through the gate 0.The outputs of the OR circuit 17 and the AND circuit 18 are output according to the levels of the clock signals φ1 and φ2, and
Since the clock signal is transmitted, the CPU 3 starts operating. Similarly, other peripheral circuits 5 also start operating.

なお、変換モード信号47が0“レベルの時、AND回
路13の出力は常に”θ″レベルので、従来通りA/D
変換中も、CPU3および他の周辺回路5は動作する。
Note that when the conversion mode signal 47 is at the 0" level, the output of the AND circuit 13 is always at the "θ" level, so the A/D
Even during the conversion, the CPU 3 and other peripheral circuits 5 operate.

第3図および第4因は本発明の第2の実施例を示す図で
ある。
Figures 3 and 4 are diagrams showing a second embodiment of the present invention.

第2の実施例では、ホールトモードを有するCPUを使
用した場合の回路を示している。ホールトモードとはC
PUの動作クロックを停止させるモードである。
The second embodiment shows a circuit using a CPU having a halt mode. What is halt mode?C
This is a mode in which the PU operating clock is stopped.

まず構成要素について説明する。First, the constituent elements will be explained.

CPU27は、A/D変換時に変換終了信号以外の割り
込み信号をマスクする機能をもつ割り込みコントローラ
40と、ホールトモードを実現するためのスタンバイコ
ントロールレジスタ38のホールトモード指定ビット3
9を内蔵し、ホールトモード指定ビット39のD端子K
OR回路32が接続され、G端子KOR回路37か接続
されている。パルス生成回路31は、CPU27のホー
ルトモード指定とット39へのクロック入力を発生する
九めのAND回路33と、インバータ34とラッチ35
とラッチ36を内蔵し、2つのクロック端子(φ1端子
、φ2端子)とを有する。A/Dコンバータ28はA/
D変換が終了したいという割り込み信号であるA/D変
換終了信号45をCPU27の割り込みコントローラ4
0に送信する端子を有する。他の構成要素は第6図の従
来例と同じである。
The CPU 27 includes an interrupt controller 40 that has a function of masking interrupt signals other than the conversion end signal during A/D conversion, and a halt mode designation bit 3 of the standby control register 38 to implement the halt mode.
D terminal K of the halt mode designation bit 39.
An OR circuit 32 is connected, and a G terminal KOR circuit 37 is also connected. The pulse generation circuit 31 includes a ninth AND circuit 33 that generates a clock input to a halt mode designation bit 39 of the CPU 27, an inverter 34, and a latch 35.
It has a built-in latch 36 and two clock terminals (φ1 terminal and φ2 terminal). The A/D converter 28 is an A/D converter 28.
An interrupt controller 4 of the CPU 27 sends an A/D conversion end signal 45, which is an interrupt signal indicating that D conversion is to be completed.
It has a terminal that sends to 0. Other components are the same as the conventional example shown in FIG.

次に動作について説明する。動作の説明は41−45の
各信号線でのタイミング図を用いて行う。
Next, the operation will be explained. The operation will be explained using timing diagrams for each signal line 41-45.

タイミング図を第5図に示す。タイミング図は横軸に時
間をとっている。破線部は時間の省略を示している。
A timing diagram is shown in FIG. The timing diagram shows time on the horizontal axis. Broken line portions indicate time omissions.

通常、CPU27がホールトモード忙入る時には、ホー
ルト信号49とスタンバイコントロールレジスタライト
信号48がそれぞれOR回路32あるいはOR回路37
を介してホールトモード指定ビット39に入力され、C
PU27はホールトモードになり動作を停止する。ホー
ルトモードを解除には割り込み信号をCPUに入力する
。このことKより、CPUは再び動作を始める。
Normally, when the CPU 27 is busy in the halt mode, the halt signal 49 and the standby control register write signal 48 are output to the OR circuit 32 or the OR circuit 37, respectively.
is input to halt mode designation bit 39 via C
The PU 27 enters the halt mode and stops operating. To release the halt mode, input an interrupt signal to the CPU. From this point K, the CPU starts operating again.

A/D変換開始時間をT3とする。時間T3でCPU2
7よりA/Dコンバータ28とパルス生成回路31に変
換開始信号が送信され、A/D変換開始信号41は”1
″レベルとなる。同時にこの信号はCPU27のユニッ
ト内でOR回路32ヲ介シテ、スタンバイコントロール
レジスタ38のホールトモード指定ビット39のD端子
に送信される。パルス生成回路31に入力された変換開
始信号は、ラッチ35のD端子に入力される。クロック
信号φ2がラッチ35のG端子に入力され、Q端子から
の出力である中間信号A42は@l“レベルに保持され
る。この時、ラッチ36に入力されるクロック信号φ1
は“O′″レベルなので、ラッチ36からインバータ3
4への出力は時間T3以前の状態である10′″レベル
である。この出力値が、インバータ34を介して′″l
”レベルとなりAND回路へ入力される(中間信号B4
3)。
The A/D conversion start time is assumed to be T3. CPU2 at time T3
7 sends a conversion start signal to the A/D converter 28 and pulse generation circuit 31, and the A/D conversion start signal 41 becomes "1".
At the same time, this signal is sent to the D terminal of the halt mode designation bit 39 of the standby control register 38 via the OR circuit 32 within the CPU 27 unit. The signal is input to the D terminal of the latch 35. The clock signal φ2 is input to the G terminal of the latch 35, and the intermediate signal A42 output from the Q terminal is held at the @l'' level. At this time, the clock signal φ1 input to the latch 36
is at the "O'" level, so the voltage from the latch 36 to the inverter 3 is
The output to 4 is at the 10'' level, which is the state before time T3.
” level and is input to the AND circuit (intermediate signal B4
3).

従って、AND回路33の出力であるパルス信号44は
″1″レベルとなり、CPU27へ送信され、OR回路
37を介してホールトモード指定ビット39のG端子に
入力される。従って、ホールトモード指定ビット39の
D端子、G端子はそれぞれ“1”レベルの入力を受け、
Q端子よりホールト信号を出力することKよりCPU2
7はホールトモードに入る。A/D変換中は、A/D変
換が終了したという割り込み信号であるA/D変換終了
信号以外を、割り込みコントローラ40がすべてマスク
する。従って、他の周辺回路5より割り込み信号がCP
U27に送信されても割り込みを受は付けない。CPU
27はホールトモードになるので動作を停止し、CPU
27と接続された出力バッファの出力値は変化しないの
でノイズは激変する。なぜならば出力バッファは主なノ
イズ源であり、はとんどの出力バッファがCPUのボー
トと接続されており、出力バッファの出力値が変化する
のはCPUの命令によりポートラッチにライト動作がな
されるからであり、CPUの動作を停止させることKよ
り、ノイズの発生を抑え、A/D変換の精度を十分に向
上させることができたからである。A/Dコンバータ2
8と他の周辺回路5はクロック信号が入力され動作して
いるが、これらの回路は小電流で動作しているので、生
じるノイズも小さく、A/D変換に対する影響も小さい
。A/D変換終了後には、A/Dコンバータ28より信
号線45を介して、CPU27の割す込みコントローラ
40に変換終了信号45が割り込み信号として送信され
る。これがホールトモード解除信号となり、CPU27
のホールトそ−ドが解除され、CPU27は動作を始め
る。
Therefore, the pulse signal 44 which is the output of the AND circuit 33 has a "1" level, is transmitted to the CPU 27, and is inputted to the G terminal of the halt mode designation bit 39 via the OR circuit 37. Therefore, the D terminal and G terminal of the halt mode designation bit 39 each receive a "1" level input,
Output a halt signal from the Q terminal and CPU2 from the K
7 goes into halt mode. During A/D conversion, the interrupt controller 40 masks all signals other than the A/D conversion end signal, which is an interrupt signal indicating that the A/D conversion has ended. Therefore, the interrupt signal from other peripheral circuits 5 is
Even if it is sent to U27, the interrupt will not be accepted. CPU
27 enters halt mode, so it stops operating and the CPU
Since the output value of the output buffer connected to 27 does not change, the noise changes drastically. This is because the output buffer is the main source of noise, and most output buffers are connected to the CPU port, and the output value of the output buffer changes because a write operation is performed to the port latch by the CPU instruction. This is because the generation of noise can be suppressed and the accuracy of A/D conversion can be sufficiently improved by stopping the operation of the CPU. A/D converter 2
8 and other peripheral circuits 5 are operated by inputting a clock signal, but since these circuits operate with a small current, the noise generated is small and the influence on A/D conversion is also small. After the A/D conversion is completed, a conversion completion signal 45 is transmitted as an interrupt signal from the A/D converter 28 to the interrupt controller 40 of the CPU 27 via the signal line 45. This becomes a halt mode release signal, and the CPU 27
The hold code is released and the CPU 27 starts operating.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、A/Dコンバータ動作時
にノイズ源となる出力バッファの出力値を一定に保持す
ることで、A/D変換に悪影響を及ぼすノイズの発生を
抑え、A/D変換の精度を向上させるという効果がある
As explained above, the present invention suppresses the generation of noise that adversely affects A/D conversion by keeping the output value of the output buffer, which is a noise source during A/D converter operation, constant. This has the effect of improving the accuracy of.

【図面の簡単な説明】 第1図は本発明の一実施例を示すブロック図、第2図は
第1図での各信号線のタイミング図、第3図は他の実施
例を示すブロック図、第4図は第3図のCPUとA/D
コンバータの詳細なブロック図、第5図は第4図での各
信号線のタイミング図、第6図は従来のマイクロコンピ
ュータを示すブロック図である。 1・・・・・・発振器、2・・・・・・分周回路、3−
・27. 、46・・・・・・中央演算処理装置、4,
28・・・・・・A/Dコンバータ、5・・・・・・他
の周辺回路、6,7,35゜36・・・・・・ラッチ、
8.9.19.20.29.30・・・・・・クロック
ドライバ、10.11,12.34・・・・・・インバ
ータ、15.16・・・・・・NOR回路、17,32
゜37・・・・・・OR回路、21・・・・・・クロッ
ク信号、22・・・・・・クロック信号、23・・・・
・・A/D変換開始信号、24・・・・・・中間信号、
25・・・・・・クロック禁止信号、26・・・・・・
A/D変換終了信号、27・・・・・・変換モード信号
、31・・・・・・パルス生成回路、38・・・・・・
スタンバイコントロールレジスタ、39・・・・・・ホ
ールトモード指定ビット、40・・・・・・割り込みコ
ントローラ、41・・・・・・A/D変換開始信号、4
2・・・・・・中間信号A143・・・・・・中間信号
B、44・・・・・・パルス信号、45・・・・・・A
/D変換終了信号、48・・・・・・スタンバイコント
ロールレジスタラ(ト信号、49・・・・・・ホールト
信号。 代環人弁理士内環  晋
[Brief Description of the Drawings] Fig. 1 is a block diagram showing one embodiment of the present invention, Fig. 2 is a timing diagram of each signal line in Fig. 1, and Fig. 3 is a block diagram showing another embodiment. , Figure 4 shows the CPU and A/D in Figure 3.
FIG. 5 is a detailed block diagram of the converter, FIG. 5 is a timing diagram of each signal line in FIG. 4, and FIG. 6 is a block diagram showing a conventional microcomputer. 1... Oscillator, 2... Frequency divider circuit, 3-
・27. , 46... central processing unit, 4,
28... A/D converter, 5... Other peripheral circuits, 6, 7, 35° 36... Latch,
8.9.19.20.29.30...Clock driver, 10.11,12.34...Inverter, 15.16...NOR circuit, 17,32
゜37...OR circuit, 21...clock signal, 22...clock signal, 23...
... A/D conversion start signal, 24... intermediate signal,
25...Clock prohibition signal, 26...
A/D conversion end signal, 27... Conversion mode signal, 31... Pulse generation circuit, 38...
Standby control register, 39... Halt mode designation bit, 40... Interrupt controller, 41... A/D conversion start signal, 4
2...Intermediate signal A143...Intermediate signal B, 44...Pulse signal, 45...A
/D conversion end signal, 48...standby control register signal, 49...halt signal. Susumu Naika, Patent Attorney

Claims (1)

【特許請求の範囲】[Claims] 中央演算処理装置からの命令によりアナログデジタル変
換を開始し、アナログデジタル変換終了後、中央演算処
理装置に対して割り込み信号を出力する形式のアナログ
デジタル変換器を内蔵するマイクロコンピュータにおい
て、第1のクロックドライバと第2のクロックドライバ
と、基本クロック信号の供給を禁止するための回路と、
記憶回路を有し、基本クロック信号を入力とする第1の
クロックドライバの出力はアナログデジタル変換器に接
続され、第2のクロックドライバは中央演算処理装置と
接続され、中央演算処理装置のアナログデジタル変換開
始信号とアナログデジタル変換器のアナログデジタル変
換終了信号は前記記憶回路に接続され、前記記憶回路の
出力がクロック信号の供給を禁止するための回路に接続
され、基本クロック信号の供給を禁止するための回路は
第2のクロックドライバに接続されていることを特徴と
するマイクロコンピュータ。
In a microcomputer with a built-in analog-to-digital converter that starts analog-to-digital conversion in response to a command from the central processing unit and outputs an interrupt signal to the central processing unit after the analog-to-digital conversion is completed, the first clock a driver, a second clock driver, a circuit for prohibiting the supply of a basic clock signal,
The output of the first clock driver, which has a memory circuit and receives the basic clock signal as input, is connected to an analog-to-digital converter, and the second clock driver is connected to the central processing unit, and the output of the first clock driver is connected to the analog-to-digital converter. The conversion start signal and the analog-to-digital conversion end signal of the analog-to-digital converter are connected to the storage circuit, and the output of the storage circuit is connected to a circuit for prohibiting the supply of a clock signal, and prohibits the supply of the basic clock signal. A microcomputer, characterized in that the circuit for is connected to a second clock driver.
JP1119303A 1989-05-11 1989-05-11 Microcomputer Pending JPH02297683A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1119303A JPH02297683A (en) 1989-05-11 1989-05-11 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1119303A JPH02297683A (en) 1989-05-11 1989-05-11 Microcomputer

Publications (1)

Publication Number Publication Date
JPH02297683A true JPH02297683A (en) 1990-12-10

Family

ID=14758083

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1119303A Pending JPH02297683A (en) 1989-05-11 1989-05-11 Microcomputer

Country Status (1)

Country Link
JP (1) JPH02297683A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04328624A (en) * 1991-04-30 1992-11-17 Toshiba Corp Analog-digital mixed integrated circuit
JP2000216342A (en) * 1999-01-21 2000-08-04 Mitsubishi Electric Corp Integrated circuit chip and processing method for unused pad

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04328624A (en) * 1991-04-30 1992-11-17 Toshiba Corp Analog-digital mixed integrated circuit
JP2000216342A (en) * 1999-01-21 2000-08-04 Mitsubishi Electric Corp Integrated circuit chip and processing method for unused pad

Similar Documents

Publication Publication Date Title
JP2661222B2 (en) Pulse output device
JPH07281782A (en) Clock control circuit
JPH02297683A (en) Microcomputer
US20090254691A1 (en) Microcontroller waveform generation
JPS638493B2 (en)
US20070198101A1 (en) MCU based motor controller with pre-load register and DMA controller
JP2000322282A (en) Microcomputer
JPS62235673A (en) Microcomputer
JPH0568751B2 (en)
JPH0562784B2 (en)
JP3151824B2 (en) Bus control circuit and microprocessor
JPH0230929Y2 (en)
JPH0644209B2 (en) Bus converter
JPH10290142A (en) Flip-flop circuit for semiconductor integrated circuit and its clock control circuit
JPH0876876A (en) Clock supply control circuit of microprocessor
JPH03214329A (en) Testing circuit of integrated circuit device
JPS6020261A (en) Output port of microprocessor
JPH05217006A (en) Semiconductor integrated circuit
JPH0380317A (en) Output circuit for reset pulse signal
JPS61128309A (en) Reset control circuit
JPS6329872A (en) Microcomputer
JPH01177633A (en) Variable period control logic device
JPH04311228A (en) Terminal function setting circuit
JPS5991555A (en) Method for controlling priority
JPH0340185A (en) One-chip microcomputer