JPH05183438A - Analog digital conversion circuit - Google Patents
Analog digital conversion circuitInfo
- Publication number
- JPH05183438A JPH05183438A JP36002891A JP36002891A JPH05183438A JP H05183438 A JPH05183438 A JP H05183438A JP 36002891 A JP36002891 A JP 36002891A JP 36002891 A JP36002891 A JP 36002891A JP H05183438 A JPH05183438 A JP H05183438A
- Authority
- JP
- Japan
- Prior art keywords
- signal
- input
- terminal
- register
- conversion result
- 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.)
- Granted
Links
Landscapes
- Analogue/Digital Conversion (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、アナログ・デジタル変
換回路に関し、特に複数のアナログ入力信号の中から一
つの信号を選択して変換する、シングルチップ・マイク
ロコンピュータに内蔵されたアナログ・デジタル変換回
路に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an analog / digital conversion circuit, and more particularly to an analog / digital conversion built in a single-chip microcomputer for selecting and converting one signal from a plurality of analog input signals. Regarding the circuit.
【0002】[0002]
【従来の技術】図3は、この種従来のアナログ・デジタ
ル変換回路のブロック図である。同図に示されるよう
に、従来のアナログ・デジタル変換回路は、それぞれア
ナログ信号が入力される複数の端子を備えた入力端子部
1と、端子選択信号SLが入力され、複数の入力端子の
中から1つの端子を選択する入力セレクタ部2と、入力
アナログ信号のA/D変換を行うA/D変換器3と、得
られた変換結果を保持するA/D変換結果レジスタ4
と、内部バス5と、それらをつなぐ信号線とから構成さ
れている。2. Description of the Related Art FIG. 3 is a block diagram of a conventional analog / digital conversion circuit of this type. As shown in the figure, the conventional analog-to-digital conversion circuit includes an input terminal unit 1 having a plurality of terminals to which analog signals are respectively input, and a terminal selection signal SL being input, , An input selector section 2 for selecting one terminal, an A / D converter 3 for A / D converting an input analog signal, and an A / D conversion result register 4 for holding the obtained conversion result.
, An internal bus 5, and a signal line connecting them.
【0003】入力端子部1に入力されたアナログ信号の
一つが端子選択信号SLにより入力セレクタ部2におい
て選択される。選択されたアナログ信号はA/D変換器
3においてA/D変換される。A/D変換された結果
は、A/D変換終了と同時にレジスタ4へ転送される。One of the analog signals input to the input terminal section 1 is selected in the input selector section 2 by the terminal selection signal SL. The selected analog signal is A / D converted in the A / D converter 3. The result of the A / D conversion is transferred to the register 4 at the same time when the A / D conversion is completed.
【0004】また、入力セレクタ部2は一定時間経過
後、次の端子選択信号SLにより次のアナログ信号を選
択し、前記と同様にA/D変換を行いA/D変換結果レ
ジスタへ転送する。A/D変換結果レジスタ4内のデー
タは、読み出し信号RD1 により内部バス5へ読み出さ
れる。その場合、どの端子からの信号の変換結果を読み
出したのであるかは、端子選択信号SLを参照し、何番
目の端子選択信号がどの端子を選択したのかを認識する
ことによって行っていた。Further, the input selector section 2 selects the next analog signal by the next terminal selection signal SL after a lapse of a fixed time, performs A / D conversion in the same manner as described above, and transfers it to the A / D conversion result register. The data in the A / D conversion result register 4 is read to the internal bus 5 by the read signal RD 1 . In that case, which terminal the signal conversion result is read from is determined by referring to the terminal selection signal SL and recognizing which terminal is selected by which terminal selection signal.
【0005】[0005]
【発明が解決しようとする課題】上述した従来のアナロ
グ・デジタル変換回路は、強制的に順次異なるA/D変
換結果を一つのA/D変換結果レジスタへ転送してい
る。この状態で順次A/D変換結果を使用したいと考え
た場合、ソフトウェア処理、またはハードウェア処理に
より順次A/D変換結果レジスタをアクセスしなければ
ならない。しかし、何らかの原因により次の変換動作が
終了するまでに、即ち、A/D変換結果レジスタの内容
が書き換えられる前に、A/D変換レジスタをアクセス
できない場合が発生すると、読みとばしが起こり、これ
が繰り返されると、どの入力端子からの信号のA/D変
換結果がA/D変換結果レジスタに転送されているかを
確認することができなくなるという問題があった。The conventional analog-to-digital conversion circuit described above forcibly transfers sequentially different A / D conversion results to one A / D conversion result register. If it is desired to sequentially use the A / D conversion result in this state, the A / D conversion result register must be sequentially accessed by software processing or hardware processing. However, if for some reason the A / D conversion register cannot be accessed before the next conversion operation is completed, that is, before the contents of the A / D conversion result register are rewritten, skipping occurs and this When repeated, there is a problem that it is not possible to confirm which input terminal the A / D conversion result of the signal is transferred to the A / D conversion result register.
【0006】[0006]
【課題を解決するための手段】本発明のアナログ・デジ
タル変換回路は、それぞれにアナログ信号が入力される
複数の入力端子と、前記複数の入力端子の中から1つの
入力端子を選択する入力セレクタ部と、選択された入力
端子に入力されたアナログ信号をデジタル信号に変換す
るA/D変換器と、ラッチ信号により前記A/D変換器
の変換結果をラッチするA/D変換結果レジスタと、前
記ラッチ信号と同一タイミングのラッチ信号により、選
択された入力端子の番号を取り込み、これを記憶してお
く端子ナンバーラッチレジスタと、具備するものであ
る。SUMMARY OF THE INVENTION An analog-digital conversion circuit according to the present invention comprises a plurality of input terminals to which analog signals are input, and an input selector for selecting one input terminal from the plurality of input terminals. A unit, an A / D converter that converts an analog signal input to a selected input terminal into a digital signal, an A / D conversion result register that latches a conversion result of the A / D converter by a latch signal, A terminal number latch register for fetching the number of the selected input terminal by the latch signal at the same timing as the latch signal and storing the number is stored.
【0007】[0007]
【実施例】次に、本発明の実施例について図面を参照し
て説明する。図1は、本発明の第1の実施例のブロック
図である。同図に示されるように、本実施例の回路は、
アナログ信号を外部からマイクロコンピュータ内部にと
りこむ複数の入力端子を備えた入力端子部1と、この複
数の入力端子の中から、端子選択信号SLにより、1つ
の端子(即ち、1つのアナログ信号)を選択する入力セ
レクタ部2と、選択されたアナログ信号をA/D変換す
るためのA/D変換器3と、A/D変換器3で変換され
た結果を、ラッチ信号LTにより保持するA/D変換結
果レジスタ4と、内部バス5と、ラッチ信号LTにより
現在選択中の端子番号を取り込む端子ナンバーラッチレ
ジスタ6と、から構成される。Embodiments of the present invention will now be described with reference to the drawings. FIG. 1 is a block diagram of the first embodiment of the present invention. As shown in the figure, the circuit of this embodiment is
An input terminal unit 1 having a plurality of input terminals for receiving an analog signal from the outside into the microcomputer, and one terminal (that is, one analog signal) is selected from the plurality of input terminals by a terminal selection signal SL. An input selector unit 2 to be selected, an A / D converter 3 for A / D converting the selected analog signal, and a result obtained by the A / D converter 3 being held by a latch signal LT. It comprises a D conversion result register 4, an internal bus 5, and a terminal number latch register 6 for receiving the terminal number currently selected by the latch signal LT.
【0008】次に本実施例回路の動作について説明す
る。アナログ信号は入力端子部1より入力され、信号線
を介して入力セレクタ部2に入力される。セレクタ部2
は、複数の信号線を介して入力されたアナログ信号の中
から、端子選択信号SLにより1つのアナログ信号を選
択し、信号線を介してA/D変換器3にアナログ信号を
伝達する。A/D変換器3はアナログ信号のA/D変換
を終了すると、変換結果をA/D変換結果レジスタ4に
転送する。Next, the operation of the circuit of this embodiment will be described. The analog signal is input from the input terminal unit 1 and input to the input selector unit 2 via the signal line. Selector unit 2
Selects one analog signal by the terminal selection signal SL from the analog signals input via the plurality of signal lines, and transmits the analog signal to the A / D converter 3 via the signal line. When the A / D converter 3 completes the A / D conversion of the analog signal, it transfers the conversion result to the A / D conversion result register 4.
【0009】A/D変換結果レジスタ4は、ラッチ信号
LTによりA/D変換結果を取り込みこれを保持する。
この同じラッチ信号LTにより端子ナンバーラッチレジ
スタ6は端子選択信号SLをラッチする。この結果、変
換端子ナンバーラッチレジスタ6にアクセスすることに
より現在どの端子から入力されたアナログ信号がA/D
変換されたのかを知ることが可能となる。The A / D conversion result register 4 takes in the A / D conversion result by the latch signal LT and holds it.
The terminal number latch register 6 latches the terminal selection signal SL by this same latch signal LT. As a result, by accessing the conversion terminal number latch register 6, the analog signal currently input from which terminal is A / D
It is possible to know if it has been converted.
【0010】本実施例において、A/D変換結果レジス
タ4と端子ナンバーラッチレジスタ6とに順次読み出し
信号RD1 、RD2 を印加して内部バス5を介してA/
D変換結果および対応する入力端子番号を得ることがで
きる。この場合、レジスタ4、6のビット数に対し内部
バス5の信号線の数に余裕があるときには、レジスタ
4、6に同一タイミングの読み出し信号を印加してこれ
らのレジスタのデータを読み出すようにしてもよい。In this embodiment, the read signals RD 1 and RD 2 are sequentially applied to the A / D conversion result register 4 and the terminal number latch register 6 and the A / D conversion result register 4 and the terminal number latch register 6 are connected to each other via the internal bus 5.
The D conversion result and the corresponding input terminal number can be obtained. In this case, when the number of signal lines of the internal bus 5 has a margin with respect to the number of bits of the registers 4 and 6, read signals of the same timing are applied to the registers 4 and 6 to read the data of these registers. Good.
【0011】図2は本発明の第2の実施例を示すブロッ
ク図である。本実施例では、図1の実施例に対し、A/
D変換結果レジスタ4のデータを読み出すための読み出
し信号RD1 によって、端子ナンバーラッチレジスタ6
のデータを取り込む端子ナンバー格納レジスタ7が追加
されているが、これ以外の構成は図1の実施例と同様で
ある。FIG. 2 is a block diagram showing a second embodiment of the present invention. This embodiment is different from the embodiment of FIG.
By the read signal RD 1 for reading the data of the D conversion result register 4, the terminal number latch register 6
A terminal number storage register 7 for taking in the data of 1 is added, but the other configuration is the same as that of the embodiment of FIG.
【0012】この実施例では、ラッチ信号LTによりA
/D変換結果レジスタ4に、A/D変換結果が、また端
子ナンバ−ラッチレジスタ6に、A/D変換された入力
信号が入力された端子の番号がラッチされる。この状態
でA/D変換結果レジスタ4に読み出し信号RD1 を印
加して、レジスタ4内のデータを読み出すのであるが、
同時にこの読み出し信号RD1 により、端子ナンバーラ
ッチレジスタ6内に記憶されていた端子番号を端子ナン
バー格納レジスタ7に格納する。続いて、読み出し信号
RD2 より端子ナンバー格納レジスタ7内のデータを内
部バス5へ読み出す。In this embodiment, the latch signal LT causes A
The A / D conversion result is latched in the / D conversion result register 4, and the terminal number to which the A / D converted input signal is input is latched in the terminal number latch register 6. In this state, the read signal RD 1 is applied to the A / D conversion result register 4 to read the data in the register 4.
At the same time, the read signal RD 1 stores the terminal number stored in the terminal number latch register 6 in the terminal number storage register 7. Then, the data in the terminal number storage register 7 is read to the internal bus 5 from the read signal RD 2 .
【0013】図1の実施例では、A/D変換結果レジス
タ4のデータを読み出した後に端子ナンバーラッチレジ
スタ6のデータを読み出す場合、レジスタ4の読み出し
を行った後レジスタ6の読み出しを行う前に次のラッチ
信号LTが入って、読み出したA/D変換結果と次に読
み出す端子番号とが合わなくなることがあったが、本実
施例では、A/D変換結果レジスタ4への読み出し信号
RD1 により端子ナンバー格納レジスタ7に端子番号を
取り込んでいるため、A/D変換結果レジスタ4を読み
出した後、次のラッチ信号がA/D変換結果レジスタ4
および端子ナンバーラッチレジスタ6に入力されても、
端子ナンバー格納レジスタ7には、A/D変換結果レジ
スタ4から読み出された内容に対応する正しい端子番号
が保持されており、図1の実施例での上記不都合が生じ
ることはなくなる。In the embodiment of FIG. 1, when the data of the terminal number latch register 6 is read after reading the data of the A / D conversion result register 4, after reading the register 4 and before reading the register 6. There was a case where the next latch signal LT was input and the read A / D conversion result and the next read terminal number did not match. However, in the present embodiment, the read signal RD 1 to the A / D conversion result register 4 Since the terminal number is stored in the terminal number storage register 7 by the following, after the A / D conversion result register 4 is read, the next latch signal is the A / D conversion result register 4
And input to the terminal number latch register 6,
The terminal number storage register 7 holds the correct terminal number corresponding to the contents read from the A / D conversion result register 4, and the above-mentioned inconvenience in the embodiment of FIG. 1 does not occur.
【0014】[0014]
【発明の効果】以上説明したように、本発明のアナログ
・デジタル変換回路は、複数の入力端子からアナログ信
号を入力して、選択された入力端子の信号をA/D変換
するものにおいて、端子ナンバーラッチレジスタを設
け、これに、A/D変換結果レジスタにA/D変換結果
を格納すると同時に、選択された端子番号を入力するよ
うにしたものであるので、本発明によれば、端子ナンバ
ーラッチレジスタまたはこのレジスタのデータを転写し
たレジスタにアクセスすることにより、必要なA/D変
換結果にアクセスできたかどうかやどの端子からのアナ
ログ信号にアクセスできなかったかを確認することがで
きるようになる。従って、A/D変換結果のアクセス漏
れが起きた場合に、どの端子からのアナログ信号をA/
D変換し直せば正しい情報となるかを知ることができ、
マイクロコンピュータの処理において正しい処理結果を
得ることが可能になる。As described above, the analog-to-digital conversion circuit of the present invention is one in which analog signals are input from a plurality of input terminals and the signals of the selected input terminals are A / D converted. Since the number latch register is provided and the A / D conversion result is stored in the A / D conversion result register, the selected terminal number is input at the same time. By accessing the latch register or the register to which the data of this register is transferred, it becomes possible to confirm whether or not the necessary A / D conversion result can be accessed and from which terminal the analog signal cannot be accessed. .. Therefore, when an access leakage of the A / D conversion result occurs, the analog signal from which terminal is A / D
You can know if the correct information will be obtained if you perform D conversion again.
It becomes possible to obtain a correct processing result in the processing of the microcomputer.
【図1】本発明の第1の実施例を示すブロック図。FIG. 1 is a block diagram showing a first embodiment of the present invention.
【図2】本発明の第2の実施例の示すブロック図。FIG. 2 is a block diagram showing a second embodiment of the present invention.
【図3】従来例のブロック図。FIG. 3 is a block diagram of a conventional example.
1 入力端子部 2 入力セレクタ部 3 A/D変換器 4 A/D変換結果レジスタ 5 内部バス 6 端子ナンバーラッチレジスタ 7 端子ナンバー格納レジスタ LT ラッチ信号 RD1 、RD2 読み出し信号 SL 端子選択信号1 Input terminal section 2 Input selector section 3 A / D converter 4 A / D conversion result register 5 Internal bus 6 Terminal number latch register 7 Terminal number storage register LT Latch signal RD 1 , RD 2 Read signal SL terminal selection signal
Claims (2)
数の入力端子と、前記複数の入力端子の中から1つの入
力端子を選択する入力セレクタ部と、選択された入力端
子に入力されたアナログ信号をデジタル信号に変換する
A/D変換器と、ラッチ信号により前記A/D変換器の
変換結果をラッチするA/D変換結果レジスタと、前記
ラッチ信号と同一タイミングのラッチ信号により、選択
された入力端子の番号を取り込み、これを記憶しておく
端子ナンバーラッチレジスタと、を具備するアナログ・
デジタル変換回路。1. A plurality of input terminals to which an analog signal is respectively input, an input selector section for selecting one input terminal from the plurality of input terminals, and an analog signal input to the selected input terminal. Selected by an A / D converter for converting the signal into a digital signal, an A / D conversion result register for latching the conversion result of the A / D converter by a latch signal, and a latch signal at the same timing as the latch signal. An analog terminal equipped with a terminal number latch register that captures the input terminal number and stores it
Digital conversion circuit.
数の入力端子と、前記複数の入力端子の中から1つの入
力端子を選択する入力セレクタ部と、選択された入力端
子に入力されたアナログ信号をデジタル信号に変換する
A/D変換器と、ラッチ信号により前記A/D変換器の
変換結果をラッチするA/D変換結果レジスタと、前記
ラッチ信号と同一タイミングのラッチ信号により、選択
された入力端子の番号を取り込み、これを記憶しておく
端子ナンバーラッチレジスタと、前記A/D変換結果レ
ジスタのデータを読み出すのと同一のタイミングで前記
端子ナンバーラッチレジスタに記憶された入力端子の番
号を読み出して記憶する端子ナンバー格納レジスタと、
を具備するアナログ・デジタル変換回路。2. A plurality of input terminals to which an analog signal is input, an input selector section for selecting one input terminal from the plurality of input terminals, and an analog signal input to the selected input terminal. Selected by an A / D converter for converting the signal into a digital signal, an A / D conversion result register for latching the conversion result of the A / D converter by a latch signal, and a latch signal at the same timing as the latch signal. The number of the input terminal stored in the terminal number latch register is read at the same timing as when the number of the input terminal is fetched and stored and the data of the A / D conversion result register is read. A terminal number storage register to read and store,
Analog-to-digital conversion circuit equipped with.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3360028A JP2827647B2 (en) | 1991-12-27 | 1991-12-27 | Analog / digital conversion circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3360028A JP2827647B2 (en) | 1991-12-27 | 1991-12-27 | Analog / digital conversion circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH05183438A true JPH05183438A (en) | 1993-07-23 |
JP2827647B2 JP2827647B2 (en) | 1998-11-25 |
Family
ID=18467530
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP3360028A Expired - Lifetime JP2827647B2 (en) | 1991-12-27 | 1991-12-27 | Analog / digital conversion circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2827647B2 (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS54122949A (en) * | 1978-03-17 | 1979-09-22 | Hitachi Ltd | Analog input unit for computer |
JPH0287721A (en) * | 1988-09-26 | 1990-03-28 | Toshiba Corp | Analog input device |
-
1991
- 1991-12-27 JP JP3360028A patent/JP2827647B2/en not_active Expired - Lifetime
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS54122949A (en) * | 1978-03-17 | 1979-09-22 | Hitachi Ltd | Analog input unit for computer |
JPH0287721A (en) * | 1988-09-26 | 1990-03-28 | Toshiba Corp | Analog input device |
Also Published As
Publication number | Publication date |
---|---|
JP2827647B2 (en) | 1998-11-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5602780A (en) | Serial to parallel and parallel to serial architecture for a RAM based FIFO memory | |
GB2060961A (en) | Data processing system having memory modules with distributed address information | |
JPH05183438A (en) | Analog digital conversion circuit | |
JP3498106B2 (en) | Analog-to-digital converter | |
JP3102754B2 (en) | Information utilization circuit | |
JPS63304314A (en) | Integrated circuit device | |
US20010055232A1 (en) | Serial access memory and data write/read method | |
JPS5812605B2 (en) | data processing equipment | |
US4747075A (en) | Apparatus for storing analog signal samples | |
KR920002248B1 (en) | Interfacing method and apparatus therefor of data acquisition system | |
US5983311A (en) | Sequential memory accessing circuit and method of addressing two memory units using common pointer circuit | |
JPS647520Y2 (en) | ||
JP2715656B2 (en) | Analog-to-digital converter | |
JPH04298882A (en) | Dual port memory | |
JP3057217B2 (en) | Waveform display device | |
JP2518387B2 (en) | Serial data transmission circuit | |
JPS6248938B2 (en) | ||
SU1164691A1 (en) | Sweep generator for radar image converter | |
JP2521535B2 (en) | Data transfer circuit | |
JPH07240687A (en) | Data shift circuit for a/d converter | |
JP2526042Y2 (en) | Memory / register control circuit | |
JP3309458B2 (en) | Storage device | |
JP3033334B2 (en) | Data storage device | |
SU1608677A2 (en) | Channel to channel adapter | |
JPH04274618A (en) | Successive approximation a/d converter |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080918 Year of fee payment: 10 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Year of fee payment: 10 Free format text: PAYMENT UNTIL: 20080918 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Year of fee payment: 11 Free format text: PAYMENT UNTIL: 20090918 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090918 Year of fee payment: 11 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Year of fee payment: 12 Free format text: PAYMENT UNTIL: 20100918 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Year of fee payment: 12 Free format text: PAYMENT UNTIL: 20100918 |
|
S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Year of fee payment: 12 Free format text: PAYMENT UNTIL: 20100918 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110918 Year of fee payment: 13 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110918 Year of fee payment: 13 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Year of fee payment: 14 Free format text: PAYMENT UNTIL: 20120918 |
|
EXPY | Cancellation because of completion of term | ||
FPAY | Renewal fee payment (prs date is renewal date of database) |
Year of fee payment: 14 Free format text: PAYMENT UNTIL: 20120918 |