JP2001175463A - Computer system - Google Patents

Computer system

Info

Publication number
JP2001175463A
JP2001175463A JP35776999A JP35776999A JP2001175463A JP 2001175463 A JP2001175463 A JP 2001175463A JP 35776999 A JP35776999 A JP 35776999A JP 35776999 A JP35776999 A JP 35776999A JP 2001175463 A JP2001175463 A JP 2001175463A
Authority
JP
Japan
Prior art keywords
memory
program
bit
mode
boot
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
JP35776999A
Other languages
Japanese (ja)
Inventor
Tatsuo Yagi
達雄 八木
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP35776999A priority Critical patent/JP2001175463A/en
Publication of JP2001175463A publication Critical patent/JP2001175463A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a computer system for providing a boot program area, without suppressing program area by using a relatively smaller-scaled microcomputer, and validly utilizing a memory space. SOLUTION: This computer system is provided with a control means 1 for executing an instruction according to program data, a rewritable first memory means 8 for storing a boot program, a rewritable second memory means 9 for storing an operation program, a mode switching means 7 for selecting either a boot mode or an operation mode, and a memory map converting means 5 for switching the address of the first and second memory means according to the mode selected by the mode switching means. The memory map converting means sets the address of the first and second memory means, so that the operation program can be written in the second memory means according to the boot program in the boot mode, and sets the address of the first and second memory means, so that a prescribed instruction can be executed by a control means according to the operation program in the operation mode.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、内蔵するブートプ
ログラムに従って運用プログラムの書き換えを行うこと
が可能なコンピュータ装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computer device capable of rewriting an operation program according to a built-in boot program.

【0002】[0002]

【従来の技術】従来、単独機器に組み込む制御手段とし
ては、主にコスト面の理由から比較的小規模のマイクロ
コンピュータを組み込むことが多かった。また、ソフト
ウェア資産を継承するため、あえて機能の限られたマイ
クロコンピュータを使用し続けなければならないことも
多い。
2. Description of the Related Art Conventionally, as a control means incorporated in a single device, a microcomputer of a relatively small scale has been often incorporated mainly for cost reasons. In addition, in order to inherit software assets, it is often necessary to continue using a microcomputer with limited functions.

【0003】[0003]

【発明が解決しようとする課題】このような条件下で
は、当然のことながらメモリの使用条件が厳しく、プロ
グラム領域の拡張は困難であり、メモリ空間を自由に拡
張することができないという課題があった。
Under such conditions, naturally, the conditions for using the memory are strict, and it is difficult to expand the program area, and the memory space cannot be expanded freely. Was.

【0004】また、最近ではフラッシュメモリなど書き
換え可能な不揮発性メモリが普及してきたこともあり、
運用プログラム(基本プログラム、応用プログラム)に
何らかの変更があった場合、ハードウェアを変更せずに
プログラムを後から自由に書き換えることが必須条件に
なっている。
In recent years, rewritable nonvolatile memories such as flash memories have become widespread.
When there is any change in the operation program (basic program, application program), it is an essential condition that the program is freely rewritten later without changing the hardware.

【0005】しかし、このような仕組みを作り込むため
には、プログラム領域にブートプログラムを格納する必
要があり、制御手段はこのブートプログラムにしたがっ
てプログラムの書き換えを行うのであるが、前述したよ
うにプログラム領域の拡張が困難な条件下では、この仕
組みを作り込むことはメモリ使用上、大きな制約があり
実現が困難であった。
However, in order to implement such a mechanism, it is necessary to store a boot program in a program area, and the control means rewrites the program according to the boot program. Under conditions where it is difficult to expand the area, it is difficult to implement this mechanism because of the large restrictions on memory usage.

【0006】また、同じメモリデバイスに対してブート
プログラムの読み出しと運用プログラムの書き込みとを
同時に行うことは出来ないため、それぞれ別のメモリデ
バイスにする必要がある。しかし、ブートプログラムは
運用プログラムに比べて容量が極めて少ないため、メモ
リデバイスの使用効率が著しく悪化するという課題があ
った。
[0006] In addition, since the reading of the boot program and the writing of the operation program cannot be performed simultaneously on the same memory device, it is necessary to use different memory devices. However, the boot program has an extremely small capacity as compared with the operation program, so that the use efficiency of the memory device is significantly deteriorated.

【0007】本発明は、このような従来の課題を解決す
るためになされたもので、比較的小規模なマイクロコン
ピュータを使用しながら、運用プログラム領域を圧迫せ
ずにブートプログラム領域を設けることができ、しかも
メモリデバイスを有効に活用することができるコンピュ
ータ装置を提供することにある。
The present invention has been made to solve such a conventional problem, and it is possible to provide a boot program area without using an operation program area while using a relatively small microcomputer. It is another object of the present invention to provide a computer device capable of effectively utilizing a memory device.

【0008】[0008]

【課題を解決するための手段】本発明のコンピュータ装
置は、プログラムデータに従って命令を実行する制御手
段と、ブートプログラムを格納する書き換え可能な第1
のメモリ手段と、運用プログラムを格納する書き換え可
能な第2のメモリ手段と、ブートモードまたは運用モー
ドのいずれかを選択するモード切換手段と、モード切換
手段によって選択されたモードに応じて第1および第2
のメモリ手段のアドレスを切り換えるメモリマップ変換
手段とを備え、メモリマップ変換手段は、ブートモード
時にはブートプログラムに従って第2のメモリ手段に外
部から運用プログラムを書き込むように第1および第2
のメモリ手段のアドレスを設定し、運用モード時には運
用プログラムに従って制御手段が所定の命令を実行する
ように第1および第2のメモリ手段のアドレスを設定す
るものである。
According to the present invention, there is provided a computer apparatus comprising: a control unit for executing an instruction according to program data; and a rewritable first storage unit for storing a boot program.
Memory means, a rewritable second memory means for storing an operation program, a mode switching means for selecting one of a boot mode and an operation mode, and a first and a second means in accordance with the mode selected by the mode switching means. Second
Memory map conversion means for switching the address of the memory means, wherein the memory map conversion means writes the operation program from the outside to the second memory means in accordance with the boot program in the boot mode.
In the operation mode, the addresses of the first and second memory units are set so that the control unit executes a predetermined command according to the operation program.

【0009】この構成により、メモリマップ変換手段は
モード切換手段によって選択されたモードに応じて制御
手段から制御できる第1および第2のメモリ手段のアド
レスを変更し、ブートモード時は第1のメモリ手段に格
納されたブートプログラムに従って第2のメモリ手段に
運用プログラムを書き込めるようにし、運用モード時は
第2のメモリ手段に書き込んだ運用プログラムに従って
所定の命令を実行することができるようにすることがで
きる。
With this configuration, the memory map conversion means changes the addresses of the first and second memory means which can be controlled by the control means in accordance with the mode selected by the mode switching means. The operating program can be written in the second memory means in accordance with the boot program stored in the means, and in the operation mode, predetermined instructions can be executed according to the operating program written in the second memory means. it can.

【0010】また、本発明のコンピュータ装置は、第1
のメモリ手段がブートプログラム領域を含む複数のバン
クメモリ領域を有し、この複数のバンクメモリ領域の中
から任意のバンクメモリ領域を選択するバンクメモリ切
換手段を有する。
[0010] Further, the computer device of the present invention comprises:
Has a plurality of bank memory areas including a boot program area, and has a bank memory switching means for selecting an arbitrary bank memory area from the plurality of bank memory areas.

【0011】この構成により、制御手段はブートモード
時には第1のメモリ手段に格納されたブートプログラム
を選択し、運用モード時には第1のメモリ手段の複数の
バンクメモリ領域の中から任意のバンクメモリ領域を選
択してパラメータとして参照することができ、第1のメ
モリ手段の使用効率を高めることができる。
With this configuration, the control means selects the boot program stored in the first memory means in the boot mode, and selects an arbitrary bank memory area from the plurality of bank memory areas of the first memory means in the operation mode. Can be selected and referred to as a parameter, and the use efficiency of the first memory means can be increased.

【0012】[0012]

【発明の実施の形態】以下、本発明の実施の形態につい
て、図1から図9を用いて説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be described below with reference to FIGS.

【0013】図1は、本発明によるコンピュータ装置の
一実施の形態を示すブロック構成図である。このコンピ
ュータ装置は、比較的小規模のマイクロコンピュータが
制御手段1として実装されており、この制御手段1には
データバス2を介してメモリ転送用(I/O)入出力ポ
ート3、バンクメモリ切換部4、メモリマップ変換部
5、バンクレジスタ6、ブートスイッチ7が接続されて
いる。なお、データバス2には制御対象(不図示)も接
続されているものとする。
FIG. 1 is a block diagram showing an embodiment of a computer device according to the present invention. In this computer device, a relatively small-scale microcomputer is mounted as a control means 1. The control means 1 has a data transfer (I / O) input / output port 3 via a data bus 2, and a bank memory switch. The section 4, the memory map conversion section 5, the bank register 6, and the boot switch 7 are connected. It is assumed that a control target (not shown) is also connected to the data bus 2.

【0014】ブートスイッチ7は、機器が所定の機能を
実現するための運用モードと、外部からプログラムを書
き込むためのブートモードのいずれかを選択するメモリ
切換手段である。
The boot switch 7 is a memory switching means for selecting one of an operation mode for realizing a predetermined function of the device and a boot mode for externally writing a program.

【0015】また、このコンピュータ装置は、バンクメ
モリ切換部4およびメモリマップ変換部5に接続された
第1のフラッシュメモリ8と、メモリマップ変換部5に
接続された第2のフラッシュメモリ9およびスタチック
形RAM(SRAM)構成のワークメモリ10とを有し
ている。フラッシュメモリ8、9は書換え可能な不揮発
性メモリである。
The computer device includes a first flash memory 8 connected to the bank memory switching unit 4 and the memory map conversion unit 5, a second flash memory 9 connected to the memory map conversion unit 5, and a static memory. And a work memory 10 having a form RAM (SRAM) configuration. The flash memories 8 and 9 are rewritable nonvolatile memories.

【0016】図2は、第1のフラッシュメモリ8のメモ
リマップ図で、内部アドレスと格納されるデータとを示
している。この第1のフラッシュメモリ8は内部アドレ
ス「7FFFFH〜00000H」を64KB単位に8
つのバンクに区切り、BNK1〜BNK7はそれぞれ所
定のパラメータを格納し、BNK8はブートプログラム
を格納している。なお、「H」は16進表示であること
を意味する。
FIG. 2 is a memory map of the first flash memory 8, showing the internal addresses and the data to be stored. The first flash memory 8 stores the internal address “7FFFFH to 00000H” in units of 64 KB.
BNK1 to BNK7 store predetermined parameters, respectively, and BNK8 stores a boot program. Note that “H” means hexadecimal display.

【0017】図3は、第2のフラッシュメモリ9のメモ
リマップ図で、同じく内部アドレスと格納されるデータ
を示している。この第2のフラッシュメモリ9は内部ア
ドレス「7FFFFH〜20000H」の384KBが
プログラム領域であり、内部アドレス「1FFFF〜H
00000H」はアクセス禁止となっている。
FIG. 3 is a memory map diagram of the second flash memory 9, showing an internal address and data to be stored. In the second flash memory 9, 384 KB of the internal address “7FFFFH to 20000H” is a program area, and the internal address “1FFFF to H” is used.
“00000H” is access prohibited.

【0018】この構成において、ブートスイッチ7がブ
ートモードに設定されると、制御手段1のアドレスと各
メモリ8〜10との関係は、メモリマップ変換部5の制
御によって、図4のメモリマップ図に示すような関係と
なる。
In this configuration, when the boot switch 7 is set to the boot mode, the relationship between the address of the control means 1 and each of the memories 8 to 10 is controlled by the memory map conversion unit 5 to control the memory map shown in FIG. The relationship is as shown in FIG.

【0019】すなわち、アドレス「FFFFFH〜F0
000H」は第1のフラッシュメモリ8のブートプログ
ラムを指し、アドレス「7FFFFH〜20000H」
は外部からプログラムが書き込まれる第2のフラッシュ
メモリ9のプログラム書き込み領域を指し、アドレス
「1FFFFH〜00000H」はワークメモリ10を
指す。
That is, the addresses "FFFFFH to F0"
"000H" indicates the boot program of the first flash memory 8, and the address "7FFFFH to 20000H"
Indicates a program writing area of the second flash memory 9 to which a program is externally written, and an address “1FFFFH to 00000H” indicates the work memory 10.

