JP2001357690A - On-board write-in device, flash microcomputer, and selecting method for handshake terminal - Google Patents

On-board write-in device, flash microcomputer, and selecting method for handshake terminal

Info

Publication number
JP2001357690A
JP2001357690A JP2000178881A JP2000178881A JP2001357690A JP 2001357690 A JP2001357690 A JP 2001357690A JP 2000178881 A JP2000178881 A JP 2000178881A JP 2000178881 A JP2000178881 A JP 2000178881A JP 2001357690 A JP2001357690 A JP 2001357690A
Authority
JP
Japan
Prior art keywords
handshake
flash
terminal information
microcomputer
handshake terminal
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
JP2000178881A
Other languages
Japanese (ja)
Other versions
JP4425431B2 (en
Inventor
Hiroaki Nishimoto
浩秋 西本
Takashi Saito
隆 齋藤
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.)
Renesas Micro Systems Co Ltd
Original Assignee
Renesas Micro Systems 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 Renesas Micro Systems Co Ltd filed Critical Renesas Micro Systems Co Ltd
Priority to JP2000178881A priority Critical patent/JP4425431B2/en
Publication of JP2001357690A publication Critical patent/JP2001357690A/en
Application granted granted Critical
Publication of JP4425431B2 publication Critical patent/JP4425431B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)
  • Read Only Memory (AREA)
  • Microcomputers (AREA)

Abstract

PROBLEM TO BE SOLVED: To enable using for both of a device and a system in which constitution are different by securing versatility of a flash microcomputer. SOLUTION: Data for detecting synchronism and data for confirming synchronism are transmitted and received between a serial transmitting and receiving section 11 initialized by a serial transmitting and receiving control section 14-1 of a flash microcomputer 10 and a flash writer 20. After judgment for synchronism is performed by this transmission and reception in the flash writer 20, handshake terminal information is sent to a port control section 14-3 from the flash writer 20 through the serial transmitting and receiving section 11. In the port control section 14-3, a terminal indicating handshake terminal information is selected out of plural port terminals of a port 13, and it is decided as a handshake terminal. The decided handshake terminal is initialized by the port control section 14-3, and transmitting and receiving a handshake signal can be performed.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、オンボード書き込
み装置、フラッシュ・マイコン及びハンドシェーク端子
選択方法に関し、特に、ハンドシェークにより書き込み
データの高速通信を行うオンボード書き込み装置、フラ
ッシュ・マイコン及びハンドシェーク端子選択方法に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an on-board writing device, a flash microcomputer, and a handshake terminal selection method, and more particularly, to an on-board writing device, flash microcomputer, and a handshake terminal selection method for performing high-speed communication of write data by handshake. About.

【0002】[0002]

【従来の技術】記憶されたデータの書き換えが可能な読
み出し専用メモリであるPROM(Programma
ble ROM)のうち、データ書き換えを電気的に全
ビット又はブロック単位で行えるものをフラッシュ・メ
モリ(不揮発性半導体メモリ)という。また、フラッシ
ュ・メモリを内蔵したマイクロコンピュータをフラッシ
ュ・マイコンといい、このフラッシュ・マイコンをボー
ドに実装した状態で、データ書き換えを行うことをオン
ボード書き込みという。
2. Description of the Related Art PROM (Programma) is a read-only memory in which stored data can be rewritten.
A ble ROM) that can electrically rewrite data in units of all bits or blocks is called a flash memory (nonvolatile semiconductor memory). A microcomputer with a built-in flash memory is called a flash microcomputer, and on-board writing refers to rewriting data while the flash microcomputer is mounted on a board.

【0003】このオンボード書き込みには、従来のシリ
アル通信にハンドシェーク用の信号を付加することで、
大容量化したフラッシュ・メモリに大量のデータを高速
転送させることが可能なハンドシェーク方式が採用され
ることが多い。ハンドシェーク方式とは、同期通信にお
いて、送信元が、データ転送の開始について同意を求め
る要求信号を送信先に送り、要求を認める認識信号(A
CK信号)を送信先から受信した時点でデータ転送を開
始する方式をいう。
In this on-board writing, a signal for handshaking is added to the conventional serial communication,
In many cases, a handshake method capable of transferring a large amount of data to a large-capacity flash memory at a high speed is employed. In the handshake method, in synchronous communication, a transmission source sends a request signal requesting consent to start data transfer to a transmission destination, and a recognition signal (A
CK signal) from the destination when data transfer is started.

【0004】このハンドシェーク方式を用いて記憶デー
タの転送が可能なフラッシュ・マイコン及びフラッシュ
・ライタの構成について、図7を参照して説明する。同
図は、フラッシュ・マイコン110及びフラッシュ・ラ
イタ120を含むオンボード書き込み装置100の構成
を示すブロック図である。
A configuration of a flash microcomputer and a flash writer capable of transferring stored data using the handshake method will be described with reference to FIG. FIG. 1 is a block diagram showing the configuration of the on-board writing device 100 including the flash microcomputer 110 and the flash writer 120.

【0005】同図に示すように、フラッシュ・マイコン
110は、フラッシュ・ライタ120から送信されてく
るデータやコマンドを受信するシリアル送受信部111
と、データ書き込みの対象となるフラッシュ・メモリ部
112と、ハンドシェーク信号の送受信に用いるハンド
シェーク端子113と、プログラムによりフラッシュ・
メモリ部112へのデータ書き込みを制御するフラッシ
ュ・マイコン制御手段114とを有している。
As shown in FIG. 1, a flash microcomputer 110 includes a serial transmission / reception unit 111 for receiving data and commands transmitted from a flash writer 120.
And a flash memory unit 112 to which data is to be written, a handshake terminal 113 used for transmitting and receiving a handshake signal, and a flash
A flash microcomputer control unit 114 for controlling data writing to the memory unit 112;

【0006】ここで、ハンドシェーク端子113は、フ
ラッシュ・マイコン110の有する汎用ポートの一つに
予め割り当てられている。フラッシュ・マイコン制御手
段114は、シリアル送受信制御部114−1と、フラ
ッシュ・メモリ制御部114−2とを有している。
Here, the handshake terminal 113 is assigned to one of the general-purpose ports of the flash microcomputer 110 in advance. The flash microcomputer control unit 114 has a serial transmission / reception control unit 114-1 and a flash memory control unit 114-2.

【0007】このような構成のオンボード書き込み装置
におけるハンドシェーク方式の設定準備について、図8
を参照して説明する。シリアル通信動作を行うために、
フラッシュ・マイコン110のシリアル送受信制御部1
14−1が、シリアル送受信部111及びハンドシェー
ク端子113の初期化を行う(ステップ100,ステッ
プ102)。
FIG. 8 shows the preparation for setting the handshake method in the on-board writing apparatus having such a configuration.
This will be described with reference to FIG. In order to perform serial communication operation,
Serial transmission / reception controller 1 of flash microcomputer 110
14-1 initializes the serial transmission / reception unit 111 and the handshake terminal 113 (steps 100 and 102).

【0008】この初期化により、フラッシュ・ライタ1
20からの書き込みデータやハンドシェーク信号など
を、シリアル送受信部111及びハンドシェーク端子1
13において入力することが可能となる(シリアル通信
動作の許可)(ステップ104)。シリアル通信動作の
開始後、フラッシュ・ライタ120が、フラッシュ・マ
イコン110のシリアル送受信部111へ同期検出用デ
ータを送信する(A100)。
By this initialization, the flash writer 1
Write data and handshake signals from the serial transmission / reception unit 111 and the handshake terminal 1
13 (input of serial communication operation) (step 104). After the start of the serial communication operation, the flash writer 120 transmits synchronization detection data to the serial transmission / reception unit 111 of the flash microcomputer 110 (A100).

【0009】さらに、シリアル送受信制御部114−1
が、シリアル送受信部111で受信された同期検出用デ
ータを入力する。シリアル送受信制御部114−1が、
入力した同期検出用データに対する同期確認用データ
を、シリアル送受信部111を介してフラッシュ・ライ
タ120へ送信する(A102)。
Further, a serial transmission / reception control unit 114-1
Input the synchronization detection data received by the serial transmission / reception unit 111. The serial transmission / reception control unit 114-1
The synchronization confirmation data corresponding to the input synchronization detection data is transmitted to the flash writer 120 via the serial transmission / reception unit 111 (A102).

