JPS63205726A - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JPS63205726A
JPS63205726A JP62038317A JP3831787A JPS63205726A JP S63205726 A JPS63205726 A JP S63205726A JP 62038317 A JP62038317 A JP 62038317A JP 3831787 A JP3831787 A JP 3831787A JP S63205726 A JPS63205726 A JP S63205726A
Authority
JP
Japan
Prior art keywords
converter
memory
address
data
cpu
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
JP62038317A
Other languages
Japanese (ja)
Inventor
Susumu Yamada
進 山田
Hiroshi Koyama
博 小山
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP62038317A priority Critical patent/JPS63205726A/en
Publication of JPS63205726A publication Critical patent/JPS63205726A/en
Pending legal-status Critical Current

Links

Landscapes

  • Microcomputers (AREA)
  • Analogue/Digital Conversion (AREA)

Abstract

PURPOSE:To make an intervention of a software unnecessary by providing an exclusive bus between an A/D converter and a memory, directly transferring a data to be memory from the A/D converter through this exclusive bus, and storing it in the memory. CONSTITUTION:The titled microcomputer is provided with an exclusive bus 5 for connecting an A/D (analog/digital) converter 1 and a memory 4, and an address counter 3 for generating successively an address for storing a data to the memory, whenever a digital data is outputted from the A/D converter 1. As a result, by the address generated successively by this address counter 3, the digital data outputted from the A/D converter 1 can be stored successively in the memory 4. Accordingly, the digital data converted from an analog signal by the A/D converter 1 is transferred to an internal memory through the exclusive bus 5 without an intervention of a software of a CPU, and stored. In such a way, a burden of the CPU is reduced, and the processing efficiency of other software by the CPU is improved by that portion.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はマ・イクロコンピュータに関し、更に詳述すれ
ば、アナログ信号をデジタル信号に変換してメモリに格
納するためのA/D変換器を備えたマイクロコンピュー
タに関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a microcomputer, and more specifically, to an A/D converter for converting an analog signal into a digital signal and storing it in a memory. This invention relates to a microcomputer equipped with a microcomputer.

〔従来技術〕[Prior art]

一般的な測定器等にて得られるアナログ信号をマイクロ
コンピュータにて処理しまたメモリに格納可能なデータ
とするには所謂アナログ/デジタル変換を行う必要があ
る。このため、マイクロコンピュータにはアナログ信号
をデジタル信号に変換するためのアナログ/デジタル(
以下、A/Dという)変換器が備えられている場合が多
い。
In order for a microcomputer to process an analog signal obtained by a general measuring instrument and convert it into data that can be stored in a memory, it is necessary to perform so-called analog/digital conversion. For this reason, microcomputers are required to convert analog signals into digital signals (analog/digital).
In many cases, a converter (hereinafter referred to as A/D) is provided.

ところで、A/D変換器にて変換された後のデジタルデ
ータをマイクロコンピュータの内部メモリに格納するた
めの従来の手法としては、一単位、たとえば1バイトの
デジタルデータが得られる都度、CPUに割込みが掛け
られてCPUによるソフトウェア処理により、A/D変
換器にて得られたデジタルデータがメモリに転送され、
格納される構成が採られている。
By the way, the conventional method for storing digital data converted by an A/D converter in the internal memory of a microcomputer is to interrupt the CPU every time one unit (for example, one byte) of digital data is obtained. is multiplied and the digital data obtained by the A/D converter is transferred to the memory through software processing by the CPU.
A configuration is adopted in which the information is stored.

このような構成ではCPUのソフI・ウェア処理に重い
負担が加わるため、CPUにより実行されるべき本来の
ソフトウェア処理の速度が低下する他、緊急度が高い割
込み要求に即応することが出来ず、またA/D変換器に
よるハードウェア的処理の高速化に対処仕切れなくなる
等の問題が生じる虞がある。
This configuration places a heavy burden on the CPU's software processing, which slows down the original software processing that should be executed by the CPU, and makes it impossible to immediately respond to interrupt requests with high urgency. Further, there is a possibility that problems such as being unable to cope with the increased speed of hardware processing by the A/D converter may occur.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

このような観点から、たとえばA/fl変換器により得
られたデジタルデータを逐次的にソフトウェアで処理す
るのでは無く、専用のレジスタに一旦保持し、このレジ
スタにある程度のデータ量が蓄積された時点でCPUに
割込みを掛け、CPuによるソフトウェア処理にてメモ
リに転送する構成が実用化されている( 「μP078
11G/7810G J  NECマニュアル)。
From this point of view, for example, instead of processing digital data obtained by an A/fl converter sequentially using software, it is temporarily stored in a dedicated register, and when a certain amount of data has been accumulated in this register. A configuration has been put into practical use that interrupts the CPU and transfers it to memory through software processing by the CPU ("μP078
11G/7810G J NEC manual).

しかし、上述の構成例においても、やはりCPUのソフ
トウェア的介入は必要であり、問題点の完全な解決とは
言い難い。
However, even in the above-mentioned configuration example, software intervention of the CPU is still necessary, and it cannot be said that the problem is completely solved.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は以上のような事情に鑑みてなされたものでアリ
、マイクロコンピュータがデータの十云送に使用してい
る通常の内部バスとは別に、A/D変換器とメモリとの
間に専用バスを備え、この専用バスを経由してA/D変
換器からメモリにデータを直接転送してメモリに格納さ
せる構成を採っている。
The present invention was made in view of the above circumstances, and apart from the normal internal bus that microcomputers use to send data, there is a dedicated bus between the A/D converter and the memory. A bus is provided, and data is directly transferred from the A/D converter to the memory via this dedicated bus and is stored in the memory.

本発明は、アナログ信号をA/D変換器にてデジタル信
号に変換してメモリに格納すべくなしたマイクロコンピ
ュータにおいて、前記A/D変換器と前記メモリとを接
続する専用バスと、前記A/D変換器からデジタルデー
タが出力される都度、前記メモリへのデータ格納のため
のアドレスを順次発生するアドレスカウンタと、前記ア
ドレスカウンタにて順次発生されるアドレスに従って前
記A/D変換器から出力されるデジタルデータを前記メ
モリに順次格納すべくなしたことを特徴とする。
The present invention provides a microcomputer in which an analog signal is converted into a digital signal by an A/D converter and stored in a memory, and a dedicated bus connecting the A/D converter and the memory; an address counter that sequentially generates an address for storing data in the memory each time digital data is output from the A/D converter; and an address counter that sequentially generates an address for storing data in the memory; The present invention is characterized in that the digital data to be displayed are sequentially stored in the memory.

〔作用〕[Effect]

本発明に係るマイクロコンピュータでは、A/D変換器
にてアナログ信号から変換されたデジタルデータが、C
PUのソフトウェアの介入無しに専用のバスを介して内
部メモリに転送され、格納される。
In the microcomputer according to the present invention, digital data converted from an analog signal by an A/D converter is
It is transferred and stored in internal memory via a dedicated bus without PU software intervention.

〔実施例〕〔Example〕

以下、本発明をその実施例を示す図面に基づいて詳述す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described in detail below based on drawings showing embodiments thereof.

第1図は本発明に係るマイクロコンピュータの要部の構
成を示すブロック図である。
FIG. 1 is a block diagram showing the configuration of essential parts of a microcomputer according to the present invention.

図中lはA/D変換器であり、マルチプレクサ2から与
えられるアナログ信号をデジタルデータに変換する。な
お、このA/D変換器1は、本実施例では、8ビツトの
高速高精度の逐次比較型のA/D変換器を使用している
。このA/D変換変換器上るアナログ信号のデジタル信
号への変換及びその結果得られたデジタルデータの出力
はリアルタイムコントロール回路7が出力するクロック
に同期して1データずつ実行される。
In the figure, l is an A/D converter, which converts the analog signal given from the multiplexer 2 into digital data. In this embodiment, the A/D converter 1 is an 8-bit high-speed, high-precision successive approximation type A/D converter. The conversion of the analog signal received by the A/D converter into a digital signal and the output of the resulting digital data are performed one data at a time in synchronization with the clock output by the real-time control circuit 7.

マルチプレクサ2は、8系統のアナログ信号入力ANO
〜AN7を備えており、その内の1系統のアナログ信号
をデータ選択/RAMアドレスカウンタ3からのデータ
選択信号に従ってA/D変換器1に選択出力する。
Multiplexer 2 has 8 analog signal inputs ANO
-AN7, and selectively outputs one system of analog signals to the A/D converter 1 in accordance with the data selection signal from the data selection/RAM address counter 3.

データ選択/RAMアドレスカウンタ3は、図示しない
CPU等から指示されたANO〜AN7のいずれかのア
ナログ信号のA/[1変換器1への出力を指示する信号
をマルチプレクサ2に与え、またそのアナログ信号を変
換して得られるデジタルデータが格納されるべきRAM
4のアドレスを発生しリアルタイムバス5を介してRA
Mアドレスバ・ノファ6に与える。
The data selection/RAM address counter 3 supplies the multiplexer 2 with a signal instructing the output of any of the analog signals ANO to AN7 instructed by the CPU (not shown) to the A/[1 converter 1, and RAM in which digital data obtained by converting signals is to be stored
4 address is generated and sent to RA via real-time bus 5.
Give to M address bar nofa 6.

このようなデータ選択/RAMアドレスカウンタ3の機
能はこれに備えられているコントロールレジスタ31に
よる。
The functions of the data selection/RAM address counter 3 depend on the control register 31 provided therein.

、 第2図はデータ選択/RAMアドレスカウンタ3に
備えられているコントロールレジスタ31のピント構成
を示す模式図である。
, FIG. 2 is a schematic diagram showing the focus structure of the control register 31 provided in the data selection/RAM address counter 3.

このコントロールレジスタ31は6ビツト構成であり、
第1ビツトbitoがイネーフ゛ルビットEADC1第
2ビットbit1〜第6ビツトbit5はA/D変換ス
タート RAMアドレスビットADSAO〜ADS八4
へして使用されている。
This control register 31 has a 6-bit configuration,
1st bit bito is enable bit EADC1 2nd bit bit1 to 6th bit bit5 are A/D conversion start RAM address bits ADSAO to ADS84
It is used in various ways.

第1ビツトbitoのイネーブルビットEA[lCは、
たとえば本実施例ではこれがセント(=1)されている
場合にはマルチプレクサ2による8系統のアナログ信号
ANO7AN1の順次的選択のための3ビツトの信号を
マルチプレクサ2へ出力する。
The enable bit EA[IC of the first bit bito is
For example, in this embodiment, when this is set (=1), a 3-bit signal is outputted to the multiplexer 2 for sequential selection of the eight analog signals ANO7AN1 by the multiplexer 2.

第2ビツトbi t1〜第6ビソトbit5のA/D変
換スタツタRAMアドレスビットADSAO〜八〇へ^
4は、A/D変換器1にて変換されたデジタルデータの
RAM4への格納アドレスのFM定のために使用される
。その関係は下記第1表の如き変換テーブルとしてデー
タ選択/l?AMアドレスカウンク3に予め設定されて
いる。そして、これらの各アドレスは後述するリアルタ
イムコントロール回路7からのクロックに同期して順次
的に1アドレスづつ出力される。
2nd bit bit 1 to 6th bit 5 A/D conversion starter RAM address bit ADSAO to 80^
4 is used for FM determination of the storage address of the digital data converted by the A/D converter 1 in the RAM 4. The relationship is data selection/l? as a conversion table as shown in Table 1 below. It is preset to AM address count 3. Each of these addresses is sequentially output one address at a time in synchronization with a clock from a real-time control circuit 7, which will be described later.

(以 下 余 白) 第1表 !?AM4は本発明のマイクロコンピュータの内部メモ
リであり、図示しない内部バスにて他の機器、たとえば
図示しないCPU等に接続されている他、A/D変換器
1.後述するRAMアドレスバッファ6及び他のいくつ
かの機器との間を専用のリアルタイムバス5にて接続さ
れている。
(Left below) Table 1! ? AM4 is an internal memory of the microcomputer of the present invention, and is connected to other devices such as a CPU (not shown) via an internal bus (not shown), as well as an A/D converter 1. A dedicated real-time bus 5 connects a RAM address buffer 6 to be described later and several other devices.

11AMアドレスバッファ6は、データ選択/RAMア
ドレスカウンタ3にて発生されリアルタイムバス5に出
力されたアドレス、即ちA/D変換器1からRAM4へ
転送されるデジタルデータをRAM4に格納するための
アドレスを一時記憶し、l?AM4に与える。
The 11AM address buffer 6 stores the address generated by the data selection/RAM address counter 3 and output to the real-time bus 5, that is, the address for storing the digital data transferred from the A/D converter 1 to the RAM 4 in the RAM 4. Temporarily memorized, l? Give it to AM4.

これにより RAMアドレスバッファ6からRAM4に
与えられたアドレスがアクセスされ、A/D変fj!!
31から出力されたデジタルデータがそのアドレスに格
納される。
As a result, the address given to the RAM 4 from the RAM address buffer 6 is accessed, and the A/D change fj! !
The digital data output from 31 is stored at that address.

この動作はリアルタイムコントロール回路7が出力する
クロックに同期して行われる。
This operation is performed in synchronization with the clock output from the real-time control circuit 7.

リアルタイムコントロール回路7は、たとえば図示しな
いCPU等からの指示を受けて、クロックを発生し、こ
のクロックに同期して上述の各機器が動作することによ
り、マルチプレクサ2によるアナログ信号の選択及びそ
のデジタルデータへの変換、さらにはそのRAl’14
への転送及び格納等の処理を実行する。
The real-time control circuit 7 generates a clock in response to an instruction from, for example, a CPU (not shown), and operates each of the above-mentioned devices in synchronization with this clock, so that the multiplexer 2 selects an analog signal and its digital data. , and even its RAl'14
Execute processing such as transfer and storage to.

以上のように構成された本発明のマイクロコンピュータ
の動作について以下に説明する。
The operation of the microcomputer of the present invention configured as described above will be explained below.

データ選択/I?AMアドレスカウンタ3のコントロー
ルレジスタ31の第1ビツトであるイネーブルビットE
ADCが図示しないCPUによりセント(・1)される
と、データ選択/RAMアドレスカウンタ3によりマル
チプレクサ2がA/D変換!31へ選択出力すべきアナ
ログ信号が順次指示されるのでマルチプレクサ2からA
/D変換器1へはそのアナログ信号が与えられる。そし
て、A/Di換器1はマルチプレクサ デジタルデータに変換してリアルタイムバス5に出力す
る。
Data selection/I? Enable bit E, which is the first bit of the control register 31 of the AM address counter 3
When the ADC is sent (.1) by the CPU (not shown), the data selection/RAM address counter 3 causes the multiplexer 2 to perform A/D conversion! Analog signals to be selected and output to 31 are sequentially instructed, so multiplexer 2 to A
The analog signal is given to the /D converter 1. Then, the A/Di converter 1 converts it into multiplexer digital data and outputs it to the real-time bus 5.

一方、データ選択/RAMアドレスカウンタ3のコント
ロールレジスタ31の第2ビツトbit1〜第6ビツト
bitsであるA/D変換スタートl?AMアドレスビ
ットADSAO〜^DS^4にも図示しないCPUから
データが与えられて各ビットそれぞれがセットまたはリ
セットされる。これによりデータ選択/RAMアドレス
カウンタ3は自身に記憶している第1表のテーブルの如
きアドレスを順次出力する。この際、データ選択/RA
Mアドレスカウンタ3はA/D変換器1から出力される
データ数を計数しており、A/D変換器1から1データ
が出力される都度、順次的に1アドレスづつ更新して出
力する。
On the other hand, the A/D conversion starts l? which is the second bit 1 to the sixth bit bits of the control register 31 of the data selection/RAM address counter 3. Data is also given to AM address bits ADSAO to DS^4 from a CPU (not shown), and each bit is set or reset. As a result, the data selection/RAM address counter 3 sequentially outputs the addresses stored in itself as shown in Table 1. At this time, data selection/RA
The M address counter 3 counts the number of data output from the A/D converter 1, and each time one data is output from the A/D converter 1, it sequentially updates and outputs one address at a time.

このようにしてリアルタイムコントロール回路7から出
力されるクロックに同期して、データ選択/RAMアド
レスカウンタ3から1アドレスづつ更新出力されたアド
レスはリアルタイムバス5を介してRAMアドレスバッ
ファ6に一旦保持され、l?AM4に与えられる。また
A/D変換31からもリアルタイムコントロール回路7
から出力されるクロックに同期してデジタルデータが1
データづつリアルタイムバス5に出力され、RAM4に
与えられる。
In this way, the addresses updated and output one address at a time from the data selection/RAM address counter 3 in synchronization with the clock output from the real-time control circuit 7 are temporarily held in the RAM address buffer 6 via the real-time bus 5. l? Given to AM4. Also, from the A/D conversion 31, the real-time control circuit 7
Digital data is 1 in synchronization with the clock output from
Data is output to the real-time bus 5 and given to the RAM 4.

これにより、RAMアドレスバッファ6が発生したRA
M4のアドレスにA109換器lから出力されたデジタ
ルデータが格納される。
This causes the RAM address buffer 6 to
The digital data output from the A109 converter 1 is stored at the address of M4.

従って、A/D変換器lからデジタルデータが1データ
出力される都度、データ選択/RAMアドレスカウンタ
3から1アドレスづつ更新出力されるアドレスがリアル
タイムバス5. RAMアドレスバッファ6を介してR
AM4に与えられるので、RAM4へはA/D変換器1
から出力されたデータがデータ選択/R静アドレスカウ
ンタ3から出力されるアドレスに従って順次格納される
Therefore, each time one piece of digital data is output from the A/D converter l, the address updated and output one address at a time from the data selection/RAM address counter 3 is updated by one address at a time on the real-time bus 5. R via RAM address buffer 6
Since it is given to AM4, A/D converter 1 is sent to RAM4.
The data output from the data selection/R static address counter 3 is stored in sequence according to the address output from the static address counter 3.

〔効果〕〔effect〕

以上のように本発明によれば、従来はA/D変換器によ
りアナログ信号から変換されたデジタルデータをCPU
のソフトウェア的介入によりメモリに転送し格納してい
たのを、ソフトウェアの介入無しに実行することが可能
になる。従って、本発明ではCPUの負担が軽減し、そ
の分だけCPUによる(hのソフトウェアの処理効率が
向上し、緊急の割込み要求にも即応可能であり、またA
/D変換器のハードウェア上の処理速度が高速化しても
充分に対応可能になる。
As described above, according to the present invention, digital data converted from an analog signal by an A/D converter is sent to a CPU.
It becomes possible to execute what was previously transferred and stored in memory without software intervention. Therefore, in the present invention, the load on the CPU is reduced, and the processing efficiency of the software by the CPU (h) is improved accordingly, and urgent interrupt requests can be responded to immediately.
Even if the processing speed of the /D converter hardware becomes faster, it can be sufficiently handled.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明に係るマイクロコンピュータの要部の構
成を示すブロック図、第2図はそのデータ選択/RAM
アドレスカウンタに備えられているコントロールレジス
タのビット構成を示す模式図である。 1・・・A/D変換器  2・・・マルチプレクサ  
3・・・データ選択/RAMアドレスカウンタ  4・
・・RAM5・・・リアルタイムバス  7・・・リア
ルタイムコントロール回路31・・・コントロールレジ
スタ特 許 出願人  三洋電機株式会社 代理人 弁理士  河 野  登 夫 bit5    bit4    bit3    b
it2    bitl    bit。 第2図
FIG. 1 is a block diagram showing the configuration of main parts of a microcomputer according to the present invention, and FIG. 2 is a data selection/RAM thereof.
FIG. 2 is a schematic diagram showing a bit configuration of a control register included in an address counter. 1... A/D converter 2... Multiplexer
3...Data selection/RAM address counter 4.
...RAM5...Real-time bus 7...Real-time control circuit 31...Control register patent Applicant: Sanyo Electric Co., Ltd. Agent Patent attorney: Noboru Kono bit5 bit4 bit3 b
it2 bitl bit. Figure 2

Claims (1)

【特許請求の範囲】 1、アナログ信号をA/D変換器にてデジタル信号に変
換してメモリに格納すべくなしたマイクロコンピュータ
において、 前記A/D変換器と前記メモリとを接続する専用バスと
、 前記A/D変換器からデジタルデータが出力される都度
、前記メモリへのデータ格納のためのアドレスを順次発
生するアドレスカウンタと、 前記アドレスカウンタにて順次発生される アドレスに従って前記A/D変換器から出力されるデジ
タルデータを前記メモリに順次格納すべくなしたことを
特徴とするマイクロコンピュータ。
[Claims] 1. In a microcomputer configured to convert an analog signal into a digital signal using an A/D converter and store it in a memory, a dedicated bus connecting the A/D converter and the memory; an address counter that sequentially generates an address for storing data in the memory each time digital data is output from the A/D converter; A microcomputer characterized in that digital data output from a converter is sequentially stored in the memory.
JP62038317A 1987-02-20 1987-02-20 Microcomputer Pending JPS63205726A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62038317A JPS63205726A (en) 1987-02-20 1987-02-20 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62038317A JPS63205726A (en) 1987-02-20 1987-02-20 Microcomputer

Publications (1)

Publication Number Publication Date
JPS63205726A true JPS63205726A (en) 1988-08-25

Family

ID=12521906

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62038317A Pending JPS63205726A (en) 1987-02-20 1987-02-20 Microcomputer

Country Status (1)

Country Link
JP (1) JPS63205726A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0284818A (en) * 1988-09-20 1990-03-26 Nec Corp A/d conversion circuit
JPH02255992A (en) * 1988-12-06 1990-10-16 Nec Corp Microcomputer

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0284818A (en) * 1988-09-20 1990-03-26 Nec Corp A/d conversion circuit
JPH02255992A (en) * 1988-12-06 1990-10-16 Nec Corp Microcomputer

Similar Documents

Publication Publication Date Title
JPH03188546A (en) Bus interface control system
KR100375233B1 (en) Direct memory access controller being converted transfer mode flexibly according to data transfer counter value
CA2289192C (en) Communication dma device
JPS63205726A (en) Microcomputer
JPH10124447A (en) Data transfer control method and device
EP0245346A1 (en) Method and apparatus for interfacing between analog signals and a system bus
US20040162924A1 (en) Apparatus and method for transmitting data by means of direct memory access medium
EP0240749A2 (en) Disk controller bus interface
JPS60222917A (en) Image data transmission device
JPH0683759A (en) Information processor
JP2792141B2 (en) Misalignment control device
JPH01113848A (en) Access control system
JPH01150951A (en) Memory access method
JPS6235148B2 (en)
JPH0981720A (en) Image processor
EP0668556A2 (en) A queue memory system and method therefor
JPS63245743A (en) Memory access system
JPH08137780A (en) Serial data transfer device
JPH01155431A (en) Data transfer controller
JPS62237556A (en) Dma data transfer system
JPH06230084A (en) Serial pattern generator
JPH0256697B2 (en)
JPS61148562A (en) Data transfer system of information processor
JPS62126456A (en) Parallel arithmetic processor
JPH10254817A (en) Dma transfer control system