JPH046028B2 - - Google Patents
Info
- Publication number
- JPH046028B2 JPH046028B2 JP58203224A JP20322483A JPH046028B2 JP H046028 B2 JPH046028 B2 JP H046028B2 JP 58203224 A JP58203224 A JP 58203224A JP 20322483 A JP20322483 A JP 20322483A JP H046028 B2 JPH046028 B2 JP H046028B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- address
- memory
- bus
- 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.)
- Expired - Lifetime
Links
Classifications
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F02—COMBUSTION ENGINES; HOT-GAS OR COMBUSTION-PRODUCT ENGINE PLANTS
- F02D—CONTROLLING COMBUSTION ENGINES
- F02D41/00—Electrical control of supply of combustible mixture or its constituents
- F02D41/24—Electrical control of supply of combustible mixture or its constituents characterised by the use of digital means
- F02D41/2406—Electrical control of supply of combustible mixture or its constituents characterised by the use of digital means using essentially read only memories
- F02D41/2409—Addressing techniques specially adapted therefor
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3037—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a memory, e.g. virtual memory, cache
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3055—Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computing Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- General Physics & Mathematics (AREA)
- Chemical & Material Sciences (AREA)
- Mechanical Engineering (AREA)
- Combustion & Propulsion (AREA)
- Mathematical Physics (AREA)
- Electrical Control Of Air Or Fuel Supplied To Internal-Combustion Engine (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
この発明は、中央処理装置内蔵メモリーのモニ
ター装置に関するものである。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a monitoring device for a memory built into a central processing unit.
近年、自動車においてエンジンの点火時期や空
燃比等をマイクロコンピユータを用いて制御する
ことが良く行なわれている。このような自動車の
各種制御装置の開発段階において、その制御プロ
グラムを評価するためには、エンジンの冷却水温
等の自動車の各種データを取り出す必要がある。
そしてこのように自動車の各種データを順次取り
出す方法としては、例えば特開昭57−22302号公
報に示されるように、自動車の運転状態を検出す
る各種センサからデータをひつぱつてきてこれを
蓄えていく方法があつた。しかるにこの方法では
各種センサから上記制御装置、即ちコントロール
ユニツトへ各種信号を導くための配線の他に、モ
ニター用の配線をひつぱらなければならず、構造
が複雑になるという問題があつた。
In recent years, it has become common practice in automobiles to control engine ignition timing, air-fuel ratio, etc. using microcomputers. In the development stage of various control devices for such automobiles, in order to evaluate the control programs, it is necessary to extract various data of the automobile such as engine cooling water temperature.
As a method of sequentially extracting various data of a car in this way, for example, as shown in Japanese Patent Laid-Open No. 57-22302, data is collected from various sensors that detect the driving state of the car and stored. I found a way to go. However, this method has the problem that in addition to wiring for guiding various signals from the various sensors to the control device, that is, the control unit, wiring for monitoring must be connected, making the structure complicated.
ところで上記のような制御装置においては、そ
れを構成するCPUの中に上記冷却水温等各種セ
ンサの出力を蓄えている場所があり、これをモニ
ターしてやれば上記のようにセンサからモニター
用の回線をひつぱらなくてもすむ。しかるに実車
に搭載される制御装置においては、上記CPUと
してはマスクタイプの1チツプCPUが用いられ、
この1チツプCPUはプログラム用メモリー
(ROM)とワーク用メモリー(RAM)とを1チ
ツプ内に内蔵したもので、データバス、アドレス
バスは外部に出てこないので、該1チツプCPU
の中身の状態は見ることができないという問題が
あつた。 By the way, in the above-mentioned control device, there is a place in the CPU that stores the output of various sensors such as the above-mentioned cooling water temperature, and if you monitor this, you can connect the monitoring line from the sensor as described above. No need to strain. However, in the control device installed in an actual vehicle, a mask type one-chip CPU is used as the CPU.
This 1-chip CPU has program memory (ROM) and work memory (RAM) built into the 1-chip, and the data bus and address bus do not go out to the outside.
There was a problem that the state of the contents could not be seen.
そこで従来のこの問題に対する対策として以下
の2つの方法があつた。 Therefore, the following two methods have been used as conventional countermeasures for this problem.
まず第1の方法は、開発段階ではPROM内蔵
タイプの1チツプCPU、即ち、紫外線消去等の
特殊な方法により書き換え可能なROMを内蔵し
た1チツプCPUを使用することにより、不具合
状態を予測し、順次プログラムを変更していくと
いう方法であるが、この方法ではプログラムの変
更はできても内部のRAMはモニターできないと
いう問題が残つており、しかもプログラムを順次
変更しなければならないことから、多大な開発工
数を必要とするものである。 The first method is to use a 1-chip CPU with a built-in PROM at the development stage, that is, a 1-chip CPU with a built-in ROM that can be rewritten using a special method such as erasing ultraviolet light. This method involves changing the program sequentially, but this method has the problem that although the program can be changed, the internal RAM cannot be monitored, and since the program must be changed sequentially, it requires a large amount of effort. This requires development man-hours.
次に第2の方法は評価用ボードを用いる方法で
あつた。これは自動車に搭載されるコントロール
ユニツトから1チツプCPUを抜き、そこにこの
1チツプCPUとピンコンパチな基板を差し込み、
この基板の上に1チツプCPUと同等の機能を有
する汎用PROMを使用できる回路を組んでやる
方法である。そしてこのような基板に1チツプ
CPUをのせて、これを汎用CPUと同じようにデ
ータバス、アドレスバスが出てくる拡張モードで
使用し、このデータバス、アドレスバスを使用し
て1チツプCPUの内部RAMをモニターしようと
いうものである。 The second method was to use an evaluation board. This involves removing a 1-chip CPU from a control unit installed in a car, and inserting a board that is pin-compatible with this 1-chip CPU.
This method involves building a circuit on this board that can use a general-purpose PROM that has the same functionality as a single-chip CPU. And one chip on a board like this
The idea is to install a CPU, use it in an expansion mode where a data bus and address bus come out like a general-purpose CPU, and use this data bus and address bus to monitor the internal RAM of a single-chip CPU. be.
しかるにこの方法では、内部RAMをモニター
しているのは1チツプCPUの拡張モードでの使
用時であり、これは実車に搭載しての実際の使用
モードとは違い、そのためソフトも若干修正が必
要であり、この拡張モードでの評価は最終評価に
ならないという欠点があつた。また評価用ボード
をつける作業が必要で手間もかかるという欠点が
あつた。 However, with this method, the internal RAM is monitored when the 1-chip CPU is used in expansion mode, which is different from the actual usage mode installed in the actual vehicle, so the software also needs to be modified slightly. However, there was a drawback that the evaluation in this extended mode was not the final evaluation. Another drawback was that it required work to attach an evaluation board, which was time-consuming.
ところで従来1チツプCPUの中にピギーバツ
クタイプの1チツプCPUがあり、これは1チツ
プCPUの中からROMだけを外に出し、親亀の上
に子亀を乗せるような形で、ROMを除いた1チ
ツプCPUの上にROMを乗せたものである。そし
てこのようなピギーバツクタイプの1チツプ
CPUではROMの代わりに汎用PROMを使用でき
るため、プログラムの修正もでき、またデータバ
ス、アドレスバスが外にのぞいていることから、
内部RAMのデータが簡単にモニターできるとい
うことが予測される。しかるにこのピギーバツク
タイプの1チツプCPUにおいて、チツプ内の
RAMをモニターしようとしても、外部にのぞい
ているアドレスバス、データバスは外付ROMへ
向かう外向きのアドレスバスとチツプ内へ向かう
内向きのデータバスだけであり、内部RAMをア
ドレスできるような内向きのアドレスバス、外向
きのデータバスがないので、やはり内部RAMの
モニターは簡単にできないものであつた。 By the way, among the conventional 1-chip CPUs, there is a piggyback type 1-chip CPU, in which only the ROM is taken out from the 1-chip CPU, and the baby turtle is placed on top of the parent turtle, excluding the ROM. It has a ROM mounted on a single-chip CPU. And a piggyback type chip like this
Since the CPU can use general-purpose PROM instead of ROM, programs can be modified, and since the data bus and address bus are visible to the outside,
It is expected that internal RAM data can be easily monitored. However, in this piggyback type single-chip CPU, the internal
Even if you try to monitor the RAM, the only address buses and data buses that are visible to the outside are the outward address bus that goes to the external ROM and the inward data bus that goes into the chip. Since there was no outward-facing address bus or outward-facing data bus, it was not possible to easily monitor the internal RAM.
そして本件出願人は、上述のピギーバツクタイ
プの1チツプCPUにおいては外付ROMの入出力
端子にアドレスバス及びデータバスが現われてい
ることに着眼し、ピギーバツクタイプ1チツプ
CPUの外付ROMのデータバスにモニターすべき
内蔵メモリーのアドレスを入力し、該データバス
のデータをチツプ内部の演算部でアドレスデータ
に変換してこれにより内蔵メモリーをアドレス指
定し、該メモリーから読み出したデータをアドレ
スデータに変換してそれを外付ROMのアドレス
バスにのせ、このアドレスバスから内蔵メモリー
のデータを取り出すようにしたモニター方法を既
に開発している(特願昭58−49959号)。 The applicant focused on the fact that in the above-mentioned piggyback type one-chip CPU, an address bus and a data bus appear at the input/output terminals of the external ROM.
The address of the built-in memory to be monitored is input to the data bus of the external ROM of the CPU, and the data on the data bus is converted into address data by the arithmetic unit inside the chip, which specifies the address of the built-in memory. We have already developed a monitoring method that converts the read data into address data, puts it on the address bus of an external ROM, and retrieves the data in the built-in memory from this address bus (Japanese Patent Application No. 58-49959). ).
この発明は、かかる状況においてなされたもの
で、本件出願人の開発に係るモニター方法を実現
する1つの装置であるところの中央処理装置内蔵
メモリーのモニター装置を提供せんとするもので
ある。
The present invention has been made under such circumstances, and is intended to provide a monitoring device for a memory built into a central processing unit, which is one device for realizing the monitoring method developed by the applicant.
そこでこの発明は、第1図の機能ブロツク図に
示されるように、制御手段32によつて与えられ
るタイミングに、転送手段31が、アドレス記憶
手段30内のアドレスを中央処理装置7の第2の
メモリー8のデータバスラインを介して中央処理
装置7内のデータバスに転送し、制御手段32が
上記データバスのデータをアドレスデータに変換
するとともに該アドレスデータに対応する第1の
メモリー2内のデータを特定形式のアドレスデー
タに変換してそれをアドレスバスにのせ、モニタ
ー手段33が第2のメモリー8のアドレスバスラ
インから上記特定形式のアドレスデータを取り出
して該アドレスデータから第1のメモリー内のデ
ータを抽出し、又上記転送手段31によつて所定
のデータが転送されたときに停止手段34が上記
制御手段32による処理を停止させるようにした
ものである。
Therefore, in the present invention, as shown in the functional block diagram of FIG. The data on the data bus is transferred to the data bus in the central processing unit 7 via the data bus line of the memory 8, and the control means 32 converts the data on the data bus into address data and the data in the first memory 2 corresponding to the address data. The data is converted into address data in a specific format and placed on the address bus, and the monitoring means 33 takes out the address data in the specific format from the address bus line of the second memory 8 and converts the address data into the address data in the first memory. The stopping means 34 stops the processing by the control means 32 when the transfer means 31 transfers the specified data.
以下本発明の一実施例を図について説明する。 An embodiment of the present invention will be described below with reference to the drawings.
第2図及び第3図は本発明の一実施例による中
央処理装置内蔵メモリーのモニター装置を示す。
第2図はその内蔵メモリーをモニターしようとす
るピギーバツクタイプの1チツプCPUを示し、
図において、1は通常は自動車の各種制御のため
のプログラムを実行し、所定のタイミングになつ
たときは第4図のフローに示すプログラムを実行
する演算部、2は自動車の運転状態を検出する各
種センサからの情報や、上記演算部1の実行の途
中結果等を記憶している書き換え可能な演算用
RAM(第1のメモリー)、3は8ビツトのデータ
バス、4は16ビツトのアドレスバス、5はデータ
入力回路、6はアドレス出力回路、7はこれらの
回路1〜6を搭載したチツプ、8はチツプ7に外
付されるEPROM(第2のメモリー)で、該
EPROM8のアドレスF800〜FFFFの記憶領域に
は各種制御のためのプログラムと、第4図のフロ
ーを実行するためのプログラムが記憶されてい
る。また該EPROM8のデータバス8a及びアド
レスバス8bは上記データ入力回路5及びアドレ
ス出力回路6に接続されている。なお図中9〜1
2はそれぞれ入出力回路であり、P10〜P17、
P20〜P24、P30〜P37、P40〜P47はそれぞれ上
記入出力回路9〜12と接続された入出力ポート
である。また13はSCI、14はタイマー回路、
15はモード回路、16はマルチプレクサーであ
る。 2 and 3 show a monitoring device for a memory built into a central processing unit according to an embodiment of the present invention.
Figure 2 shows a piggyback type 1-chip CPU that attempts to monitor its built-in memory.
In the figure, numeral 1 normally executes programs for various controls of the automobile, and when a predetermined timing comes, executes the program shown in the flowchart of FIG. 4, and numeral 2 detects the driving state of the automobile. A rewritable calculation unit that stores information from various sensors and intermediate results of execution of the calculation unit 1, etc.
RAM (first memory), 3 is an 8-bit data bus, 4 is a 16-bit address bus, 5 is a data input circuit, 6 is an address output circuit, 7 is a chip equipped with these circuits 1 to 6, 8 is an EPROM (second memory) externally attached to chip 7.
In the storage area of the EPROM 8 at addresses F800 to FFFF, programs for various controls and programs for executing the flow shown in FIG. 4 are stored. Further, the data bus 8a and address bus 8b of the EPROM 8 are connected to the data input circuit 5 and address output circuit 6. Note that 9 to 1 in the figure
2 are input/output circuits, P10 to P17,
P20 to P24, P30 to P37, and P40 to P47 are input/output ports connected to the input/output circuits 9 to 12, respectively. Also, 13 is SCI, 14 is a timer circuit,
15 is a mode circuit, and 16 is a multiplexer.
そして第3図は本実施例のモニター装置を示
し、図において、8は上述のEPROM、17は上
記RAM2のモニターしたいアドレスを複数有
し、第5,6図にフローに示すプログラムを実行
するデータ収集用CPU、18はCPU17の出力
ポート17aに現われるアドレスをEPROM8の
データバス8aにのせる第1ゲート回路、19は
CPU17からの制御信号ACKをセツト入力とす
るRSフリツプフロツプ、20はフリツプフロツ
プ19のQ出力をEPROM8のデータバス8aに
のせる第2ゲート回路、21はEPROM8のアド
レスバス8bからのアドレスデータの下位8ビツ
トをラツチし、それをCPU17の入力ポート1
7bに送るラツチ回路、22はデコーダ・タイミ
ング回路で、これはEPROM8のアドレスバスか
ら第1のアドレスデータ、例えばF0××(×は0
〜Fの任意の数字)を読み込んだときは上記第1
ゲート回路18を開く制御信号aを発生し、第2
のアドレスデータ、例えばF1××を読み込んだ
ときは上記ラツチ回路21を作動させるとともに
上記RSフリツプフロツプ19をリセツトする制
御信号bを発生し、さらに第3のアドレスデー
タ、例えばF2××を読み込んだときは上記第2
ゲート回路20を開く制御信号cを発生するよう
になつており、又上記制御信号bはさらにCPU
17のインターラプト端子17cに加えられるよ
うになつている。なおは第1、第2ゲート回
路18,20からデータバス8aにデータをのせ
るタイミングを調整するためのイネーブル信号で
ある。 FIG. 3 shows the monitoring device of this embodiment. In the figure, 8 has the above-mentioned EPROM, 17 has a plurality of addresses to be monitored in the RAM 2, and data for executing the program shown in the flowcharts of FIGS. 5 and 6. A collection CPU, 18 is a first gate circuit that puts the address appearing at the output port 17a of the CPU 17 onto the data bus 8a of the EPROM 8, and 19 is a first gate circuit;
An RS flip-flop receives the control signal ACK from the CPU 17 as a set input, 20 is a second gate circuit that puts the Q output of the flip-flop 19 on the data bus 8a of the EPROM 8, and 21 is the lower 8 bits of the address data from the address bus 8b of the EPROM 8. and connect it to input port 1 of CPU17.
7b, and 22 is a decoder/timing circuit, which receives the first address data from the address bus of EPROM 8, for example, F0×× (× is 0
~ Any number of F) is read, the above 1st
generates a control signal a that opens the gate circuit 18;
When the third address data, for example F1XX, is read, the control signal b is generated to activate the latch circuit 21 and reset the RS flip-flop 19, and when the third address data, for example F2XX, is read. is the second above
A control signal c is generated to open the gate circuit 20, and the control signal b is further transmitted to the CPU.
17 interrupt terminal 17c. Note that this is an enable signal for adjusting the timing at which data is placed on the data bus 8a from the first and second gate circuits 18 and 20.
そして以上のような構成において、上記演算部
1が第1図の制御手段32及び停止手段34の機
能を実現するものであり、上記データ収集用
CPU17が第1図のアドレス記憶手段30及び
モニター手段33の機能を実現するものであり、
上記第1、第2ゲート回路18,19、フリツプ
フロツプ20及びデコード・タイミング回路22
が第1図の転送手段31を構成している。 In the above configuration, the arithmetic unit 1 realizes the functions of the control means 32 and the stop means 34 shown in FIG.
The CPU 17 realizes the functions of the address storage means 30 and the monitoring means 33 shown in FIG.
The first and second gate circuits 18, 19, flip-flop 20 and decode timing circuit 22
constitutes the transfer means 31 in FIG.
次に本装置のおおまかな動作について説明す
る。 Next, the general operation of this device will be explained.
データ収集用CPU17は最初第5図のステツ
プ50の状態にあり、一方1チツプCPU内の演算
部1はアドレスデータF0××をアドレスバス4
にのせ(第4図のステツプ35)、デコード・タイ
ミング回路22はEPROM8のアドレスバスライ
ン8bを介してアドレスデータを受け、該データ
がF0××であることを解読して第1ゲート回路
18を開き、これによりモニターしたい内蔵
RAM2の8ビツトアドレスが、データ収集用
CPU17からEPROM8のデータバスライン8
aを介して1チツプCPU内のデータバス3に転
送される。そして上記演算部1は転送された8ビ
ツトアドレスを読み込んでこれを16ビツトアドレ
スデータに変換し、該16ビツトアドレスデータで
もつてRAM2をアドレス指定してRAM2内の
8ビツトのデータを読み出し、さらに該8ツトデ
ータを16ビツトデータF1××の下位8ビツトに
のせて該16ビツトデータをアドレスバス4にのせ
る(第4図のステツプ35〜41)。そして該16ビツ
トデータを上記デコード・タイミング回路22が
EPROM8のアドレスバスライン8bを介して受
け、これがF1××であることを解読すると、ラ
ツチ回路21が上記16ビツトデータF1××の下
位8ビツトからRAM2のデータを抽出してこれ
をデータ収集用CPU17に与え、データ収集用
CPU17は上記RAM2のデータを読み込んでこ
れを記憶する(第6図のステツプ51、52)。 The data collection CPU 17 is initially in the state of step 50 in FIG.
Then (step 35 in FIG. 4), the decode/timing circuit 22 receives address data via the address bus line 8b of the EPROM 8, decodes that the data is F0XX, and sends the first gate circuit 18. Open the built-in device you want to monitor.
The 8-bit address in RAM2 is used for data collection.
Data bus line 8 from CPU 17 to EPROM 8
The data is transferred to the data bus 3 within the 1-chip CPU via a. The arithmetic unit 1 then reads the transferred 8-bit address, converts it into 16-bit address data, addresses RAM2 with the 16-bit address data, reads out the 8-bit data in RAM2, and then reads the 8-bit data in RAM2. The 8-bit data is placed on the lower 8 bits of the 16-bit data F1xx, and the 16-bit data is placed on the address bus 4 (steps 35 to 41 in FIG. 4). The 16-bit data is then processed by the decode/timing circuit 22.
When received via the address bus line 8b of the EPROM 8 and decoding that this is F1XX, the latch circuit 21 extracts the data in RAM2 from the lower 8 bits of the 16-bit data F1XX and uses it for data collection. Provided to CPU17 for data collection
The CPU 17 reads the data in the RAM 2 and stores it (steps 51 and 52 in FIG. 6).
このようにしてRAM2内のデータが1つモニ
ターされると、上記演算部1は次にアドレスデー
タF2××をアドレスバス4にのせ(第4図のス
テツプ43、44)、デコード・タイミング回路22
がアドレスデータを受け、これがF2××である
ことを解読すると、第2ゲート回路20が開き、
フリツプフロツプ19のQ出力が1チツプCPU
内のデータバス3に転送される。そしてデータの
モニターが完了していない場合には、データ収集
用CPU17からの制御信号ACKによりフリツプ
フロツプ19のQ出力は“1”となり、演算部1
は上記Q出力“1”を読み込んで上述のモニター
のための処理を繰り返し、一方必要なデータのモ
ニターが完了したときは、データ収集用CPU1
7から制御信号ACKが出力されていないので、
フリツプフロツプ19のQ出力は“0”のままで
あり、演算部1は上記Q出力“0”を読み込んで
データ収集のための処理を完了する。 When one piece of data in the RAM 2 is monitored in this way, the arithmetic unit 1 then puts the address data F2XX onto the address bus 4 (steps 43 and 44 in FIG. 4), and the decode/timing circuit 22
receives the address data and decodes that it is F2XX, the second gate circuit 20 opens,
Q output of flip-flop 19 is 1 chip CPU
The data is transferred to the data bus 3 within. If the data monitoring is not completed, the Q output of the flip-flop 19 becomes "1" by the control signal ACK from the data collection CPU 17, and the arithmetic unit 1
reads the above Q output “1” and repeats the above-mentioned processing for monitoring, and when the monitoring of the necessary data is completed, the CPU 1 for data collection
Since the control signal ACK is not output from 7,
The Q output of the flip-flop 19 remains at "0", and the arithmetic unit 1 reads the Q output "0" and completes the processing for data collection.
次に第4,5,6図を用いて動作を詳細に説明
する。 Next, the operation will be explained in detail using FIGS. 4, 5, and 6.
データ収集用CPU17が作動すると、該CPU
17は第5図に示すメインルーチンの処理を行な
い、まず初期設定を行なつた後(ステツプ47)、
出力ポート17aに1チヤンネル目のデータ収集
のためのアドレスを設定し(ステツプ48)、内部
を割込許可状態にした後(ステツプ49)、各種処
理を行なう(ステツプ50)。 When the data collection CPU 17 operates, the CPU
Step 17 executes the main routine shown in FIG. 5, and first performs initial settings (step 47).
After setting the address for data collection of the first channel in the output port 17a (step 48) and setting the internal state to an interrupt enabled state (step 49), various processes are performed (step 50).
一方、演算部1は、通常はEPROM8に書き込
まれた制御のためのプログラムを実行しており、
所定のタイミングになると、第4図に示すデータ
収集用サービスルーチンの処理に移り、まずステ
ツプ35でEPROM8に対しアドレスF0××を指
定する。するとデコード・タイミング回路22は
EPROM8のアドレスバス8bに現われたアドレ
スデータF0××を読み、上位8ビツトがF0であ
ることから、制御信号aを発生して第1ゲート回
路18を開き、今データ収集用CPU17にてモ
ニターしたいRAM2のアドレスとして90が設
定されているとすると、このアドレス90は
EPROM8のデータバス8aに入力され、これに
より演算部1はEPROM8のデータバス8aに入
力されたアドレス90を、チツプ7内のデータ入
力回路5及びデータバス3を介して読み込み、そ
れをレジスタBに記憶する。 On the other hand, the calculation unit 1 normally executes a control program written in the EPROM 8.
At a predetermined timing, the process moves to the data collection service routine shown in FIG. Then, the decode timing circuit 22
I read the address data F0XX appearing on the address bus 8b of the EPROM 8, and since the upper 8 bits are F0, I want to generate the control signal a, open the first gate circuit 18, and now monitor it with the data collection CPU 17. If 90 is set as the address of RAM2, this address 90 is
The arithmetic unit 1 reads the address 90 input to the data bus 8a of the EPROM 8 via the data input circuit 5 and the data bus 3 in the chip 7, and stores it in the register B. Remember.
次にこの演算部1はレジスタXに0を記憶し
(ステツプ36)、レジスタBの内容とレジスタXの
内容とを加算して8ビツトのデータ90を16ビツト
のアドレスデータ0090に変換し(ステツプ37)、
該アドレスデータ0090をアドレスバス4にのせて
RAM2をアドレス指定し、RAM2内のモニタ
ーしたいデータ、例えば40を読み出し、それをレ
ジスタBに記憶する(ステツプ38)。なおここで
上記ステツプ36においてレジスタXに0を記憶す
るようにしているのは、RAM2の記憶エリアが
0000〜00FF番地だからである。 Next, this calculation unit 1 stores 0 in register X (step 36), adds the contents of register B and the contents of register 37),
Place the address data 0090 on address bus 4.
RAM2 is addressed, data to be monitored, for example 40, is read out from RAM2 and stored in register B (step 38). Note that the reason why 0 is stored in register X in step 36 above is because the storage area of RAM2 is
This is because it is an address from 0000 to 00FF.
さらに演算部1はF100をレジスタXに記憶し
(ステツプ39)、レジスタBの内容とレジスタXの
内容とを加算して8ビツトのデータ40を16ビツト
のアドレスデータF140に変換し(ステツプ40)、
該アドレスデータF140でもつてEPROM8をア
ドレス指定する(ステツプ41)。するとデコー
ド・タイミング回路22はEPROM8のアドレス
バス8bに現れるアドレスデータF140を読み、
今上位8ビツトがF1であることから、制御信号
bを発生してラツチ回路21を作動させ、該ラツ
チ回路21はアドレスデータF140のうち下位8
ビツトのデータ40をラツチし、それをデータ収集
用CPU17に送る。 Furthermore, the calculation unit 1 stores F100 in register X (step 39), adds the contents of register B and the contents of register ,
The EPROM 8 is also addressed using the address data F140 (step 41). Then, the decode timing circuit 22 reads the address data F140 appearing on the address bus 8b of the EPROM 8,
Since the upper 8 bits are now F1, the control signal b is generated to operate the latch circuit 21, and the latch circuit 21 selects the lower 8 bits of the address data F140.
It latches bit data 40 and sends it to the data collection CPU 17.
また上記デコード・タイミング回路22から発
生された制御信号bはデータ収集用CPU17の
インターラプト端子17cにも加えられ、すると
該CPU17はメインルーチンから第6図に示す
インターラプトルーチンの処理に移り、まず入力
ポート17bより上記データ40を読み込んで保存
するとともに(ステツプ51、52)、所定数のアド
レスのデータ収集が終了したか否かを判定し、終
了していない場合はNOと判定してステツプ54に
進んで、次のチヤンネルのアドレスを出力ポート
17aに設定するとともに、制御信号ACKを送
出した後(ステツプ55)、メインルーチンの各種
処理に戻る
このようにしてRAM2内の1つのデータがモ
ニターされると、次に演算部1は、レジスタBに
時間tを記憶した後(ステツプ42)、EPROM8
に対してアドレスF2××を指定する。するとデ
コード・タイミング回路22がアドレスデータ
F2××を読み、上位8ビツトがF2であることか
ら、制御信号cを発生して第2ゲート回路20を
開き、RSフリツプフロツプ19の出力Qが
EPROM8のデータバス8aに入力され、演算部
1はこのRSフリツプフロツプ19の出力を読み
込み、それをレジスタAに記憶しステツプ43)、
このレジスタAの値が0か否かを判定する(ステ
ツプ44)。そして所定数のアドレスのデータ収集
が終了していない場合は、上述のようにデータ収
集用CPU17から制御信号ACKが出力されて、
RSフリツプフロツプの出力Qは“1”であるこ
とから、上記演算部1はNOと判定してステツプ
35に戻り、上述の処理を繰り返す。 The control signal b generated from the decode timing circuit 22 is also applied to the interrupt terminal 17c of the data collection CPU 17, and the CPU 17 then shifts from the main routine to the interrupt routine shown in FIG. The above data 40 is read from the input port 17b and saved (steps 51 and 52), and it is determined whether data collection for a predetermined number of addresses has been completed. If not, it is determined NO and the process proceeds to step 54. After setting the address of the next channel to the output port 17a and sending the control signal ACK (step 55), the process returns to the main routine.In this way, one piece of data in RAM2 is monitored. Then, the calculation unit 1 stores the time t in the register B (step 42), and then stores the time t in the EPROM 8.
Specify address F2XX for . Then, the decode timing circuit 22 receives the address data.
F2XX is read, and since the upper 8 bits are F2, the control signal c is generated to open the second gate circuit 20, and the output Q of the RS flip-flop 19 is
It is input to the data bus 8a of the EPROM 8, and the arithmetic unit 1 reads the output of this RS flip-flop 19 and stores it in the register A. Step 43)
It is determined whether the value of this register A is 0 (step 44). If data collection for a predetermined number of addresses has not been completed, the control signal ACK is output from the data collection CPU 17 as described above.
Since the output Q of the RS flip-flop is “1”, the arithmetic unit 1 determines NO and proceeds to the step.
Return to step 35 and repeat the above process.
そして上述のようにしてRAM2内のデータが
次々とモニターされていつてデータの収集が完了
すると、データ収集用CPU17はそのインター
ラプトルーチンのステツプ53においてYESと判
定してステツプ56に進んで出力ポート17aに第
1チヤンネル目のアドレスを設定してメインルー
チンの処理に戻る。すると、デコード・タイミン
グ回路22がEPROM8のアドレスバスライン8
bからF2××のアドレスデータを読み込み、制
御信号bを出力すると、フリツプフロツプ回路1
9のQ出力は“0”となり、これにより演算部1
はステツプ44においてYESと判定し、ステツプ
45に進んでレジスタB内の値から1を減算してそ
の結果をレジスタBに記憶した後、レジスタBの
値が0か否かを判定し(ステツプ46)、上記設定
時間tが経過するまではNOと判定してステツプ
43に戻つてステツプ43〜46の処理を繰り返し、上
記設定時間tが経過すると上記ステツプ46におい
てYESと判定してデータ収集用サービスルーチ
ンの処理を完了し、通常の制御のためのプログラ
ムの実行に戻ることとなる。 Then, as described above, the data in the RAM 2 is monitored one after another, and when the data collection is completed, the data collection CPU 17 makes a YES determination in step 53 of the interrupt routine, proceeds to step 56, and selects the output port 17a. The address of the first channel is set in , and the process returns to the main routine. Then, the decode timing circuit 22 outputs the address bus line 8 of the EPROM 8.
When the address data of F2XX is read from b and the control signal b is output, flip-flop circuit 1
The Q output of 9 becomes “0”, which causes the arithmetic unit 1
is determined to be YES in step 44, and the step
Proceed to step 45, subtract 1 from the value in register B, store the result in register B, then determine whether the value in register B is 0 (step 46), and continue until the above set time t elapses. determines NO and steps
Returning to step 43, the process of steps 43 to 46 is repeated, and when the set time t has elapsed, it is determined YES in step 46, the data collection service routine process is completed, and the program for normal control is executed. I will be returning.
以上のような本実施例の装置では、内蔵RAM
のデータを自動的にかつ確実にモニターできる。
またRAMモニターのためのアドレスとして通常
の制御用アドレスF800〜FFFFと競合しないアド
レスF0××、F1××及びF2××を用いているの
で、通常の制御動作に影響を与えることがない。 In the device of this embodiment as described above, the built-in RAM
data can be automatically and reliably monitored.
Furthermore, since addresses F0xx, F1xx, and F2xx that do not conflict with normal control addresses F800 to FFFF are used as addresses for RAM monitoring, normal control operations are not affected.
なお上記実施例ではRAMモニター用のアドレ
スとしてF0××、F1××及びF2××を用いた
が、これは制御用アドレスF800〜FFFFと競合し
ないアドレスであればF0××、F1××及びF2×
×以外のものであつてもよい。またデータをのせ
る位置はアドレスの下位ではなく、上位であつて
もよい。 In the above embodiment, F0XX, F1XX, and F2XX were used as RAM monitor addresses, but F0XX, F1XX, and F2×
It may be something other than ×. Further, the position where the data is placed may be in the upper part of the address instead of the lower part.
以上のように本発明によれば、ピギーバツクタ
イプの1チツプCPUの外に、モニターすべき1
チツプCPUの内蔵RAMのアドレスを有するアド
レス記憶手段と、上記アドレスを1チツプCPU
の外付ROMのデータバスに入力する転送手段
と、上記外付ROMのアドレスバスから内蔵
RAMのデータを抽出するモニター手段とを設
け、一方上記1チツプCPU内に、上記データバ
スのデータをアドレスデータに変換するとともに
該アドレスデータに対応する内蔵RAMのデータ
をアドレスデータに変換してそれをアドレスバス
にのせる制御手段と、該制御手段の処理を停止さ
せる停止手段とを設けるようにしたので、通常の
制御動作に影響を及ぼすことなく、内蔵RAMの
内容を自動的にかつ確実にモニターできるモニタ
ー装置が得られる効果がある。
As described above, according to the present invention, in addition to the piggyback type one-chip CPU, there is also a single chip to be monitored.
An address storage means having the address of the built-in RAM of the chip CPU, and an address storage means having the address of the internal RAM of the chip CPU;
Transfer means input to the data bus of the external ROM, and internal transfer from the address bus of the external ROM
Monitoring means for extracting RAM data is provided in the one-chip CPU, and the one-chip CPU converts the data on the data bus into address data, and also converts the data in the built-in RAM corresponding to the address data into address data. Since the present invention is equipped with a control means for placing the data on the address bus and a stop means for stopping the processing of the control means, the contents of the built-in RAM can be automatically and reliably read without affecting normal control operations. This has the effect of providing a monitoring device that can perform monitoring.
第1図は本発明の構成を示す機能ブロツク図、
第2図は本発明の一実施例による中央処理装置内
蔵メモリーのモニター装置が使用されるピギーバ
ツクタイプの1チツプCPUの構成図、第3図は
上記モニター装置の構成図、第4図は上記1チツ
プCPUのデータ収集用サービスルーチンのフロ
ーチヤートを示す図、第5図及び第6図はそれぞ
れ上記モニター装置におけるデータ収集用CPU
のメインルーチン及びインターラプトルーチンの
フローチヤートを示す図である。
30……アドレス記憶手段、31……転送手
段、32……制御手段、33……モニター手段、
34……停止手段、1……演算部、2……RAM
(第1のメモリー)、3……データバス、4……ア
ドレスバス、8……EPROM(第2のメモリー)、
8a……データバスライン、8b……アドレスバ
スライン、17……データ収集用CPU、18…
…第1ゲート回路、19……RSフリツプフロツ
プ、20……第2ゲート回路、22……デコー
ド・タイミング回路。
FIG. 1 is a functional block diagram showing the configuration of the present invention.
FIG. 2 is a configuration diagram of a piggyback type one-chip CPU in which a monitoring device for the internal memory of a central processing unit according to an embodiment of the present invention is used, FIG. 3 is a configuration diagram of the above-mentioned monitoring device, and FIG. Figures 5 and 6 are flowcharts of the data collection service routine for a 1-chip CPU, respectively.
FIG. 2 is a diagram showing a flowchart of a main routine and an interrupt routine. 30...address storage means, 31...transfer means, 32...control means, 33...monitoring means,
34...Stopping means, 1...Arithmetic unit, 2...RAM
(first memory), 3...data bus, 4...address bus, 8...EPROM (second memory),
8a...Data bus line, 8b...Address bus line, 17...CPU for data collection, 18...
...first gate circuit, 19...RS flip-flop, 20...second gate circuit, 22...decode timing circuit.
Claims (1)
ともに書き換え不能な第2のメモリーを着脱可能
に備えた中央処理装置において上記第1のメモリ
ー内のデータをモニターする装置であつて、モニ
ターすべき上記第1のメモリーのアドレスを複数
有するアドレス記憶手段と、該記憶手段内のアド
レスを所定のタイミングで上記第2のメモリーの
データバスラインを利用して上記中央処理装置内
のデータバスに転送する転送手段と、上記中央処
理装置内に設けられ上記転送手段に転送タイミン
グを与えこれにより上記転送された上記データバ
スのデータをアドレスデータに変換するとともに
該アドレスデータに対応する上記第1のメモリー
内のデータを特定形式のアドレスデータに変換し
てアドレスバスにのせる制御手段と、上記第2の
メモリーのアドレスバスラインから上記特定形式
のアドレスデータを取り出し該アドレスデータか
ら上記第1のメモリーのデータを抽出するモニタ
ー手段と、上記中央処理装置内に設けられ上記転
送手段から所定のデータが転送されたとき上記制
御手段の処理を停止させる停止手段とを備えたこ
とを特徴とする中央処理装置内蔵メモリーのモニ
ター装置。1 A device for monitoring data in the first memory in a central processing unit having a built-in rewritable first memory and removably equipped with a non-rewritable second memory, the device monitoring the data in the first memory to be monitored. an address storage means having a plurality of addresses of one memory; and a transfer means for transferring the addresses in the storage means to a data bus in the central processing unit using a data bus line of the second memory at a predetermined timing. and gives a transfer timing to the transfer means provided in the central processing unit, thereby converting the transferred data on the data bus into address data and converting the data in the first memory corresponding to the address data. control means for converting the address data into address data in a specific format and putting it on the address bus; and extracting the address data in the specific format from the address bus line of the second memory and extracting the data in the first memory from the address data. and a stop means provided in the central processing unit to stop the processing of the control means when predetermined data is transferred from the transfer means. Monitoring device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58203224A JPS6095646A (en) | 1983-10-28 | 1983-10-28 | Monitor device of built-in memory of central processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58203224A JPS6095646A (en) | 1983-10-28 | 1983-10-28 | Monitor device of built-in memory of central processor |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6095646A JPS6095646A (en) | 1985-05-29 |
| JPH046028B2 true JPH046028B2 (en) | 1992-02-04 |
Family
ID=16470507
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP58203224A Granted JPS6095646A (en) | 1983-10-28 | 1983-10-28 | Monitor device of built-in memory of central processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6095646A (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0731690B2 (en) * | 1985-12-18 | 1995-04-10 | 株式会社明電舍 | Data collection device |
| JPH0731689B2 (en) * | 1985-12-18 | 1995-04-10 | 株式会社明電舍 | Data collection device |
-
1983
- 1983-10-28 JP JP58203224A patent/JPS6095646A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6095646A (en) | 1985-05-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4626985A (en) | Single-chip microcomputer with internal time-multiplexed address/data/interrupt bus | |
| JP3715456B2 (en) | System and method for testing an embedded microprocessor system that includes physical and / or simulated hardware | |
| US4648068A (en) | Memory-programmable controller | |
| JPS63111545A (en) | Microprocessor for debug | |
| US4926318A (en) | Micro processor capable of being connected with a coprocessor | |
| US4250547A (en) | Information processing apparatus capable of effecting parallel processings by using a divided common bus | |
| JPH046028B2 (en) | ||
| JP2594130B2 (en) | Semiconductor circuit | |
| EP0827080B1 (en) | Mircrocomputer with selfdiagnostic unit | |
| JPH0158536B2 (en) | ||
| JPH08137823A (en) | One-chip microcomputer for emulator | |
| JP3547012B2 (en) | Microcomputer | |
| JPH0652333A (en) | Single chip microcomputer | |
| JPS59142610A (en) | Stored program controller | |
| JPH0510696B2 (en) | ||
| JP2854248B2 (en) | Programmable controller | |
| JP2003196251A (en) | Multi CPU system | |
| JPS6223896B2 (en) | ||
| JPH0120779B2 (en) | ||
| JPS6057598A (en) | Read-only memory | |
| JPH05241880A (en) | Microprocessor and emulator | |
| JPH1139213A (en) | Microcomputer | |
| JPS6239778B2 (en) | ||
| JPS6144343B2 (en) | ||
| JPH0477883A (en) | Single chip microcomputer |