【0010】フラッシュ・ライタ120が、受信した同
期確認用データにより同期判断を行う(ステップ10
6)。判断の結果、同期がとれているときは、その後、
ハンドシェーク方式による書き込みデータの高速通信が
開始される。
The flash writer 120 makes a synchronization determination based on the received synchronization confirmation data (step 10).
6). As a result of the judgment, if synchronization is established,
High-speed communication of write data by the handshake method is started.

【0011】一方、同期がとれていないときは、再度、
フラッシュ・ライタ120が、同期検出用データを送信
して同期判断を行う。オンボード書き込み装置における
ハンドシェーク方式の設定準備をこのような構成とすれ
ば、フラッシュ・メモリに書き込まれるデータの送受信
をハンドシェーク信号により高速化できる。
On the other hand, when synchronization is not established,
The flash writer 120 transmits synchronization detection data to determine synchronization. With such a configuration for the preparation for setting the handshake method in the on-board writing device, transmission and reception of data to be written to the flash memory can be speeded up by the handshake signal.

【0012】[0012]

【発明が解決しようとする課題】しかしながら、従来の
オンボード書き込み装置は、汎用ポートにおいてハンド
シェーク信号に用いられる端子が予め指定されていたた
め、フラッシュ・マイコンの汎用性に問題点があった。
たとえば、構成の異なる複数の装置又はシステムに同一
のフラッシュ・マイコンを使用する場合は、その装置等
の構成により、ハンドシェーク端子として選ばれるポー
ト端子が異なることがあった。
However, the conventional on-board writing apparatus has a problem in the versatility of the flash microcomputer because the terminal used for the handshake signal in the general-purpose port is specified in advance.
For example, when the same flash microcomputer is used for a plurality of devices or systems having different configurations, the port terminal selected as the handshake terminal may differ depending on the configuration of the device or the like.

【0013】一方、フラッシュ・マイコンにおいては、
通常、複数のポート端子をハンドシェーク端子として同
時に選択できない。このため、フラッシュ・マイコンに
記憶される制御プログラムの作成の際に、使用される装
置やシステムを特定できないときは、フラッシュ・マイ
コンの開発時に、一つのポート端子を任意かつ強制的に
ハンドシェーク端子として指定していた。
On the other hand, in a flash microcomputer,
Usually, a plurality of port terminals cannot be selected simultaneously as a handshake terminal. For this reason, when creating a control program to be stored in the flash microcomputer, if the device or system to be used cannot be specified, one port terminal can be used as a handshake terminal arbitrarily and forcibly during the development of the flash microcomputer. Was specified.

【0014】したがって、強制的にハンドシェーク端子
が指定されたフラッシュ・マイコンは、たとえば、ある
システムには使用可能であっても他のシステムには使用
できないということがあった。この場合は、他のシステ
ムの構成を変更するか、使用を断念しなければならなか
った。
Therefore, a flash microcomputer whose handshake terminal is forcibly specified may be usable for a certain system but cannot be used for another system. In this case, the configuration of another system had to be changed or the use had to be abandoned.

【0015】また、同一の装置又はシステムに、異なる
フラッシュ・マイコンを使用する場合は、マイコンXの
使用は可能であっても、マイコンYはハンドシェーク端
子の相違により不可能となる場合があった。特に、マイ
コンYがマイコンXよりも性能が高い場合は、装置又は
システムの品質を向上させることができないか、装置等
の構成を変更しなければならないことがあった。
Further, when different flash microcomputers are used for the same device or system, there is a case where the microcomputer Y cannot be used due to the difference of the handshake terminal even though the microcomputer X can be used. In particular, when the performance of the microcomputer Y is higher than that of the microcomputer X, the quality of the device or system cannot be improved, or the configuration of the device or the like must be changed.

【0016】また、従来の製品となるボード上には、オ
ンボード書き込み時にのみ、汎用ポートの一つをハンド
シェーク端子として使用できるように、切替回路を付加
したものがあった。しかし、切替回路の付加は、製品の
コスト・アップにつながっていた。
On the other hand, a conventional product board has a switching circuit added so that one of the general-purpose ports can be used as a handshake terminal only during on-board writing. However, the addition of the switching circuit has led to an increase in product cost.

【0017】本発明は、上記の問題を解決すべくなされ
たものであり、開発・製造後のフラッシュ・マイコンに
おいて、複数の汎用ポートの中から任意のものをハンド
シェーク端子として選択可能とすることで、構成の異な
る装置又はシステムのいずれにも対応可能なオンボード
書き込み装置、フラッシュ・マイコン及びハンドシェー
ク端子選択方法の提供を目的とする。
The present invention has been made to solve the above-described problem. In a flash microcomputer developed and manufactured, an arbitrary one of a plurality of general-purpose ports can be selected as a handshake terminal. It is another object of the present invention to provide an on-board writing device, a flash microcomputer, and a handshake terminal selection method that can support any device or system having a different configuration.

【0018】なお、データ転送に関する従来技術の一例
が、特開昭63−36304号公報に、プログラマブル
・コントローラ・システムとして開示されている。この
公報に開示のプログラマブル・コントローラ・システム
によれば、データ転送時のハンドシェーク信号処理を専
用の命令を使ってデータ転送することで、プログラマが
ハンドシェーク信号を直接アクセスすること無しにハン
ドシェーク付きのデータ転送を可能とする。
An example of a prior art relating to data transfer is disclosed in Japanese Patent Application Laid-Open No. 63-36304 as a programmable controller system. According to the programmable controller system disclosed in this publication, the data transfer with the handshake is performed without the programmer directly accessing the handshake signal by performing the data transfer using the dedicated instruction for the handshake signal processing at the time of the data transfer. Make it possible.

【0019】しかし、特開昭63−36304号公報の
プログラマブル・コントローラ・システムには、汎用ポ
ートにおけるハンドシェーク信号端子の選択についてな
んら記述されていないため、上記目的を達成することは
できなかった。
However, in the programmable controller system disclosed in JP-A-63-36304, the selection of the handshake signal terminal in the general-purpose port is not described at all, so that the above object cannot be achieved.

【0020】また、データ転送に関する他の例が特開平
8−44665号公報に複数のデータ転送サイズ及びプ
ロトコルをサポートするバスとして開示されている。こ
の公報に開示の複数のデータ転送サイズ及びプロトコル
をサポートするバスは、データ転送を制御するマスタ要
素を含むとともに、一又は二以上のスレーブ要素が接続
されたバスにより、各スレーブ要素に共通のデータライ
ンの集合を介し、マスタによって、データ転送する構成
としてある。このような構成により、各種サイズの非同
期データ転送、同期データ転送、及び高速同期データ転
送をバスを提供することができる。
Another example of data transfer is disclosed in Japanese Patent Application Laid-Open No. Hei 8-44665 as a bus supporting a plurality of data transfer sizes and protocols. A bus that supports a plurality of data transfer sizes and protocols disclosed in this publication includes a master element that controls data transfer, and a bus to which one or more slave elements are connected. The master is configured to transfer data via a set of lines. With such a configuration, a bus can be provided for asynchronous data transfer, synchronous data transfer, and high-speed synchronous data transfer of various sizes.

【0021】しかし、特開平8−44665号公報の複
数のデータ転送サイズ及びプロトコルをサポートするバ
スには、ハンドシェーク信号に似たものとしてレディ信
号が記載されているが、このレディ信号を扱う端子を任
意に選択する方法についてはなんら開示されていないた
め、上記目的を達成することはできなかった。
However, a ready signal is described as similar to a handshake signal in a bus supporting a plurality of data transfer sizes and protocols disclosed in Japanese Patent Application Laid-Open No. Hei 8-44665. Since the method of arbitrarily selecting is not disclosed at all, the above object could not be achieved.

【0022】さらに、データ書き込みの他の従来例が特
開平9−134339号公報にフラッシュメモリ内蔵マ
イクロコンピュータ及びそのテスト方法として開示され
ている。この公報に開示のフラッシュメモリ内蔵マイク
ロコンピュータ及びテスト方法は、テストモードの有す
るエミュレーションテストモードにおいて、この入出力
ポートと接続する外部メモリに、入出力ポートを介し
て、書き込み用ROM部に格納されている書き込み用プ
ログラムと同一のプログラムを格納することで、オンボ
ード書き込み動作モードの構成と同一のものとしてい
る。
Further, another conventional example of data writing is disclosed in JP-A-9-134339 as a microcomputer with a built-in flash memory and a test method therefor. The microcomputer with a built-in flash memory and the test method disclosed in this publication include a test mode stored in a write ROM section via an input / output port in an external memory connected to the input / output port in an emulation test mode of the test mode. By storing the same program as the write program, the configuration is the same as that of the on-board write operation mode.

