JPS62237551A - Microcomputer device - Google Patents

Microcomputer device

Info

Publication number
JPS62237551A
JPS62237551A JP61080108A JP8010886A JPS62237551A JP S62237551 A JPS62237551 A JP S62237551A JP 61080108 A JP61080108 A JP 61080108A JP 8010886 A JP8010886 A JP 8010886A JP S62237551 A JPS62237551 A JP S62237551A
Authority
JP
Japan
Prior art keywords
memory
data
ram
rom
parity
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
Application number
JP61080108A
Other languages
Japanese (ja)
Other versions
JPH0746329B2 (en
Inventor
Hisayuki Maruyama
久幸 丸山
Seiichi Yasumoto
精一 安元
Sadao Mizokawa
貞生 溝河
Masahito Satake
佐竹 雅人
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP61080108A priority Critical patent/JPH0746329B2/en
Publication of JPS62237551A publication Critical patent/JPS62237551A/en
Publication of JPH0746329B2 publication Critical patent/JPH0746329B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To omit a parity checking ROM for a ROM by sequentially reading out all memories, writing a parity bit in a parity RAM every address and writing the information of an unloaded area in a memory loading state display memory. CONSTITUTION:When power ON is detected by a power ON detector 6, an MPU 1 reads out addresses corresponding to all memory spaces to be loaded sequentially, forms parity bits by a parity checker generator 11 and stores the parity bits in the RAM 3. Then, the MPU 1 writes/reads out data in/from memory spaces successively to decide whether the memory is a ROM, a RAM or an unloaded memory. In case of the unloaded memory, a memory state display bit is written in a loading state display ROM 4 and the parity bit to be an error is written in the parity RAM 3. Consequently, a parity check ROM for the memory space constituted of the ROM can be omitted and a parity check error can be detected from a memory unloaded area without fail.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はメモリとしてROMを有するマイクロコンピュ
ータ装置に係り、特にメモリのデータチェックを行うに
好適なマイクロコンピュータ装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microcomputer device having a ROM as a memory, and particularly to a microcomputer device suitable for checking data in the memory.

〔従来の技術〕[Conventional technology]

従来のメモリとしてROMを有するマイクロコンピュー
タ装置のデータチェックを行うには1例えば特開昭60
−108944号公報に示されるように。
To check the data of a microcomputer device having a ROM as a conventional memory, 1, for example,
As shown in Publication No.-108944.

電源投入時41m ROMのデ・−夕に対応したアドレ
スをアドレス発生回路で発生させ、ROMからのデータ
パターンに、上りパリティジェネレータでパリティビッ
トを生成して、このパリティビットをRA Mに記憶さ
せることにより、これ以降にROl’1のデータをパリ
ティチェックするようにしていた。
When the power is turned on, the address generation circuit generates an address corresponding to the data in the ROM, the upstream parity generator generates a parity bit based on the data pattern from the ROM, and this parity bit is stored in the RAM. Therefore, from then on, the data of ROl'1 was subjected to a parity check.

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

1−記従来技術のデータチェックでは、ROMのデータ
パターンによりパリティビットを生成するので、メモリ
空間としてはROMの実装エリアだけに限られていた。
In the data check of the prior art described in 1-, the parity bit is generated based on the data pattern of the ROM, so the memory space is limited to the mounting area of the ROM.

仮りに従来技術のデータチェックをメモリ空間の全エリ
アに適用すると、メモリ素子の未実装エリアにおいでバ
リナイチ毛ツクができないか、あるいはメモリ非実装エ
リアのラング11なパターン(通常のメモリ非実装エリ
ア゛のパターンはal、l”1”)によりパリディピッ
1−が生成されるので、も[−zメモリ非実装ニーJア
殻アゲヤスしてもパリティエラーにならないなどの問題
点があった。
If the data check of the prior art is applied to all areas of the memory space, it will not be possible to check the data in the area where memory elements are not installed, or the rung 11 pattern of the area where memory is not installed (regular non-memory area). Since the parity pattern 1- is generated by the pattern al, l"1"), there is a problem that a parity error does not occur even if the pattern is [-z memory non-implemented].

本発明の目的は、メモリ空間の全エリアについてパリテ
ィチェック可能なパリティビットをメモリ素子のパター
ンにより生成し記憶してパリティチェックを行うことの
できるマイクロプロセツザ装置7を提供するにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a microprocessor device 7 that can perform a parity check by generating and storing parity bits that can be checked for parity in all areas of a memory space based on a pattern of memory elements.

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

上記間Nこは、メモリ非実装エリアについてはメモリが
非実装であるという情報を1一つのアドレスに対しで読
み出しくデータA)、IFき込み(データT3)1次に
瞬時に読み出しくデータC)、最後に時間をおいて再び
読み出して(データ■〕)。
For the above-mentioned area, the information that the memory is not installed is read out for each address (data A), IF read (data T3), and data C is read out instantly. ), and finally read it again after some time (data ■)).

それらのデータを比較して得ることにより解決される。The problem is solved by comparing and obtaining those data.

〔作用〕[Effect]

、1一記手段によればそれぞれのデータが次のような関
係にあるしこ従ってメモリがROMかRAMか非実装か
が検出される。すなわち、 (i)データA=I)andデータB≠CのときはRO
Mエリア。
, 1. According to the above means, each data has the following relationship, and accordingly, it is detected whether the memory is ROM, RAM, or unimplemented. That is, (i) when data A=I) and data B≠C, RO
M area.

(it)データ13=c=D のときはRAMエリア、 (in )データA=DandデータB=CFll司デ
ータ)3≠1〕 のときはメモリ非実装。
(it) RAM area when data 13=c=D, (in) memory not implemented when data A=Dand data B=CFll data)3≠1].

である。It is.

〔実施例〕〔Example〕

以下に本発明の一実施例を第1図ないし第7図により説
明する。
An embodiment of the present invention will be described below with reference to FIGS. 1 to 7.

第1図は本発明によるマイクロコンピュータ装置の一実
施例を示すハードウェア構成図である。
FIG. 1 is a hardware configuration diagram showing an embodiment of a microcomputer device according to the present invention.

第1図において、■はマイクロプロセッサM I’) 
LJ、2はM P U 1のプログラムを格納するプロ
グラムメモリROMで、全メモリ空間中にメモリ素子の
ROMとRAMの実装エリアとメモリ素子の未実装エリ
アを有する。3はROM2のデータをチェックするため
の各メモリアト1ノスのデータに応じたパリティビット
を各メモリアドレスに対応したアドレスに記憶するパリ
ティメモリRAMで、4はROM2の各メモリアドレス
にメモリ素子が実装されているか否かの実装状態情輯登
各メモリアドレスに対応したアドレスに記憶する実装状
婁表示メモリRAMである。
In Figure 1, ■ is a microprocessor M I')
LJ, 2 is a program memory ROM that stores the program of MPU 1, and has an area where ROM and RAM of memory elements are mounted and an area where no memory elements are mounted in the entire memory space. 3 is a parity memory RAM that stores a parity bit according to the data of each memory at 1nos in an address corresponding to each memory address for checking the data of ROM2, and 4 is a parity memory RAM in which a memory element is mounted at each memory address of ROM2. This is a mounting status display memory RAM that stores mounting status information at an address corresponding to each memory address.

5はM P tJ 1のMR(メモリリード)信号1a
によりRAM MR(メモリリード)M号5aまたはR
AM MW (メ%リライト)信号5bおよびDATA
 CT[、(データコントロール)信号5cを出力する
RAM WRFrE CTL(ライトコントロール)回
路で、にはパワーオン(POWERON)検出器%7は
マニアルによる信号発生装置(MANuAl、)である
、8はRAMwl(TTI’! CT1.5  の信号
5clこよりデータバス15とデータバス1日を切り離
して、データバス18にM TJ U 1がノーオペレ
ーションになるデ・−タパターン(実行が伴わない命令
語:スキップ)を強制的に出力するDATA CTL 
(データコントロール)回路で、9はこの場合のノーオ
ペレーションになる“0”データパターンを発生する“
O″GEN(ジェネレータ)である。
5 is the MR (memory read) signal 1a of M P tJ 1
RAM MR (memory read) M number 5a or R
AM MW (merit rewrite) signal 5b and DATA
CT[, RAM WRFrE CTL (write control) circuit that outputs (data control) signal 5c, is a power-on (POWERON) detector %7 is a manual signal generator (MANuAl, ), 8 is RAMwl ( TTI'! The data bus 15 and the data bus 1 are separated from the signal 5cl of CT1.5, and a data pattern in which M TJ U 1 becomes a no-operation on the data bus 18 (command word that does not involve execution: skip) DATA CTL to forcefully output
In the (data control) circuit, 9 generates a “0” data pattern, which is a no-operation in this case.
O″GEN (generator).

10はアドレスバスによりROM2の全メモリ空間のア
ドレスを順次にデコードするアドレスデコーダ(ADD
RDF!(1:0DE)  である。11はROM2か
ら出力されるデータに応じてパリティピットを生成する
パリティチェッカー・ジェネレータ(PTY CH[E
CK GEN)  である、12はROM2から出力さ
れるデータに応じてメモリ素子のROMかRAMかまた
はメモリ素子の未実装かを検出するメモリ実装検出回路
(MOUNT DET)  である。13はパリティエ
ラー検出回路(PTY ERRDFT)、14はエラー
処理回路(E RR)である。15はデータバス、16
はアドレスバス、17はORゲート、18はデータバス
である。
10 is an address decoder (ADD) that sequentially decodes the addresses of all the memory spaces of ROM2 using the address bus.
RDF! (1:0 DE). 11 is a parity checker generator (PTY CH[E
CK GEN), and 12 is a memory mounting detection circuit (MOUNT DET) that detects whether the memory element is ROM or RAM, or whether the memory element is not mounted, according to the data output from the ROM2. 13 is a parity error detection circuit (PTY ERRDFT), and 14 is an error processing circuit (ERR). 15 is a data bus, 16
is an address bus, 17 is an OR gate, and 18 is a data bus.

第2図は第1図(7)RAM wRITE CTL5 
(7)詳細構成側図である。第2図において、20はフ
リップフロップ(FF)、21は遅延回路、22はEX
−OR回路、23はNAND回路、24.25はインバ
ータ回路、26はトライステートゲート回路、27はプ
ルアップ(pu+、t、 up)  抵抗である。第3
図は第2図のRAMすRITE! CTL5 白信号の
タイムチャートである。第4図は第1図のDATA C
TL8の詳細楕成例図である。第4図において、41.
42はインバータ回路%43.44はNAND回路、4
5゜46.47はトライステートゲート回路である。
Figure 2 shows Figure 1 (7) RAM wRITE CTL5
(7) Detailed configuration side view. In FIG. 2, 20 is a flip-flop (FF), 21 is a delay circuit, and 22 is an EX
-OR circuit, 23 is a NAND circuit, 24.25 is an inverter circuit, 26 is a tri-state gate circuit, and 27 is a pull-up (pu+, t, up) resistor. Third
The diagram is the RAM shown in Figure 2. This is a time chart of CTL5 white signal. Figure 4 shows the DATA C of Figure 1.
It is a detailed elliptical example diagram of TL8. In FIG. 4, 41.
42 is an inverter circuit%43.44 is a NAND circuit, 4
5°46.47 is a tri-state gate circuit.

第5図は第1図のROM2.RAM3.4のメモリ構成
例を表わす概念図である。第5図において、ROM2の
全メモリ空間(0番地〜N番地)中にメモリ素子のRO
MとRAMを実装するエリアと、メモリ素子のROMも
RAMも実装されていない、メモリ未実装エリアを有す
る。つまりROM2にはメモリ未実装エリアとしてメモ
リ素子のROM−bRAMも存在しないエリアが存在す
るが、回路上にはソケットあるいは端子等が存在するも
のとして該ソケットなどにROMもRAMも実装してい
ないイメージである。第6図は第1図のメモリ実装検出
回路12のROM2のROMかRAMか未実装エリアか
判定するタイムチャートである。また第7図は第1図の
動作を説明するフローチャートである。
FIG. 5 shows ROM2. of FIG. FIG. 4 is a conceptual diagram showing an example of a memory configuration of RAM 3.4. In FIG. 5, RO of memory elements in the entire memory space (addresses 0 to N) of ROM2 is shown.
It has an area where M and RAM are mounted, and a non-memory area where neither ROM nor RAM of the memory element is mounted. In other words, in ROM2, there is an area where no memory element ROM-bRAM exists as an area where memory is not installed, but assuming that there are sockets or terminals on the circuit, it is assumed that neither ROM nor RAM is mounted in the socket etc. It is. FIG. 6 is a time chart for determining whether the ROM2 of the memory mounting detection circuit 12 of FIG. 1 is ROM, RAM, or an unmounted area. Further, FIG. 7 is a flowchart explaining the operation of FIG. 1.

いま、第1図のマイクロプロセッサ装置に電源が投入さ
れると、パワーオン(POVERON)検出器6による
検出信号6aまたはマニュアルによる信号発生装fi 
(MANUAI、) 7ニヨル信号7aをORゲート1
7を介して、信号17aによりRAM WRTTEeT
I、5 ニ伝える。RAM wRITIE CTL5 
は電源投入により動作開始したMPUIにより出力され
たMR(メモリリード)信号1aを次のように加工する
Now, when the microprocessor device shown in FIG. 1 is powered on, a detection signal 6a from the power-on (POVERON) detector 6 or a manual signal generator
(MANUAI,) 7Nor signal 7a is OR gate 1
RAM WRTTEeT via signal 17a via 7
I, 5 Tell them. RAM wRITIE CTL5
processes the MR (memory read) signal 1a output by the MPUI, which starts operating when the power is turned on, as follows.

第2図(7)RAM IIRITE CTL5 でパワ
ーオンの信号17aはFF20にラッチされ、I)AT
A CTC信号5Cを出力する。一方のMPUIからの
MR(MR)信号1aはDATA CTI、信号50に
よって、そのままI(AM MR(RAM MR)信号
5aになるかあるいは加工されてRAM sv (ii
^M M%1)信号5bになるか決定される。このとき
インバータ回路25.プルアップ抵抗27などの回路に
よって、I(AM MR信号5aとRAM Mld信号
5bは必ずどちらかに選択される。 RAM M%l信
号5bは遅延回路21.EX−OR回路22.インバー
タ回路24 、 NAND回路23により、第3図(7
)RAM WRITE CTL5  白信号のタイムチ
ャートでRAM M1m信号のようにMPU1からの■
信号1aの後縁より時間Tだけ早くRAM MW倍信号
後縁が立ち上るように加工される。
(7) RAM IIRITE CTL5 power-on signal 17a is latched to FF20, I) AT
A CTC signal 5C is output. The MR (MR) signal 1a from one MPUI is converted into an I(AM MR (RAM MR) signal 5a as it is, or is processed and sent to the RAM sv (ii
^M M%1) It is determined whether the signal will be 5b. At this time, the inverter circuit 25. The I(AM MR signal 5a and the RAM Mld signal 5b are always selected by a circuit such as the pull-up resistor 27. The RAM M%l signal 5b is connected to the delay circuit 21. EX-OR circuit 22. By the NAND circuit 23, as shown in FIG.
) RAM WRITE CTL5 In the white signal time chart, ■ from MPU1 like the RAM M1m signal.
Processing is performed so that the trailing edge of the RAM MW multiplied signal rises a time T earlier than the trailing edge of the signal 1a.

この第3図のRAM WRITE CTL5 白信号の
タイムチャートには、パワーオン(POVHRON)後
に、MPU1からのMR(MR)信号がRAM阿R(R
AM阿R)信号5aまたはRAM MW (RAM M
ll)信号5 b ニ変換されるタイミングと、第1図
のアドレスデコーダ(ADDRDRCODF) 10 
 からの信号10aによりRAM3,4に対す1EAD
(IJ−ド)  トWRITE(ライト)のモードを制
御しているタイミングが示される。
The time chart of the RAM WRITE CTL5 white signal in Fig. 3 shows that after power-on (POVHRON), the MR (MR) signal from MPU1 is input to the RAM WRITE CTL5 white signal.
AMAR) signal 5a or RAM MW (RAM M
ll) Timing of signal 5 b d conversion and address decoder (ADDRDRCODF) 10 in FIG.
1EAD to RAM3 and 4 by signal 10a from
(IJ-do) The timing at which the WRITE mode is controlled is shown.

いまRAMへRAS情報をライトするモード(RAM 
WRITE−11−−ド)では、第1図+7)MPUI
が動作開始して出力したMR信号1aによりROM2を
リードし、MPULによりROM2のアドレッシング可
能な全メモリ空間に対応したアドレスをO番地からスタ
ートして順次に出力されるアドレスバス16上のアドレ
スに従ったメモリの内容をデータバス15に出力する。
The mode in which RAS information is now written to RAM (RAM
In the WRITE-11-- mode, see Figure 1 +7) MPUI
ROM2 is read by the MR signal 1a outputted when the ROM2 starts operating, and MPUL reads addresses corresponding to the entire addressable memory space of ROM2, starting from address O and following the addresses on the address bus 16 that are sequentially outputted. The contents of the stored memory are output to the data bus 15.

この出力データのパターンに応じてパリティチェッカー
・ジェネレータ(PTI/ CHECK GEN)  
11  によりパリティビットが生成される。一方でM
PUl−から出力したMR信号1aは上記ノRAM W
RITE CT1.5  ニより加工サレタRAM W
RITE信号LbとしてRAM3&、−入力する。これ
により上記のパリティチェッカー・ジェネレータ11か
らのパリティビットがRAM:3に記憶される。
Depending on the pattern of this output data, the parity checker generator (PTI/CHECK GEN)
11 generates a parity bit. On the other hand, M
The MR signal 1a output from PU1- is the RAM W
RITE CT1.5 Double processed Sareta RAM W
It is input as the RITE signal Lb to RAM3&,-. As a result, the parity bit from the above parity checker/generator 11 is stored in RAM:3.

このパリティRAM3にROM2のデータパターンに応
じたパリティビットをライトしている時に、DATA 
CTL8はRAM WRITE! CTL5  (7)
信号5cにより、データバス15とデータバス18を切
り離して、データバス18にM P U 1がノーオペ
レーションになるデータパターンを強制的に出力する。
When writing parity bits to parity RAM3 according to the data pattern of ROM2, DATA
CTL8 is RAM WRITE! CTL5 (7)
The signal 5c disconnects the data bus 15 and the data bus 18, and forcibly outputs a data pattern to the data bus 18 in which MPU 1 becomes a no-operation.

第4図のDATA CTI、8ではデータバス1.5,
1.8のうちの1本ノ回路ヲ示り、、 ティテ、 RA
M WRITE CTL 5のDATA (:TL信号
5cの制御により強制的にII OIIG E N 9
で発生した゛′0″データパターンをデータバス18−
Hに流す。これによりMPULはノーオペレーションの
命令を検出し、実行を行わずにROM2の次のアドレス
をリードするためアドレスを1へ進めて再度MR倍信号
aを出力する。このようにしてMPUIによりROM2
の全メモリ空間のアドレスをすべて出し終わると、ハリ
ティRAM3にはパリティビット情報を全メモリ空間に
ついて記憶される。
In Figure 4, DATA CTI, 8, data bus 1.5,
Showing one circuit of 1.8, Tite, RA
M WRITE CTL 5 DATA (: Forced by control of TL signal 5c II OIIG E N 9
The "'0" data pattern generated in the data bus 18-
Flow to H. As a result, the MPUL detects a no-operation instruction, advances the address to 1, and outputs the MR multiplication signal a again in order to read the next address in the ROM 2 without executing it. In this way, ROM2 is
When all addresses of all memory spaces have been output, parity bit information is stored in the parity RAM 3 for all memory spaces.

つぎにアドレスデコーダ10はROM2の全メモリ空間
の最終アドレスをアドレスバス16よりデコードして、
信号1. OaによりRAM l+1RITl’! C
TL5に伝える。これにより第2図)RAM 1iil
(ITF CTL5のFF20の状態を切り換えてDA
TA、 CTL信号5cを制御することにより、MPU
IのMR信号1aをRAM WRITE CTL5  
からRAM MR信号5aとしてRAM3.4へ出力さ
せる。またRAM WRITE CTL5からのDAT
A CTL信号5cにより、第4図の口^TACTL8
 はデータバス15とデータバス18を接続する。
Next, the address decoder 10 decodes the final address of the entire memory space of the ROM 2 from the address bus 16,
Signal 1. Oa allows RAM l+1RITl'! C
Tell TL5. As a result, (Figure 2) RAM 1iil
(Switch the state of FF20 of ITF CTL5 and
By controlling the TA and CTL signals 5c, the MPU
MR signal 1a of I to RAM WRITE CTL5
to the RAM 3.4 as the RAM MR signal 5a. Also, DAT from RAM WRITE CTL5
A CTL signal 5c causes the opening ^TACTL8 in Fig. 4 to
connects data bus 15 and data bus 18.

いま上記の信号切換えを行った後のRAMのリード専用
モード(RAM READモード)では、MPU1は再
びMR信号1aによりROM2の全メモリ空間に対応し
たアドレスを0番地からスタートして順次に出力される
アドレスバス16上のアドレスに従い、マイクロプログ
ラムによりROM2の全メモリ空間の全てのアドレスに
ついて各アドレスごとに第6図のタイミングでそれぞれ
書込み(ライト)および読出しくリード)を繰り返して
、それぞれのデータパターンの比較によりメモリ素子が
ROMかRAMが未実装がの判定をメモリ実装検出回路
(MOUNT D[4T)  12  により次のよう
に行う。すなわち、 ■ 初めに1つのアドレスに対してメモリの内容を読み
出して記憶しくデータAとする)、■ 次にデータA以
外のデータBを同一アドレスのメモリに書き込むと共に
記憶しくデータB)、■ 瞬時のうちに同一アドレスの
メモリの内容を読み出して記憶しくデータC)、 ■ 時間をおいて再び同一アドレスのメモリの内容を読
み出す(データD)。
Now, in the RAM read-only mode (RAM READ mode) after performing the above signal switching, the MPU 1 again uses the MR signal 1a to sequentially output addresses corresponding to the entire memory space of the ROM 2, starting from address 0. According to the addresses on the address bus 16, the microprogram repeatedly writes and reads all addresses in the entire memory space of the ROM 2 at the timing shown in FIG. Based on the comparison, it is determined whether the memory element is ROM or RAM is unmounted by the memory mounting detection circuit (MOUNT D[4T) 12 as follows. That is, ■ First read the contents of the memory for one address and store it as data A), ■ Then write data B other than data A to the memory at the same address and store it as data B), ■ Instantly The contents of the memory at the same address are read out and stored at some time (Data C); (2) The contents of the memory at the same address are read out again after some time (Data D);

これによりメモリ実装検出回路12は次の関係式により
メモリ実装状態を判定する。すなわち、(i)データA
=DandデータB≠CのときはROM実装エリア、 (it )データB=C=D のときはRAM実装エリア、 (fit )データA = D andデータR=Ca
nd データB≠D のときはメモリ未実装エリア、 とする(nRnd#Pは論理積のand条件である)。
As a result, the memory mounting detection circuit 12 determines the memory mounting state using the following relational expression. That is, (i) data A
= ROM mounting area when data B≠C, (it) RAM mounting area when data B = C = D, (fit) data A = D and data R = Ca
nd When data B≠D, the memory is not installed area. (nRnd#P is the AND condition of logical product).

なお上記の関係式はメモリ未実装エリアについては■で
書き込んだデータBが浮遊容量により一時的に保存され
る特性(ダイナミックRAMの原理)を利用している。
Note that the above relational expression utilizes the characteristic (principle of dynamic RAM) that data B written in step (3) is temporarily stored by stray capacitance in areas where no memory is installed.

つまりメモリ未実装エリアの特性として、メモリ素子の
ROMかRAMかが実装されていないので回路的にはオ
ープン状態であるが、しかし浮遊容量などのわずかな容
量が存在する。したがって第6図のタイミングにより、
上記の■であるデータBをメモリの未実装エリアにライ
トし、■で即座に同じエリアをリードするとそのときの
データCとしては浮遊容量などの容量により蓄えられた
電荷により■でライトしたデータBのパターンが読める
(データB=C)  。しかし■で時間をおいて同じエ
リアをリードしてもそのときのデータDとしては浮遊容
量などの容量に蓄えられた電荷が放電しているので■で
ライトしたデータBのパターンは消失して読めない(通
常はall“1”)(パターンB≠D)。かくして上記
のメモリ素子がROMかRAMか未実装かを判定する関
係式は、(i)ROM実装エリアの場合にはデータA=
D (ROMの読出しデータは不変)かつデータB#C
(ROMへの書込みは不可)となる。(u)RAM実装
エリアの場合にはデータB=C=D (RAMへ書き込
んだデータはすぐ読み出しても時間をおいて読み出して
も書き込んだデータのパターンと同じ)となる、また(
in)メモリ未実装エリアの場合にはデータA=D=固
定パターン(時間をおいて安定した時に読み出したデー
タはメモリ未実装ゆえ通常の固定パターンall “1
″になる)で、かつデータB=CかつデータB≠D(上
記の未実装エリアの特性による)となる。
In other words, as a characteristic of the non-memory area, the memory element, either ROM or RAM, is not mounted, so it is in an open state in terms of circuitry, but there is a small amount of capacitance such as stray capacitance. Therefore, according to the timing shown in Figure 6,
When data B, which is the above ■, is written to an unimplemented area of the memory, and the same area is immediately read using ■, the data C at that time becomes the data B written in ■ due to the electric charge stored in the capacitance such as stray capacitance. The pattern can be read (data B=C). However, even if the same area is read after some time in ■, the data D at that time is the charge stored in the capacitance such as stray capacitance, so the pattern of data B written in ■ disappears and cannot be read. No (usually all “1”) (pattern B≠D). Thus, the relational expression for determining whether the above memory element is ROM, RAM, or unmounted is (i) In the case of a ROM mounting area, data A =
D (ROM read data remains unchanged) and data B#C
(Writing to ROM is not possible). (u) In the case of the RAM mounting area, data B = C = D (data written to RAM has the same pattern as the written data whether it is read immediately or after some time), and (
in) In the case of an area with no memory installed, data A = D = fixed pattern (the data read out after a period of time has stabilized is the normal fixed pattern all “1” because no memory is installed)
''), and data B=C and data B≠D (depending on the characteristics of the unimplemented area).

上記によりメモリ実装検出回路12がROM2の全メモ
リ空間についてメモリエリアがROM実装エリアかRA
M実装エリアかメモリ未実装エリアかを検出すると、そ
れらのメモリ状態を示すメモリ状態表示ビットをメモリ
実装状態表示ROM4に記憶するとともに、メモリ未実
装エリアのアドレスについてはパリティRAM3にパリ
ティエラーを検出するようなパリティビットをパリティ
チェッカー・ジェネレータ11より書き込む。
As a result of the above, the memory mounting detection circuit 12 detects whether the memory area is the ROM mounting area or not for the entire memory space of ROM2.
When it detects whether it is an M-mounted area or a non-memory-mounted area, it stores memory state display bits indicating the memory state in the memory-mounted state display ROM4, and detects a parity error in the parity RAM3 for the address of the non-memory-mounted area. A parity bit like this is written by the parity checker/generator 11.

ついで通常のプログラムを実行して、パリティRA M
 3の出力データ3aとメモリ実装状態表示RAM4の
出力データ4aとROM2の出力データパターンをパリ
ティチェッカー・ジェネレータ11で比較してROM2
のデータをチェックすることにより、 ■ メモリの実装エリアにおいてパリティエラーが発生
した場合。
Then run the normal program and write the parity RAM
The parity checker/generator 11 compares the output data 3a of 3, the output data 4a of the memory mounting state display RAM4, and the output data pattern of ROM2.
■ If a parity error occurs in the memory implementation area.

■ メモリの非実装エリアのアドレスをアクセスした場
合、 において、パリティチェッカー・ジェネレータ11の信
号11aによってパリティエラー検出回路(PTY E
RRDF!T) l 3  にデータが入力され、さら
にエラー処理回路(F:RR)14に伝えることにより
パリティエラー処理される。
■ When an address in a non-implemented area of memory is accessed, the parity error detection circuit (PTYE) is activated by the signal 11a of the parity checker/generator 11.
RRDF! Data is input to T) l 3 and is further transmitted to the error processing circuit (F:RR) 14 for parity error processing.

以上のように本実施例によれば、マイクロコンピュータ
を備えた装置(マイクロコンピュータ装置!りのメモリ
のパリティチェックにおいて、it[投入時にメモリの
最初のアドレスから最終アドレスまでを順次に読み出し
、その読出しパターンによりパリティビットを生成して
メモリのアドレスに対応した1ビツトのパリティRAM
に書き込むとともに、メモリの未実装エリアについては
未実装であるという情報を1ビツトのメモリ実装状態表
示メモリに書き込むことにより、ROMで構成されたメ
モリ空間に対するパリティチェック用ROMを不要とす
るとともに、メモリ未実装エリアについては必ずパリテ
ィチェックエラーが検出できろ。
As described above, according to this embodiment, in the parity check of the memory of a device equipped with a microcomputer (a microcomputer device! 1-bit parity RAM that generates parity bits based on patterns and corresponds to memory addresses
At the same time, for unimplemented memory areas, information indicating that they are unimplemented is written to the 1-bit memory implementation status display memory, thereby eliminating the need for a parity check ROM for the memory space composed of ROM, and reducing the memory Parity check errors must be detected for unimplemented areas.

〔発明の効果〕〔Effect of the invention〕

以上の説明のように本発明によれば、マイクロコンピュ
ータ装置のROMで構成されたメモリ空間に対するパリ
ティチェック用T< OMが不要となるうえ、メモリ非
実装エリアについては必ずパリティチェックエラーを検
出可能となる。
As described above, according to the present invention, there is no need for a parity check T< OM for the memory space constituted by the ROM of a microcomputer device, and parity check errors can always be detected in areas where no memory is implemented. Become.

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

第1図は本発明によるマイクロコンピュータ装置の一実
施例を示すハードウェア構成図、第2図は第1図のRA
M WRITEコントロール回路の詳細構成図、第3図
は第2図の信号タイムチャート、第4図は第1図のDA
 TAコントロール回路の詳細構成図、第5図は第1図
のROM、RAMのメモリ構成側図、第6図は第1図の
メモリ実装検出回路の判定タイムチャート、第7図は第
1図の動作フローチャートである。 1・・・M P tJ、2・・・ROM、3・・・パリ
ティRAM。 4・・・実装状態表示メモリ、5・・・RAM WRT
TF、コントロール回路、6・・・パワーオン検出器、
8・・・1】^TAコントロール回路、9・・・lj 
OP1発生回路、10・・・アドレスデコーダ、11・
・・パリティチェッカー・ジェネレータ、12・・・メ
モリ実装検出回路、1;3・・・パリティエラー検出回
路、14・・・エラー処理回路。
FIG. 1 is a hardware configuration diagram showing an embodiment of a microcomputer device according to the present invention, and FIG. 2 is a diagram showing the RA of FIG. 1.
Detailed configuration diagram of the M WRITE control circuit, Figure 3 is the signal time chart in Figure 2, Figure 4 is the DA in Figure 1.
5 is a side view of the memory configuration of the ROM and RAM in FIG. 1, FIG. 6 is a determination time chart of the memory mounting detection circuit in FIG. 1, and FIG. 7 is a detailed diagram of the TA control circuit. It is an operation flowchart. 1...MP tJ, 2...ROM, 3...Parity RAM. 4...Mounting status display memory, 5...RAM WRT
TF, control circuit, 6... power-on detector,
8...1]^TA control circuit, 9...lj
OP1 generation circuit, 10...address decoder, 11.
...Parity checker generator, 12...Memory implementation detection circuit, 1; 3...Parity error detection circuit, 14...Error processing circuit.

Claims (1)

【特許請求の範囲】 1、メモリとしてのROMとRAMと、該ROMとRA
Mのデータをチェックするためのチェックデータの記憶
されたチェックデータメモリとをもつマイクロコンピュ
ータ装置において、アドレッシング可能な全メモリエリ
アに対応したアドレスを順次発生するアドレス発生回路
と、電源投入時または指定のタイミングで動作してメモ
リの読出し書込みを制御する回路と、メモリから出力さ
れるデータに応じてチェックデータを生成するチェック
データ発生回路と、該チェックデータ発生回路からの生
成データを記憶させるチェックデータRAMと、メモリ
がROMかRAMか非実装かを検出する手段を備え、上
記チェックデータRAMからのチェックデータとメモリ
がROMかRAMか非実装かを検出する手段からの検出
情報に基づきメモリのデータをチェックすることを特徴
とするマイクロコンピュータ装置。 2、上記のメモリがROMかRAMか非実装かを検出す
る手段はメモリの書込みと読出しを繰り返してそれぞれ
のデータパターンの比較により検出することを特徴とす
る特許請求の範囲第1項記載のマイクロコンピュータ装
置。 3、上記のメモリの書込みと読出しを繰り返してそれぞ
れのデータパターンの比較による検出は1つのアドレス
に対して初めそのデータを読み出し記憶してデータAと
し、次にデータA以外のデータを同アドレスに書き込ん
でデータBとし、瞬時のうちに同アドレスを読み出し記
憶してデータCとし、時間をおいて再び同アドレスを読
み出してデータDとし、それぞれのデータAとデータB
とデータCとデータDを比較することにより行うことを
特徴とする特許請求の範囲第2項記載のマイクロコンピ
ュータ装置。
[Claims] 1. ROM and RAM as memories, and the ROM and RAM
A microcomputer device having a check data memory storing check data for checking the data of M includes an address generation circuit that sequentially generates addresses corresponding to all addressable memory areas, and an address generation circuit that sequentially generates addresses corresponding to all addressable memory areas, and A circuit that operates based on timing to control reading and writing of the memory, a check data generation circuit that generates check data according to data output from the memory, and a check data RAM that stores the data generated from the check data generation circuit. and means for detecting whether the memory is ROM, RAM, or non-implemented, and based on the check data from the check data RAM and the detection information from the means for detecting whether the memory is ROM, RAM, or non-mounted, the data in the memory is A microcomputer device characterized by checking. 2. The microcontroller according to claim 1, wherein the means for detecting whether the memory is a ROM, a RAM, or a non-implemented memory is detected by repeatedly writing and reading the memory and comparing respective data patterns. computer equipment. 3. Detection by repeating the writing and reading of the memory and comparing each data pattern is to first read and store the data for one address and store it as data A, then write data other than data A to the same address. Write it as data B, instantaneously read and store the same address as data C, read the same address again after some time as data D, and write data A and B respectively.
3. The microcomputer device according to claim 2, wherein the microcomputer device performs the determination by comparing data C and data D.
JP61080108A 1986-04-09 1986-04-09 Micro computer device Expired - Lifetime JPH0746329B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61080108A JPH0746329B2 (en) 1986-04-09 1986-04-09 Micro computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61080108A JPH0746329B2 (en) 1986-04-09 1986-04-09 Micro computer device

Publications (2)

Publication Number Publication Date
JPS62237551A true JPS62237551A (en) 1987-10-17
JPH0746329B2 JPH0746329B2 (en) 1995-05-17

Family

ID=13708989

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61080108A Expired - Lifetime JPH0746329B2 (en) 1986-04-09 1986-04-09 Micro computer device

Country Status (1)

Country Link
JP (1) JPH0746329B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5793774A (en) * 1994-11-04 1998-08-11 Fujitsu Limited Flash memory controlling system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56134397A (en) * 1980-03-21 1981-10-21 Tokyo Electric Co Ltd Memory function check system for extended ram of electronic equipment
JPS57117187A (en) * 1981-01-12 1982-07-21 Nissan Motor Co Ltd Discriminating method for memory
JPS58125125A (en) * 1982-01-21 1983-07-26 Toshiba Corp Starting method of program
JPS60108944A (en) * 1983-11-17 1985-06-14 Toshiba Corp Storage device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56134397A (en) * 1980-03-21 1981-10-21 Tokyo Electric Co Ltd Memory function check system for extended ram of electronic equipment
JPS57117187A (en) * 1981-01-12 1982-07-21 Nissan Motor Co Ltd Discriminating method for memory
JPS58125125A (en) * 1982-01-21 1983-07-26 Toshiba Corp Starting method of program
JPS60108944A (en) * 1983-11-17 1985-06-14 Toshiba Corp Storage device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5793774A (en) * 1994-11-04 1998-08-11 Fujitsu Limited Flash memory controlling system

Also Published As

Publication number Publication date
JPH0746329B2 (en) 1995-05-17

Similar Documents

Publication Publication Date Title
JP3753606B2 (en) Operation mode setting circuit and method for semiconductor memory device
US5339402A (en) System for connecting an IC memory card to a central processing unit of a computer
JPH08124380A (en) Semiconductor memory and accessing method for semiconductor memory
JPS62237551A (en) Microcomputer device
JPH03138742A (en) Memory system
JPS6130301B2 (en)
JP3507193B2 (en) Load / store instruction processor
JPS623520B2 (en)
JPH04165548A (en) Memory address control system
JP3204384B2 (en) Semiconductor memory circuit
JPS6044700B2 (en) Configuration error detection device
JPS6022774B2 (en) Input/output terminal control method
JP3052385B2 (en) Microcomputer
JPH0765586A (en) Access system for eeprom
JPH03266154A (en) Information processor
JP2919357B2 (en) CPU interface circuit
JPH05265786A (en) Parity check circuit
JP2002150795A (en) Semiconductor integrated circuit
JPH11194975A (en) Memory system
JPH04275652A (en) Fault detection circuit for storage device
JPS59152600A (en) Microcomputer
JPH03220649A (en) Parity check circuit
JPS6031650A (en) Computer
JPH06290050A (en) Computer and its program loading method
JPH0217517A (en) Microcomputer