JPH06100974B2 - Single-chip microcomputer - Google Patents
Single-chip microcomputerInfo
- Publication number
- JPH06100974B2 JPH06100974B2 JP63289466A JP28946688A JPH06100974B2 JP H06100974 B2 JPH06100974 B2 JP H06100974B2 JP 63289466 A JP63289466 A JP 63289466A JP 28946688 A JP28946688 A JP 28946688A JP H06100974 B2 JPH06100974 B2 JP H06100974B2
- Authority
- JP
- Japan
- Prior art keywords
- output
- chip microcomputer
- test
- data
- data bus
- 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.)
- Expired - Lifetime
Links
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
- Microcomputers (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明はシングルチップ・マイクロコンピュータに関
し、特にアナログ・ディジタル変換器(以下ADCと略
す。)を内蔵するシングルチップ・マイクロコンピュー
タに関する。The present invention relates to a single-chip microcomputer, and more particularly to a single-chip microcomputer incorporating an analog / digital converter (hereinafter abbreviated as ADC).
近年、ADC内蔵のシングルチップ・マイクロコンピュー
タが普及している。このシングルチップ・マイクロコン
ピュータは、内蔵されたADCの試験を行うために、PROM
等を利用し、シングルチップ・マイクロコンピュータ外
から命令を入力し、CPUに命令を実行させ、ADCのディジ
タル値と期待値の比較、あるいはディジタル値の出力端
子への導出を行っていた。In recent years, single-chip microcomputers with built-in ADC have become popular. This single-chip microcomputer uses a PROM to test the built-in ADC.
, Etc., an instruction was input from outside the single-chip microcomputer, the CPU was made to execute the instruction, the digital value of the ADC was compared with the expected value, or the digital value was derived to the output terminal.
上述した従来のシングルチップ・マイクロコンピュータ
は、内蔵されたADCの試験および特性評価を行うために
シングルチップ・マイクロコンピュータ内のCPUを動作
させるので、試験方法が複雑になるという欠点がある。The conventional single-chip microcomputer described above has a drawback that the test method is complicated because the CPU in the single-chip microcomputer is operated to test and characterize the built-in ADC.
〔課題を解決するための手段〕 本発明のシングルチップ・マイクロコンピュータは、テ
スト用入力端子と、テスト用入力端子からの信号により
ADCのディジタル値を内部データバスに出力しADCの同期
信号をシングルチップ・マイクロコンピュータ外へ出力
する手段と、前記内部データバスを出力端子に導出する
手段を有している。[Means for Solving the Problems] A single-chip microcomputer according to the present invention uses a test input terminal and a signal from the test input terminal.
It has means for outputting the digital value of the ADC to the internal data bus and outputting the synchronizing signal of the ADC to the outside of the single chip microcomputer, and means for deriving the internal data bus to the output terminal.
テスト用入力端子からテスト信号を入力することによ
り、ADCのディジタル値をCPUを動作させることなく、出
力端子に導出することができる。By inputting the test signal from the test input terminal, the digital value of the ADC can be derived to the output terminal without operating the CPU.
次に、本発明の実施例について図面を参照して説明す
る。Next, embodiments of the present invention will be described with reference to the drawings.
第1図は本発明のシングルチップ・マイクロコンピュー
タの一実施例のブロック図である。FIG. 1 is a block diagram of an embodiment of a single chip microcomputer of the present invention.
シングルチップ・マイクロコンピュータ1は、CPU2、AD
C3、周辺装置4、出力ポート5、AD変換結果保持レジス
タ(ADCR)6、データバス7、出力バッファB101〜B10
n,B201〜B20N,B301〜B30N(nはADC3の分解能、Nはデ
ータバス7のバス幅)、アンドゲート8,11、オアゲート
9,10,12、入力ゲートG101〜G10Nを有している。アンド
ゲート8の出力はテスト信号TESTが“0"で、かつCPU2よ
りデータバス7への出力許可信号OUT1が“1"の時に“1"
になり、CPU2のデータがデータバス7に出力される。オ
アゲート9の出力はテスト信号TESTが“1"または、AD変
換結果読出し信号ADRDが“1"の時に“1"になり、ADCR6
の値がデータバス7に出力される。オアゲート10は、テ
スト信号TESTが“1"またはAD変換開始要求信号ADSTART
が“1"の時に出力が“1"になり、ADC3は変換を開始す
る。アンドゲート11の出力は、テスト信号TESTが“0"
で、かつ周辺装置4よりデータバス7への出力許可信号
OUT2が“1"の時に“1"になり、周辺装置4のデータがデ
ータバス7に出力される。オアゲート12は、テスト信号
TESTが“1"または、出力ポート5の入力バッファオン信
号RORTONが“1"の時に“1"になり、データバス7上のデ
ータが出力ポート5より出力される。Single-chip microcomputer 1, CPU2, AD
C3, peripheral device 4, output port 5, AD conversion result holding register (ADCR) 6, data bus 7, output buffers B101 to B10
n, B201 to B20N, B301 to B30N (n is the resolution of ADC3, N is the bus width of data bus 7), AND gates 8,11 and OR gates
It has 9,10,12 and input gates G101 to G10N. The output of the AND gate 8 is "1" when the test signal TEST is "0" and the output enable signal OUT1 from the CPU2 to the data bus 7 is "1".
Then, the data of the CPU 2 is output to the data bus 7. The output of the OR gate 9 becomes "1" when the test signal TEST is "1" or the AD conversion result read signal ADRD is "1".
Is output to the data bus 7. The OR gate 10 has a test signal TEST of “1” or an AD conversion start request signal ADSTART.
When is “1”, the output becomes “1” and ADC3 starts conversion. As for the output of the AND gate 11, the test signal TEST is "0".
And an output enable signal from the peripheral device 4 to the data bus 7.
When OUT2 is "1", it becomes "1", and the data of the peripheral device 4 is output to the data bus 7. OR gate 12 is the test signal
When TEST is "1" or the input buffer ON signal RORTON of the output port 5 is "1", it becomes "1", and the data on the data bus 7 is output from the output port 5.
テスト信号TESTが“1"になった時、アンドゲート8,11の
値は“0"に、オアゲート9,10,12の値は“1"になり、CPU
2,周辺装置4は、データバス7への出力を禁止され、AD
C3は変換を開始し、変換が終了すると変換終了の同期信
号を出力し、変換結果をADCR6に書込む。ADCR6は、書込
まれた変換結果をデータバス7に出力し、出力ポート5
はデータバス7上の変換結果を出力端子に出力する。When the test signal TEST becomes "1", the values of AND gates 8 and 11 become "0", the values of OR gates 9, 10 and 12 become "1", and the CPU
2, the peripheral device 4 is prohibited from outputting to the data bus 7, and AD
C3 starts the conversion, and when the conversion ends, outputs a conversion end synchronization signal and writes the conversion result to ADCR6. The ADCR6 outputs the written conversion result to the data bus 7, and the output port 5
Outputs the conversion result on the data bus 7 to the output terminal.
第2図は本発明のシングルチップ・マイクロコンピュー
タの第2の実施例を示すブロック図である。FIG. 2 is a block diagram showing a second embodiment of the single-chip microcomputer of the present invention.
本実施例のシングルチップ・マイクロコンピュータ1A
は、Dタイプのラッチ201,202、立ち上がり検出回路20
3、立ち下がり検出回路204、ラッチ回路207,208、出力
ポート209,210、オアゲート211,213,215,217、アンドゲ
ート205,206,212,214,216,218を有し、他は第1の実施
例と同じである。Single-chip microcomputer 1A of this embodiment
Is a D-type latch 201, 202, rising edge detection circuit 20
3, the falling detection circuit 204, the latch circuits 207, 208, the output ports 209, 210, the OR gates 211, 213, 215, 217, and the AND gates 205, 206, 212, 214, 216, 218, and the others are the same as the first embodiment.
第1の実施例ではADC3の分解能nとデータバス7のバス
幅Nの関係はn≦Nであったが、第2の実施例では、n
≦2×Nとなる。In the first embodiment, the relationship between the resolution n of the ADC 3 and the bus width N of the data bus 7 is n ≦ N, but in the second embodiment, n
≦ 2 × N.
オアゲート211は、変換結果の下位ビット読出し信号ADL
RDが“1"またはテスト信号TESTが“1"、かつ変換終了の
同期信号が“0"の時に“1"になり、ADCR6の下位Nビッ
トがデータバス7に出力される。オアゲート213は変換
結果の上位ビット読出し信号ADHRDが“1"またはテスト
信号TESTが“1"、かつ変換終了の同期信号が“1"の時に
“1"になり、ADCR6のN+1ビットからnビットがデー
タバス7に出力される。オアゲート215は、出力ポート2
09のデータラッチ207へのデータ書込み信号P1WRが“1"
またはテスト信号TESTが“1"、かつアンドゲート205が
“1"の時に“1"になり、データバス7上のデータが出力
ポート209のデータラッチ207に書込まれ、出力ポート20
9より出力される。オアゲート217は、出力ポート210の
データラッチ208へのデータ書込み信号P2WRが“1"また
はテスト信号TESTが“1"、かつアンドゲート206が“1"
の時に“1"になり、データバス7上のデータが出力ポー
ト210のデータラッチ208に書込まれ出力ポート210より
出力される。The OR gate 211 outputs the lower bit read signal ADL of the conversion result.
When RD is "1" or the test signal TEST is "1" and the conversion end synchronization signal is "0", it becomes "1" and the lower N bits of ADCR6 are output to the data bus 7. The OR gate 213 becomes "1" when the conversion result high-order bit read signal ADHRD is "1" or the test signal TEST is "1" and the conversion end synchronization signal is "1", and N + 1 to n bits of ADCR6 are converted. It is output to the data bus 7. OR gate 215 has output port 2
Data write signal P1WR to 09 data latch 207 is “1”
Alternatively, when the test signal TEST is “1” and the AND gate 205 is “1”, it becomes “1”, the data on the data bus 7 is written to the data latch 207 of the output port 209, and the output port 20
It is output from 9. The OR gate 217 is configured such that the data write signal P2WR to the data latch 208 of the output port 210 is “1” or the test signal TEST is “1”, and the AND gate 206 is “1”.
At this time, it becomes "1", and the data on the data bus 7 is written in the data latch 208 of the output port 210 and output from the output port 210.
第3図はテスト信号TESTが“1"の時の第2図のシングル
チップ・マイクロコンピュータの動作を示すタイムチャ
ートである。CPU2,ADC3,周辺装置4の動作は第1の実施
例と同じなので省略する。ADC3より時刻t1からt3の2ク
ロック間出力された同期信号は、Dタイプラッチ201,20
2により1クロックの遅延がかけられ、時刻t2からt4の
信号となる。立ち上がり検出回路203はDタイプラッチ2
02の出力が時刻t2で立ち上がるのを検出し“1"を出力
し、アンドゲート205はクロック信号φが“1"の期間
“1"になり、オアゲート215の出力が“1"になり、出力
ポート209のデータラッチ207にデータバス7上のデータ
が時刻t2でラッチされる。この時、オアゲート213は時
刻t1からt3の期間“1"になっているためデータバス7上
にはADCR6の上位データがのっている。したがって、出
力ポート209からはADCR6の上位データが出力される。次
に、時刻t4でDタイプラッチ202の出力が立ち下がる
時、立ち下がりエッジ検出回路204の出力が“1"にな
り、アンドゲート206がクロック信号φが“1"の期間
“1"になり、オアゲート217が“1"になり出力ポート210
のデータラッチ208にデータバス7上のデータが時刻t4
でラッチされる。この時オアゲート211は時刻t3以降
“1"になっているため、データバス7上にはADCR6の下
位データがのっている。したがって、出力ポート210か
らはADCR6の下位データが出力される。FIG. 3 is a time chart showing the operation of the single-chip microcomputer shown in FIG. 2 when the test signal TEST is "1". The operations of the CPU 2, the ADC 3, and the peripheral device 4 are the same as those in the first embodiment, and will be omitted. The synchronizing signal output from ADC3 for two clocks from time t 1 to t 3 is the D-type latch 201, 20.
A delay of 1 clock is applied by 2 and becomes a signal from time t 2 to t 4 . The rising edge detection circuit 203 is a D type latch 2
It detects that the output of 02 rises at time t 2 and outputs “1”, the AND gate 205 becomes “1” while the clock signal φ is “1”, and the output of the OR gate 215 becomes “1”, The data on the data bus 7 is latched in the data latch 207 of the output port 209 at time t 2 . In this case, the OR gate 213 is on the data bus 7 because it is made from time t 1 to the period "1" of t 3 are riding high-order data of ADCR6. Therefore, the upper data of ADCR6 is output from the output port 209. Next, at time t 4 , when the output of the D-type latch 202 falls, the output of the falling edge detection circuit 204 becomes “1”, and the AND gate 206 sets it to “1” while the clock signal φ is “1”. OR gate 217 becomes “1” and output port 210
The data on the data bus 7 is stored in the data latch 208 of the time t 4
Is latched by. At this time, the OR gate 211 because it has become a time t 3 after the "1", on the data bus 7 is riding backward data of ADCR6. Therefore, the lower data of ADCR6 is output from the output port 210.
以上の動作でADCR6の上位,下位のデータが出力される
ことになる。With the above operation, the upper and lower data of ADCR6 will be output.
以上説明したように本発明は、ADC内蔵シングルチップ
・マイクロコンピュータにおいて、テスト用入力端子信
号により、CPUを動作させることなくADCのディジタル値
と同期信号とを出力端子に導出することにより、シング
ルチップ・マイクロコンピュータに内蔵されたADCの試
験および評価を容易にできる効果がある。As described above, the present invention is a single-chip microcomputer with a built-in ADC, by deriving the ADC digital value and the synchronizing signal to the output terminal without operating the CPU by the test input terminal signal, and -It has the effect of facilitating testing and evaluation of the ADC built into the microcomputer.
第1図は本発明のシングルチップ・マイクロコンピュー
タの第1の実施例を示すブロック図、第2図は本発明の
シングルチップ・マイクロコンピュータの第2の実施例
を示すブロック図、第3図は第2図の動作を説明するタ
イムチャートである。 1,1A…シングルチップ・マイクロコンピュータ、2…CP
U、3…ADC、4…周辺装置、5,209,210…出力ポート、
6…ADCR、7…データバス、8,11,205,206,212,214,21
6,218…アンドゲート、9,10,12,211,213,215,217…オア
ゲート、201,202…Dタイプラッチ、203…立ち上がりエ
ッジ検出回路、204…立ち下がりエッジ検出回路、207,2
08…データラッチ、B101〜B10n,B201〜B20N,B301〜B30N
…出力バッファ、G101〜G10N…入力ゲート。FIG. 1 is a block diagram showing a first embodiment of a single-chip microcomputer of the present invention, FIG. 2 is a block diagram showing a second embodiment of the single-chip microcomputer of the present invention, and FIG. 3 is a time chart explaining the operation of FIG. 2. 1,1A ... Single chip microcomputer, 2 ... CP
U, 3 ... ADC, 4 ... Peripheral device, 5,209, 210 ... Output port,
6 ... ADCR, 7 ... data bus, 8,11,205,206,212,214,21
6,218 ... AND gate, 9,10,12,211,213,215,217 ... OR gate, 201,202 ... D type latch, 203 ... Rising edge detection circuit, 204 ... Falling edge detection circuit, 207, 2
08 ... Data latch, B101 to B10n, B201 to B20N, B301 to B30N
… Output buffers, G101 to G10N… Input gates.
Claims (1)
ングルチップ・マイクロコンピュータにおいて、 テスト用入力端子と、前記テスト用入力端子からのテス
ト信号により前記アナログ・ディジタル変換器のディジ
タル値を内部データバスに出力しアナログ・ディジタル
変換器の同期信号を前記シングルチップ・マイクロコン
ピュータ外へ出力する手段と、前記内部データバスを出
力端子に導出する手段を有することを特徴とするシング
ルチップ・マイクロコンピュータ。1. A single-chip microcomputer incorporating an analog-digital converter, wherein a digital value of the analog-digital converter is transferred to an internal data bus by a test input terminal and a test signal from the test input terminal. A single-chip microcomputer having means for outputting and outputting the synchronizing signal of the analog-digital converter to the outside of the single-chip microcomputer, and means for deriving the internal data bus to an output terminal.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63289466A JPH06100974B2 (en) | 1988-11-15 | 1988-11-15 | Single-chip microcomputer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63289466A JPH06100974B2 (en) | 1988-11-15 | 1988-11-15 | Single-chip microcomputer |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH02135543A JPH02135543A (en) | 1990-05-24 |
| JPH06100974B2 true JPH06100974B2 (en) | 1994-12-12 |
Family
ID=17743638
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63289466A Expired - Lifetime JPH06100974B2 (en) | 1988-11-15 | 1988-11-15 | Single-chip microcomputer |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH06100974B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3098327B2 (en) * | 1992-07-17 | 2000-10-16 | 九州日本電気株式会社 | One-chip microcomputer |
-
1988
- 1988-11-15 JP JP63289466A patent/JPH06100974B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH02135543A (en) | 1990-05-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2957177B2 (en) | Micro computer | |
| WO1991020051A1 (en) | Microcomputer provided with built-in converter | |
| JPH06100974B2 (en) | Single-chip microcomputer | |
| SU1624532A1 (en) | D flip-flop | |
| JPH05315971A (en) | Serial/parallel conversion circuit | |
| JP2606458Y2 (en) | Signal level monitoring circuit | |
| JPS6111803Y2 (en) | ||
| JPH02135823A (en) | D/A converter | |
| JPH07262045A (en) | DSP firmware debug device | |
| SU1667082A1 (en) | Majority gate | |
| JPH0767288B2 (en) | Gate pulse controller for thyristor inverter | |
| JPH0126218B2 (en) | ||
| JP2536489B2 (en) | Compressed data decoding device | |
| JPS6367667A (en) | Microprocessor containing analog/digital conversion mechanism | |
| JPS6014375B2 (en) | Match detection circuit | |
| JPH073019U (en) | Operation mode setting circuit | |
| JPH0330899B2 (en) | ||
| JP2521535B2 (en) | Data transfer circuit | |
| JPH01109425A (en) | Fifo memory | |
| JPS6364698A (en) | Memory device | |
| JPH04353922A (en) | Data conversion method | |
| JPS6114531B2 (en) | ||
| JPH02123813A (en) | Chattering removal circuit | |
| JPH0636164B2 (en) | FFT operation device | |
| JPS62172458A (en) | Output port data setting circuit for microcomputer |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20071212 Year of fee payment: 13 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081212 Year of fee payment: 14 |
|
| EXPY | Cancellation because of completion of term |