【0023】そして、書き込み用プログラムによる実使
用状態でのエミュレーションテスト、各部ハードウェア
の良否の判定及び書き込み用プログラムのデバッグを可
能とする。しかし、特開平9−134339号公報のフ
ラッシュメモリ内蔵マイクロコンピュータ及びそのテス
ト方法においても、ハンドシェーク信号端子の選択方法
に関することはなんら記述されていないため、上記目的
を達成することはできなかった。
Then, the emulation test in the actual use state by the writing program, the judgment of the quality of each hardware, and the debugging of the writing program can be performed. However, even in the microcomputer with a built-in flash memory and its test method disclosed in Japanese Patent Application Laid-Open No. 9-134339, the above-mentioned object could not be achieved because there is no description about a method of selecting a handshake signal terminal.

【0024】[0024]

【課題を解決するための手段】上記目的を達成するた
め、本発明の請求項1記載のオンボード書き込み装置
は、オンボード書き込みされる不揮発性半導体メモリが
内蔵され、かつシリアル送受信部、フラッシュ・マイコ
ン制御手段及び複数のポート端子を有するフラッシュ・
マイコンと、不揮発性半導体メモリへのデータ書き込み
を行うフラッシュ・ライタとを含むオンボード書き込み
装置であって、フラッシュ・ライタが、複数のポート端
子の中からハンドシェーク信号の送受信に用いるハンド
シェーク端子を指定するハンドシェーク端子情報を生成
し、フラッシュ・マイコンにおけるフラッシュ・マイコ
ン制御手段が、フラッシュ・ライタで生成されたハンド
シェーク端子情報を入力するとともに、この入力したハ
ンドシェーク端子情報により指定されたハンドシェーク
端子を初期化し、かつハンドシェーク端子情報を受信し
たことを示す端子情報受信信号を生成し、フラッシュ・
ライタが、フラッシュ・マイコン制御手段において生成
された端子情報受信信号を入力した後、ハンドシェーク
端子を用いて、ハンドシェーク信号による書き込みデー
タの高速通信を行う構成としてある。
According to a first aspect of the present invention, there is provided an on-board writing apparatus which has a built-in nonvolatile semiconductor memory for on-board writing, a serial transmission / reception unit, and a flash memory. Flash having microcomputer control means and a plurality of port terminals
An on-board writing device including a microcomputer and a flash writer for writing data to a nonvolatile semiconductor memory, wherein the flash writer specifies a handshake terminal used for transmitting and receiving a handshake signal from a plurality of port terminals The handshake terminal information is generated, the flash microcomputer control means in the flash microcomputer inputs the handshake terminal information generated by the flash writer, initializes the handshake terminal specified by the input handshake terminal information, and Generates a terminal information reception signal indicating that the handshake terminal information has been received, and
After the writer inputs the terminal information reception signal generated by the flash microcomputer control means, the writer performs high-speed communication of write data by the handshake signal using the handshake terminal.

【0025】オンボード書き込み装置をこのような構成
とすると、開発・製造されたフラッシュ・マイコンにお
いて、フラッシュ・ライタで生成されたハンドシェーク
端子情報により、汎用ポートの中からハンドシェーク端
子とするものを選択できるため、使用される装置又はシ
ステムの構成に対応するポート端子をハンドシェーク端
子とすることができる。したがって、使用される装置や
システムの構成にかかわらず、本発明のフラッシュ・マ
イコンの使用が可能なことから、フラッシュ・マイコン
の汎用性の向上を図ることができる。
When the on-board writing device is configured as described above, in the flash microcomputer developed and manufactured, a handshaking terminal can be selected from general-purpose ports based on handshaking terminal information generated by the flash writer. Therefore, a port terminal corresponding to the configuration of the device or system used can be a handshake terminal. Therefore, the flash microcomputer of the present invention can be used irrespective of the configuration of the device or system used, and the versatility of the flash microcomputer can be improved.

【0026】また、請求項2記載のオンボード書き込み
装置は、フラッシュ・ライタが、書き込みデータの送受
信の同期をとるための同期検出用データを生成し、フラ
ッシュ・マイコン制御手段が、シリアル送受信部を初期
化するとともに、この初期化されたシリアル送受信部を
介してフラッシュ・ライタで生成された同期検出用デー
タを入力し、かつこの入力した同期検出用データに対す
る同期確認用データを生成し、フラッシュ・ライタが、
フラッシュ・マイコンにおいて生成された同期確認用デ
ータを入力して同期判断を行う構成としてある。
According to a second aspect of the present invention, in the on-board writing apparatus, the flash writer generates synchronization detection data for synchronizing transmission and reception of the write data, and the flash microcomputer control means controls the serial transmission / reception unit. Initialize and input the synchronization detection data generated by the flash writer via the initialized serial transmission / reception unit, and generate synchronization confirmation data for the input synchronization detection data, Writer
The configuration is such that synchronization confirmation data generated by the flash microcomputer is input to determine synchronization.

【0027】オンボード書き込み装置をこのような構成
とすれば、ハンドシェーク端子の選択に必要なハンドシ
ェーク端子情報を、初期化されたシリアル送受信部にお
いて受け取ることができる。
If the on-board writing device has such a configuration, handshaking terminal information necessary for selecting a handshaking terminal can be received by the initialized serial transmission / reception unit.

【0028】また、請求項3記載のオンボード書き込み
装置は、ハンドシェーク端子情報が、フラッシュ・マイ
コンのピン番号からなる構成としてある。また、請求項
4記載のオンボード書き込み装置は、ハンドシェーク端
子情報が、フラッシュ・マイコンの構成により割り振ら
れたポート番号からなる構成としてある。
Further, in the on-board writing device according to the third aspect, the handshake terminal information is constituted by a pin number of a flash microcomputer. Further, in the on-board writing device according to the fourth aspect, the handshake terminal information is constituted by a port number allocated by the configuration of the flash microcomputer.

【0029】ハンドシェーク端子情報をこれらのような
構成とすれば、ハンドシェーク端子とするものを複数の
ポート端子のなかから特定することができる。また、ハ
ンドシェーク端子の指定において、既知のデータをハン
ドシェーク端子情報として用いることができる。
If the handshake terminal information is configured as described above, a handshake terminal can be specified from among a plurality of port terminals. Further, in specifying the handshake terminal, known data can be used as handshake terminal information.

【0030】また、請求項5記載のフラッシュ・マイコ
ンは、フラッシュ・ライタによりオンボード書き込みさ
れる不揮発性半導体メモリが内蔵され、かつシリアル送
受信部、フラッシュ・マイコン制御手段及び複数のポー
トを有するフラッシュ・マイコンであって、シリアル送
受信部が、複数のポート端子の中からハンドシェーク信
号の送受信に用いるハンドシェーク端子を指定するハン
ドシェーク端子情報をフラッシュ・ライタから入力し、
フラッシュ・マイコン制御手段が、シリアル送受信部で
入力されたハンドシェーク端子情報を受け取るととも
に、この受け取ったハンドシェーク端子情報の指定する
ハンドシェーク端子を初期化し、かつこの初期化したハ
ンドシェーク端子を介してハンドシェーク信号を送受信
する構成としてある。
A flash microcomputer according to a fifth aspect of the present invention has a built-in nonvolatile semiconductor memory on-board written by a flash writer, and has a serial transmission / reception unit, flash microcomputer control means, and a plurality of ports. A microcomputer, wherein the serial transmission / reception unit inputs handshake terminal information specifying a handshake terminal used for transmission / reception of a handshake signal from a plurality of port terminals from a flash writer,
The flash microcomputer control means receives the handshake terminal information input by the serial transmission / reception unit, initializes the handshake terminal specified by the received handshake terminal information, and transmits / receives a handshake signal via the initialized handshake terminal. There is a configuration to do.

【0031】フラッシュ・マイコンをこのような構成と
すると、開発・製造されたフラッシュ・マイコンに対し
て、複数のポート端子のうちハンドシェーク端子として
用いるものを指定するハンドシェーク端子情報を送信す
ることにより、指定されたポートをハンドシェーク端子
として使用可能となる。したがって、フラッシュ・ライ
タのユーザが、任意に選択したポートをハンドシェーク
端子とすることができる。このため、構成の異なる装置
又はシステムに対しても、本発明のフラッシュ・マイコ
ンを汎用することができる。
When the flash microcomputer has such a configuration, handshaking terminal information for designating one of a plurality of port terminals to be used as a handshake terminal is transmitted to the developed and manufactured flash microcomputer, so that the flash microcomputer is designated. The used port can be used as a handshake terminal. Therefore, the port arbitrarily selected by the user of the flash writer can be used as the handshake terminal. For this reason, the flash microcomputer of the present invention can be generally used for devices or systems having different configurations.

