JP6670024B2 - Electrical equipment - Google Patents
Electrical equipment Download PDFInfo
- Publication number
- JP6670024B2 JP6670024B2 JP2016050549A JP2016050549A JP6670024B2 JP 6670024 B2 JP6670024 B2 JP 6670024B2 JP 2016050549 A JP2016050549 A JP 2016050549A JP 2016050549 A JP2016050549 A JP 2016050549A JP 6670024 B2 JP6670024 B2 JP 6670024B2
- Authority
- JP
- Japan
- Prior art keywords
- flash microcomputer
- mode
- state
- wiring board
- printed wiring
- 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.)
- Active
Links
Images
Description
本発明は、フラッシュマイコンが搭載された電気機器に関する。 The present invention relates to an electric device equipped with a flash microcomputer.
マイコンはプログラムに従って動作するが、そのプログラムを外部からの信号によって書き換えることのできるフラッシュマイコンを備えた電気機器が知られている(例えば、特許文献1参照)。 A microcomputer operates according to a program, and an electric device including a flash microcomputer capable of rewriting the program by an external signal is known (for example, see Patent Document 1).
このものでは、フラッシュマイコンはプリント配線板上に実装されており、このフラッシュマイコンのプログラムを書き換えるには、フラッシュマイコンを外部からのリセット信号で自己リセットするが、リセット後に再起動する際に、フラッシュマイコンの端子のうちのモードピンを通常とは異なる電位状態にしておくことにより、フラッシュマイコンはプログラムの書き換え可能状態に移行する。そして、書き換え可能状態にした後、プログラムデータをフラッシュマイコンに送信し、新しいプログラムで古いプログラムを上書きする。 In this device, the flash microcomputer is mounted on a printed wiring board.To rewrite the program of this flash microcomputer, the flash microcomputer resets itself by an external reset signal. By setting the mode pin among the terminals of the microcomputer to a potential state different from the normal state, the flash microcomputer shifts to a program rewritable state. After the rewritable state, the program data is transmitted to the flash microcomputer, and the new program overwrites the old program.
フラッシュマイコンのプログラムの書き換えは通常であれば実施しないが、工場からの出荷直前にプログラムの変更の必要が生じた場合などに行われるものであり、ほとんどの場合、実装された状態のフラッシュマイコンのプログラムを書き換えることは希である。 Although rewriting of the program of the flash microcomputer is not normally performed, it is performed when it is necessary to change the program immediately before shipment from the factory.In most cases, the flash microcomputer in the mounted state is not rewritten. Rewriting programs is rare.
一方において、フラッシュマイコンが実装されているプリント配線板を小型化する要請がある。 On the other hand, there is a demand for reducing the size of a printed wiring board on which a flash microcomputer is mounted.
上記従来のものでは、プリント配線板にハーネスを接続する場合、コネクタを使用すると、モードピンに接続され、モードピンの電位状態を変更するための導線が必要であり、その導線のためにコネクタを大きくする必要があり、そのため、プリント配線板を小型化できないという不具合が生じる。 In the above-mentioned conventional device, when a harness is connected to a printed wiring board, when a connector is used, a conductor connected to the mode pin and changing the potential state of the mode pin is required, and a connector is required for the conductor. It is necessary to increase the size of the printed wiring board, which causes a problem that the printed wiring board cannot be downsized.
そこで本発明は、上記の問題点に鑑み、フラッシュマイコンが実装されているプリント配線板を可及的に小型化することのできる電気機器を提供することを課題とする。 In view of the above problems, it is an object of the present invention to provide an electric device capable of miniaturizing a printed wiring board on which a flash microcomputer is mounted as much as possible.
上記課題を解決するために本発明による電気機器は、制御部にフラッシュマイコンを備えた電気機器であって、このフラッシュマイコンはプリント配線板上に実装されており、フラッシュマイコンに設けられたモードピンの状態を書き込みモードに対応する状態に保持した状態でフラッシュマイコンをリセットすると、フラッシュマイコンは内部のプログラムの書き換えモードに移行するものにおいて、上記プリント配線板上に、フラッシュマイコンからの切替信号によって上記モードピンの状態を書き込みモードに対応する状態に保持するラッチ回路を設け、フラッシュマイコンは外部からリセット信号を受信すると、ラッチ回路に対して切替信号を出力すると共に、自らをリセットし、モードピンの状態が書き込みモードに対応する状態でフラッシュマイコンが再起動して上記書き換えモードに移行することを特徴とする。 In order to solve the above problems, an electric device according to the present invention is an electric device provided with a flash microcomputer in a control unit. The flash microcomputer is mounted on a printed wiring board, and a mode pin provided in the flash microcomputer. When the flash microcomputer is reset while holding the state of the flash microcomputer in the state corresponding to the write mode, the flash microcomputer shifts to the internal program rewrite mode. A latch circuit that holds the state of the mode pin in a state corresponding to the write mode is provided. Upon receiving a reset signal from the outside, the flash microcomputer outputs a switching signal to the latch circuit, resets itself, and resets the mode pin State whose state corresponds to the write mode Flash microcomputer restarts, characterized in that shifts to the rewrite mode.
上記構成であれば、リセット信号を入力するための導線を設けることなくフラッシュマイコンを書き換えモードに移行させることができる。 With the above configuration, the flash microcomputer can be shifted to the rewrite mode without providing a lead wire for inputting the reset signal.
なお、コネクタ自体を省略してハーネスを構成する各導線を直接プリント配線板にハンダ付けすることによりプリント配線板を更に小型化する場合がある。一方、上記プリント配線板は上方に開口する有底のケース内に載置され、このケース内に充填された樹脂で封止する場合があるが、このように樹脂で封止するものでは、予めリセット信号のための導線を予めプリント配線板に接続しておかなければ、リセット信号をフラッシュマイコンに入力することができない。そのため、このようにプリント配線板を樹脂で封止するものでは、本発明が特に有用である。 In some cases, the size of the printed wiring board may be further reduced by directly omitting the connector itself and soldering each of the wires constituting the harness to the printed wiring board. On the other hand, the printed wiring board is placed in a bottomed case that opens upward, and may be sealed with a resin filled in the case. Unless the conductor for the reset signal is connected to the printed wiring board in advance, the reset signal cannot be input to the flash microcomputer. Therefore, the present invention is particularly useful in the case where the printed wiring board is sealed with the resin as described above.
以上の説明から明らかなように、本発明は、モードピンの電位状態を切り替えるための専用の導線を設ける必要がないので、フラッシュマイコンが実装されているプリント配線板を可及的に小型化することができる。 As is apparent from the above description, according to the present invention, it is not necessary to provide a dedicated conductor for switching the potential state of the mode pin, so that the printed wiring board on which the flash microcomputer is mounted is made as small as possible. be able to.
図1を参照して、1は本発明による電気機器の一部であるプリント配線板である。このプリント配線板1にはフラッシュマイコン2及びラッチ回路3が実装されている。そして、プリント配線板1は上方に開口する有底のケース4内に収納され、その収納された状態で樹脂5によって、いわゆるポッティングと呼ばれる封止処理が施されている。なお、6はフラッシュマイコン2と外部との間で通信を行うためのハーネスであり、ハーネス6を構成する各導線はプリント配線板1に直接ハンダ付けされている。
Referring to FIG. 1, reference numeral 1 denotes a printed wiring board which is a part of an electric device according to the present invention. On this printed wiring board 1, a
図2を参照して、フラッシュマイコン2は内蔵するROM内に書き込まれているプログラムを、上記ハーネス6を介して送信される新たなプログラムに書き換えることができる機能を備えている。但し、外部からのリセット信号を受信してフラッシュマイコン2が自己リセットし、再起動した際に、通常はロー状態であるモードピン21がハイ状態であれば、フラッシュマイコン2はプログラムの書き換えが可能な状態に移行し、プログラムの書き換えが行われる。逆に、リセットされ再起動した際にモードピン21が通常のロー状態であれば、書き換え可能な状態には移行しない。そのため、従来のものではモードピン21に接続された導線を上記ハーネス6内に設け、プログラムを書き換える際にはリセット信号を送信すると共に、モードピン21に接続されている導線をハイ状態にしていた。
Referring to FIG. 2, the
本発明ではモードピン21に接続される導線を廃止し、ラッチ回路3を設けた。また、フラッシュマイコン2は外部からリセット信号が送信されると、自己リセットする前にラッチ起動ピン22を通常のハイ状態からロー状態に切り替えるように設定されている。
In the present invention, the conductor connected to the
ラッチ起動ピン22がロー状態になると、PNP型のトランジスタ31のベースがローになるので、トランジスタ31のエミッタ/コレクタ間がオンとなり、NPN型のトランジスタ32のベースがハイになり、その結果、トランジスタ32のコレクタ/エミッタ間がオンになる。すると、トランジスタ32によってトランジスタ31のベースがアースに落とされるので、ラッチ起動ピン22の状態がロー状態からハイ状態に戻ったとしても、トランジスタ31のオン状態が保持され、モードピン21がハイ状態に保持され続けることになる。
When the
その状態でフラッシュマイコン2が自己リセットして再起動すると、モードピン21がハイ状態になっているので、フラッシュマイコン2はプログラムの書き換え可能状態に移行することになる。なお、プログラムの書き換えが完了すると、一旦電源10をオフにすると、ラッチ回路3の状態がリセットされ、モードピン21は通常のロー状態に戻る。
When the
なお、本発明は上記した形態に限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々の変更を加えてもかまわない。 The present invention is not limited to the above-described embodiment, and various changes may be made without departing from the spirit of the present invention.
1 プリント配線板
2 フラッシュマイコン
3 ラッチ回路
4 ケース
21 モードピン
22 ラッチ起動ピン
DESCRIPTION OF SYMBOLS 1 Printed
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016050549A JP6670024B2 (en) | 2016-03-15 | 2016-03-15 | Electrical equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016050549A JP6670024B2 (en) | 2016-03-15 | 2016-03-15 | Electrical equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2017167703A JP2017167703A (en) | 2017-09-21 |
JP6670024B2 true JP6670024B2 (en) | 2020-03-18 |
Family
ID=59913747
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2016050549A Active JP6670024B2 (en) | 2016-03-15 | 2016-03-15 | Electrical equipment |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6670024B2 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110405759B (en) * | 2019-07-16 | 2020-11-13 | 大唐微电子技术有限公司 | Chip control system |
CN110908689B (en) * | 2019-11-27 | 2023-09-15 | 杭州莱宸科技有限公司 | Program upgrade interface circuit, embedded device, download interface circuit, and downloader |
CN111781872A (en) * | 2020-06-30 | 2020-10-16 | 山东信通电子股份有限公司 | Power-on reset circuit and method of chip |
-
2016
- 2016-03-15 JP JP2016050549A patent/JP6670024B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2017167703A (en) | 2017-09-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6670024B2 (en) | Electrical equipment | |
JP7358477B2 (en) | building blocks for programming | |
JP2006025336A (en) | Piezoelectric oscillator and adjustment method thereof | |
JP2018120438A (en) | Electronic control device and program rewriting system | |
JP5929476B2 (en) | Image reading control device and image reading device | |
JP2007232644A (en) | Multichip device | |
CN110908689A (en) | Program upgrading interface circuit, embedded device, downloading interface circuit and downloader | |
JP2014216836A (en) | Remote control device | |
JP4733716B2 (en) | Migration prevention circuit | |
JP2007027919A (en) | Remote control transmitter | |
JP2020119950A (en) | Electrical apparatus | |
JP2015072675A (en) | Electronic apparatus, control method, and program | |
KR101041258B1 (en) | Device for firmware download of remote input/output module in plc | |
KR101916678B1 (en) | Programmable Logic Controller | |
JP5756666B2 (en) | Electronic control unit | |
JP6112941B2 (en) | INVERTER DEVICE, DATA COMMUNICATION DEVICE FOR INVERTER DEVICE, AND DATA COMMUNICATION METHOD FOR INVERTER DEVICE | |
JPH0485875A (en) | Printed board | |
JP2002007160A (en) | Memory writing circuit | |
JP5469025B2 (en) | Control board | |
JP2011048528A (en) | Controller for vending machine | |
CN115298649A (en) | Control device and method for rewriting control program | |
JP2006086251A (en) | Electronic apparatus | |
JP2009009967A (en) | Board-mounted component and mounting method therefor | |
JP2019175347A (en) | Processing device and processing method | |
KR20070046449A (en) | Data download device, broadcast receiving device for downloading a osd data, and method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20160406 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20190314 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20191211 |
|
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: 20200114 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20200114 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20200226 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6670024 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |