JPS61133437A - One chip microcomputer - Google Patents
One chip microcomputerInfo
- Publication number
- JPS61133437A JPS61133437A JP59256235A JP25623584A JPS61133437A JP S61133437 A JPS61133437 A JP S61133437A JP 59256235 A JP59256235 A JP 59256235A JP 25623584 A JP25623584 A JP 25623584A JP S61133437 A JPS61133437 A JP S61133437A
- Authority
- JP
- Japan
- Prior art keywords
- program
- input
- stored
- rom
- random access
- 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
Links
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明は、記憶装置の使用効率の改善を図り、汎用性を
付与したワンチップマイクロコンピュータに関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a one-chip microcomputer that improves the usage efficiency of a storage device and provides versatility.
[従来の技術]
従来のワンチップマイクロコンピュータは、主に、記号
の演算処理を行なう演算制御部(中央処理装置t rc
PUJともいう)と、リードオンリーメモリー<ROM
>と、ランダムアクセスメモリー (RAM)と、信号
の入出力を行なう入出力ポートとがワンチップに実装さ
れたものである。このうち、ROMには、実行プログラ
ムが格納され、RAMは、そのプログラムによってリー
ドライトされるデータの格納のためにのみ使用されてい
る。[Prior Art] A conventional one-chip microcomputer mainly has an arithmetic control section (central processing unit trc) that performs symbol arithmetic processing.
(also called PUJ) and read-only memory <ROM
>, a random access memory (RAM), and an input/output port for inputting and outputting signals are mounted on a single chip. Among these, the ROM stores an execution program, and the RAM is used only for storing data read and written by the program.
従って、多くのタスクを実行するためには、そのタスク
に応じた各プログラムをROM上に格納しておき、入力
ポートからの信号に応じて、上記タスクを選択して、選
択されたタスクを超勤する様にしている。このため、複
数のプログラムを総てROM上に記憶しておく必要があ
り、ROMの記憶容愚の制約から大きなプログラムが実
行できないという欠点がある。又、従来のワンチップマ
イクロコンピュータは、専用の仕事を行なう専用機とし
てのみ機能し、多くの仕事を広く行なえる汎用性は有し
ていない。Therefore, in order to execute many tasks, each program corresponding to the task is stored in the ROM, and the task is selected according to the signal from the input port, and the selected task is executed overtime. I try to do it. Therefore, all of the plurality of programs must be stored on the ROM, which has the disadvantage that large programs cannot be executed due to the storage capacity of the ROM. Furthermore, conventional one-chip microcomputers function only as dedicated machines for performing specialized tasks, and do not have the versatility to perform a wide variety of tasks.
[発明の解決しようとする問題点]
本発明は、上記の欠点を改良するために成されたもので
あり、ワンチップマイクロフンピユータにおいて、より
大きな仕事を実行可能とすると共に汎用性を付与するこ
とを目的とする。[Problems to be Solved by the Invention] The present invention has been made to improve the above-mentioned drawbacks, and makes it possible to perform larger tasks and provide versatility in a one-chip micrometer computer. The purpose is to
[問題点を解決するための手段]
本発明は、少なくとも、信号の演輝処理を行なう演算制
御部と、演算制御部の処理手続を記憶したリードオンリ
ーメモリーと、データのリードライトが可能なランダム
アクセスメモリと、外部に対して、信号を入出力する入
出力ポートと、がワンチップ上に実装されているワンチ
ップマイクロコンピュータにおいて、
前記リードオンリーメモリーには、前記入出力ポートか
らの入力記号を前記ランダムアクセスメモリに入力する
ロータが記憶されており、前記演算制御部は、前記ラン
ダムアクセスメモリ上にロード後、該ランダムアクセス
メモリに入力されたプログラムの命令語に従って実行す
ることを特徴とするワンチップマイクロコンピュータで
ある。[Means for Solving the Problems] The present invention provides at least an arithmetic control unit that performs signal performance processing, a read-only memory that stores processing procedures of the arithmetic control unit, and a random memory that can read and write data. In a one-chip microcomputer in which an access memory and an input/output port for inputting/outputting signals to the outside are mounted on a single chip, the read-only memory has input symbols from the input/output port. A rotor to be input to the random access memory is stored, and the arithmetic control unit executes the program according to the instruction words of the program input to the random access memory after being loaded onto the random access memory. It is a chip microcomputer.
本発明においては、RAMにも、実行プログラムが入出
力ポートを介して記憶される。そのため、ROMには、
入出力ポートから所定のプログラムをa−ドするための
a−ダが記憶されている。In the present invention, the execution program is also stored in the RAM via the input/output port. Therefore, in the ROM,
A-data for loading a predetermined program from the input/output port is stored.
又、ROMのロータを記憶した他の領域は、固有の専用
タスクに対応した専用プログラムが記憶されていても良
い。その専用プログラムが記憶されている場合には、専
用プログラムの起動と、ロータの起動は、たとえば入出
力ポートからの入力記号の状態に応じて切り換える様に
すれば良い。In addition, other areas of the ROM in which the rotor is stored may store dedicated programs corresponding to specific dedicated tasks. If the dedicated program is stored, the activation of the dedicated program and the activation of the rotor may be switched depending on, for example, the state of the input symbol from the input/output port.
ロータによりてRAM上にロードされたプログラムは、
ロード後直ぐに実行される。又、そのプログラムが実行
終了後は、ざらにロータを用いて、他のプログラムをR
AM上にロードして実行することもできる。The program loaded onto the RAM by the rotor is
Executes immediately after loading. Also, after that program finishes running, use the rotor to run other programs.
It can also be loaded and executed on AM.
この様に、本発明は、ワンチップマイクロコンピュータ
の従来データの記憶のみに使用されていたRAMをプロ
グラム記憶領域として使用することにより、より大きな
プログラムを実行できる。In this manner, the present invention allows larger programs to be executed by using the RAM, which was conventionally used only for storing data in one-chip microcomputers, as a program storage area.
又、そのプログラムを実行終了したときは、他のプログ
ラムをロードできるため、汎用性が生じる。Further, when the execution of the program is finished, other programs can be loaded, resulting in versatility.
[作用]
ROM1.:記憶されたロータは、たとえば、電源の投
入、入出力ポートからの起動信号の入力によって、起動
される。起動されたロータは、入出力ポートから必要な
実行プログラムをRAM上にロ −−ドする。その後そ
のロードされたプログラムに実行が移され、そのプログ
ラムは実行される。[Function] ROM1. : The stored rotor is started, for example, by turning on the power or inputting a start signal from the input/output port. The activated rotor loads the necessary execution program onto the RAM from the input/output port. Execution is then transferred to the loaded program, and the program is executed.
[実施例] 以下、本発明を具体的な実施例に基いて記述する。[Example] The present invention will be described below based on specific examples.
第1図は、本発明の具体的な実施例に係るワンチップマ
イクロコンピュータの構成を示したブロックダイヤグラ
ムである。FIG. 1 is a block diagram showing the configuration of a one-chip microcomputer according to a specific embodiment of the present invention.
本実施例は、ROM上に、応用プログラムが記憶されて
おり、そのプログラムに関する専用機としての機能と、
RAM上に0−ドされたプログラムを実行できる汎用機
としての機能を有したものである。In this embodiment, an application program is stored on the ROM, and functions as a dedicated machine regarding the program,
It has the function of a general-purpose machine that can execute programs loaded onto the RAM.
CPLJ Iは、コモンバス2に接触されており、その
コモンバス2には、ROM3、ROM4が接続され、さ
らに、RAM5と、入出カポ−トロが接続されている。CPLJ I is connected to a common bus 2, to which are connected ROM3 and ROM4, and further connected to RAM5 and an input/output capotro.
上記の構成の他に、アドレスレジスタ、レジスタ等の必
要な機能素子部も含まれている。又、上記ROM3とR
OM4とは、別のブロックとして霞かれているが同一の
ブロック内の異なるアドレスで分割されたものでも良い
。In addition to the above configuration, necessary functional elements such as address registers and registers are also included. Also, the above ROM3 and R
Although OM4 is defined as a separate block, it may be divided into different addresses within the same block.
第2図は、同装置の動作を示したフローチャートである
。ROM3に記憶された主プログラムは、電源の投入と
共に実行される。ステップ100゜101では、入出カ
ポ−トロがら信号を入力し、その値が1のとき、ステッ
プ102に移行して、ROM4に記憶されているロータ
が起動される。FIG. 2 is a flowchart showing the operation of the device. The main program stored in the ROM 3 is executed when the power is turned on. At steps 100 and 101, an input/output capo rotor signal is input, and when the value is 1, the process moves to step 102, and the rotor stored in the ROM 4 is activated.
その他の場合には、ステップ112に移行し、ステップ
114で、ROM3に記憶されている所定の応用プログ
ラムを実行する。In other cases, the process moves to step 112, and in step 114, a predetermined application program stored in the ROM 3 is executed.
ステップ104に移行したときは、ロータを起動して、
入出カポ−トロから「プログラム1」が入力され、ステ
ップゴ06でのロード終了判定後、ステップ110で、
そのプログラムが実行される。When proceeding to step 104, start the rotor,
"Program 1" is input from the input/output capotro, and after determining the end of loading at step 06, at step 110,
The program is executed.
入出カポ−トロは、外部記憶装置に接続されているもの
として説明したが、それは、通信回線に接続されてあり
、通信回線からデータを入力しても良い。Although the input/output capotro has been described as being connected to an external storage device, it may also be connected to a communication line and input data from the communication line.
[発明の効果]
本発明のマイクロコンピュータは、ROM上に、入出力
ポートからプログラムを入力するためのロータが記憶さ
れている。従って、このロータを起動することにより、
外部からRAM上に、プログラムをロードし、そのプロ
グラムを実行することができる。[Effects of the Invention] In the microcomputer of the present invention, a rotor for inputting a program from an input/output port is stored on the ROM. Therefore, by starting this rotor,
A program can be loaded onto the RAM from the outside and executed.
又、従来のワンチップマイクロコンピュータの様に、R
AMを単にデータの記憶のみに使用するのではなく、プ
ログラムの記憶領域として使用している。従って、記憶
装置の使用効率を向上させることができ、選択的にロー
ドしたプログラムを実行することにより汎用性を付与す
ることができる。さらには、RAMを使用することによ
り、大きなプログラムの実行も可能となり、RAMがワ
ンチップ上に実装されているため、汎用コンピュータに
比べ端子の数を減少させることができる。Also, like the conventional one-chip microcomputer, R
AM is used not only to store data, but also as a storage area for programs. Therefore, the usage efficiency of the storage device can be improved, and versatility can be provided by executing selectively loaded programs. Furthermore, the use of RAM makes it possible to execute large programs, and since RAM is mounted on one chip, the number of terminals can be reduced compared to general-purpose computers.
第1図は、本発明の具体的な一実施例に係るワンチップ
マイクロコンピュータの構成を示したブロックダイヤグ
ラムである。
第2図は、同コンピュータの動作を示すフローチャート
である。FIG. 1 is a block diagram showing the configuration of a one-chip microcomputer according to a specific embodiment of the present invention. FIG. 2 is a flowchart showing the operation of the computer.
Claims (1)
と、演算制御部の処理手続を記憶したリードオンリーメ
モリーと、データのリードライトが可能なランダムアク
セスメモリと、外部に対して、信号を入出力する入出力
ポートとが、ワンチップ上に実装されているワンチップ
マイクロコンピュータにおいて、 前記リードオンリーメモリーには、前記入出力ポートか
らの入力記号を前記ランダムアクセスメモリに入力する
ロータが記憶されており、 前記演算制御部は、前記ランダムアクセスメモリ上にロ
ード後、該ランダムアクセスメモリに入力されたプログ
ラムの命令語に従つて実行することを特徴とするワンチ
ップマイクロコンピュータ。(1) At least an arithmetic control unit that performs signal arithmetic processing, a read-only memory that stores the processing procedures of the arithmetic control unit, and a random access memory that can read and write data, and input signals to the outside. In a one-chip microcomputer in which an output input/output port is mounted on a single chip, the read-only memory stores a rotor that inputs input symbols from the input/output port to the random access memory. A one-chip microcomputer, wherein the arithmetic control section executes the program according to commands of the program input to the random access memory after being loaded onto the random access memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP59256235A JPS61133437A (en) | 1984-12-04 | 1984-12-04 | One chip microcomputer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP59256235A JPS61133437A (en) | 1984-12-04 | 1984-12-04 | One chip microcomputer |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS61133437A true JPS61133437A (en) | 1986-06-20 |
Family
ID=17289806
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP59256235A Pending JPS61133437A (en) | 1984-12-04 | 1984-12-04 | One chip microcomputer |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS61133437A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01222601A (en) * | 1988-03-02 | 1989-09-05 | Mitsubishi Electric Corp | Atc device |
US6766448B2 (en) | 2000-01-13 | 2004-07-20 | Nec Corporation | Microcomputer for transferring program data to an internal memory from an external memory connected via a bus and a method therefor |
-
1984
- 1984-12-04 JP JP59256235A patent/JPS61133437A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01222601A (en) * | 1988-03-02 | 1989-09-05 | Mitsubishi Electric Corp | Atc device |
US6766448B2 (en) | 2000-01-13 | 2004-07-20 | Nec Corporation | Microcomputer for transferring program data to an internal memory from an external memory connected via a bus and a method therefor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH04172533A (en) | Electronic computer | |
US8464016B2 (en) | Method and device for switching over in a memory for a control device | |
JP2513462B2 (en) | Micro computer | |
JPS61133437A (en) | One chip microcomputer | |
JP2568017B2 (en) | Microprocessor and data processing system using the same | |
JPH10240522A (en) | Arithmetic unit | |
JPH0528431B2 (en) | ||
JP2001022413A (en) | Programmable controller | |
JPH0436834A (en) | One-chip microcomputer | |
JPH0264740A (en) | Microprocessor | |
JP3088285B2 (en) | In-circuit emulator | |
JP3341061B2 (en) | Programmable controller | |
JP3139310B2 (en) | Digital signal processor | |
JPH02214938A (en) | Data processor | |
JPS62271003A (en) | Programmable controller | |
JPH0844570A (en) | System and method for program execution | |
JP3127737B2 (en) | Digital signal processor | |
JPH11316691A (en) | Execution method for operating system and information processor using the method | |
JPH07175779A (en) | Signal processing with dsp-based cpu | |
JPS62256138A (en) | Data processor | |
JPH02310652A (en) | Memory controller | |
JPH01233526A (en) | Data access and program calling system | |
JPH02281349A (en) | Microcomputer | |
JPS6148746B2 (en) | ||
JPH03113658A (en) | Cpu device |