【0032】また、請求項6記載のフラッシュ・マイコ
ンは、フラッシュ・マイコン制御部が、シリアル送受信
部におけるハンドシェーク端子情報の入力前に、シリア
ル送受信部を初期化する構成としてある。フラッシュ・
マイコンをこのような構成とすれば、ハンドシェーク端
子を決定する前にシリアル受信部が初期化されるため、
その後のハンドシェーク端子情報の入力経路を確保する
ことができる。
Further, the flash microcomputer according to the present invention is configured such that the flash microcomputer control unit initializes the serial transmission / reception unit before inputting handshake terminal information in the serial transmission / reception unit. flash·
With such a configuration of the microcomputer, the serial receiving unit is initialized before determining the handshake terminal,
An input path for subsequent handshake terminal information can be secured.

【0033】また、請求項7記載のハンドシェーク端子
選択方法は、フラッシュ・ライタにより書き込みされる
データの高速通信に用いられるハンドシェーク信号を送
受信するハンドシェーク端子を、フラッシュ・マイコン
に設けられた複数のポート端子の中から選択するハンド
シェーク端子決定方法であって、フラッシュ・ライタ
が、複数のポート端子の中からハンドシェーク端子とし
て用いるものを指定するハンドシェーク端子情報を生成
する処理と、フラッシュ・マイコンが、フラッシュ・ラ
イタにおいて生成されたハンドシェーク端子情報を入力
し、この入力したハンドシェーク端子情報の指定するハ
ンドシェーク端子を初期化し、この初期化したハンドシ
ェーク端子を用いてハンドシェーク信号を送受信する処
理とを含む構成としてある。
According to another aspect of the present invention, a handshake terminal for transmitting / receiving a handshake signal used for high-speed communication of data written by a flash writer is provided with a plurality of port terminals provided in a flash microcomputer. A method for determining a handshake terminal from among a plurality of port terminals, wherein the flash writer generates handshake terminal information for designating a terminal to be used as a handshake terminal from a plurality of port terminals; and Inputting the handshake terminal information generated in the above, initializing a handshake terminal specified by the input handshake terminal information, and transmitting and receiving a handshake signal using the initialized handshake terminal. A.

【0034】ハンドシェーク端子選択方法をこのような
構成とすれば、受信したハンドシェーク端子情報によ
り、複数のポートの中から指定されたものをハンドシェ
ーク端子として選択することができる。よって、フラッ
シュ・ライタのユーザが、ハンドシェーク端子情報に、
フラッシュ・マイコンの使用する装置又はシステムの構
成に対応する任意のポートを指定することにより、その
装置等に当該フラッシュ・マイコンを使用することがで
きる。
With such a configuration of the handshake terminal selection method, a handshake terminal selected from a plurality of ports can be selected based on the received handshake terminal information. Therefore, the user of the flash writer adds
By specifying an arbitrary port corresponding to the configuration of the device or system used by the flash microcomputer, the flash microcomputer can be used for the device or the like.

【0035】[0035]

【発明の実施の形態】以下、本発明の実施の形態につい
て、図面を参照して説明する。 [実施形態]まず、本発明のオンボード書き込み装置、
フラッシュ・メモリ及びハンドシェーク端子選択方法の
実施形態について、図1及び図2を参照して説明する。
図1及び図2は、それぞれ本実施形態のオンボード書き
込み装置、フラッシュ・ライタの内部構成を示すブロッ
ク図である。
Embodiments of the present invention will be described below with reference to the drawings. [Embodiment] First, an on-board writing device of the present invention,
An embodiment of a flash memory and a handshake terminal selection method will be described with reference to FIGS.
1 and 2 are block diagrams showing the internal configurations of the on-board writing device and the flash writer of this embodiment, respectively.

【0036】図1に示すように、オンボード書き込み装
置1は、フラッシュ・マイコン(フラッシュメモリ内蔵
マイクロコンピュータ)10と、フラッシュ・ライタ2
0とを有している。ここで、フラッシュ・マイコン10
は、シリアル送受信部11と、フラッシュ・メモリ部1
2と、ポート部13と、フラッシュ・メモリ制御手段1
4とを有している。
As shown in FIG. 1, the on-board writing device 1 includes a flash microcomputer (microcomputer with a built-in flash memory) 10 and a flash writer 2
0. Here, the flash microcomputer 10
Are the serial transmission / reception unit 11 and the flash memory unit 1
2, port unit 13, flash memory control means 1
And 4.

【0037】シリアル送受信部11は、フラッシュ・ラ
イタ20との間で各種コマンドや端子情報などを送受信
する。各種コマンドなどの送受信に用いられる経路に
は、3線式シリアル通信の場合、SCK(シリアルクロ
ック)、SI(シリアルインプット)、SO(シリアル
アウトプット)がある。
The serial transmission / reception unit 11 transmits / receives various commands and terminal information to / from the flash writer 20. Paths used for transmission and reception of various commands include SCK (serial clock), SI (serial input), and SO (serial output) in the case of three-wire serial communication.

【0038】フラッシュ・メモリ部12(不揮発性半導
体メモリ)は、フラッシュ・ライタ20から出力される
各種コマンドにより、記憶されているデータの書き換
え、読み出し、消去、初期化などが行われる。なお、本
明細書においては、不揮発性半導体メモリであるフラッ
シュ・メモリを内蔵したフラッシュ・マイコンについて
説明するが、フラッシュ・メモリ部12には、フラッシ
ュ・メモリに代えて、他の不揮発性半導体メモリである
強誘電体メモリ、磁気メモリ(コアメモリ)、あるいは
メモリセルにMOSトランジスタやバイポーラトランジ
スタを用いたROMなどを設けることができる。
The flash memory unit 12 (nonvolatile semiconductor memory) performs rewriting, reading, erasing, initialization, and the like of stored data by various commands output from the flash writer 20. In this specification, a flash microcomputer having a built-in flash memory, which is a nonvolatile semiconductor memory, will be described. However, in the flash memory unit 12, instead of the flash memory, another nonvolatile semiconductor memory is used. A certain ferroelectric memory, a magnetic memory (core memory), a ROM using a MOS transistor or a bipolar transistor in a memory cell, or the like can be provided.

【0039】ポート部13は、複数のポート端子からな
る。この複数のポート端子のうち一つの端子が、フラッ
シュ・ライタ20とシリアル送受信部11とのデータ通
信を高速に行うためのハンドシェーク用信号を入出力す
るハンドシェーク端子となる。
The port section 13 includes a plurality of port terminals. One of the plurality of port terminals is a handshake terminal for inputting and outputting a handshake signal for performing high-speed data communication between the flash writer 20 and the serial transmission / reception unit 11.

【0040】フラッシュ・メモリ制御手段14は、シリ
アル送受信制御部14−1と、フラッシュ・メモリ制御
部14−2と、ポート制御部14−3とを有している。
シリアル送受信制御部14−1は、シリアル送受信部1
1の初期化を行う。また、シリアル送受信制御部14−
1は、及びシリアル送受信部11で入力されたデータ及
び各種コマンドをフラッシュ・メモリ制御部14−2へ
送る。
The flash memory controller 14 has a serial transmission / reception controller 14-1, a flash memory controller 14-2, and a port controller 14-3.
The serial transmission / reception control unit 14-1 includes the serial transmission / reception unit 1
1 is initialized. The serial transmission / reception control unit 14-
1 sends the data and various commands input by the serial transmission / reception unit 11 to the flash memory control unit 14-2.

【0041】フラッシュ・メモリ制御部14−2は、各
種コマンドを解析するとともに、フラッシュ・メモリ部
12へのデータ書き換え、読み出しなどを行う。ポート
制御部14−3は、ポート部13において管理されてい
る複数のポート端子のうち、ハンドシェーク端子情報に
よりハンドシェーク端子とするものを選択する。また、
ポート制御部14−3は、ハンドシェーク端子の選択及
び初期化を行う。
The flash memory control unit 14-2 analyzes various commands and performs data rewriting and reading of the flash memory unit 12. The port control unit 14-3 selects one of the plurality of port terminals managed by the port unit 13 to be a handshake terminal based on the handshake terminal information. Also,
The port control unit 14-3 selects and initializes a handshake terminal.

