JP6670024B2 - Electrical equipment - Google Patents

Electrical equipment Download PDF

Info

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
Application number
JP2016050549A
Other languages
Japanese (ja)
Other versions
JP2017167703A (en
Inventor
健二 紺村
健二 紺村
Original Assignee
アール・ビー・コントロールズ株式会社
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 アール・ビー・コントロールズ株式会社 filed Critical アール・ビー・コントロールズ株式会社
Priority to JP2016050549A priority Critical patent/JP6670024B2/en
Publication of JP2017167703A publication Critical patent/JP2017167703A/en
Application granted granted Critical
Publication of JP6670024B2 publication Critical patent/JP6670024B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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.

特開2014−2669号公報(図2)JP 2014-2669 A (FIG. 2)

フラッシュマイコンのプログラムの書き換えは通常であれば実施しないが、工場からの出荷直前にプログラムの変更の必要が生じた場合などに行われるものであり、ほとんどの場合、実装された状態のフラッシュマイコンのプログラムを書き換えることは希である。   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.

プリント配線板がポッティングされている状態を示す図The figure which shows the state in which the printed wiring board is potted フラッシュマイコン及びラッチ回路を示す図Diagram showing flash microcomputer and latch circuit

図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 flash microcomputer 2 and a latch circuit 3 are mounted. The printed wiring board 1 is housed in a bottomed case 4 that opens upward, and a sealing process called so-called potting is performed by the resin 5 in the housed state. Reference numeral 6 denotes a harness for performing communication between the flash microcomputer 2 and the outside, and the respective wires constituting the harness 6 are directly soldered to the printed wiring board 1.

図2を参照して、フラッシュマイコン2は内蔵するROM内に書き込まれているプログラムを、上記ハーネス6を介して送信される新たなプログラムに書き換えることができる機能を備えている。但し、外部からのリセット信号を受信してフラッシュマイコン2が自己リセットし、再起動した際に、通常はロー状態であるモードピン21がハイ状態であれば、フラッシュマイコン2はプログラムの書き換えが可能な状態に移行し、プログラムの書き換えが行われる。逆に、リセットされ再起動した際にモードピン21が通常のロー状態であれば、書き換え可能な状態には移行しない。そのため、従来のものではモードピン21に接続された導線を上記ハーネス6内に設け、プログラムを書き換える際にはリセット信号を送信すると共に、モードピン21に接続されている導線をハイ状態にしていた。   Referring to FIG. 2, the flash microcomputer 2 has a function of rewriting a program written in a built-in ROM to a new program transmitted through the harness 6. However, when the flash microcomputer 2 self-reset upon receiving an external reset signal and restarts, if the mode pin 21 which is normally low is in the high state, the flash microcomputer 2 can rewrite the program. And the program is rewritten. Conversely, if the mode pin 21 is in a normal low state when reset and restarted, the mode does not shift to a rewritable state. For this reason, in the related art, a conductor connected to the mode pin 21 is provided in the harness 6, and when rewriting a program, a reset signal is transmitted and the conductor connected to the mode pin 21 is set to a high state. .

本発明ではモードピン21に接続される導線を廃止し、ラッチ回路3を設けた。また、フラッシュマイコン2は外部からリセット信号が送信されると、自己リセットする前にラッチ起動ピン22を通常のハイ状態からロー状態に切り替えるように設定されている。   In the present invention, the conductor connected to the mode pin 21 is eliminated, and the latch circuit 3 is provided. Further, the flash microcomputer 2 is set so that when a reset signal is transmitted from the outside, the latch activation pin 22 is switched from a normal high state to a low state before self-reset.

ラッチ起動ピン22がロー状態になると、PNP型のトランジスタ31のベースがローになるので、トランジスタ31のエミッタ/コレクタ間がオンとなり、NPN型のトランジスタ32のベースがハイになり、その結果、トランジスタ32のコレクタ/エミッタ間がオンになる。すると、トランジスタ32によってトランジスタ31のベースがアースに落とされるので、ラッチ起動ピン22の状態がロー状態からハイ状態に戻ったとしても、トランジスタ31のオン状態が保持され、モードピン21がハイ状態に保持され続けることになる。   When the latch activation pin 22 goes low, the base of the PNP transistor 31 goes low, so that the emitter / collector of the transistor 31 is turned on and the base of the NPN transistor 32 goes high. 32 turns on between the collector / emitter. Then, since the base of the transistor 31 is grounded by the transistor 32, even if the state of the latch activation pin 22 returns from the low state to the high state, the on state of the transistor 31 is maintained, and the mode pin 21 becomes the high state. It will be kept.

その状態でフラッシュマイコン2が自己リセットして再起動すると、モードピン21がハイ状態になっているので、フラッシュマイコン2はプログラムの書き換え可能状態に移行することになる。なお、プログラムの書き換えが完了すると、一旦電源10をオフにすると、ラッチ回路3の状態がリセットされ、モードピン21は通常のロー状態に戻る。   When the flash microcomputer 2 self-resets and restarts in that state, the mode pin 21 is in the high state, so that the flash microcomputer 2 shifts to a program rewritable state. When the rewriting of the program is completed, once the power supply 10 is turned off, the state of the latch circuit 3 is reset, and the mode pin 21 returns to the normal low state.

なお、本発明は上記した形態に限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々の変更を加えてもかまわない。   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 wiring board 2 Flash microcomputer 3 Latch circuit 4 Case 21 Mode pin 22 Latch start pin

Claims (2)

制御部にフラッシュマイコンを備えた電気機器であって、このフラッシュマイコンはプリント配線板上に実装されており、フラッシュマイコンに設けられたモードピンの状態を書き込みモードに対応する状態に保持した状態でフラッシュマイコンをリセットすると、フラッシュマイコンは内部のプログラムの書き換えモードに移行するものにおいて、上記プリント配線板上に、フラッシュマイコンからの切替信号によって上記モードピンの状態を書き込みモードに対応する状態に保持するラッチ回路を設け、フラッシュマイコンは外部からリセット信号を受信すると、ラッチ回路に対して切替信号を出力すると共に、自らをリセットし、モードピンの状態が書き込みモードに対応する状態でフラッシュマイコンが再起動して上記書き換えモードに移行することを特徴とする電気機器。   An electrical device with a flash microcomputer in the control unit.This flash microcomputer is mounted on a printed wiring board, and the state of the mode pins provided in the flash microcomputer is held in a state corresponding to the write mode. When the flash microcomputer is reset, the flash microcomputer shifts to an internal program rewrite mode, and holds the state of the mode pin on the printed wiring board in a state corresponding to the write mode by a switching signal from the flash microcomputer. When the flash microcomputer receives a reset signal from the outside, it outputs a switching signal to the latch circuit, resets itself, and restarts the flash microcomputer with the mode pin corresponding to the write mode. The rewrite mode Electrical apparatus, characterized in that the shift to. 上記プリント配線板は上方に開口する有底のケース内に載置され、このケース内に充填された樹脂で封止されていることを特徴とする請求項1に記載の電気機器。   2. The electric device according to claim 1, wherein the printed wiring board is placed in a bottomed case that opens upward, and is sealed with a resin filled in the case.
JP2016050549A 2016-03-15 2016-03-15 Electrical equipment Active JP6670024B2 (en)

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)

* Cited by examiner, † Cited by third party
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

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