JPH0469742A - Electronic equipment - Google Patents

Electronic equipment

Info

Publication number
JPH0469742A
JPH0469742A JP2182316A JP18231690A JPH0469742A JP H0469742 A JPH0469742 A JP H0469742A JP 2182316 A JP2182316 A JP 2182316A JP 18231690 A JP18231690 A JP 18231690A JP H0469742 A JPH0469742 A JP H0469742A
Authority
JP
Japan
Prior art keywords
program
cpu
bios
address
reset signal
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
JP2182316A
Other languages
Japanese (ja)
Inventor
Kazutoshi Ishiguro
石黒 一敏
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.)
Tokyo Sanyo Electric Co Ltd
Sanyo Electric Co Ltd
Original Assignee
Tokyo Sanyo Electric Co Ltd
Tottori Sanyo Electric Co Ltd
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 Tokyo Sanyo Electric Co Ltd, Tottori Sanyo Electric Co Ltd, Sanyo Electric Co Ltd filed Critical Tokyo Sanyo Electric Co Ltd
Priority to JP2182316A priority Critical patent/JPH0469742A/en
Publication of JPH0469742A publication Critical patent/JPH0469742A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)
  • Hardware Redundancy (AREA)
  • Debugging And Monitoring (AREA)
  • Microcomputers (AREA)

Abstract

PURPOSE:To prevent the unoperability of the system by constituting this equipment so that in response to the reset signal, a CPU executes an auxiliary program first and checks a BIOS program, and rewrites the BIOS program at the time of abnormality. CONSTITUTION:When the supply of a driving voltage VCC to each part is started, a reset circuit 1 detects it, and outputs a reset signal RS. The reset signal RS is supplied to a CPU 2, as well, and the CPU 2 executes an auxiliary program stored in a mask ROM 5 in connection with the turn-on of a power source. The auxiliary program is provided in order to check a BIOS (BASIC INPUT OUTPUT SYSTEM), and when the program is normal, the control is transferred to this BIOS program, and on the other hand, when the program is abnormal, the BIOS program is rewritten. In such a manner, even when abnormality is generated in the BIOS program, the correction can be executed without replacing a storage element in which this BIOS program is stored.

Description

【発明の詳細な説明】 (イ)産業上の利用分野 本発明はB I OS (BASICINPUT Ol
lTPUTSYSTEM)プログラムをEEPROMに
格納してなる電子機器に関する。
DETAILED DESCRIPTION OF THE INVENTION (a) Industrial application field The present invention is applied to B I OS
The present invention relates to an electronic device in which a TPUTSYSTEM program is stored in an EEPROM.

(ロ)従来の技術 近年、パーソナルコンピュータをはじめとする電子機器
の処理能力の向」二には目を見張るものがあり、その機
能は益々増大する傾向にある。ところで、この種電子機
器のソフトウェア(プログラム)は、ディスク等の2次
記憶媒体からシステムの主メモリにロードされて実行さ
れるアプリケーションプログラムと、あらかじめシステ
ムに搭載されている不揮発性メモリに格納されている基
本人出力用のソフトウェア(以下、BIOSプログラム
と称す)とから構成される。上記BIOSプログラムは
機器の立」二すにおいてアプリケーションプログラムの
ロード等重要な役割を果たすものである。さて、上述し
たような機能の肥大化により、基本的な機能のみをサポ
ートするBIOSプログラムでさえも非常に複雑化しつ
つあるのが現状である。このようにBrO3の複雑化が
進むとそれに伴なってBIO9自身の改良(バグ対策、
バージョンアップ等)要求が頻繁に発生する。このため
、BIOSプログラムを書替不能なマスクROMに搭載
してしまうと、に記改良要求のたびに機器を分解してM
 A S K R,OMの交換を行なわねばならず、機
器の製造及び品質」−好ましいものではなかった。
(b) Prior Art In recent years, the processing power of electronic devices such as personal computers has increased tremendously, and their functions have continued to increase. By the way, the software (program) for this type of electronic device consists of an application program that is loaded into the main memory of the system from a secondary storage medium such as a disk and executed, and an application program that is pre-stored in the non-volatile memory installed in the system. It consists of basic human output software (hereinafter referred to as BIOS program). The BIOS program plays an important role, such as loading application programs, in setting up the device. Now, due to the expansion of functions as described above, even BIOS programs that support only basic functions are becoming extremely complex. As BrO3 becomes more complex, improvements to BIO9 itself (bug countermeasures,
(Version upgrade, etc.) requests occur frequently. For this reason, if the BIOS program is installed in a non-rewritable mask ROM, the device will have to be disassembled each time an improvement request is made.
ASK R, OM had to be replaced, and the manufacturing and quality of the equipment was not favorable.

そこで、最近になってBIOSプログラムを電気的に書
き替え可能であるEEPROM(NEC技報 Vol、
42 No、 1.1./1.989 P22−P23
等参照)もしくはフラッシュFROM(本明細書中では
両者を総称してEEPROMという)に搭載することが
提案されている。斯る構成によればBrO3の改良が必
要になった場合でも、ROM自身を交換することな(B
rO3の内容を簡単に変更できる。
Therefore, recently, EEPROM (NEC Technical Report Vol.
42 No. 1.1. /1.989 P22-P23
It has been proposed to incorporate the memory into a flash FROM (in this specification, both are collectively referred to as an EEPROM). With such a configuration, even if it becomes necessary to improve BrO3, there is no need to replace the ROM itself (B
The contents of rO3 can be easily changed.

(ハ)発明が解決しようとする課題 然るに、この様な機器において、万−BIOSプログラ
ムの変更(書き替え)動作1月こ停電等のアクシデント
が発生した場合、システムの基本動作を司るBrO3が
完全に書き替っていないため、システムは全く動作しな
くなる。更には、B I O8が格納されるEEPRO
Mは」−述した如く電気的に書き替え可能であるため、
機構的には上記EEPROMを交換し易く設計してはい
ない。このため、上記アクシデントの発生に伴なうEE
PROMの交換には多大な手間と労力とが必要となる。
(c) Problems to be solved by the invention However, in such devices, if an accident such as a power outage occurs during the BIOS program change (rewrite) operation, the BrO3, which controls the basic operation of the system, will be completely disabled. Since it has not been rewritten, the system will not work at all. Furthermore, EEPRO where B I O8 is stored
M is ``--as mentioned above, it can be electrically rewritten, so
Mechanically, the EEPROM is not designed to be easily replaced. For this reason, the EE due to the occurrence of the above accident
Replacing the PROM requires a great deal of time and effort.

(ニ)課題を解決するための手段 本発明は斯る点に鑑みてなされたもので、その構成的特
徴は、電源電圧の供給開始を検出し、リセット信号を出
力するリセット回路と、BIOSプログラムが格納され
た電気的消去・書込可能なEEPROMと、上記BIO
3をチェックするための補助プログラムが格納された読
出し専用ROMと、上記リセット信号に応答して動作を
開始するC P Uと、上記リセット信号に応答して上
記CPUのアドレス空間上に上記EEPROM及びRO
Mの各アドレスを配置するアドレス変換手段とを備え、
上記リセット信号に応答して上記CPUはまず−F記補
助プログラムを実行することにより上記BIOSプログ
ラムをチェックし、該プログラムが正常の時には斯るB
IOSプログラムに制御を移し、一方異常の時には上記
BIOSプログラムを書き替えることにある。
(d) Means for Solving the Problems The present invention has been made in view of the above points, and its structural features include a reset circuit that detects the start of supply of power supply voltage and outputs a reset signal, and a BIOS program. an electrically erasable/writable EEPROM in which is stored, and the above-mentioned BIO
A read-only ROM in which an auxiliary program for checking 3 is stored, a CPU that starts operating in response to the reset signal, and a read-only ROM that stores the EEPROM and R.O.
and address conversion means for arranging each address of M,
In response to the reset signal, the CPU first checks the BIOS program by executing the auxiliary program described in -F, and if the program is normal, the CPU executes the BIOS program.
The purpose is to transfer control to the IOS program, and to rewrite the BIOS program in the event of an abnormality.

(ホ)作用 斯る構成では、BIOSプログラムに異常が発生した際
でも、斯るBIOSプログラムが格納された記憶素子を
取り替えることなく修正が行なえる。
(e) Operation With such a configuration, even if an abnormality occurs in the BIOS program, it can be corrected without replacing the memory element in which the BIOS program is stored.

(へ)実施例 第1図は本発明の実施例を示すブロック図であり、図中
(1)はリセット回路であり、該回路は図示しない電源
スィッチがオンとなり駆動電源VCCが各部に供給され
始めたことを検出した際リセット信号R,Sを出力する
。(2)はCPU(中央演算ユニット)であり、該CP
Uはリセット回路(1)よりリセット信号R5が供給さ
れると、端子AO−A19よりFOOOO番地(本実施
例では番地を16進で表記)を示すアドレス信号を出力
する。(3)はI10ポートであり、該ボートは第3図
に示す如くその1.PBO端子にリセット回路(1)よ
りリセット信号が供給された時1.PAO〜IPA7端
子より16進数「FE」に相当する信号を出力し、また
IPBI端子にCPU(2)よりI10信号が入力され
るとIP八へ〜1.PA7端子より16進数rOFJに
相当する信号を出力する。
(f) Embodiment FIG. 1 is a block diagram showing an embodiment of the present invention, and (1) in the figure is a reset circuit, in which a power switch (not shown) is turned on and driving power VCC is supplied to each part. When it detects that it has started, it outputs reset signals R and S. (2) is a CPU (central processing unit), and the CPU
When U is supplied with the reset signal R5 from the reset circuit (1), it outputs an address signal indicating the FOOOO address (in this embodiment, the address is expressed in hexadecimal) from the terminal AO-A19. (3) is the I10 port, and the boat is connected to port 1 as shown in FIG. When a reset signal is supplied to the PBO terminal from the reset circuit (1) 1. A signal corresponding to the hexadecimal number "FE" is output from the PAO-IPA7 terminal, and when the I10 signal is input from the CPU (2) to the IPBI terminal, the signal is output to IP8-1. A signal corresponding to hexadecimal number rOFJ is output from the PA7 terminal.

(4)は電気的に書替可能なEEPROM、(5)は書
替不可能なマスクROMであり、斯る両ROM(4)(
5)の夫々のアドレス端子AO〜A15は第1アドレス
バスABIを介してCPU(2)のアドレス端子AO〜
A 1.5に接続されている。また、」二記両ROM(
4)(5)の夫々のデータ入出力端子DO〜D7はデー
タバスDBを介してCPU(2)のデータ端子DO〜D
7に接続されている。また、EEPROM(4)の00
00番地〜FFFF番地にはBrO3が格納され、一方
マスクROM(5)の0000番地〜FFFF番地には
後で詳細に説明する様に上記BIO3をチェックし、か
つその結果BIO5に異常がある際には斯る13 I 
OSを書替えるための補助プログラムが格納されている
(4) is an electrically rewritable EEPROM, (5) is a non-rewritable mask ROM, and both ROMs (4) (
5), the respective address terminals AO to A15 are connected to the address terminals AO to A15 of the CPU (2) via the first address bus ABI.
Connected to A 1.5. In addition, ``2 ROM (
4) The respective data input/output terminals DO to D7 in (5) are connected to the data terminals DO to D of the CPU (2) via the data bus DB.
7 is connected. Also, 00 of EEPROM (4)
BrO3 is stored in addresses 00 to FFFF, and BrO3 is stored in addresses 0000 to FFFF of the mask ROM (5), as will be explained in detail later, to check the above BIO3, and as a result, when there is an abnormality in BIO5. 13 I
An auxiliary program for rewriting the OS is stored.

(6)はアドレス変換回路であり、該回路はCPU(2
)のアドレス端子A16〜A1.9より出力され第2ア
ドレスバスAB2を介して供給されるアドレス信号とI
10ボート(3)のIPAO〜I PA7端子より出力
される信号とに基づいて上記各ROM(4)(5)及び
図示しない他のメモリ素子に対するチップセレクト信号
CSを出力する。
(6) is an address conversion circuit, which is connected to the CPU (2).
) and address signals output from address terminals A16 to A1.9 and supplied via the second address bus AB2 and I
A chip select signal CS is outputted to each of the ROMs (4) and (5) and other memory elements (not shown) based on the signals output from the IPAO to IPA7 terminals of the 10 ports (3).

具体的には、このアドレス変換回路(6)は第2図に示
す如く第1〜第8の(JI他的論理和(XOR)回路(
7a)〜(7h)と、4つの反転入力を有する第1アン
ド回路(8a)と、4つの反転入力及び1つの非反転入
力を有する第2アンド回路(8b)と、4人力型オア回
路(9)と、反転回路(10)とを有する。上記X O
R回路(7a)〜(7h)の夫々の一方の入力は1PA
O〜1.PA7@子が接続され、一方、第1、第5XO
R回路(7a)(7e)の他の入力はCPU(2)のア
ドレス端子A16に、第2、第6XOR回路(7b)(
7f)の他の入力はCPU(2)のアドレス端子A17
に、第3、第7XOR回路(7c)(7g)の他の入力
はCPU(2)のアドレス端子A1gに、第4、第8X
OR回路(7d)(7h)の他の入力はCPU(2)の
アドレス端子A1.9に夫々接続されている。また、上
記第1アンド回路(8a)の各入力は夫々第1〜第4X
OR回路(7a)〜(7d)の出力に接続されると共に
、その出力はE E P ROM(4)のチップセレク
ト信号として該ROM(4)のチップセレクト端子C8
に供給される。一方、上記第2アンド回路(8b)の各
反転入力は夫々第5〜第8XOR回路(7e)〜(7h
)の出力に接続され、またその非反転入力には4つの入
力が夫々r10ポート(3)の1.PA4〜1.PA7
に接続されたオア回路(9)の出力に接続されている。
Specifically, this address conversion circuit (6) is connected to the first to eighth (JI algebraic OR (XOR) circuits) as shown in FIG.
7a) to (7h), a first AND circuit (8a) having four inverting inputs, a second AND circuit (8b) having four inverting inputs and one non-inverting input, and a four-person OR circuit ( 9) and an inverting circuit (10). The above XO
One input of each of R circuits (7a) to (7h) is 1PA
O~1. PA7@ child is connected, while the 1st and 5th XO
The other inputs of the R circuits (7a) (7e) are connected to the address terminal A16 of the CPU (2), and the second and sixth XOR circuits (7b) (
7f) is the address terminal A17 of the CPU (2).
The other inputs of the third and seventh XOR circuits (7c) (7g) are connected to the address terminal A1g of the CPU (2), and the fourth and eighth
Other inputs of the OR circuits (7d) (7h) are connected to address terminals A1.9 of the CPU (2), respectively. Further, each input of the first AND circuit (8a) is connected to the first to fourth X
It is connected to the outputs of the OR circuits (7a) to (7d), and its output is sent to the chip select terminal C8 of the EEPROM (4) as a chip select signal of the EEPROM (4).
supplied to On the other hand, each inverting input of the second AND circuit (8b) is connected to the fifth to eighth XOR circuits (7e) to (7h), respectively.
), and its non-inverting input has four inputs, respectively 1. PA4~1. PA7
The output of the OR circuit (9) is connected to the output of the OR circuit (9).

そして、斯る第2アンド回路(81))の出力は直接マ
スクROM(5)のデツプセレクト端子C8に接続され
ると共に反転回路(10)を介して図示しないメモリ素
子のチップセレクト端子C8にも接続されている。従っ
て、第2アンド回路(8b)の出力はマスクROM(5
)及び他のメモリ素子に対するチップセレクト信号とし
て作用する。また、上記説明からも明らかな様にマスク
ROM(5)が選択された時、他のメモリ素子は非選択
となり、逆にマスクROM(5)が非選択の時、他のメ
モリ素子が選択されることとなる。
The output of the second AND circuit (81) is directly connected to the depth select terminal C8 of the mask ROM (5) and also connected to the chip select terminal C8 of a memory element (not shown) via the inverting circuit (10). has been done. Therefore, the output of the second AND circuit (8b) is output from the mask ROM (5
) and act as a chip select signal for other memory elements. Furthermore, as is clear from the above description, when the mask ROM (5) is selected, other memory elements become unselected, and conversely, when the mask ROM (5) is unselected, other memory elements become selected. The Rukoto.

次に本実施例の動作について説明するに、まず図示しな
い電源スイッチがオンとな−2、各部への駆動電圧vC
Cの供給が開始されるとリセット回路(1)がこれを検
出し、リセット信号R5を出力する。
Next, to explain the operation of this embodiment, first, a power switch (not shown) is turned on, and the drive voltage vC to each part is turned on.
When the supply of C starts, the reset circuit (1) detects this and outputs a reset signal R5.

このリセット信号R,Sは1.PBO端子よりI10ポ
ート(3)に供給されるので、I10ポート(3)は1
.PAO〜1.PA7端子より16進表示でrEFJに
相当する信号を出力する。従って、第2図に示したアド
レス変換回路(6)の第1アンド回路(8a)はCPU
(2)のA16− A19端子より出力されるデータが
16進表示で「EJとなる時のみ出力が論理]となり、
一方第2アンド回路(8b)はCPU(2)のA]、6
〜A1.9端子より出力されるデータが16進表示で「
F」となる時のみ出力が論理]となる。この結果、EE
PROM(4)、マスクROM(5)及びその他のメモ
リ素子の空11目的アドレス割付は第4図(a)に示す
如くとなる。
These reset signals R and S are 1. Since the power is supplied from the PBO terminal to the I10 port (3), the I10 port (3) is 1
.. PAO~1. A signal corresponding to rEFJ is output from the PA7 terminal in hexadecimal notation. Therefore, the first AND circuit (8a) of the address conversion circuit (6) shown in FIG.
The data output from the A16-A19 terminals in (2) is expressed in hexadecimal as "Output is logical only when EJ occurs",
On the other hand, the second AND circuit (8b) is A], 6 of the CPU (2).
~The data output from the A1.9 terminal is displayed in hexadecimal as “
The output becomes logic] only when F is reached. As a result, E.E.
The vacant 11 target address assignments of PROM (4), mask ROM (5) and other memory elements are as shown in FIG. 4(a).

また、上記リセット信号R5はRT端子を介してCP 
U(2)にも供給される。従って、」二連した如(CP
U(2)はまずAO−A19端子より第1、第2アドレ
スバスにFOOOO番地を示すアドレスデータを出力す
る。
Further, the reset signal R5 is sent to CP via the RT terminal.
It is also supplied to U(2). Therefore, ``Double series'' (CP
U(2) first outputs address data indicating the FOOOO address to the first and second address buses from the AO-A19 terminal.

この結果、アドレス変換回路(6)に第2アドレスバス
を介して供給されるデータは16進の「F」となるので
、アドレス変換回路(6)中の第1アンド回路(8a)
の出力は論理Oとなり、一方第2アンド回路(8b)の
出力は論理1となる。従って、マスクROM(5)のみ
が選択されることとなり、斯るマスクROM(5)中の
0000番地に格納されているデータがデータバスDB
を介してCPU(2)に送られることとなる。
As a result, the data supplied to the address conversion circuit (6) via the second address bus becomes "F" in hexadecimal, so the first AND circuit (8a) in the address conversion circuit (6)
The output of the second AND circuit (8b) becomes a logic 0, while the output of the second AND circuit (8b) becomes a logic 1. Therefore, only the mask ROM (5) is selected, and the data stored at address 0000 in the mask ROM (5) is transferred to the data bus DB.
It will be sent to CPU (2) via.

ゆえに、CPU(2)は電源投入に伴ないマスクROM
(5)中に格納されている補助プログラムを実行するこ
ととなる。
Therefore, when the power is turned on, the CPU (2)
(5) The auxiliary program stored in the program will be executed.

斯る補助プログラムは、−に述した如(Biasをチェ
ックするものであるが、具体的には、第5図のフローチ
ャートに示す処理を行なう。
This auxiliary program checks the bias as described in -, but specifically performs the processing shown in the flowchart of FIG.

即ち、S1ステツプにおいてEEPROM(4)中のB
IOSプログラムを示すデータを全て読出すと共にこの
データを順次加算することによりその合計値を算出する
(チェックサム)。
That is, in step S1, B in EEPROM (4)
The total value is calculated by reading out all the data indicating the IOS program and sequentially adding the data (checksum).

尚、上記EEPROM(4)の各アドレスは、斯る時点
では第4図(a)に示す如(EOOOO番地〜E F 
F F F番地となっている。従って、上記データの読
出し時にはCPU(2)のAO〜A19端子からは16
進でEOOOO〜EFFFFのデータが出力される様に
補助プログラムは構成される。
Incidentally, each address of the EEPROM (4) is as shown in FIG. 4(a) (EOOOO address to E F
The address is FFFF. Therefore, when reading the above data, 16
The auxiliary program is configured so that data from EOOOO to EFFFF is output in decimal format.

また、」二記BIOSプログラムのチェックサム値はB
rO3が正常の際には常にある特定値となる様に設定さ
れている。
Also, the checksum value of the BIOS program is B.
It is set so that rO3 is always at a certain specific value when it is normal.

次いでS2ステツプが処理されるが、斯るステップでは
、上記S1ステツプで算出されたチェックサム値が特定
値であるか否かを判定する。斯る判定において、特定値
であると判定すると処理はS3ステツプに進む。
Next, step S2 is processed, in which it is determined whether the checksum value calculated in step S1 is a specific value. In such a determination, if it is determined that the value is a specific value, the process proceeds to step S3.

S3ステツプでは、CPU(2)のI10端子よりI1
0100出力すると共にE E P R,OM(4)中
のBIOSプログラムの開始番地をAO−A19端子よ
り出力し、BrO3を起動させる。
In the S3 step, I1 is input from the I10 terminal of the CPU (2).
0100 is output, and the start address of the BIOS program in EEP R, OM (4) is output from the AO-A19 terminal to start up BrO3.

具体的には、I10100出力によりI10ボート(3
)のI PAO〜I PA7端子からは16進で「OF
」を示す信号が出力されるので、マスクROM (5)
は非選択状態となり、空間的アドレス割付上からは削除
される。また、EEPROM(4)はA16〜A]9端
子より16進で「F」を示すデータが出力された時のみ
選択される。従って、I10100出力されるとメモリ
の空間的アドレス割伺は第4図(b)に示す如く変化す
る。
Specifically, the I10 boat (3
) from the IPAO to IPA7 terminals in hexadecimal format.
” is output, so the mask ROM (5)
becomes unselected and is deleted from the spatial address allocation. Further, the EEPROM (4) is selected only when data indicating "F" in hexadecimal is output from the A16 to A]9 terminals. Therefore, when I10100 is output, the memory spatial address allocation changes as shown in FIG. 4(b).

また、EEPR,OM(4)中のBrO3の開始番地が
例えばEOOO番地であるとすると、斯るS3ステツプ
においてCPU(2)のAO〜A1.9端子からはFE
OOO番地を示すデータが出力されることとなる6S2
ステツプに戻って、斯るステップにおいて81ステツプ
で算出されたチェックサムの値が特定値と等しくないと
判定すると処理はS4ステツプに進】 2 む。
Furthermore, if the start address of BrO3 in EEPR, OM (4) is, for example, address EOOO, then in step S3, the FE
6S2 where data indicating the OOO address will be output
Returning to step S4, if it is determined in this step that the checksum value calculated in step 81 is not equal to the specific value, the process proceeds to step S4.

斯るS4ステツプでは、CPU(2)はEEPROM(
4)中のBIOSプログラムの書替を行なう。
In such S4 step, the CPU (2) reads the EEPROM (
4) Rewrite the BIOS program inside.

具体的には、例えば通信ポート(図示せず)を介して送
られてきたり、あるいはフロッピィディスク等の2次記
憶媒体(図示せず)がら読出すことにより得られた正し
いBIOSプログラムをEEPROM(4)中に書込む
。尚、この書込まれたBiO2のチェックサム値は上記
特定値である。
Specifically, for example, a correct BIOS program sent via a communication port (not shown) or obtained by reading from a secondary storage medium (not shown) such as a floppy disk is stored in an EEPROM (4 ) write inside. Note that the checksum value of this written BiO2 is the above-mentioned specific value.

その後、再びS1ステツプに戻り、斯るS1ステツプ及
びS2ステツプを実行することにより、S4ステツプに
おける書替動作時にビット落ち等の誤書替が発生してい
ないかどうかを判定する。斯る判定において誤書替が発
生していると判定すると、再度S4ステツプを処理する
。一方、正しくBIOSプログラムが書替えられたと判
定すると83ステツプを処理することにより」二連した
如く制御をBrO3に渡すこととなる。
Thereafter, the process returns to the S1 step and executes the S1 and S2 steps to determine whether or not erroneous rewriting such as dropped bits has occurred during the rewriting operation in the S4 step. If it is determined in such a determination that an erroneous rewrite has occurred, step S4 is processed again. On the other hand, if it is determined that the BIOS program has been correctly rewritten, control is passed to the BrO3 in two consecutive steps by processing step 83.

尚、本実施例では補助プログラムをマスクROMに格納
したが、これに限定されるものではなく、EEPROM
、EPROM等の他の不揮発性メモリに格納しても良い
In this embodiment, the auxiliary program is stored in the mask ROM, but the invention is not limited to this, and it can be stored in the EEPROM.
, or may be stored in other non-volatile memory such as EPROM.

(ト)発明の効果 本発明によれば、BIOSプログラムの実行前に斯るプ
ログラムをチェックし、異常が発生している際には」二
記BIOSプログラムを書替える。
(G) Effects of the Invention According to the present invention, the BIOS program is checked before it is executed, and if an abnormality has occurred, the BIOS program is rewritten.

従って、万−BIOSプログラムに異常が発生した際で
もシステムが完全に動作不能となることはない。
Therefore, even if an abnormality occurs in the BIOS program, the system will not become completely inoperable.

【図面の簡単な説明】 第1図は本発明の実施例を示すブロック図、第2図は本
実施例の要部を示す要部回路図、第3図は本実施例のI
10ボートの出力信号を説明する模式図、第4図(a)
(b)は本実施例の空間的アドレス割付を示す模式図、
第5図は本実施例の動作を説明するためのフローチャー
トである。 (1)・・・リセット回路、(2)・・・CPU、(3
)・・・I10ボート、(4)・・・EEPROM、(
5)・・・マスクROM、(6)・・・アドレス変換回
[Brief Description of the Drawings] Fig. 1 is a block diagram showing an embodiment of the present invention, Fig. 2 is a main circuit diagram showing main parts of this embodiment, and Fig. 3 is an I/O diagram of this embodiment.
Schematic diagram illustrating the output signals of 10 boats, Figure 4 (a)
(b) is a schematic diagram showing the spatial address allocation of this embodiment,
FIG. 5 is a flowchart for explaining the operation of this embodiment. (1)...Reset circuit, (2)...CPU, (3
)...I10 boat, (4)...EEPROM, (
5)...Mask ROM, (6)...Address conversion circuit

Claims (1)

【特許請求の範囲】[Claims] (1)電源電圧の供給開始を検出し、リセット信号を出
力するリセット回路と、BIOSプログラムが格納され
た電気的消去・書込可能なEEPROMと、上記BIO
Sをチェックするための補助プログラムが格納された読
出し専用ROMと、上記リセット信号に応答して動作を
開始するCPUと、上記リセット信号に応答して上記C
PUのアドレス空間上に上記EEPROM及びROMの
各アドレスを配置するアドレス変換手段とを備え、 上記リセット信号に応答して上記CPUはまず上記補助
プログラムを実行することにより上記BIOSプログラ
ムをチェックし、該プログラムが正常の時には斯るBI
OSプログラムに制御を移し、一方異常の時には上記B
IOSプログラムを書き替えることを特徴とする電子機
器。
(1) A reset circuit that detects the start of supply of power supply voltage and outputs a reset signal, an electrically erasable/writable EEPROM in which a BIOS program is stored, and the above-mentioned BIOS
a read-only ROM storing an auxiliary program for checking S; a CPU that starts operating in response to the reset signal; and a CPU that starts operating in response to the reset signal;
address conversion means for arranging each address of the EEPROM and ROM in the address space of the PU, and in response to the reset signal, the CPU first checks the BIOS program by executing the auxiliary program, and When the program is normal, such BI
Control is transferred to the OS program, and when an error occurs, the above B
An electronic device characterized by rewriting an IOS program.
JP2182316A 1990-07-10 1990-07-10 Electronic equipment Pending JPH0469742A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2182316A JPH0469742A (en) 1990-07-10 1990-07-10 Electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2182316A JPH0469742A (en) 1990-07-10 1990-07-10 Electronic equipment

Publications (1)

Publication Number Publication Date
JPH0469742A true JPH0469742A (en) 1992-03-04

Family

ID=16116177

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2182316A Pending JPH0469742A (en) 1990-07-10 1990-07-10 Electronic equipment

Country Status (1)

Country Link
JP (1) JPH0469742A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08101794A (en) * 1994-09-30 1996-04-16 Nec Corp Rewriting system for firmware program
US6038635A (en) * 1997-02-05 2000-03-14 Nec Corporation Microcomputer containing flash EEPROM therein
JP2007193563A (en) * 2006-01-19 2007-08-02 Nec Computertechno Ltd Bios restoring mode and bios restoring method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08101794A (en) * 1994-09-30 1996-04-16 Nec Corp Rewriting system for firmware program
US6038635A (en) * 1997-02-05 2000-03-14 Nec Corporation Microcomputer containing flash EEPROM therein
JP2007193563A (en) * 2006-01-19 2007-08-02 Nec Computertechno Ltd Bios restoring mode and bios restoring method

Similar Documents

Publication Publication Date Title
US6079016A (en) Computer with multi booting function
JP4868216B2 (en) Firmware update circuit and firmware update method
US8468342B2 (en) Computer system and method for performing integrity detection on the same
US7840796B2 (en) Booting to a recovery/maintenance environment
US8930931B2 (en) Information processing apparatus using updated firmware and system setting method
US7900036B2 (en) System and method for implementing boot/recovery on a data processing sysem
US20110093741A1 (en) Method for recovering bios and computer system thereof
JP2990181B1 (en) Flash memory, microcomputer having flash memory, and method of storing program in flash memory
JPH08255084A (en) Upgrade method of eeprom
JPH03141447A (en) Method and apparatus for updating farm ware residing in electrically reloadable programmable read-only memory
US6546517B1 (en) Semiconductor memory
US6604214B1 (en) One-chip microcomputer capable of internally producing ECC data
JP3376306B2 (en) Data processing apparatus and data processing method
JP2004046453A (en) Single chip microcomputer and boot sector switching method
CN120179321B (en) Firmware loading method, device, electronic device and storage medium
JPH0469742A (en) Electronic equipment
TWI666556B (en) Electronic device and operating method thereof
CN115408204A (en) Chip dual-firmware backup starting method and device, electronic equipment and storage medium
JPH0764795A (en) Computer system
CN113377425B (en) Method and device for generating BMC firmware, method and device for starting BMC, and storage medium
JP2000293376A (en) Circuit and method for switching boot program
CN112883384B (en) Protection method of embedded computer boot loader with strong robustness
JP2000235483A (en) Information processor
CN222704964U (en) BIOS device
JP2000029679A (en) Personal computer using flash memory as BIOS-ROM