【0042】フラッシュ・ライタ20は、図2に示すよ
うに、ライタ制御用マイコン21と、フラッシュROM
22とを有している。ライタ制御用マイコン21は、C
PU21−1と、RAM21−2と、シリアルインタフ
ェース21−3と、タイマ21−4と、送受信部21−
5とを有している。
As shown in FIG. 2, the flash writer 20 comprises a writer control microcomputer 21 and a flash ROM
22. The microcomputer 21 for controlling the writer
PU 21-1, RAM 21-2, serial interface 21-3, timer 21-4, transmitting / receiving unit 21-
5 is provided.

【0043】また、フラッシュ・ライタ20は、フラッ
シュ・マイコン10へ各種コマンドを送信して、フラッ
シュ・メモリ部12に対するデータの書き込み、消去、
データ・ベリファイ等の各種制御を行う。フラッシュR
OM22は、フラッシュ・ライタ部20の手続き処理及
び各種コマンド(同期検出用データ、ハンドシェーク設
定コマンド及びハンドシェーク端子情報)の生成を行
う。
The flash writer 20 sends various commands to the flash microcomputer 10 to write, erase, and delete data in the flash memory unit 12.
Performs various controls such as data verification. Flash R
The OM 22 performs procedural processing of the flash writer unit 20 and generates various commands (synchronization detection data, a handshake setting command, and handshake terminal information).

【0044】フラッシュROM22において生成される
各種コマンドのうちハンドシェーク端子情報は、図示し
ないフラッシュ・ライタ20の入力部からユーザにより
入力され、又はフラッシュ・ライタ20を動作制御する
プログラムに組み込まれたデータ(端子指定データ)に
より構成される。この端子指定データは、複数のポート
端子のうち、ハンドシェーク端子として使用するものを
示す番号からなる。
The handshake terminal information among various commands generated in the flash ROM 22 is input by a user from an input unit of the flash writer 20 (not shown) or data (terminals) incorporated in a program for controlling the operation of the flash writer 20. Specified data). The terminal designation data includes a number indicating a port terminal to be used as a handshake terminal among a plurality of port terminals.

【0045】なお、各種コマンドのうち同期検出用デー
タ及びハンドシェーク設定コマンドについては、後述す
る同期判断及びハンドシェーク端子選択方法において説
明する。
The synchronization detection data and the handshake setting command among the various commands will be described later in a method for determining synchronization and selecting a handshake terminal.

【0046】次に、本実施形態のハンドシェーク端子選
択方法によるオンボード書き込み装置の動作について、
図3を参照して説明する。同図は、本実施形態のハンド
シェーク端子選択方法によるオンボード書き込み装置の
動作を示す動作手順図である。なお、以下の説明におい
てオンボード書き込み装置は、3線式シリアル通信を採
用したものとするが、3線式シリアル通信に限るもので
はない。
Next, the operation of the on-board writing device according to the handshake terminal selection method of this embodiment will be described.
This will be described with reference to FIG. FIG. 11 is an operation procedure diagram showing the operation of the on-board writing device according to the handshake terminal selection method of the present embodiment. In the following description, the on-board writing device employs three-wire serial communication, but is not limited to three-wire serial communication.

【0047】フラッシュ・マイコン10のシリアル送受
信制御部14−1において、シリアル送受信部11の初
期化が行われる(ステップ10)。この初期化により、
フラッシュ・マイコン10とフラッシュ・ライタ20と
の間でハンドシェークを行わない通信ができるように設
定される。初期化終了後、シリアル送受信制御部14−
1において、シリアル通信動作が許可されて、フラッシ
ュ・ライタ20との通信が開始される(ステップ1
2)。
The serial transmission / reception unit 14-1 of the flash microcomputer 10 initializes the serial transmission / reception unit 11 (step 10). With this initialization,
It is set so that communication without performing handshake can be performed between the flash microcomputer 10 and the flash writer 20. After the initialization is completed, the serial transmission / reception controller 14-
1, the serial communication operation is permitted, and communication with the flash writer 20 is started (step 1).
2).

【0048】同期検出のための特定データ(同期検出用
データ)が、フラッシュ・ライタ20からシリアル送受
信部11へ送られる(A10)。シリアル送受信部11
で受信された同期検出用データが、シリアル送受信制御
部14−1に入力される。
Specific data for synchronization detection (data for synchronization detection) is sent from the flash writer 20 to the serial transmission / reception unit 11 (A10). Serial transmission / reception unit 11
Is input to the serial transmission / reception control unit 14-1.

【0049】シリアル送受信制御部14−1において、
シリアル送受信部11に対する返信用信号(同期確認用
データ)が、シリアル送受信部11を介してフラッシュ
・ライタ20へ送られる(A12)。フラッシュ・ライ
タ20において、受信された同期確認用データにより、
同期がとれているか否かが判断される(ステップ1
4)。なお、フラッシュ・ライタ20における同期判断
の詳細については、後述する。
In the serial transmission / reception controller 14-1,
A reply signal (synchronization confirmation data) to the serial transmission / reception unit 11 is sent to the flash writer 20 via the serial transmission / reception unit 11 (A12). In the flash writer 20, the received synchronization confirmation data
It is determined whether synchronization has been achieved (step 1).
4). The details of the synchronization determination in the flash writer 20 will be described later.

【0050】判断の結果、同期がとれているときは、ハ
ンドシェーク方式による書き込みデータの送受信を開始
するためのハンドシェーク設定コマンドが、シリアル送
受信部11へ送られる(A14)。一方、同期がとれて
いないときは、再度、同期確認のために同期検出用デー
タがシリアル送受信部11へ送られる。
If the result of the determination is that synchronization has been established, a handshake setting command for starting transmission / reception of write data by the handshake method is sent to the serial transmission / reception section 11 (A14). On the other hand, when synchronization is not established, synchronization detection data is sent to the serial transmission / reception unit 11 again for synchronization confirmation.

【0051】シリアル送受信部11で受信されたハンド
シェーク設定コマンドが、シリアル送受信制御部14−
1に入力される。このハンドシェーク設定コマンドの入
力により、フラッシュ・ライタ20からフラッシュ・マ
イコン10に対し、書き込みデータの送信時にハンドシ
ェーク方式により高速通信を行う旨が示されることにな
る。
The handshake setting command received by the serial transmission / reception unit 11 is transmitted to the serial transmission / reception control unit 14-
1 is input. By inputting the handshake setting command, the flash writer 20 indicates to the flash microcomputer 10 that high-speed communication is to be performed by the handshake method when transmitting write data.

【0052】このハンドシェーク設定コマンドが受信さ
れたシリアル送受信制御部14−1において、ハンドシ
ェーク端子設定処理への移行が行われる(ステップ1
6)。具体的には、図2に示すフラッシュ・ライタ20
のBUSY端子が有効状態に設定される。この設定によ
り、フラッシュ・マイコン10からフラッシュ・ライタ
20へ、BUSY端子を介して、BUSY状態である旨
を知らせることが可能となる。
The serial transmission / reception control unit 14-1 having received the handshake setting command shifts to a handshake terminal setting process (step 1).
6). Specifically, the flash writer 20 shown in FIG.
BUSY terminal is set to a valid state. This setting allows the flash microcomputer 10 to notify the flash writer 20 of the BUSY state via the BUSY terminal.

【0053】また、シリアル送受信制御部14−1にお
けるハンドシェーク設定コマンドの受信により、ハンド
シェーク設定コマンドを正常に受信されたことを示すA
CK信号(コマンド受信信号)が、シリアル送受信制御
部14−1からフラッシュ・ライタ20へ送られる(A
16)。
The reception of the handshake setting command in the serial transmission / reception controller 14-1 indicates that the handshake setting command has been normally received.
The CK signal (command reception signal) is sent from the serial transmission / reception control unit 14-1 to the flash writer 20 (A
16).

【0054】フラッシュ・ライタ20のフラッシュRO
M22においてコマンド受信信号が受け取られると、ポ
ート部13が有する複数のポート端子の中からハンドシ
ェーク端子とするものを指定するハンドシェーク端子情
報が生成される。この生成されたハンドシェーク端子情
報がシリアル送受信部11へ送られる(A18)。
Flash RO of flash writer 20
When the command reception signal is received in M22, handshake terminal information for designating a handshake terminal from among a plurality of port terminals of the port unit 13 is generated. The generated handshake terminal information is sent to the serial transmission / reception unit 11 (A18).

【0055】シリアル送受信部11で受け取られたハン
ドシェーク端子情報が、シリアル送受信制御部14−1
に入力される。なお、ハンドシェーク端子情報の詳細に
ついては、後述する。
The handshake terminal information received by the serial transmission / reception unit 11 is transmitted to the serial transmission / reception control unit 14-1.
Is input to The details of the handshake terminal information will be described later.

【0056】シリアル送受信制御部14−1において、
ハンドシェーク端子情報がシリアル送受信部11で正常
に受信されたことを示すACK信号(端子情報受信信
号)が、フラッシュ・ライタ20へ、シリアル送受信部
11及びフラッシュ・マイコン10のSO端子を介して
送られる(A20)。
In the serial transmission / reception control unit 14-1,
An ACK signal (terminal information reception signal) indicating that the handshake terminal information has been normally received by the serial transmission / reception unit 11 is sent to the flash writer 20 via the serial transmission / reception unit 11 and the SO terminal of the flash microcomputer 10. (A20).

【0057】シリアル送受信制御部14−1で入力され
たハンドシェーク端子情報が、ポート制御部14−3に
おいて入力され、ポート部13の有する複数のポート端
子の中から、ハンドシェーク端子情報の示すハンドシェ
ーク端子が決定される(ステップ18)。決定されたハ
ンドシェーク端子が、ポート制御部14−3によりハン
ドシェーク動作を行うために初期化され、書き込みデー
タの高速通信のためのハンドシェーク信号が送受信され
る。
The handshake terminal information input by the serial transmission / reception control unit 14-1 is input by the port control unit 14-3, and the handshake terminal indicated by the handshake terminal information is selected from a plurality of port terminals of the port unit 13. It is determined (step 18). The determined handshake terminal is initialized by the port control unit 14-3 to perform a handshake operation, and a handshake signal for high-speed communication of write data is transmitted and received.

【0058】次に、フラッシュ・ライタ20における同
期判断について、図4を参照して説明する。同図に示す
ように、同期判断は、フラッシュ・ライタ20が、送信
した同期検出用データに対して返送されてきたフラッシ
ュ・マイコン10からの同期確認用データを受信するこ
とで、フラッシュ・ライタ20とフラッシュ・マイコン
10との間の通信同期をとる処理である。
Next, synchronization determination in the flash writer 20 will be described with reference to FIG. As shown in the figure, the synchronization determination is performed by the flash writer 20 receiving the synchronization confirmation data from the flash microcomputer 10 returned from the transmitted synchronization detection data. This is a process for establishing communication synchronization between the flash microcomputer 10 and the flash microcomputer 10.

【0059】同期判断は、フラッシュ・ライタ20から
フラッシュ・マイコン10に対し、電源投入、フラッシ
ュ・マイコン10のリセットを行った後、最初の通信時
に行われる。最初の通信時は、通常、フラッシュ・ライ
タ20からフラッシュ・マイコン10に対してハンドシ
ェークを行う旨の指示ができないことから、ハンドシェ
ークを行わない状態で同期判断が行われる。
The synchronization is determined at the first communication after the power is turned on from the flash writer 20 to the flash microcomputer 10 and the flash microcomputer 10 is reset. At the time of the first communication, since the flash writer 20 cannot normally instruct the flash microcomputer 10 to perform the handshake, the synchronization determination is performed without performing the handshake.

【0060】同期判断の動作は、以下のように行われ
る。まず、同期検出用データ(例えば“00H”)が、
通信用クロック(CLK)の出力に同期して、フラッシ
ュ・ライタ20からフラッシュ・マイコン10のシリア
ル送受信制御部14−1へ送られる。同期検出用データ
が受信されたシリアル送受信制御部14−1において、
同期確認用データ(例えば“3CH”)の出力の準備が
行われる。
The operation of the synchronization determination is performed as follows. First, the synchronization detection data (for example, “00H”)
The data is sent from the flash writer 20 to the serial transmission / reception control unit 14-1 of the flash microcomputer 10 in synchronization with the output of the communication clock (CLK). In the serial transmission / reception control unit 14-1 receiving the synchronization detection data,
Preparation for outputting synchronization confirmation data (for example, “3CH”) is performed.

【0061】一定時間経過後、フラッシュ・ライタ20
からフラッシュ・マイコン10へ通信用クロックが出力
される。通信用クロックの入力にともない、シリアル送
受信制御部14−1において準備された同期確認用デー
タがフラッシュ・ライタ20へ送られる。
After a certain period of time, the flash writer 20
Outputs a communication clock to the flash microcomputer 10. With the input of the communication clock, the synchronization confirmation data prepared in the serial transmission / reception control unit 14-1 is sent to the flash writer 20.

【0062】フラッシュ・ライタ20において、受信さ
れた同期確認用データと同期検出用データとが比較され
る。比較の結果、各データが一致している場合は、通信
同期がとれていると判断される。
In the flash writer 20, the received synchronization confirmation data and the synchronization detection data are compared. As a result of the comparison, if the data match, it is determined that communication synchronization has been established.

【0063】フラッシュ・ライタ20において同期がと
れていると判断されると、続いてハンドシェーク設定コ
マンドがフラッシュ・マイコン10へ送られて、ハンド
シェーク方式へ移行準備が行われる。一方、一致してい
ない場合は、一定時間経過後、再度同期検出用データが
出力されて、通信同期がとられるまで繰り返される。
When the flash writer 20 determines that synchronization has been achieved, a handshake setting command is sent to the flash microcomputer 10 to prepare for transition to the handshake method. On the other hand, if they do not match, after a certain period of time, the synchronization detection data is output again, and this operation is repeated until communication synchronization is established.

【0064】次に、ハンドシェーク端子情報について、
図5を参照して説明する。ハンドシェーク端子情報は、
フラッシュ・マイコン10のポート部13が有する複数
のポート端子(入力端子又は入出力ポート)の中から、
ハンドシェーク信号の送受信に使用するものを指定する
データである。
Next, regarding the handshake terminal information,
This will be described with reference to FIG. The handshake terminal information is
From a plurality of port terminals (input terminals or input / output ports) of the port unit 13 of the flash microcomputer 10,
This data specifies what is used for transmitting and receiving a handshake signal.

【0065】ハンドシェーク端子情報の構成には、フラ
ッシュ・マイコン10のピン番号をそのまま設定するも
の、又はフラッシュ・マイコン10におけるポート番号
を使用するものなどがある。
The configuration of the handshake terminal information includes a configuration in which the pin number of the flash microcomputer 10 is set as it is and a configuration in which the port number in the flash microcomputer 10 is used.

【0066】このうち、フラッシュ・マイコン10のピ
ン番号を設定する場合、たとえば、図5中の255ピン
をハンドシェーク端子として割り当てるときは、ハンド
シェーク端子情報を“255”(BCD形式)あるいは
“FFH”(16進数データ)とする。なお、ハンドシ
ェーク端子情報が8ビット・データであれば、最大25
5ピンのフラッシュ・マイコン10に対応可能である。
When the pin number of the flash microcomputer 10 is set, for example, when the 255 pin in FIG. 5 is assigned as a handshake terminal, the handshake terminal information is set to “255” (BCD format) or “FFH” ( Hexadecimal data). If the handshake terminal information is 8-bit data, a maximum of 25
It is compatible with a 5-pin flash microcomputer 10.

【0067】一方、ポート番号を使用する場合は、同図
において、BUSY端子として設定される端子が“P2
4”に割り当てられているため、ハンドシェーク端子情
報を“24H”と設定する。
On the other hand, when the port number is used, the terminal set as the BUSY terminal in FIG.
4 ", the handshake terminal information is set to" 24H ".

【0068】このようなハンドシェーク端子情報による
ハンドシェーク用端子の設定は、フラッシュ・マイコン
10を搭載するシステムにより、使用されるハンドシェ
ーク用端子が異なるため、ユーザがフラッシュ・ライタ
20を用いてフラッシュ・マイコン10にプログラム等
を書き込む際に、その都度行われる。
The setting of the handshake terminal based on the handshake terminal information depends on the type of the handshake terminal used depending on the system in which the flash microcomputer 10 is mounted. This is performed each time a program or the like is written in the program.

【0069】次に、ハンドシェーク端子情報によるハン
ドシェーク端子の決定の手順について説明する。ハンド
シェーク端子の決定手順としては、まず、上記構成(こ
こでは、ポート番号“24H”)で設定されたハンドシ
ェーク端子情報が、ハンドシェーク設定コマンドによ
り、フラッシュ・ライタ20からフラッシュ・マイコン
10へ送られる。
Next, a procedure for determining a handshake terminal based on the handshake terminal information will be described. As a procedure for determining a handshake terminal, first, the handshake terminal information set in the above configuration (here, the port number “24H”) is transmitted from the flash writer 20 to the flash microcomputer 10 by a handshake setting command.

