JP2014157404A - Electronic apparatus - Google Patents
Electronic apparatus Download PDFInfo
- Publication number
- JP2014157404A JP2014157404A JP2013026680A JP2013026680A JP2014157404A JP 2014157404 A JP2014157404 A JP 2014157404A JP 2013026680 A JP2013026680 A JP 2013026680A JP 2013026680 A JP2013026680 A JP 2013026680A JP 2014157404 A JP2014157404 A JP 2014157404A
- Authority
- JP
- Japan
- Prior art keywords
- signal
- address
- integrated circuit
- electronic device
- cpu
- 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
Links
Images
Abstract
Description
本発明は、CPU(Central Processing UNIT)を備える集積回路を用いた電子機器に関し、特にCPUが再起動するときに前記集積回路に接続する周辺機器をリセットするリセット回路を備える電子機器に関する。 The present invention relates to an electronic device using an integrated circuit including a CPU (Central Processing Unit), and more particularly to an electronic device including a reset circuit that resets peripheral devices connected to the integrated circuit when the CPU is restarted.
多くの電子機器はSoC(System on a chip)と呼ばれる集積回路を用いている。SoCは、CPU(Central Processing UNIT)ならびにメモリコントローラや各種IF(InterFace)コントローラを1つにまとめた集積回路である。このSoCは、プログラムが暴走した場合の保護として、SoC内にWDT(Watch Dog Timer)と呼ばれる装置を設けている場合がある。 Many electronic devices use an integrated circuit called SoC (System on a chip). The SoC is an integrated circuit in which a CPU (Central Processing Unit), a memory controller, and various IF (InterFace) controllers are combined into one. In this SoC, there is a case where a device called WDT (Watch Dog Timer) is provided in the SoC as protection when a program runs away.
図6に、関連技術における、SoC内部のCPUとWDT周辺の接続図を示す。SoC14内にあるWDT12は減算カウンタを備えている。CPU11は、通常動作時にはWDT12のカウンタが0で満了する前にタイマリセット信号を送り、WDT12の減算カウンタをリセットする。機器のプログラムが暴走し、CPU11が、WDT12にタイマリセット信号を送ることが出来なくなると、WDT12のカウンタが満了する。リセット部13は、タイマが満了したことを受け、CPU11に対してリセット信号を出力し、CPU11をリセットする。
FIG. 6 shows a connection diagram around the CPU and WDT in the related art. The WDT 12 in the
ただし、WDT12によるCPU11のリセット処理は、SoC14の中でのみで行われるので、SoC14に接続している周辺デバイスが、WDT12によるCPU11のリセット処理情報を直接受け取ることが出来ない場合がある。このためSoC14は、リセット後に再起動した状態になるが、周辺デバイスはリセットされないため、SoC14と周辺デバイスの間で状態の不一致が発生してしまう。
However, since the reset process of the
特に、システムプログラムを格納しているメモリは、SoC14が再起動した後、システムプログラムが読み出される前にリセットを行わないと、正しいデータを読み出すことが出来ない。
In particular, the memory storing the system program cannot read correct data unless it is reset after the
特許文献1には、この課題を解決するために、WDTによるリセット信号を任意のタイミングに生成し直して、外部周辺デバイスへ出力する技術が開示されている。 In order to solve this problem, Patent Document 1 discloses a technique for generating a reset signal by WDT at an arbitrary timing and outputting the signal to an external peripheral device.
上記問題を解決するには、SoCがリセット信号を外部周辺デバイスへ出力する機能を備えることが必要になり、そのための回路設計や制御の増加はコストアップの原因になる。 In order to solve the above problem, it is necessary for the SoC to have a function of outputting a reset signal to an external peripheral device, and an increase in circuit design and control for that purpose causes an increase in cost.
本発明の目的は、上述した課題を解決する電子機器を提供することにある。 The objective of this invention is providing the electronic device which solves the subject mentioned above.
本発明は、上記課題を解決するために、CPUを有する集積回路と、集積回路から送出されたアドレス信号と読み出し信号によって情報が読み出される記憶装置と、特定のアドレスを指定するアドレス信号と読み出し信号とが入力された場合に記憶装置に対してリセット信号を送出する再起動検出部とを有することを特徴としている。 In order to solve the above-described problems, the present invention provides an integrated circuit having a CPU, a storage device from which information is read by an address signal and a read signal sent from the integrated circuit, an address signal for specifying a specific address, and a read signal And a restart detection unit that sends a reset signal to the storage device when.
さらに、本発明は、CPUを有する集積回路と、集積回路と情報の授受を行う周辺装置と、集積回路の情報の授受を行う所定の端子に現れる信号が立下がった場合に、周辺装置にリセット信号を送出する再起動検出部とを有することを特徴としている。 Further, the present invention provides an integrated circuit having a CPU, a peripheral device that exchanges information with the integrated circuit, and a reset signal to the peripheral device when a signal that appears at a predetermined terminal that exchanges information with the integrated circuit falls. And a restart detection unit for transmitting a signal.
本発明によれば、リセット出力の無いSoCを使用した電子機器において、簡易な構成の回路を設置するだけで周辺デバイスをリセットすることができ、誤動作を防ぐことが可能となるという効果が得られる。また上記回路はSoCから独立しているのでプログラムの変更を非常に少なくできる。 According to the present invention, in an electronic device using a SoC with no reset output, it is possible to reset a peripheral device simply by installing a circuit with a simple configuration, and to obtain an effect of preventing malfunction. . Further, since the above circuit is independent of the SoC, the program change can be greatly reduced.
以下、本発明の実施形態について図面を参照して詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
(第1の実施形態)
図1は、本発明の第1の実施形態である電子機器1の基本的な構成例を示す図である。電子機器1は、CPUを含む集積回路2と周辺装置3と再起動検出部4を備えている。本発明では、集積回路2と周辺装置3の間に再起動検出部4が配置されている。周辺装置3は例えば記憶装置である。
(First embodiment)
FIG. 1 is a diagram illustrating a basic configuration example of an electronic device 1 according to a first embodiment of the present invention. The electronic device 1 includes an
図2に、本発明の第1の実施形態の詳細な構成例を示す。 FIG. 2 shows a detailed configuration example of the first embodiment of the present invention.
図2では、電子機器201において、その中でシステムプログラムが格納されているメモリ203とSoC202とその間に配置される再起動検出部204を示している。SoC202は、CPU211とWDT213、リセット部214を有している。さらにCPU211にはメモリコントローラ212が接続しており、メモリコントローラ212はメモリ203との信号およびデータの送受信を行う。
In FIG. 2, in the
メモリ203は、パラレルタイプの不揮発性メモリであり、複数のアドレス線ならびに複数のデータ線で、SoC202のメモリコントローラ212に接続されている。
The memory 203 is a parallel type nonvolatile memory, and is connected to the
再起動検出部204は、アドレス監視部205とデータ制御部210とOR回路216を備えている。再起動検出部204は、アドレス監視部205によって、アドレス線に出力されるアドレス信号206を検出し、アドレスがあらかじめ設定した値の場合、検出信号208としてLow信号を出力する。データ制御部210は、データ線A215とデータ線B207を接続し、検出信号208がLowとなったとき、データ線A215とデータ線B207を切り離し、SoC202側にのみ、所定のデータを送信することが出来る。OR回路216は、検出信号208とリード信号209のORをとり、共にLowのとき、メモリ203のリセット端子に接続した信号線にリセット信号としてのLow信号を出力する。
The restart detection unit 204 includes an
ここでは、前提条件として、SoC202は、メモリ203のデータをリードするときは、リード信号209をLowレベルにする。また、メモリ203のリセット端子にLowを入力すると、メモリ203はリセットされるものとする。
Here, as a precondition, the
図3は、メモリ203に格納されているデータを示す。メモリ203のアドレス0x2000にはダミーデータが格納され、アドレス0x2001〜0x4000にシステムプログラムが格納されている。CPU211が再起動した場合、SoC202はシステムプログラムを読むため、メモリ203のアドレス0x2000からデータを読みに行く。
FIG. 3 shows data stored in the memory 203. Dummy data is stored at address 0x2000 of the memory 203, and system programs are stored at addresses 0x2001 to 0x4000. When the
図4にCPUが暴走したときの動作遷移図を示し、動作を説明する。 FIG. 4 shows an operation transition diagram when the CPU runs away, and the operation will be described.
まずCPU211が暴走する(S41)。暴走したCPU211は、WDT213に対しタイマリセットを行うことが出来ず、WDT213のカウンタが満了する。リセット部214は、WDT213よりカウンタが満了した情報を受け取り、CPU211のリセットを行う。CPU211がリセット後、再起動すると(S42)、SoC202(あるいはCPU211)は、システムプログラムを読み出すためメモリ203のデータを読みに行く。このときSoC202は、まずモリ203のアドレス0x2000を読みに行く(S43)。再起動検出部204内にあるアドレス監視部205は、アドレスが0x2000であることを検出すると、検出信号208としてLow信号を出力する(S44)。OR回路216はアドレス監視部205から出力されるLow信号とリード信号209(Low信号)を受けとり、メモリ203のリセット端子にLow信号を出力しメモリ203のリセットを行う(S45)。また検出信号208がLowになっている間、データ制御部210は検出信号208を受けて、接続していたデータ線A215とデータ線B207を切り離し、データ線A215側にNOP(No―Operation)命令を送る(S46)。NOPを受け取ったSoC202は(S47)、何も処理を行わず、次にアドレス0x2001のデータを読みにいく(S48)。アドレス0x2000を、読みにいく動作が終了したため、検出信号208はHigh信号になり、メモリ203のリセットが解除される。また、データ制御部210もデータ線A215とデータ線B207の接続を戻す。SoC202は、メモリ203内のアドレス0x2001以降のデータをアドレス0x4000まで読み出すと、SoC202の再起動が完了する(S49)。
First, the
SoC202は、起動時もしくは再起動時以外でメモリ203のアドレス0x2000のデータを読みに行くことはなく、再起動検出部24が、メモリ23のリセットすることはない。また、メモリ203のアドレス0x2000に対してデータを書き込んでも、リード信号209がLowにならないため再起動検出部24はメモリ203に対しリセットを行わない。
The
以上述べてきたように、本発明は、SoCと、システムプログラムを格納しているメモリとの間に簡易な回路を設置することにより、アドレス信号とリード信号を検出してCPUの再起動を検出し、メモリのリセットを行うことが可能となる。
(第2の実施形態)
図5を用いて、本発明の第2の実施形態について、説明する。
As described above, the present invention detects the restart of the CPU by detecting the address signal and the read signal by installing a simple circuit between the SoC and the memory storing the system program. In addition, the memory can be reset.
(Second Embodiment)
A second embodiment of the present invention will be described with reference to FIG.
図5は、本発明の第2の実施形態における電子機器51の構成例を示すブロック図である。SoC52と再起動検出部54とメモリ53で構成されている。
FIG. 5 is a block diagram illustrating a configuration example of the
図5において、SoC52のGPIO(General Purpose Input/Output)は、再起動検出部54に接続し、さらに再起動検出部54は周辺デバイスのメモリ53のリセット端子に接続している。また、GPIOは抵抗を介してGNDにも接続している。ここで、GPIOは、SoCの汎用的に利用できる端子である。
In FIG. 5, GPIO (General Purpose Input / Output) of the
尚、前提条件としてGPIOは、SoC52がメモリ53よりシステムプログラムを読み出す前は、High―Z状態(SoC側でHigh信号にもLow信号にもドライブしていない状態)である。また、SoC52が、メモリ53よりシステムプログラムを読み出した後は、システムによりHigh出力/Low出力の制御をすることが可能である。
As a precondition, the GPIO is in a High-Z state (a state in which neither the High signal nor the Low signal is driven on the SoC side) before the
再起動検出部54は、GPIOがHighからLowに変化することを検出する、立下りエッジ検出部55とリセット信号生成部56で構成されている。立下りエッジ検出部55は、GPIOの立下りを検出すると、リセット信号生成部56に信号を伝える。その信号を得たリセット信号生成部56は、メモリ53のリセット端子に対して一定の時間リセットパルスを送り、リセットを行う。
The
次に、第2の実施形態の動作について以下に示す。 Next, the operation of the second embodiment will be described below.
まず、SoC52はシステムプログラムを読み出し、正常に動作している状態とする。このとき、SoC52はGPIOをHigh出力にする。その後、SoC52内のCPU(図示せず)が再起動すると、SoC52のGPIOはHigh―Z状態となる。ただし、GPIOの端子は、抵抗を介してGNDに接続されているため、Lowに変化する。このとき、再起動検出部54の立下りエッジ検出部55が立ち下がりエッジを検出する。その後、リセット信号生成部56は、メモリ53のリセットに対してリセットパルスを一定時間出力し、メモリ53をリセットする。SoC52が、メモリ53にシステムプログラムを読みにいく前に、再起動検出部54は、メモリ53のリセットを解除する。その後、SoC52は、システムプログラムをメモリ53に読み出す。システムプログラムを読み出した後、システム上でSoC52のGPIOをHigh出力としておくと、再度WDTによる再起動が発生した場合でも、上記動作を行うことが出来る。
First, the
以上述べてきたように、本発明は、SoCのGPIO端子を利用することで、CPUの再起動を検出し、周辺デバイスのリセットを行うことが可能となる。 As described above, according to the present invention, it is possible to detect the restart of the CPU and reset the peripheral devices by using the GPIO terminal of the SoC.
尚、本願発明は、上述の実施の形態に限定されるものではなく、本願発明の要旨を逸脱しない範囲で種々変更、変形して実施することが出来る。 The present invention is not limited to the above-described embodiment, and can be implemented with various changes and modifications without departing from the gist of the present invention.
リセット出力機能を備えていないSoCを使用した電子機器に利用可能である。 The present invention can be used for an electronic device using an SoC that does not have a reset output function.
1 電子機器
2 集積回路
3 周辺装置
4 再起動検出部
11 CPU
12 WDT
13 リセット部
14 SoC
31 メモリデータ
51 電子機器
52 SoC
53 メモリ
54 再起動検出部
55 立下りエッジ検出部
56 リセット信号生成部
201 電子機器
202 SoC
203 メモリ
204 再起動検出部
205 アドレス監視部
206 アドレス信号
207 データ線B
208 検出信号
209 リード信号
210 データ制御部
211 CPU
212 メモリコントローラ
213 WDT
214 リセット部
215 データ線A
216 OR回路
DESCRIPTION OF SYMBOLS 1
12 WDT
13
31
53
203 Memory 204
208 Detection signal 209 Read signal 210
212
214
216 OR circuit
Claims (10)
前記集積回路から送出されたアドレス信号と読み出し信号によって情報が読み出される記憶装置と、
特定のアドレスを指定する前記アドレス信号と前記読み出し信号とが入力された場合に前記記憶装置に対してリセット信号を送出する再起動検出部と、
を有することを特徴とする電子機器。 An integrated circuit having a CPU;
A storage device from which information is read by an address signal and a read signal sent from the integrated circuit;
A restart detection unit that sends a reset signal to the storage device when the address signal designating a specific address and the read signal are input;
An electronic device comprising:
前記集積回路と情報の授受を行う周辺装置と、
前記集積回路の前記情報の授受を行う所定の端子に現れる信号が立下がった場合に、前記周辺装置にリセット信号を送出する再起動検出部と、
を有することを特徴とする電子機器。 An integrated circuit having a CPU;
A peripheral device for exchanging information with the integrated circuit;
A restart detection unit that sends a reset signal to the peripheral device when a signal that appears at a predetermined terminal that transmits and receives the information of the integrated circuit falls;
An electronic device comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013026680A JP6100551B2 (en) | 2013-02-14 | 2013-02-14 | Electronics |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013026680A JP6100551B2 (en) | 2013-02-14 | 2013-02-14 | Electronics |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2014157404A true JP2014157404A (en) | 2014-08-28 |
JP6100551B2 JP6100551B2 (en) | 2017-03-22 |
Family
ID=51578258
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2013026680A Active JP6100551B2 (en) | 2013-02-14 | 2013-02-14 | Electronics |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6100551B2 (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06251170A (en) * | 1993-02-24 | 1994-09-09 | Ricoh Co Ltd | Runaway stopping device for microcomputer |
JP2003316478A (en) * | 2002-04-25 | 2003-11-07 | Hitachi Ltd | Reset method and portable terminal using the same |
JP2006079345A (en) * | 2004-09-09 | 2006-03-23 | Oki Electric Ind Co Ltd | Microcomputer |
JP2008223692A (en) * | 2007-03-14 | 2008-09-25 | Denso Corp | Electronic control device |
JP2011128881A (en) * | 2009-12-17 | 2011-06-30 | Seiko Epson Corp | Electronic equipment |
-
2013
- 2013-02-14 JP JP2013026680A patent/JP6100551B2/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06251170A (en) * | 1993-02-24 | 1994-09-09 | Ricoh Co Ltd | Runaway stopping device for microcomputer |
JP2003316478A (en) * | 2002-04-25 | 2003-11-07 | Hitachi Ltd | Reset method and portable terminal using the same |
JP2006079345A (en) * | 2004-09-09 | 2006-03-23 | Oki Electric Ind Co Ltd | Microcomputer |
JP2008223692A (en) * | 2007-03-14 | 2008-09-25 | Denso Corp | Electronic control device |
JP2011128881A (en) * | 2009-12-17 | 2011-06-30 | Seiko Epson Corp | Electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
JP6100551B2 (en) | 2017-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101358776B1 (en) | Apparatus and method for recording reboot reason of equipment | |
US20140068350A1 (en) | Self-checking system and method using same | |
US9026895B2 (en) | Flash memory controllers and error detection methods | |
KR20200004437A (en) | System and method for frequency mode detection and implementation | |
US9626241B2 (en) | Watchdogable register-based I/O | |
US20130151746A1 (en) | Electronic device with general purpose input output expander and signal detection method | |
JP6696511B2 (en) | Communication device, communication method, program, and communication system | |
WO2012081085A1 (en) | Interrupt source management device and interrupt processing system | |
JP6100551B2 (en) | Electronics | |
JP5286814B2 (en) | Semiconductor device, portable electronic device, self-diagnosis method, self-diagnosis program | |
CN110008071B (en) | Remote debugging device and method | |
US20160378096A1 (en) | Numerical controller and numerical control system in which the controller is connected by network | |
JP2016091277A (en) | Trace system and IC chip | |
CN114895746B (en) | System time synchronization method and device, computing equipment and storage medium | |
JP5561790B2 (en) | Hardware failure suspect identification device, hardware failure suspect identification method, and program | |
JP2010250407A (en) | Portable terminal | |
US10509754B2 (en) | Information processing apparatus, control method for information processing apparatus, and storage medium | |
CN104699582A (en) | Internal memory data acquiring device, method and system | |
JP2012027575A (en) | Electronic device | |
JP2016066273A (en) | Controller | |
JP2011065537A (en) | Data receiving system and interruption performing method | |
JP2003263343A (en) | Built-in monitoring system | |
JP5920370B2 (en) | Electronic control unit | |
JP5461275B2 (en) | Semiconductor device | |
JP2019046531A (en) | Serial flash memory reset control device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20140807 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20160120 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20161129 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20161130 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20170116 |
|
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: 20170131 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20170223 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6100551 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |