JP2010266987A - Cpu address map switching - Google Patents
Cpu address map switching Download PDFInfo
- Publication number
- JP2010266987A JP2010266987A JP2009116235A JP2009116235A JP2010266987A JP 2010266987 A JP2010266987 A JP 2010266987A JP 2009116235 A JP2009116235 A JP 2009116235A JP 2009116235 A JP2009116235 A JP 2009116235A JP 2010266987 A JP2010266987 A JP 2010266987A
- Authority
- JP
- Japan
- Prior art keywords
- cpu
- flash memory
- rom
- address map
- address
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
Description
本発明は複数枚のプリント板を有し,それぞれのプリント板をバス信号を通してバスコネクタで接続したコンピュータシステムに実装されたフラッシュメモリのCPUアドレスマップの切り換え方法に関する。 The present invention relates to a method for switching a CPU address map of a flash memory mounted on a computer system having a plurality of printed boards and each printed board connected by a bus connector through a bus signal.
組み込み型制御装置のシステムプログラムを格納するメモリとしては,従来は紫外線を照射して内容を消去しなければならないEPROMや電気的に消去可能なEEPROMを使用するのが主流であったが,近年は,電気的に書き込み,消去できるフラッシュメモリが使用され,主流になっている。 Conventionally, as the memory for storing the system program of the embedded control device, EPROM that has to be erased by irradiating ultraviolet rays and electrically erasable EEPROM have been the mainstream. Flash memories that can be electrically written and erased are used and are becoming mainstream.
フラッシュメモリは電気的に書き込み,消去でき,小型のSOP(Small Out-line Package)やTSOP(Thin SOP)で非常に細いピンが多数密集して配列されているパッケージである為,コンピュータシステムに実装され使用される場合が多く,実装後にシステムプログラムを書き込む必要がある。 The flash memory can be electrically written and erased, and is a small SOP (Small Out-line Package) or TSOP (Thin SOP) package with a lot of very thin pins, so it is mounted on a computer system. In many cases, it is necessary to write a system program after implementation.
従来はフラッシュメモリに書き込む場合,フラッシュメモリにシステムプログラムを書き込む為のプログラムを格納したROM(Read Only Memory)をフラッシュメモリの他に実装したり,専用のツールを用いフラッシュメモリに書き込まなければならなかった。 Conventionally, when writing to the flash memory, a ROM (Read Only Memory) that stores the program for writing the system program to the flash memory must be mounted in addition to the flash memory or written to the flash memory using a dedicated tool. It was.
上述した従来の方法では,通常は不要なROMを実装したり,フラッシュメモリにシステムプログラムを書き込む為の専用ツールに接続する通常は不要なコネクタを実装する為,コストが高くなってしまう。 In the conventional method described above, a normally unnecessary ROM is mounted, or a normally unnecessary connector that is connected to a dedicated tool for writing a system program in the flash memory is mounted, which increases the cost.
本発明の目的は,通常では不要なEPROMやコネクタを実装することなく,複数枚のプリント板を有し,それぞれのプリント板をバス信号を通してバスコネクタで接続したコンピュータシステムに実装されたフラッシュメモリにシステムプログラムを書き込むことができるCPUアドレスマップの切り換え方法を提供する事にある。 It is an object of the present invention to provide a flash memory mounted on a computer system having a plurality of printed boards without connecting normally unnecessary EPROMs and connectors, and connecting each printed board with a bus connector through a bus signal. The object is to provide a method for switching a CPU address map in which a system program can be written.
上記目的を達成する為に,アドレス0番地(0H)からスタートするCPUと,該CPUのデータバスに接続された該CPU外部に設けられたフラッシュメモリと,着脱可能で,フラッシュメモリにシステムプログラムを書き込む為のプログラムを格納したROMを装着したROMモジュールとを有し,通常時とシステムプログラムを書き込むブート時で該CPUから見たアドレスマップを変更し,ブート時には前記ROMのブートプログラムが実行され,システムプログラムをフラッシュメモリに書き込む方法を備え,書き込み終了後は前記ROMモジュールを取り外す事を特徴とする。 In order to achieve the above object, a CPU starting from address 0 (0H) and a flash memory provided outside the CPU connected to the data bus of the CPU can be attached and detached, and a system program is stored in the flash memory. A ROM module with a ROM storing a program for writing, and changing the address map seen from the CPU at the normal time and at the time of booting to write the system program, the boot program of the ROM is executed at the time of booting, A method of writing a system program to a flash memory is provided, and the ROM module is removed after the writing is completed.
本発明によれば,通常は不要なROMを実装したり,フラッシュメモリにシステムプログラムを書き込む為の専用ツールに接続する通常は不要なコネクタを実装する必要がなく,小型化,コスト低減及び生産性の向上を図る事ができる。 According to the present invention, there is no need to mount a normally unnecessary ROM or a normally unnecessary connector for connecting to a dedicated tool for writing a system program in the flash memory, and it is possible to reduce the size, cost and productivity. Can be improved.
以下,本発明の実施例を説明する。 Examples of the present invention will be described below.
本発明によるCPUアドレスマップ切り換えによるフラッシュメモリの書き込み方法の実施例1を図1を参照して説明する。図1は,本発明による実施例1を示すブロック図である。図1のコンピュータシステムは複数枚のプリント板を有し,それぞれのプリント板をバス信号を通してバスコネクタで接続したシステム例で,CPUを有したプリント板の他にはブート用の着脱可能なROMモジュールを示している。
A first embodiment of a flash memory writing method by CPU address map switching according to the present invention will be described with reference to FIG. FIG. 1 is a block
着脱可能なROMモジュールはフラッシュメモリにシステムプログラムを書き込む為のプログラムを格納したROMを装着しており,フラッシュメモリにシステムプログラムが書き込まれていない初期状態や,システムプログラムを修正する場合等に取り付け,通常時は外されている。ROMモジュールに有効/無効のスイッチ等を設けて通常時にも取り付けたままでも良い。 The removable ROM module is equipped with a ROM that stores a program for writing a system program in the flash memory. It is installed when the system program is not written in the flash memory or when the system program is modified. It is usually removed. The ROM module may be provided with a valid / invalid switch, etc., and may remain attached during normal operation.
CPU 1はアドレスバス 2,データバス 3に接続され,26ビットのアドレスA0〜A25(A25が最上位ビット),32ビットのデータD0〜D31(D31が最上位ビット),LOWでライトが有効になるライト信号WE,LOWでリードが有効になるリード信号RD,LOWでリセットが有効になるリセット信号RESET 100を入出力し,リセット信号RESETがHIGHになるとアドレス0HからスタートするCPUである。
フラッシュメモリ 4はCPU 1の下位22ビットのアドレスA0〜A21がアドレスバス 2から入力され,メモリマップ切り換え論理回路部 5でデコードされたLOWで有効になるチップイネーブル信号CEにより選択され,CPU 1からのリード信号RDがLOWでデータバス 3に出力する。
The flash memory 4 is selected by the chip enable signal CE which becomes valid at LOW decoded by the memory map switching logic circuit unit 5 when the lower 22 bits of the address A0 to A21 of the
また,CPU 1からのライト信号WEがLOWでデータバス 3からデータを入力し,書き込まれる。メモリマップ切り換え論理部 5はブート時はブート時のメモリマップが選択され,セレクタ 7〜9が全てブート時側に切り換わる。通常時は通常時のメモリマップが選択され,セレクタ 7〜9が全て通常時側に切り換わる。ROMモジュール 10はブート時に取り付けられ,RESET信号がLOW状態の時にLOWにプルダウンされているデータバス 3上にROMモジュールが取り付けられているという信号であるHIGHを3ステート回路 12から出力し,メモリマップ切り換え論理部 5のラッチ回路 6でROMモジュールが取り付けられているという信号をラッチする。
In addition, when the write signal WE from
次に図1のコンピュータシステムのブート時及びシステムプログラム書き換え時の動作について説明する。フラッシュメモリ 4はブート時は未書き込み,システムプログラム書き換え時は旧システムプログラムが書き込まれているものとする。操作者は,最初にROMモジュール 10をコンピュータシステムのバスコネクタに装着した後,電源を投入する。 Next, operations at the time of booting and rewriting the system program of the computer system of FIG. 1 will be described. It is assumed that the flash memory 4 is not written at boot time and the old system program is written at system program rewrite. The operator first inserts the ROM module 10 into the bus connector of the computer system and then turns on the power.
電源が立ち上がり,リセット信号RESET 100が有効であるLOWになると,ROMモジュール 10の3ステート回路 12からROMモジュール 10が装着されているという意味であるHIGHを出力し,データバス 3を通してメモリマップ切り換え論理回路部 5に伝達される。 When the power supply rises and the reset signal RESET 100 becomes LOW, which is valid, HIGH is output from the 3-state circuit 12 of the ROM module 10, which means that the ROM module 10 is installed. It is transmitted to the circuit unit 5.
メモリマップ切り換え論理回路部 5内部のラッチ回路 6でROMモジュール 10が装着されているという意味であるHIGHをラッチし,セレクタ 7〜9をブート時側に切り換える。 The memory map switching logic circuit unit 5 latches HIGH, which means that the ROM module 10 is mounted, in the latch circuit 6 inside, and switches the selectors 7 to 9 to the boot side.
セレクタ 7がブート時側に切り換わるとブート時のメモリマップが選択され,セレクタ 9がブート時側に切り換わるとCPU 1からのアドレスが0H〜3FFFFFHでROMモジュール 10のROM 11が有効になるチップイネーブル信号CEが出力され,セレクタ 8がブート時側に切り換わるとCPU 1からのアドレスが400000H〜7FFFFFHでフラッシュメモリ 4が有効になるチップイネーブル信号CEが出力されるブート動作準備が整う。
A chip in which the memory map at boot is selected when selector 7 switches to the boot side, and
電源投入後,数十ミリ秒後にリセット信号RESET 10が解除されるHIGHになると,CPU 1がアドレスバス 2に0Hを出力してコンピュータシステムがスタートする。ブート時,アドレス0HはROM 11の領域であるのでROM 11が選択されCPU 1はROM 11のアドレス0Hのデータを読み込み,フラッシュメモリ 4にシステムプログラムの書き込み動作をスタートする。フラッシュメモリ 4のアドレスは400000H〜7FFFFFHとなっているのでその領域にシステムプログラムを書き込む。
When power is turned on and reset signal RESET 10 becomes HIGH after several tens of milliseconds,
図1に示したコンピュータシステムではROMモジュール 10が装着されているという意味であるHIGHをデータバス 3を通してメモリマップ切り換え論理回路部 5に伝達する方法を示したが,バスコネクタに余裕が有る場合は,3ステート回路 12を用いないでバスコネクタ内にメモリマップ切り換え用信号を設け,直接伝達する方法も有る。 In the computer system shown in Fig. 1, the method of transmitting HIGH, which means that the ROM module 10 is installed, to the memory map switching logic circuit unit 5 through the data bus 3, was shown. There is also a method in which a memory map switching signal is provided in the bus connector and transmitted directly without using the three-state circuit 12.
次に図1のコンピュータシステムの通常時の動作について説明する。操作者は上記方法によりシステムプログラムをフラッシュメモリ 4に書き込んだ後,電源を断してROMモジュール 10をコンピュータシステムから取り外し,電源を投入する。 Next, the normal operation of the computer system of FIG. 1 will be described. The operator writes the system program in the flash memory 4 by the above method, then turns off the power, removes the ROM module 10 from the computer system, and turns on the power.
電源が立ち上がり,リセット信号 100が有効であるLOWになった時,ROMモジュールが装着されていないのでメモリマップ切り換え論理回路部 5内部のラッチ回路 6でROMモジュール 10が装着されていないという意味であるLOWをラッチし,セレクタ 7〜9を通常時側に切り換える。
When the power is turned on and the
セレクタ 7が通常時側に切り換わると通常時のメモリマップが選択され,セレクタ 8が通常時側に切り換わるとCPU 1からのアドレスが0H〜3FFFFFHでフラッシュメモリ 4が有効になるチップイネーブル信号CEが出力される準備が整う。電源投入後,数十ミリ秒後にリセット信号RESET 10が解除されるHIGHになると,CPU 1がアドレスバス 2に0Hを出力してコンピュータシステムがスタートする。
Chip enable signal CE that selects the normal memory map when selector 7 switches to the normal side, and enables the flash memory 4 when the address from
本発明によるCPUアドレスマップ切り換えによるフラッシュメモリの書き込み方法の実施例2を図2を参照して説明する。図2は,本発明による実施例2を示すブロック図である。実施例1との相違点は,ROMモジュール 10が装着されているという情報を実施例1では3ステート回路 12から出力し,メモリマップ切り換え論理部 5のラッチ回路 6で信号をラッチしていたのに対し,実施例2では,実施例1より汎用性を持たせる為にシリアル通信回路に変更している。 A second embodiment of the flash memory writing method by CPU address map switching according to the present invention will be described with reference to FIG. FIG. 2 is a block diagram showing a second embodiment according to the present invention. The difference from the first embodiment is that the information that the ROM module 10 is installed is output from the three-state circuit 12 in the first embodiment, and the signal is latched by the latch circuit 6 of the memory map switching logic unit 5 On the other hand, in the second embodiment, the serial communication circuit is changed to have more versatility than the first embodiment.
シリアル通信を用いてより多くの情報を伝達できれば,コンピュータシステム以外のフラッシュメモリをバスコネクタに装着して書き込んだりすることができる。 If more information can be transmitted using serial communication, a flash memory other than the computer system can be attached to the bus connector for writing.
実施例1に対して変更箇所がシリアル通信回路部のみである為,シリアル通信回路部のみの説明を以下に示す。図2のコンピュータシステムのブート時及びシステムプログラム書き換え時の動作について説明する。 Since only the serial communication circuit unit is changed from the first embodiment, only the serial communication circuit unit will be described below. Operations at the time of booting and rewriting the system program of the computer system of FIG. 2 will be described.
条件は実施例1と同じ。電源を投入し,電源が立ち上がり,リセット信号RESET 100が有効であるLOWになると,ROMモジュール 10のシリアル通信回路B 14からROMモジュール 10が装着されているという意味のシリアルデータを出力し,データバス 3を通してメモリマップ切り換え論理回路部 5に送信される。
Conditions are the same as in Example 1. When the power is turned on, the power is turned on, and the
メモリマップ切り換え論理回路部 5内部のシリアル通信回路AではROMモジュール 10が装着されていると認識し,セレクタ 7〜9をブート側に切り換え,同時にROMモジュール 10のシリアル通信回路B 14に受信完了通知を送信して,ブート動作準備を完了する。電源投入後,数十ミリ秒後にリセット信号RESET 10が解除されるHIGHになる以降は実施例1と全く同じであるので説明を省略する。 Memory map switching logic circuit 5 Internal serial communication circuit A recognizes that ROM module 10 is installed, switches selectors 7 to 9 to the boot side, and simultaneously notifies reception completion to serial communication circuit B 14 of ROM module 10 To complete the boot operation preparation. Since the reset signal RESET 10 becomes HIGH after the power is turned on after several tens of milliseconds, the description is omitted because it is exactly the same as in the first embodiment.
1 CPU
2 アドレスバス
3 データバス
4 フラッシュメモリ
5 メモリマップ切り換え論理回路
6 ラッチ回路
7〜9 セレクタ
10 ROMモジュール
11 ROM
12 3ステート回路
13 シリアル通信回路A
14 シリアル通信回路B
100 RESET信号
1 CPU
2 Address bus
3 Data bus
4 Flash memory
5 Memory map switching logic circuit
6 Latch circuit
7-9 selector
10 ROM module
11 ROM
12 3-state circuit
13 Serial communication circuit A
14 Serial communication circuit B
100 RESET signal
Claims (3)
アドレス0番地からスタートするCPUと,
該CPUのデータバスに接続された該CPU外部に設けられたフラッシュメモリ(登録商標)と,
該CPUから見たアドレスマップを変更する機能を有するメモリマップ切り換え論理回路部と,
フラッシュメモリにシステムプログラムを書き込む為のプログラムを格納したROMを装着した着脱可能なROMモジュールとを有し,
通常時とブート時で該CPUから見たアドレスマップを変更し,ブート時には前記ROMのブートプログラムが実行され,システムプログラムをフラッシュメモリに書き込む方法を備え,書き込み終了後は前記ROMモジュールを取り外す事を特徴とするCPUアドレスマップ切り換え方法。
A CPU that starts from address 0 in the embedded controller;
A flash memory (registered trademark) provided outside the CPU connected to the data bus of the CPU;
A memory map switching logic circuit unit having a function of changing an address map viewed from the CPU;
A detachable ROM module with a ROM that stores a program for writing system programs to flash memory,
The address map seen from the CPU is changed during normal and boot times, and the boot program of the ROM is executed at boot time, and the system program is written to the flash memory. Characteristic CPU address map switching method.
通常時のアドレスマップとブート時のアドレスマップを切り換えるラッチ回路若しくはシリアル通信回路と,
セレクタとを有する事を特徴とする請求項1記載のCPUアドレスマップ切り換え方法。
In the memory map switching logic circuit section,
A latch circuit or serial communication circuit for switching between an address map at normal time and an address map at boot time;
2. The CPU address map switching method according to claim 1, further comprising a selector.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009116235A JP2010266987A (en) | 2009-05-13 | 2009-05-13 | Cpu address map switching |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009116235A JP2010266987A (en) | 2009-05-13 | 2009-05-13 | Cpu address map switching |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2010266987A true JP2010266987A (en) | 2010-11-25 |
Family
ID=43363928
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2009116235A Pending JP2010266987A (en) | 2009-05-13 | 2009-05-13 | Cpu address map switching |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2010266987A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001195246A (en) * | 2000-01-07 | 2001-07-19 | Fuji Xerox Co Ltd | Information processor and device and system and method for writing basic data |
JP2002342105A (en) * | 2001-05-18 | 2002-11-29 | Yaskawa Electric Corp | System for writing to flash memory |
-
2009
- 2009-05-13 JP JP2009116235A patent/JP2010266987A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001195246A (en) * | 2000-01-07 | 2001-07-19 | Fuji Xerox Co Ltd | Information processor and device and system and method for writing basic data |
JP2002342105A (en) * | 2001-05-18 | 2002-11-29 | Yaskawa Electric Corp | System for writing to flash memory |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6009496A (en) | Microcontroller with programmable embedded flash memory | |
US9348783B2 (en) | Apparatus and method emulating a parallel interface to effect parallel data transfer from serial flash memory | |
CN100454257C (en) | Embedded system | |
JP2000040056A (en) | Method and device for controlling input/output processing of memory unit through jtag port | |
US9778880B2 (en) | Memory control circuit unit, data transmitting method and memory storage device | |
US20120166706A1 (en) | Data management method, memory controller and embedded memory storage apparatus using the same | |
US7831751B2 (en) | System and method for programming a display controller chip | |
US20100153622A1 (en) | Data Access Controller and Data Accessing Method | |
EP2207100B1 (en) | System and method for data recovery in a disabled integrated circuit | |
US20130132659A1 (en) | Microcontroller and method of controlling microcontroller | |
JP2010266987A (en) | Cpu address map switching | |
CN105825898A (en) | Dynamic memory testing device and testing method thereof | |
RU2579942C2 (en) | Device for direct mapping of data addresses, located in external serial rom, to address space of microprocessor core, computer system and method of transmitting data | |
CN104077080A (en) | Memory access method, memory access control method, SPI flash memory device and controller thereof | |
US6766408B2 (en) | Semiconductor integrated circuit and method for writing into non-volatile memory using a program received by external communication | |
JP2008021396A (en) | Controller and memory system | |
JP4005950B2 (en) | Microcontroller | |
US8495278B2 (en) | Controller which controls operation of nonvolatile semiconductor memory and semiconductor memory device including nonvolatile semiconductor memory and controller therefore | |
JP2008257415A (en) | Controller having program write function | |
JPH11328980A (en) | Nonvolatile semiconductor memory | |
JP2006155303A (en) | Controller | |
JP4343244B2 (en) | Microcomputer | |
WO2016053146A1 (en) | Computer system | |
JP2007034881A (en) | Semiconductor integrated circuit | |
CN113608937A (en) | Device and method for testing LED (light emitting diode) no hard disk of hard disk backboard |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20120410 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20130705 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20130709 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20131101 |