【0070】送られたハンドシェーク端子情報が、フラ
ッシュ・マイコン10において解析され、次いでBUS
Y端子が設定された“P24”に接続されていることが
認識される。この認識の後、フラッシュ・マイコン10
とフラッシュ・ライタ20との間で、“P24”端子を
使用したハンドシェークによる高速通信が可能となる。
The sent handshake terminal information is analyzed in the flash microcomputer 10 and then the BUS
It is recognized that the Y terminal is connected to the set “P24”. After this recognition, the flash microcomputer 10
High-speed communication by handshaking using the "P24" terminal is possible between the flash writer 20 and the flash writer 20.

【0071】オンボード書き込み装置をこのような構成
とすれば、従来フラッシュ・マイコンの開発時に決定さ
れていたハンドシェーク端子を、データ書き換え時にお
いてユーザにより複数のポート端子の中から選択するこ
とによっても決定することができる。このため、従来の
フラッシュ・マイコンの問題であった、フラッシュ・マ
イコンの開発時においてハンドシェーク信号端子を装置
やシステムの構成を考慮せず強制的に決定することで制
限されていた汎用性を確保することができる。
If the on-board writing device has such a configuration, the handshake terminal, which was conventionally determined at the time of development of the flash microcomputer, can also be determined by the user selecting from a plurality of port terminals at the time of data rewriting. can do. For this reason, the versatility that was limited by forcibly determining the handshake signal terminal without considering the configuration of the device or system when developing the flash microcomputer, which was a problem of the conventional flash microcomputer, is secured. be able to.

【0072】[0072]

【発明の効果】以上のように、本発明によれば、フラッ
シュ・マイコンにおいて汎用性の弊害となっていたハン
ドシェーク端子の強制決定を、フラッシュ・マイコン搭
載後においてフラッシュ・ライタから入力したハンドシ
ェーク端子情報の示す指定端子を複数のポート端子の中
から選択・決定することにより、構成の異なる装置やシ
ステムに対してもフラッシュ・マイコンの使用が可能と
なるため、汎用性の確保を図ることができる。
As described above, according to the present invention, the forced determination of the handshake terminal, which has been an adverse effect on the versatility of the flash microcomputer, is replaced by the handshake terminal information input from the flash writer after the flash microcomputer is mounted. By selecting and deciding the designated terminal from among a plurality of port terminals, the flash microcomputer can be used for a device or a system having a different configuration, so that versatility can be secured.

【0073】また、フラッシュ・ライタとのデータ通信
の設定段階において、シリアル送受信部の初期化、この
初期化されたシリアル送受信部における同期判断、ハン
ドシェーク設定コマンドによるハンドシェーク方式の設
定、及びハンドシェーク端子情報により指定されたハン
ドシェーク端子の初期化を行う方法とすることで、同期
判断によりデータ通信の同期が確保されるとともに、ハ
ンドシェーク方式を用いた高速通信を実現することがで
きる。
At the stage of setting data communication with the flash writer, initialization of the serial transmission / reception unit, determination of synchronization in the initialized serial transmission / reception unit, setting of a handshake method by a handshake setting command, and handshake terminal information are performed. By using the method of initializing the designated handshake terminal, synchronization of data communication is ensured by the synchronization determination, and high-speed communication using the handshake method can be realized.

【0074】さらに、従来、ある端子について通常は他
の目的に使用し、オンボード書き込み時のみハンドシェ
ーク端子として使用するように切り替えを行う切り替え
回路が不要となるため、製品のコストを低減できる。
Further, conventionally, there is no need for a switching circuit for switching a certain terminal so that it is normally used for another purpose and used as a handshake terminal only during on-board writing, so that the cost of the product can be reduced.

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

【図1】本発明のフラッシュ書き込み通信選択システム
の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a flash write communication selection system of the present invention.

【図2】本発明のフラッシュ・ライタの内部構成を示す
ブロック図である。
FIG. 2 is a block diagram showing an internal configuration of a flash writer of the present invention.

【図3】本発明のオンボード書き込み装置の動作を示す
動作手順図である。
FIG. 3 is an operation procedure diagram showing an operation of the on-board writing device of the present invention.

【図4】同期判断の信号出力を示すタイミング図であ
る。
FIG. 4 is a timing chart showing a signal output of a synchronization determination.

【図5】ハンドシェーク設定コマンドの出力を示すタイ
ミング図である。
FIG. 5 is a timing chart showing an output of a handshake setting command.

【図6】フラッシュ・マイコンのポート端子の構成を示
す構成図である。
FIG. 6 is a configuration diagram showing a configuration of a port terminal of the flash microcomputer.

【図7】従来のオンボード書き込み装置の内部構成を示
すブロック図である。
FIG. 7 is a block diagram showing an internal configuration of a conventional on-board writing device.

【図8】従来のオンボード書き込み装置の動作を示す動
作手順図である。
FIG. 8 is an operation procedure diagram showing an operation of a conventional on-board writing device.

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

1 オンボード書き込み装置 10 フラッシュ・マイコン 11 シリアル送受信部 12 フラッシュ・メモリ部 13 ポート部 14 フラッシュ・マイコン制御部 14−1 シリアル送受信制御部 14−2 フラッシュ・メモリ制御部 14−3 ポート制御部 20 フラッシュ・ライタ 21 ライタ制御用マイコン 21−1 CPU 21−2 RAM 21−3 シリアルI/F 21−4 タイマ 21−5 送受信部 22 フラッシュROM 100 オンボード書き込み装置 110 フラッシュ・マイコン 111 シリアル送受信部 112 フラッシュ・メモリ部 113 ハンドシェーク端子 114 制御手段 114−1 シリアル送受信部 114−2 フラッシュ・メモリ制御部 120 フラッシュ・ライタ DESCRIPTION OF SYMBOLS 1 On-board writing device 10 Flash microcomputer 11 Serial transmission / reception unit 12 Flash memory unit 13 Port unit 14 Flash microcomputer control unit 14-1 Serial transmission / reception control unit 14-2 Flash memory control unit 14-3 Port control unit 20 Flash Writer 21 Writer control microcomputer 21-1 CPU 21-2 RAM 21-3 Serial I / F 21-4 Timer 21-5 Transmitter / receiver 22 Flash ROM 100 On-board writing device 110 Flash microcomputer 111 Serial transmitter / receiver 112 Flash Memory unit 113 Handshake terminal 114 Control unit 114-1 Serial transmission / reception unit 114-2 Flash memory control unit 120 Flash writer