【0020】この例では制御手段1はアドレス「FFF
FFH」側から起動するので、ブートモード時には第1
のフラッシュメモリ8に格納されているブートプラグラ
ムに従って、外部メモリに記憶されている運用プログラ
ム(基本プログラム、応用プログラムなど)をメモリ転
送用I/Oポート2を経由して第2のフラッシュメモリ
9に書き込むことになる。
In this example, the control means 1 sets the address "FFF
FFH ”side, the first in boot mode
In accordance with the boot program stored in the flash memory 8, the operation program (basic program, application program, etc.) stored in the external memory is transferred to the second flash memory 9 via the memory transfer I / O port 2. Will write.

【0021】次に、ブートスイッチ7が運用モードに設
定されると、制御手段1のアドレスと各メモリ8〜10
との関係は、メモリマップ変換部5の制御により、図5
のメモリマップ図に示すような関係になる。
Next, when the boot switch 7 is set to the operation mode, the address of the control means 1 and each of the memories 8 to 10 are set.
Is controlled by the memory map conversion unit 5 as shown in FIG.
Are obtained as shown in the memory map of FIG.

【0022】すなわち、アドレス「FFFFFH〜A0
000H」は第2のフラッシュメモリ9のプログラム領
域を指し、アドレス「9FFFFH〜90000H」は
第1のフラッシュメモリ8のパラメータ領域を指し、ア
ドレス「7FFFFH〜00000H」はワークメモリ
10を指す。
That is, the address "FFFFFFH to A0"
"000H" indicates the program area of the second flash memory 9, address "9FFFFH to 90000H" indicates the parameter area of the first flash memory 8, and address "7FFFFH to 00000H" indicates the work memory 10.

【0023】制御手段1はアドレス「FFFFFH」側
から起動するので、運用モード時には第2のフラッシュ
メモリ9に格納されている運用プログラムに従い動作す
る。このとき、アドレス「9FFFFH〜90000
H」のパラメータ領域には、バンクメモリ切換部4の制
御により第1のフラッシュメモリ8に格納されているB
NK1〜BNK8のいずれかが割り当てられることにな
る。また、このときBNK1〜BNK8の内容は書き換
えることも可能である。
Since the control means 1 is started from the address "FFFFFH", it operates according to the operation program stored in the second flash memory 9 in the operation mode. At this time, the address “9FFFFH-90000”
In the parameter area “H”, B stored in the first flash memory 8 under the control of the bank memory switching unit 4 is stored.
Any one of NK1 to BNK8 will be assigned. At this time, the contents of BNK1 to BNK8 can be rewritten.

【0024】次に、図6および図7に示す処理フロー図
を参照しながら、メモリマップ変換部5の動作について
説明する。
Next, the operation of the memory map conversion unit 5 will be described with reference to the processing flow charts shown in FIGS.

【0025】まず、ブートスイッチ7が通常運用モード
に設定されているかブートモードに設定されているかを
判定する(ステップS1)。ブートモードに設定されて
いる場合は、制御手段1のアドレスの最上位ビット(M
SB)Anが0か1かを判定する(ステップS2)。
First, it is determined whether the boot switch 7 is set to the normal operation mode or the boot mode (step S1). When the boot mode is set, the most significant bit (M
SB) It is determined whether An is 0 or 1 (step S2).

【0026】ビットAnが0であれば、次にビットAn-
1 が0か1かを判定し(ステップS3)、ビットAn-1
が0であれば、次にビットAn-2 が0か1かを判定する
(ステップS4)。
If bit An is 0, then bit An-
It is determined whether 1 is 0 or 1 (step S3), and the bit An-1 is determined.
Is 0, it is determined whether the bit An-2 is 0 or 1 (step S4).

【0027】その結果、ビットAn-2 が0であれば、ア
ドレスはワークメモリ10を指し、ビットAn-2 が1で
あれば、アドレスは第2のフラッシュメモリ9を指し、
ビットAn-1 が1であれば、アドレスは同じく第2のフ
ラッシュメモリ9を指す。
As a result, if the bit An-2 is 0, the address points to the work memory 10; if the bit An-2 is 1, the address points to the second flash memory 9;
If the bit An-1 is 1, the address also points to the second flash memory 9.

【0028】一方、ビットAnが1であれば、次にビッ
トAn-1 が0か1かを判定し(ステップS5)、ビット
An-1 が0であれば、次にビットAn-2 が0か1かを判
定しる(ステップS6)、ビットAn-2 が0であれば、
次にビットAn-3 が0か1かを判定する(ステップS
7)。
On the other hand, if the bit An is 1, then it is determined whether the bit An-1 is 0 or 1 (step S5). If the bit An-1 is 0, then the bit An-2 is 0. It is determined whether the bit An-2 is 0 (step S6).
Next, it is determined whether bit An-3 is 0 or 1 (step S3).
7).

【0029】その結果、ビットAn-3 が0であればアド
レスは拡張領域を指し、ビットAn-3 が1であればアド
レスは未実装部を指し、ビットAn-2 が1であればアド
レスは同じく未実装部を指す。
As a result, if the bit An-3 is 0, the address indicates the extension area, if the bit An-3 is 1, the address indicates the unmounted part, and if the bit An-2 is 1, the address indicates the extension area. Similarly, it indicates an unmounted part.

【0030】また、ビットAn-1 が1であれば、次にビ
ットAn-2 が0か1かを判定し(ステップS8)、ビッ
トAn-2 が1であれば、次にビットAn-3 が0か1かを
判定する(ステップS9)。
If bit An-1 is 1, it is next determined whether bit An-2 is 0 or 1 (step S8). If bit An-2 is 1, then bit An-3 is next determined. Is determined to be 0 or 1 (step S9).

【0031】その結果、ビットAn-2 が0であればアド
レスは未実装部を指し、ビットAn-3 が0であればアド
レスは同じく未実装部を指し、ビットAn-3 が1であれ
ばアドレスは第1のフラッシュメモリ8を指す。
As a result, if the bit An-2 is 0, the address indicates the unmounted part, if the bit An-3 is 0, the address indicates the unmounted part, and if the bit An-3 is 1, the address indicates the unmounted part. The address points to the first flash memory 8.

【0032】ステップS1において、ブートスイッチ7
が通常運用モードに設定されている場合は、メモリマッ
プ変換手段4は制御手段1のアドレスの最上位ビット
(MSB)Anが0か1か判定し(ステップS11)、
ビットAnが0であれば、アドレスはワークメモリ10
を指す。
In step S1, the boot switch 7
Is set to the normal operation mode, the memory map conversion means 4 determines whether the most significant bit (MSB) An of the address of the control means 1 is 0 or 1 (step S11).
If the bit An is 0, the address is
Point to.

【0033】ビットAnが1であれば、次にビットAn-
1 が0か1かを判定し(ステップS12)、ビットAn-
1 が0であれば、次にビットAn-2 が0か1かを判定し
(ステップS13)、ビットAn-2 が0であれば、次に
ビットAn-3 が0か1かを判定する(ステップS1
4)。
If bit An is 1, then bit An-
It is determined whether 1 is 0 or 1 (step S12), and the bit An-
If 1 is 0, it is next determined whether bit An-2 is 0 or 1 (step S13). If bit An-2 is 0, it is next determined whether bit An-3 is 0 or 1. (Step S1
4).

【0034】その結果、ビットAn-3 が0であればアド
レスは拡張領域を指し、ビットAn-3 が1であればアド
レスは第1のフラッシュメモリ8を指し、ビットAn-2
が1であればアドレスは第2のフラッシュメモリ9を指
し、ビットAn-1 が1であれば同じくアドレスは第2の
フラッシュメモリ9を指す。
As a result, if the bit An-3 is 0, the address points to the extended area, and if the bit An-3 is 1, the address points to the first flash memory 8 and the bit An-2
Is 1, the address points to the second flash memory 9, and if the bit An-1 is 1, the address points to the second flash memory 9.

【0035】図8は、こうして制御手段1のアドレスの
上位4ビット(16進表示の最上位桁)によって、メモ
リ空間を16分割した場合のアドレスと各メモリ8〜1
0との関係を示す図である。この例の場合は、アドレス
ビットは20ビット(A1〜A20)あるので、n=2
0、となり、An=A20、An-1 =A19、An-2=
A18、An-3 =17、となる。
FIG. 8 shows an address when the memory space is divided into 16 by the upper 4 bits (highest digit of hexadecimal notation) of the address of the control means 1 and each of the memories 8 to 1.
It is a figure showing the relation with 0. In this example, since there are 20 address bits (A1 to A20), n = 2
0, and An = A20, An-1 = A19, An-2 =
A18, An-3 = 17.

【0036】次に、図9に示す処理フロー図を参照しな
がら、バンクメモリ切換部4の動作について説明する。
Next, the operation of the bank memory switching section 4 will be described with reference to the processing flow chart shown in FIG.

【0037】通常運用モード時に制御手段1のアドレス
が第1のフラッシュメモリ8を指しているときは、すな
わちアドレスビットAn〜An-3 が「1001」のとき
は、バンクレジスタ6に記憶されている3ビットのバン
クデータのビットBD1〜BD3の内容に従って、バン
クメモリ切換部4は次のように動作する。
When the address of the control means 1 points to the first flash memory 8 in the normal operation mode, that is, when the address bits An to An-3 are "1001", the data is stored in the bank register 6. According to the contents of bits BD1 to BD3 of the 3-bit bank data, bank memory switching unit 4 operates as follows.

【0038】まず、ビットBD1が0か1か判定する
(ステップS21)。ビットBD1が0であれば、次に
ビットBD2が0か1か判定する(ステップS22)。
ビットBD2が0であれば、次にビットBD3が0か1
か判定し(ステップS23)、ビットBD3が0であれ
ば、BNK8、すなわちブートプログラムを指定し、ビ
ットBD3が1であれば、BNK1を指定する。
First, it is determined whether the bit BD1 is 0 or 1 (step S21). If bit BD1 is 0, it is next determined whether bit BD2 is 0 or 1 (step S22).
If bit BD2 is 0, then bit BD3 is 0 or 1
(Step S23), if the bit BD3 is 0, specify BNK8, that is, the boot program; if the bit BD3 is 1, specify BNK1.

【0039】また、ビットBD2が1であれば、次にビ
ットBD3が0か1か判定し(ステップS24)、ビッ
トBD3が0であれば、BNK2を指定し、ビットBD
3が1であればBNK3を指定する。
If bit BD2 is 1, it is next determined whether bit BD3 is 0 or 1 (step S24). If bit BD3 is 0, BNK2 is designated and bit BD3 is set.
If 3 is 1, BNK3 is designated.

【0040】一方、ビットBD1が1であれば、次にビ
ットBD2が0か1か判定する(ステップS25)。ビ
ットBD2が0であれば、次にビットBD3が0か1か
判定する(ステップS26)。ビットBD3が0であれ
ば、BNK4を指定し、ビットBD3が1であれば、B
NK5を指定する。
On the other hand, if bit BD1 is 1, it is next determined whether bit BD2 is 0 or 1 (step S25). If bit BD2 is 0, it is next determined whether bit BD3 is 0 or 1 (step S26). If bit BD3 is 0, BNK4 is specified; if bit BD3 is 1, BNK4 is specified.
Specify NK5.

【0041】また、ビットBD2が1であれば、次にビ
ットBD3が0か1か判定し(ステップS27)、ビッ
トBD3が0であれば、BNK6を指定し、ビットBD
3が1であればBNK7を指定する。
If bit BD2 is 1, it is next determined whether bit BD3 is 0 or 1 (step S27). If bit BD3 is 0, BNK6 is designated and bit BD3 is set.
If 3 is 1, BNK7 is specified.

【0042】こうして、バンクレジスタ6のバンクデー
タによってBNK1〜BNK8の中のいずれかを選択
し、この選択したバンクをメモリマップ変換部5を介し
て制御手段1が直接アクセスすることになる。
In this way, one of BNK1 to BNK8 is selected according to the bank data of the bank register 6, and the selected bank is directly accessed by the control means 1 via the memory map conversion unit 5.

【0043】[0043]

【発明の効果】以上のように本発明によれば、ブートモ
ード時と運用モード時とで制御手段から制御する第1お
よび第2のメモリ手段のアドレスを切り換え、ブートモ
ード時には第1のメモリ手段に格納されたブートプログ
ラムに従って第2のメモリ手段に運用プログラムを書き
込み、運用モード時には第2のメモリ手段に書き込んだ
運用プログラムに従って所定の命令を実行するので、ブ
ートプログラム領域が運用プログラム領域を圧迫するこ
とがなく、しかも比較的小規模で機能の制約された制御
手段を使用しながら実現することができる。
As described above, according to the present invention, the addresses of the first and second memory means controlled by the control means are switched between the boot mode and the operation mode, and the first memory means is switched in the boot mode. The operation program is written in the second memory means in accordance with the boot program stored in the second memory means, and in the operation mode, a predetermined command is executed in accordance with the operation program written in the second memory means. This can be realized without using a control means having a relatively small scale and limited functions.

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

【図1】本発明によるコンピュータ装置の一実施の形態
を示すブロック構成図
FIG. 1 is a block diagram showing an embodiment of a computer device according to the present invention.

【図2】第1のフラッシュメモリのメモリマップ図FIG. 2 is a memory map diagram of a first flash memory.

【図3】第2のフラッシュメモリのメモリマップ図FIG. 3 is a memory map diagram of a second flash memory.

【図4】ブートモード時のアドレスと各メモリとの関係
を示すメモリマップ図
FIG. 4 is a memory map diagram showing a relationship between addresses and respective memories in a boot mode.

【図5】運用モード時のアドレスと各メモリとの関係を
示すメモリマップ図
FIG. 5 is a memory map diagram showing a relationship between an address and each memory in an operation mode.

【図6】メモリマップ変換部の動作を示す処理フロー図
(1)
FIG. 6 is a processing flowchart showing the operation of a memory map conversion unit (1).

【図7】メモリマップ変換部の動作を示す処理フロー図
(2)
FIG. 7 is a processing flowchart showing the operation of the memory map conversion unit (2).

【図8】ブートモード時および運用モード時のアドレス
と各メモリとの関係を示すメモリマップ図
FIG. 8 is a memory map diagram showing a relationship between addresses and respective memories in a boot mode and an operation mode.

【図9】バンクメモリ切換部の動作を示す処理フロー図FIG. 9 is a processing flowchart showing the operation of the bank memory switching unit.

【符号の説明】[Explanation of symbols]

1 制御手段 2 データバス 3 メモリ転送用I/Oポート 4 バンクメモリ切換部 5 メモリマップ変換部 6 バンクレジスタ 7 ブートスイッチ 8 第1のフラッシュメモリ 9 第2のフラッシュメモリ 10 ワークメモリ Reference Signs List 1 control means 2 data bus 3 memory transfer I / O port 4 bank memory switching unit 5 memory map conversion unit 6 bank register 7 boot switch 8 first flash memory 9 second flash memory 10 work memory

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 プログラムデータに従って命令を実行す
る制御手段と、 ブートプログラムを格納する書き換え可能な第1のメモ
リ手段と、 運用プログラムを格納する書き換え可能な第2のメモリ
手段と、 ブートモードまたは運用モードのいずれかを選択するモ
ード切換手段と、 前記モード切換手段によって選択されたモードに応じて
前記第1および第2のメモリ手段のアドレスを切り換え
るメモリマップ変換手段とを備え、 前記メモリマップ変換手段は、前記ブートモード時には
前記ブートプログラムに従って前記第2のメモリ手段に
運用プログラムを書き込むように前記第1および第2の
メモリ手段のアドレスを設定し、前記運用モード時には
前記運用プログラムに従って前記制御手段が所定の命令
を実行するように前記第1および第2のメモリ手段のア
ドレスを設定することを特徴とするコンピュータ装置。
Control means for executing an instruction in accordance with program data; rewritable first memory means for storing a boot program; rewritable second memory means for storing an operation program; A mode switching unit for selecting one of the modes; and a memory map conversion unit for switching addresses of the first and second memory units according to the mode selected by the mode switching unit. Sets the addresses of the first and second memory means so that the operation program is written in the second memory means according to the boot program in the boot mode, and the control means according to the operation program in the operation mode The first and second instructions are executed to execute a predetermined instruction. Computer device and sets the address of the memory means.
【請求項2】 前記第1のメモリ手段は前記ブートプロ
グラム領域を含む複数のバンクメモリ領域を有し、前記
複数のバンクメモリ領域の中から任意のバンクメモリ領
域を選択するバンクメモリ切換手段を有することを特徴
とする請求項1記載のコンピュータ装置。
2. The first memory means has a plurality of bank memory areas including the boot program area, and has a bank memory switching means for selecting an arbitrary bank memory area from the plurality of bank memory areas. The computer device according to claim 1, wherein:
JP35776999A 1999-12-16 1999-12-16 Computer system Pending JP2001175463A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP35776999A JP2001175463A (en) 1999-12-16 1999-12-16 Computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP35776999A JP2001175463A (en) 1999-12-16 1999-12-16 Computer system

Publications (1)

Publication Number Publication Date
JP2001175463A true JP2001175463A (en) 2001-06-29

Family

ID=18455833

Family Applications (1)

Application Number Title Priority Date Filing Date
JP35776999A Pending JP2001175463A (en) 1999-12-16 1999-12-16 Computer system

Country Status (1)

Country Link
JP (1) JP2001175463A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7945919B2 (en) 2008-03-18 2011-05-17 Kabushiki Kaisha Toshiba Information processing apparatus and device controller driving/controlling method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63750A (en) * 1986-06-20 1988-01-05 Tokico Ltd Memory control method
JPH06348504A (en) * 1993-06-04 1994-12-22 Sharp Corp Microprocessor system
JPH07334353A (en) * 1994-06-09 1995-12-22 Matsushita Electric Ind Co Ltd Microcomputer system
JPH09179616A (en) * 1995-09-19 1997-07-11 Mitsubishi Electric Corp Monitoring system, monitoring device and its setting-up method
JPH09223066A (en) * 1996-02-19 1997-08-26 Nec Corp Method and device for controlling memory
JPH11234491A (en) * 1998-02-13 1999-08-27 Murata Mach Ltd Communications terminal
JPH11265282A (en) * 1998-03-17 1999-09-28 Toshiba Corp Controller for automatic vending machine

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63750A (en) * 1986-06-20 1988-01-05 Tokico Ltd Memory control method
JPH06348504A (en) * 1993-06-04 1994-12-22 Sharp Corp Microprocessor system
JPH07334353A (en) * 1994-06-09 1995-12-22 Matsushita Electric Ind Co Ltd Microcomputer system
JPH09179616A (en) * 1995-09-19 1997-07-11 Mitsubishi Electric Corp Monitoring system, monitoring device and its setting-up method
JPH09223066A (en) * 1996-02-19 1997-08-26 Nec Corp Method and device for controlling memory
JPH11234491A (en) * 1998-02-13 1999-08-27 Murata Mach Ltd Communications terminal
JPH11265282A (en) * 1998-03-17 1999-09-28 Toshiba Corp Controller for automatic vending machine

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7945919B2 (en) 2008-03-18 2011-05-17 Kabushiki Kaisha Toshiba Information processing apparatus and device controller driving/controlling method

Similar Documents

Publication Publication Date Title
JPH10187530A (en) Programmable memory access
JPH0748190B2 (en) Microprocessor with cache memory
JPH0916462A (en) Apparatus and method for data processing
EP1103898A2 (en) Microprocessor and memory
JP2001175463A (en) Computer system
JP4071930B2 (en) Synchronous DRAM
JP3704927B2 (en) Programmable controller
JPH05313999A (en) Memory controller
JP3767646B2 (en) Electric motor control device provided with setting storage device for electric motor control constant
JP4015867B2 (en) Address signal output device
JP3152595B2 (en) Microcomputer interrupt handling device
KR100329768B1 (en) Memory addressing device for micro-controller unit
JPH06231072A (en) Microcomputer
JPH10198407A (en) Programmable controller and its data are expanding method
JP2005242621A (en) Semiconductor device and its interrupt processing method
JP3442972B2 (en) Information processing apparatus and rewritable nonvolatile memory rewriting method
JP3345050B2 (en) Two-dimensional array type memory system
JPS6343563Y2 (en)
JP3333527B2 (en) Computer equipment
JPH05127979A (en) Memory address space extending device
JPH0244445A (en) Data processor
JPH1196068A (en) Memory management system and data managing method
EP0755000A2 (en) Microcomputer and address generation method
JPS6231382B2 (en)
JPS61150050A (en) Memory mapping system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20061110

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090130

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20090911

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090915

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20090915

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091028

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091215

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100309

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100510

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20100601