[go: up one dir, main page]

JPS63219026A - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JPS63219026A
JPS63219026A JP61247929A JP24792986A JPS63219026A JP S63219026 A JPS63219026 A JP S63219026A JP 61247929 A JP61247929 A JP 61247929A JP 24792986 A JP24792986 A JP 24792986A JP S63219026 A JPS63219026 A JP S63219026A
Authority
JP
Japan
Prior art keywords
data
converter
time
ram3
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.)
Pending
Application number
JP61247929A
Other languages
Japanese (ja)
Inventor
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 JP61247929A priority Critical patent/JPS63219026A/en
Publication of JPS63219026A publication Critical patent/JPS63219026A/en
Pending legal-status Critical Current

Links

Landscapes

  • Microcomputers (AREA)

Abstract

PURPOSE:To speedily obtain a data as necessary, and besides, to reduce the load of a software by transferring and storing, like a hardware, the data, A/D- converted successively by an A/D converter, to and in a RAM at every machine cycle. CONSTITUTION:At first, at a time T1, a CPU1 reads out an instruction data from a ROM3 through an internal data bus 6, and stores it in the register of an inside. Next, the instruction data is decoded at the time T2 and T3. Now, because the internal data bus 5 is vacant at the time T2 and T3, the CPU1 outputs a control signal to the A/D converter 2 and the RAM3 at the time T2, and transfers the A/D-converted data from the converter 2 to the RAM3. At the time T5, the CPU1 reads in the data from the RAM3 through the bus 6 by a read operation, and at the time T6, it writes in the data in the RAM3 through the bus 6 by a write operation. In the next machine cycle as well, a similar processing is performed. Thus, the A/D-converted data is transferred from the converter 2 to the RAM3 at the time T2 and the latest data can be always obtained from the RAM3.

Description

【発明の詳細な説明】 (イ)産業上の利用分野 本発明はマイクロコンピュータに関するものであり、更
に詳しく言えばA/D変換器を内蔵するマイクロコンピ
ュータに関するものである。
DETAILED DESCRIPTION OF THE INVENTION (a) Field of Industrial Application The present invention relates to a microcomputer, and more specifically, to a microcomputer having a built-in A/D converter.

(ロ)従来の技術 従来のマイクロコンピュータに内蔵されたA/D変換器
の動作は、CPUからの専用の命令によって該A/D変
換器の動作が開始きれるものである。またA/D変換器
の変換動作が終了するとCPUに割り込みをかけ、その
後、変換データをマイクロコンピュータ内のRAMに転
送するものである。
(B) Prior Art The operation of an A/D converter built into a conventional microcomputer can be started by a dedicated command from a CPU. Further, when the conversion operation of the A/D converter is completed, an interrupt is issued to the CPU, and the converted data is then transferred to the RAM in the microcomputer.

(ハ)発明が解決しようとする問題点 ところでA/D変換動作には通常20〜50μsecの
時間が必要であるから、従来例によればCPUがA/D
変換データを要求してから上記変換に必要な時間を経過
した後でなければ得ることができない。
(c) Problems to be solved by the invention By the way, since the A/D conversion operation normally requires a time of 20 to 50 μsec, according to the conventional example, the CPU
The conversion data can only be obtained after the time required for the conversion has elapsed since the request.

またA/D変換動作が終了するとCPUに割り込みをか
け、その後割り込みが許容されるとA/D変換器からマ
イクロコンピュータ内の所定のRAM中にA/D変換デ
ータが転送されるので、割り込み処理等のためプログラ
ムが複雑化する。
Also, when the A/D conversion operation is completed, an interrupt is issued to the CPU, and if the interrupt is allowed, the A/D conversion data is transferred from the A/D converter to a specified RAM in the microcomputer, so the interrupt processing etc., the program becomes complicated.

本発明はかかる従来の問題点に鑑み創作されたものであ
り、必要なときにA/D変換データを得ることを可能と
するとともに、ソフトの負担を軽減するA/D変換器内
蔵のマイクロコンピュータの提供を目的とする。
The present invention was created in view of such conventional problems, and provides a microcomputer with a built-in A/D converter that makes it possible to obtain A/D converted data when necessary and reduces the burden on software. The purpose is to provide.

(=)問題点を解決するための手段 本発明のマイクロフンピユータは、A/D変換器と、メ
モリと、特定のマイクロステート時毎に前記A/D変換
器とメモリに制御信号を出力することにより、該A/D
変換器によって変換されたデータを内部バスを介してA
/D変換器からメモリに逐時転送するCPUとを有する
ことを特徴としている。
(=) Means for Solving the Problems The microcomputer of the present invention includes an A/D converter, a memory, and outputs a control signal to the A/D converter and memory at each specific microstate. By this, the A/D
The data converted by the converter is transferred to A via the internal bus.
It is characterized by having a CPU that transfers data from the /D converter to the memory one by one.

(ホ)作用 A/D変換器によって変換されたA/D変換データは、
内部バスが使用されていないマイクロステート時毎に該
内部バスを介してA/D変換器からメモリに逐時転送さ
れ、該メモリ内の特定の記憶領域に最新のA/D変換デ
ータが貯えられる。
(e) The A/D conversion data converted by the action A/D converter is
Each time the internal bus is not used in a microstate, data is transferred from the A/D converter to the memory via the internal bus, and the latest A/D conversion data is stored in a specific storage area within the memory. .

このため、CPUがA/D変換データを必要とするとき
には、通常のメモリから情報を読み出すのと同様な方法
により該メモリから読み出せばよいので、高速である。
Therefore, when the CPU needs A/D conversion data, it can read it from the memory in the same way as reading information from a normal memory, so it is fast.

またプログラム処理を介することなく行うので、ソフト
の負担が軽減される。
Furthermore, since this is done without any program processing, the burden on the software is reduced.

(へ)実施例 次に図を参照しながら本発明の実施例について説明する
。第1図は本発明の実施例に係るマイクロコンピュータ
の構成を示すブロック図である。
(F) Embodiments Next, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing the configuration of a microcomputer according to an embodiment of the present invention.

1はCPU、2は入力されるアナログデータを逐時デジ
タルデータに変換するA/D変換器、3は該デジタルデ
ータを格納するRAM、4はCPUが所定の順序で処理
すべき命令を格納しているROMである。5はCPUI
からA/D変換器2およびRAM3に、マシンサイクル
の特定のマイクロステート時毎に出力する制御信号であ
り、これによりA/D変換器2によって変換されたデジ
タルデータはA/D変換器2からRAM3に逐時転送す
る。6は内部データバスであり、CPUI 。
1 is a CPU; 2 is an A/D converter that converts input analog data into digital data; 3 is a RAM that stores the digital data; and 4 is a RAM that stores instructions to be processed by the CPU in a predetermined order. This is a ROM that has 5 is CPUI
This is a control signal that is output to the A/D converter 2 and RAM 3 at each specific microstate of the machine cycle, so that the digital data converted by the A/D converter 2 is output from the A/D converter 2. Transfer to RAM3 one by one. 6 is an internal data bus, CPUI.

A/D変換器2 、RAM3 、ROM4(7)間で相
互にデータの転送が可能である。
Data can be mutually transferred between the A/D converter 2, RAM 3, and ROM 4 (7).

次いで本発明の実施例の動作について、第2図のタイミ
ングチャートを参照しながら説明する。
Next, the operation of the embodiment of the present invention will be explained with reference to the timing chart of FIG.

なお、図において、φ1.−2は2相の基本クロック信
号であり、T1〜T6はマシンサイクルの各マイクロス
テートである。
In addition, in the figure, φ1. -2 is a two-phase basic clock signal, and T1 to T6 are each microstate of the machine cycle.

まずCPUIはT1時にROM3から内部データバス6
を介して命令データを読み出し、CPU1内のインスト
ラクションレジスタ(IR)に格納する(命令フェッチ
)。次いでCPUIはこの命令データをT2.73時に
解読する(命令のデコード)、ところでT2 、T3時
には内部データバス5は空いているので、CPUIは1
2時にA/D変換器2およびRAM3に対して制御信号
を出力し、A/D変換データをA/D変換器2からRA
M3に転送する。
First, the CPU transfers data from ROM3 to internal data bus 6 at T1.
The instruction data is read out via the CPU 1 and stored in the instruction register (IR) in the CPU 1 (instruction fetch). Next, the CPU decodes this instruction data at T2.73 (instruction decoding). By the way, at T2 and T3, the internal data bus 5 is empty, so the CPU
At 2:00, a control signal is output to the A/D converter 2 and RAM 3, and the A/D converted data is transferred from the A/D converter 2 to the RA.
Transfer to M3.

15時にはCPUIはリード動作を行って内部データバ
ス6を介してRAM3からデータを読み込み、16時に
はライト動作を行って内部データバス6を介してRAM
3にデータを書き込む。
At 15:00, the CPU performs a read operation to read data from the RAM 3 via the internal data bus 6, and at 16:00, performs a write operation to read data from the RAM 3 via the internal data bus 6.
Write data to 3.

次のマシンサイクルにおいても、前のマシンサイクルで
行ったと同様の処理を行う。これによりA/D変換デー
タは12時にA/D変換器2からRAM3に転送される
。これによりRAM3中のA/D変換データは常に最新
のデータとなる。
In the next machine cycle, the same processing as in the previous machine cycle is performed. As a result, the A/D converted data is transferred from the A/D converter 2 to the RAM 3 at 12 o'clock. As a result, the A/D conversion data in the RAM 3 is always the latest data.

このように、本発明の実施例によればA/D変換器2に
よって逐時A/D変換されたデータを、各々マシンサイ
クル毎にRAM3にハード的に転送して該RAM中に格
納しているので、CPUIはほとんど待ち時間なしにA
/D変換データを得ることが可能となる。
As described above, according to the embodiment of the present invention, the data that has been A/D-converted by the A/D converter 2 is transferred to the RAM 3 in each machine cycle by hardware and stored in the RAM. Because the CPU is connected to A with almost no waiting time
/D conversion data can be obtained.

(ト)発明の詳細 な説明したように、本発明によればCPUは最新のA/
D変換データをRAMから随時読み出すことができるの
で、処理の高速化を図ることができる。またA/D変換
データの転送等をハード的に行うので、従来の割り込み
処理等が不要となってソフトの負担が軽減される。
(G) As described in detail, according to the present invention, the CPU is equipped with the latest A/
Since D-converted data can be read from the RAM at any time, processing speed can be increased. Furthermore, since the transfer of A/D conversion data is performed by hardware, conventional interrupt processing and the like are not necessary, and the burden on software is reduced.

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

第1図は本発明の実施例に係るマイクロコンピュータを
説明するためのブロック図であり、第2図はその動作を
説明するためのタイミングチャートである。 1・・・CPU、  2・・・A/D変換器、 3・・
・RAM、  4・・・ROM、 5・・・制御信号、
 6・・・内部データバス。 出願人 三洋電機株式会社外1名 代理人 弁理士 西野卓嗣 外1名 第1図
FIG. 1 is a block diagram for explaining a microcomputer according to an embodiment of the present invention, and FIG. 2 is a timing chart for explaining its operation. 1...CPU, 2...A/D converter, 3...
・RAM, 4...ROM, 5...control signal,
6... Internal data bus. Applicant: Sanyo Electric Co., Ltd. and 1 other agent Patent attorney: Takuji Nishino and 1 other person Figure 1

Claims (1)

【特許請求の範囲】 A/D変換器と、 メモリと、 特定のマイクロステート時毎に前記A/D変換器とメモ
リに制御信号を出力することにより、該A/D変換器に
よって変換されたデータを内部バスを介してA/D変換
器からメモリに逐時転送するCPUとを有することを特
徴とするマイクロコンピュータ。
[Claims] An A/D converter, a memory, and a control signal converted by the A/D converter by outputting a control signal to the A/D converter and the memory at each specific microstate. 1. A microcomputer comprising a CPU that sequentially transfers data from an A/D converter to a memory via an internal bus.
JP61247929A 1986-10-17 1986-10-17 Microcomputer Pending JPS63219026A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61247929A JPS63219026A (en) 1986-10-17 1986-10-17 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61247929A JPS63219026A (en) 1986-10-17 1986-10-17 Microcomputer

Publications (1)

Publication Number Publication Date
JPS63219026A true JPS63219026A (en) 1988-09-12

Family

ID=17170650

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61247929A Pending JPS63219026A (en) 1986-10-17 1986-10-17 Microcomputer

Country Status (1)

Country Link
JP (1) JPS63219026A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010134830A (en) * 2008-12-08 2010-06-17 Omron Corp Programmable controller, cpu unit, analog input unit, and analog output unit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010134830A (en) * 2008-12-08 2010-06-17 Omron Corp Programmable controller, cpu unit, analog input unit, and analog output unit

Similar Documents

Publication Publication Date Title
US5608881A (en) Microcomputer system for accessing hierarchical buses
JP2845433B2 (en) Integrated circuit device
JPH0869377A (en) Electronic circuit and method for using a coprocessor
US5499348A (en) Digital processor capable of concurrently executing external memory access and internal instructions
JPH03233630A (en) Information processor
JPS63219026A (en) Microcomputer
JPH051504B2 (en)
JPS6136845A (en) single chip microcomputer
JPH082727Y2 (en) Programmable sequencer
JPH04280334A (en) One chip microcomputer
JPH02252044A (en) Coprocessor and data transfer control method
JP3182796B2 (en) Central processing unit
JP2919001B2 (en) Semiconductor integrated circuit device
JP2526644B2 (en) Data processing device
JP3168845B2 (en) Digital signal processor
JP3903872B2 (en) Multiple access control circuit
JP2831419B2 (en) Sequence controller
JP3033334B2 (en) Data storage device
JPH05151369A (en) Integrated circuit
JPH071498B2 (en) Pulse input / output processor and microcomputer using the same
JP2000172629A (en) Method and device for transfer data
JPH05334233A (en) Data transferring device
JPS6111493B2 (en)
JPH0820941B2 (en) Microprocessor
JPH0820945B2 (en) Microprocessor