フロントページの続き (72)発明者 齋藤 隆 神奈川県川崎市中原区小杉町一丁目403番 53 日本電気アイシーマイコンシステム株 式会社内 Fターム(参考) 5B003 AA05 AB05 AC06 AD03 5B062 AA03 CC03 EE05 EE06 5B077 AA17 FF11 GG02 GG12 GG16 MM02 NN02 Continuation of the front page (72) Inventor Takashi Saito 1-403, Kosugi-cho, Nakahara-ku, Kawasaki-shi, Kanagawa 53 F-term in NEC Ic Microcomputer System Co., Ltd. 5B003 AA05 AB05 AC06 AD03 5B062 AA03 CC03 EE05 EE06 5B077 AA17 FF11 GG02 GG12 GG16 MM02 NN02

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 オンボード書き込みされる不揮発性半導
体メモリが内蔵され、かつシリアル送受信部、フラッシ
ュ・マイコン制御手段及び複数のポート端子を有するフ
ラッシュ・マイコンと、前記不揮発性半導体メモリへの
データ書き込みを行うフラッシュ・ライタとを含むオン
ボード書き込み装置であって、 前記フラッシュ・ライタが、前記複数のポート端子の中
からハンドシェーク信号の送受信に用いるハンドシェー
ク端子を指定するハンドシェーク端子情報を生成し、 前記フラッシュ・マイコン制御手段が、前記フラッシュ
・ライタで生成された前記ハンドシェーク端子情報を入
力するとともに、この入力したハンドシェーク端子情報
により指定された前記ハンドシェーク端子を初期化し、
かつ前記ハンドシェーク端子情報を受信したことを示す
端子情報受信信号を生成し、 前記フラッシュ・ライタが、前記フラッシュ・マイコン
制御手段から前記端子情報受信信号を入力した後、前記
ハンドシェーク端子を用いて、ハンドシェーク信号によ
る書き込みデータの高速通信を行うことを特徴とするオ
ンボード書き込み装置。
A flash microcomputer having a built-in nonvolatile semiconductor memory for on-board writing and having a serial transmission / reception unit, a flash microcomputer control means and a plurality of port terminals; An on-board writing device comprising: a flash writer for performing handshake terminal information for designating a handshake terminal used for transmitting and receiving a handshake signal from the plurality of port terminals; A microcomputer control unit inputs the handshake terminal information generated by the flash writer, and initializes the handshake terminal specified by the input handshake terminal information,
And generating a terminal information reception signal indicating that the handshake terminal information has been received. After the flash writer inputs the terminal information reception signal from the flash microcomputer control means, a handshake is performed using the handshake terminal. An on-board writing device for performing high-speed communication of write data by a signal.
【請求項2】 前記フラッシュ・ライタが、前記書き込
みデータの送受信の同期をとるための同期検出用データ
を生成し、 前記フラッシュ・マイコン制御手段が、前記シリアル送
受信部を初期化するとともに、この初期化されたシリア
ル送受信部を介して前記フラッシュ・ライタで生成され
た同期検出用データを入力し、かつこの入力した同期検
出用データに対する同期確認用データを生成し、 前記フラッシュ・ライタが、前記フラッシュ・マイコン
において生成された同期確認用データを入力して同期判
断を行うことを特徴とする請求項1記載のオンボード書
き込み装置。
2. The flash writer generates synchronization detection data for synchronizing the transmission and reception of the write data, and the flash microcomputer control means initializes the serial transmission / reception unit. The data for synchronization detection generated by the flash writer is input through a serialized transmission / reception unit, and the data for synchronization confirmation is generated for the input synchronization detection data. 2. The on-board writing device according to claim 1, wherein the synchronization determination is performed by inputting synchronization confirmation data generated by the microcomputer.
【請求項3】 前記ハンドシェーク端子情報が、フラッ
シュ・マイコンのピン番号からなることを特徴とする請
求項1又は2記載のオンボード書き込み装置。
3. The on-board writing device according to claim 1, wherein said handshake terminal information comprises a pin number of a flash microcomputer.
【請求項4】 前記ハンドシェーク端子情報が、フラッ
シュ・マイコンの構成により割り振られたポート番号か
らなることを特徴とする請求項1又は2記載のオンボー
ド書き込み装置。
4. The on-board writing device according to claim 1, wherein said handshake terminal information comprises a port number assigned by a configuration of a flash microcomputer.
【請求項5】 フラッシュ・ライタによりオンボード書
き込みされる不揮発性半導体メモリが内蔵され、かつシ
リアル送受信部、フラッシュ・マイコン制御手段及び複
数のポートを有するフラッシュ・マイコンであって、 前記シリアル送受信部が、前記複数のポート端子の中か
らハンドシェーク信号の送受信に用いるハンドシェーク
端子を指定するハンドシェーク端子情報を前記フラッシ
ュ・ライタから入力し、 前記フラッシュ・マイコン制御手段が、前記シリアル送
受信部で入力された前記ハンドシェーク端子情報を受け
取るとともに、この受け取ったハンドシェーク端子情報
の指定する前記ハンドシェーク端子を初期化し、かつこ
の初期化した前記ハンドシェーク端子を介して前記ハン
ドシェーク信号を送受信することを特徴とするフラッシ
ュ・マイコン。
5. A flash microcomputer having a built-in nonvolatile semiconductor memory on-board written by a flash writer and having a serial transmission / reception unit, a flash microcomputer control unit, and a plurality of ports, wherein the serial transmission / reception unit is Inputting, from the flash writer, handshake terminal information for designating a handshake terminal to be used for transmitting and receiving a handshake signal from the plurality of port terminals, wherein the flash microcomputer control means inputs the handshake input by the serial transmission / reception unit. Receiving the terminal information, initializing the handshake terminal specified by the received handshake terminal information, and transmitting and receiving the handshake signal via the initialized handshake terminal. Xu microcomputer.
【請求項6】 前記フラッシュ・マイコン制御部が、前
記シリアル送受信部における前記ハンドシェーク端子情
報の入力前に、前記シリアル送受信部を初期化すること
を特徴とする請求項5記載のフラッシュ・マイコン。
6. The flash microcomputer according to claim 5, wherein the flash microcomputer control unit initializes the serial transmission / reception unit before inputting the handshake terminal information in the serial transmission / reception unit.
【請求項7】 フラッシュ・ライタにより書き込みされ
るデータの高速通信に用いられるハンドシェーク信号を
送受信するハンドシェーク端子を、フラッシュ・マイコ
ンに設けられた複数のポート端子の中から選択するハン
ドシェーク端子決定方法であって、 前記フラッシュ・ライタが、前記複数のポート端子の中
から前記ハンドシェーク端子として用いるものを指定す
るハンドシェーク端子情報を生成する処理と、 前記フラッシュ・マイコンが、前記ハンドシェーク端子
情報を入力し、この入力したハンドシェーク端子情報の
指定する前記ハンドシェーク端子を初期化し、この初期
化したハンドシェーク端子を用いて前記ハンドシェーク
信号を送受信する処理とを含むことを特徴とするハンド
シェーク端子選択方法。
7. A handshake terminal determining method for selecting a handshake terminal for transmitting and receiving a handshake signal used for high-speed communication of data written by a flash writer from a plurality of port terminals provided in a flash microcomputer. A process in which the flash writer generates handshake terminal information for designating one to be used as the handshake terminal from among the plurality of port terminals; and the flash microcomputer inputs the handshake terminal information. A process of initializing the handshake terminal specified by the handshake terminal information, and transmitting and receiving the handshake signal using the initialized handshake terminal.
JP2000178881A 2000-06-14 2000-06-14 On-board writing device, flash microcomputer and handshake terminal selection method Expired - Fee Related JP4425431B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000178881A JP4425431B2 (en) 2000-06-14 2000-06-14 On-board writing device, flash microcomputer and handshake terminal selection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000178881A JP4425431B2 (en) 2000-06-14 2000-06-14 On-board writing device, flash microcomputer and handshake terminal selection method

Publications (2)

Publication Number Publication Date
JP2001357690A true JP2001357690A (en) 2001-12-26
JP4425431B2 JP4425431B2 (en) 2010-03-03

Family

ID=18680236

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000178881A Expired - Fee Related JP4425431B2 (en) 2000-06-14 2000-06-14 On-board writing device, flash microcomputer and handshake terminal selection method

Country Status (1)

Country Link
JP (1) JP4425431B2 (en)

Also Published As

Publication number Publication date
JP4425431B2 (en) 2010-03-03

Similar Documents

Publication Publication Date Title
KR101343646B1 (en) Semiconductor device and host apparatus
US7366815B2 (en) Method and apparatus for serial communication system capable of identifying slave apparatus using half-duplex channel communication method
JP2018520439A (en) Electronic unit and method carried out in the electronic unit
CN113867836A (en) Device for FPGA, program dynamic loading method and data transmission method
EP1255375B1 (en) Plural station memory data sharing system
JPWO2002069127A1 (en) Storage medium control method, storage medium control device, and storage medium adapter
CN110990310A (en) Device side SD controller, control method and electronic device
JP2001357690A (en) On-board write-in device, flash microcomputer, and selecting method for handshake terminal
JPH09293040A (en) Method for identifying peripheral device in semi-conductor device
CN111371799B (en) Method, device and equipment for controlling data receiving and transmitting of MCTP (Multi-channel media Port) controller
CN113961497A (en) Communication circuit system, method, chip and storage medium
JP5010065B2 (en) Microcomputer
CN113961496A (en) Communication circuit system, method, chip and storage medium
US6148424A (en) Pattern generating apparatus
EP0725352A1 (en) Communication system and relay thereof
JPH1027097A (en) Method and device for rewriting data of flash rom
KR100295683B1 (en) General call acknowledge apparatus and method for inter-integrated circuit
JP2002149626A (en) Microcomputer
US9043496B2 (en) Bridge circuit
KR100531729B1 (en) Apparatus for interface pheriperal device with PC using parallel port and method thereof
JP2006031235A (en) Information processor, external device, host device, and communication method
JP2008090408A (en) Microcomputer, data writing device, and its writing method
JP3388246B2 (en) Remote I / O system for programmable controller
JP4413321B2 (en) Reader / writer unit
JP2661305B2 (en) Integrated circuit

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20060221

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070515

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091023

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20091110

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20091209

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121218

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121218

Year of fee payment: 3

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121218

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121218

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131218

Year of fee payment: 4

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees