JP2004126753A - Reset processing method for usb compatible device - Google Patents

Reset processing method for usb compatible device Download PDF

Info

Publication number
JP2004126753A
JP2004126753A JP2002286962A JP2002286962A JP2004126753A JP 2004126753 A JP2004126753 A JP 2004126753A JP 2002286962 A JP2002286962 A JP 2002286962A JP 2002286962 A JP2002286962 A JP 2002286962A JP 2004126753 A JP2004126753 A JP 2004126753A
Authority
JP
Japan
Prior art keywords
reset
usb
compatible device
processing method
power
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2002286962A
Other languages
Japanese (ja)
Inventor
Yoshihiro Yoshida
吉田 善弘
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.)
YE Data Inc
Original Assignee
YE Data Inc
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 YE Data Inc filed Critical YE Data Inc
Priority to JP2002286962A priority Critical patent/JP2004126753A/en
Publication of JP2004126753A publication Critical patent/JP2004126753A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide the reset processing method of a USB compatible device capable of discriminating a reset signal, and selecting initialization processing along the condition of the device. <P>SOLUTION: This USB compatible device 1 is provided with a flip flop circuit 4 playing the role of a flag for deciding whether power-on reset from a RESET IC 3 or USB reset from an SIE 6 is performed, and a microcomputer 8 which has received device reset selects and executes various reset processing by referring to the flag. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、USB対応デバイスのリセット処理方法に関するものである。
【0002】
【従来の技術】
従来、USB対応デバイスの各デバイス内又はデバイス内部のマイコンのリセットは、電源からのリセット信号(パワーオンリセット)とUSB端子からのリセット信号(USBリセット)のORされた信号(デバイスリセット)により行っていた。そしてマイコンはこのデバイスリセットにより初期化処理を行っていが、この処理によるとパワーオンリセットによるリセットなのか、USBリセットによるリセットなのかが区別できないため、電源を入れたときとUSB端子を接続したときに重複して同じ初期化処理を行うという不具合があった。
【0003】
例えば、セルフパワー(ACアダプタ電源使用)とバスパワー(USB電源使用)のどちらの電源でも動作するUSB対応デバイスの場合は、最初にACアダプタを接続する時は、ACアダプタの電源によるパワーオンリセットが発生し、デバイスの初期化処理を行い、その後、USBを接続時にUSBリセットが発生し、再度デバイスの初期化処理を行っていた。また、最初にUSB端子を接続する時は、USBの電源によるパワーオンリセットが発生し、その後USBリセットが発生し、再度デバイスの初期化処理を行うという不具合があった。
【0004】
また、セルフパワー(ACアダプタ電源使用)のみの電源で動作するUSB対応デバイスの場合は、最初にACアダプタを接続する時に、ACアダプタの電源によるパワーオンリセットが発生し、デバイスの初期化処理を行い、その後、USBを接続する時にUSBリセットが発生し、再度デバイスの初期化処理を行っていた。
【0005】
従ってデバイスの初期化処理に長い時間がかかるUSB対応デバイスでは、デバイスの同じ初期化処理を重複して行うので、デバイスとして対応が遅くなっていた。
【0006】
またUSB接端子を接続している場合に、ホストPC側で本デバイスに関係ないエラーが発生するときにも、USBリセットが発生し、初期化処理を行うことがあり、状況に応じて簡略した初期化処理や初期化処理を行わない等の処理に分岐することが望まれていた。
【0007】
【発明が解決しようとする課題】
そこで、本発明は、USB対応デバイスにおいて、リセット信号を判別すると共に前記デバイスの状態に沿った初期化処理を選択できるUSB対応デバイスのリセット処理方法を提供することを課題とするものである。
【0008】
【課題を解決するための手段】
本発明は、上記課題を解決するためになされたもので、第1の発明はUSB対応デバイス内に電源とUSB端子からのリセット信号を判別する判別手段を設けて、デバイスの状態に応じたリセット処理を行うようにしたUSB対応デバイスのリセット処理方法である。
【0009】
第2の発明は、USB対応デバイス内にデバイスの状態を判別する判別手段を設け、USB端子からのリセット信号により、前記判別手段により判別したデバイスの状態に応じたリセット処理を行うようにしたUSB対応デバイスのリセット処理方法である。
【0010】
【発明の実施の形態】
図1は、本発明の一実施例を示すセルパワーとバスパワーのどちらの電源でも動作するUSB対応デバイスのブロック図、図2はそのリセット処理のフローチャート、図3は処理順を示したタイミングチャートである。図中、1はUSB対応デバイス、2はACアダプタ側入力端子、3は電源が安定した電圧になるまでリセット信号を出す電源電圧を監視しているRESET IC、4はフラグの役割をするフリップフロップ回路で、このフラグはパワーオンリセットでのみ初期化(0)されるようになっている。
【0011】
5はUSB側入力端子、6はUSBのコントローラであるSIE(Serial Interface Engine)で、USBのDN(D−)、DP(D+)の信号の電圧がVILの電圧より低い状態が10msで発生するときにUSBリセット信号を出すようになっている。
【0012】
7はOR回路、8はフリップフロップ回路4のフラグを参照し、パワーオンリセットによる初期化処理またはUSBリセットによりデバイスの状態に応じて各種初期化処理を選択するマイコン、9はUSB対応デバイスとUSBで接続されるホストPCである。
【0013】
次にこれらの図に基づいて本発明のリセット処理方法を説明すると、最初にACアダプタ又はUSB端子を電源元(コンセント又はホストPC9)に接続すると、ACアダプタ側入力端子2又はUSB側入力端子5からの入力電圧を感知してRESET IC3がパワーオンリセットを出しOR回路7はデバイスリセットをマイコン8に出力し、マイコン8はフリップフロップ回路4のフラグを参照する。
【0014】
この時はフラグが“0”であるからパワーオンリセットによる初期化処理と判断してUSB対応デバイスの初期化処理(R1)を行う。その後、フラグを“1”にセットする。この時、SIE6からUSBリセットが発生し、OR回路7からデバイスリセット信号を受けたマイコン8は、フラグを参照し、フラグが“1”であるのでデバイスリセットがUSBリセットによるものだと判断してUSB対応デバイスの状態を判断して初期化処理(R1)、又は簡略した初期化処理(R2)又は初期化処理をしない(R3)等の選択をする。
【0015】
【発明の効果】
以上説明したように、本発明によれば、パワーオンリセット又はUSBリセットによるデバイスリセットなのかを判別する判別手段を設けてあるので、各種リセット処理を選択し、USB対応デバイスの状態にに応じた多様なリセット処理を行うことができる。
【図面の簡単な説明】
【図1】本発明の一実施例を示すブロック図。
【図2】本発明の一実施例の処理手順を示すフローチャート
【図3】本発明の一実施例の処理手順を示すタイミングチャート
【符号の説明】
1   USB対応デバイス
2   ACアダプタ側入力端子
3   RESET IC
4   フリップフロップ回路
5   USB側入力端子
6   SIE
7   OR回路
8   マイコン
9   ホストPC
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a USB device reset processing method.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, reset of a microcomputer in each device of the USB compatible device or in the device is performed by a signal (device reset) obtained by ORing a reset signal (power-on reset) from a power supply and a reset signal (USB reset) from a USB terminal. I was The microcomputer performs the initialization process by this device reset, but it is not possible to distinguish between a reset by a power-on reset and a reset by a USB reset according to this process, so when the power is turned on and when the USB terminal is connected And the same initialization process is performed repeatedly.
[0003]
For example, in the case of a USB-compatible device that operates with both self-power (using an AC adapter power supply) and bus power (using a USB power supply), when the AC adapter is connected for the first time, a power-on reset by the AC adapter power supply is required. Occurs, the device is initialized, and then a USB reset occurs when the USB is connected, and the device is initialized again. In addition, when the USB terminal is connected for the first time, a power-on reset by a USB power supply occurs, a USB reset occurs thereafter, and the device is initialized again.
[0004]
Also, in the case of a USB compatible device that operates with a power supply that uses only self-power (using an AC adapter power supply), when the AC adapter is connected for the first time, a power-on reset occurs due to the AC adapter power supply, and the device initialization processing is performed. After that, when the USB is connected, a USB reset occurs, and the device is initialized again.
[0005]
Therefore, in a USB-compatible device that takes a long time to initialize a device, the same initialization process of the device is performed repeatedly, and the response as a device is slow.
[0006]
Also, when an error not related to this device occurs on the host PC side when the USB contact terminal is connected, a USB reset may occur and an initialization process may be performed. It has been desired to branch to processing such as initialization processing or not performing initialization processing.
[0007]
[Problems to be solved by the invention]
Therefore, an object of the present invention is to provide a USB-compatible device reset processing method that can determine a reset signal and select initialization processing according to the state of the device in the USB-compatible device.
[0008]
[Means for Solving the Problems]
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and a first invention is to provide a USB-compatible device with a determination unit for determining a reset signal from a power supply and a USB terminal to perform reset according to the state of the device. This is a reset processing method for a USB-compatible device that performs processing.
[0009]
According to a second aspect of the present invention, there is provided a USB-compatible device in which a judging means for judging a device state is provided in a USB-compatible device, and a reset signal from a USB terminal is used to perform a reset process according to the device state judged by the judging means. This is a reset processing method for a corresponding device.
[0010]
BEST MODE FOR CARRYING OUT THE INVENTION
FIG. 1 is a block diagram of a USB-compatible device that operates with either a cell power or a bus power according to an embodiment of the present invention, FIG. 2 is a flowchart of a reset process, and FIG. 3 is a timing chart showing a processing order. It is. In the figure, 1 is a USB-compatible device, 2 is an input terminal on the AC adapter side, 3 is a RESET IC that monitors a power supply voltage that issues a reset signal until the power supply reaches a stable voltage, and 4 is a flip-flop that functions as a flag In the circuit, this flag is initialized (0) only by a power-on reset.
[0011]
Reference numeral 5 denotes a USB-side input terminal, and 6 denotes a SIE (Serial Interface Engine) which is a USB controller. A state in which the voltage of the USB DN (D-) and DP (D +) signals is lower than the VIL voltage occurs in 10 ms. Sometimes, a USB reset signal is issued.
[0012]
7 is an OR circuit, 8 is a microcomputer which refers to a flag of the flip-flop circuit 4 and selects various kinds of initialization processing according to the state of the device by initialization processing by power-on reset or USB reset, 9 is a USB compatible device and USB This is the host PC connected by.
[0013]
Next, the reset processing method of the present invention will be described with reference to these drawings. First, when the AC adapter or USB terminal is connected to a power source (outlet or host PC 9), the AC adapter side input terminal 2 or USB side input terminal 5 RESET IC 3 issues a power-on reset, and OR circuit 7 outputs a device reset to microcomputer 8, and microcomputer 8 refers to the flag of flip-flop circuit 4.
[0014]
At this time, since the flag is "0", it is determined that the initialization process is performed by power-on reset, and the initialization process (R1) of the USB compatible device is performed. Thereafter, the flag is set to “1”. At this time, the microcomputer 8 receiving the USB reset from the SIE 6 and receiving the device reset signal from the OR circuit 7 refers to the flag, and determines that the device reset is due to the USB reset because the flag is “1”. The state of the USB-compatible device is determined, and initialization processing (R1), simplified initialization processing (R2), or initialization processing not performed (R3) is selected.
[0015]
【The invention's effect】
As described above, according to the present invention, since there is provided a determination unit for determining whether the device is reset by a power-on reset or a USB reset, various reset processes are selected, and the reset process is selected according to the state of the USB-compatible device. Various reset processes can be performed.
[Brief description of the drawings]
FIG. 1 is a block diagram showing one embodiment of the present invention.
FIG. 2 is a flowchart showing a processing procedure of an embodiment of the present invention; FIG. 3 is a timing chart showing a processing procedure of an embodiment of the present invention;
1 USB compatible device 2 AC adapter side input terminal 3 RESET IC
4 Flip-flop circuit 5 USB side input terminal 6 SIE
7 OR circuit 8 Microcomputer 9 Host PC

Claims (2)

USB対応デバイス内に電源とUSB端子からのリセット信号を判別する判別手段を設けたことを特徴とするUSB対応デバイスのリセット処理方法。A method for resetting a USB-compatible device, comprising: a determination unit for determining a reset signal from a power supply and a USB terminal in the USB-compatible device. USB対応デバイス内にデバイスの状態を判別する判別手段を設け、USB端子からのリセット信号により、前記判別手段により判別したデバイスの状態に応じたりセット処理を行うことを特徴とするUSB対応デバイスのリセット処理方法。A USB-compatible device is provided with a judging means for judging the state of the device in the USB-compatible device, and performing a setting process in accordance with the state of the device judged by the judging means according to a reset signal from a USB terminal. Processing method.
JP2002286962A 2002-09-30 2002-09-30 Reset processing method for usb compatible device Pending JP2004126753A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002286962A JP2004126753A (en) 2002-09-30 2002-09-30 Reset processing method for usb compatible device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002286962A JP2004126753A (en) 2002-09-30 2002-09-30 Reset processing method for usb compatible device

Publications (1)

Publication Number Publication Date
JP2004126753A true JP2004126753A (en) 2004-04-22

Family

ID=32279907

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002286962A Pending JP2004126753A (en) 2002-09-30 2002-09-30 Reset processing method for usb compatible device

Country Status (1)

Country Link
JP (1) JP2004126753A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005352942A (en) * 2004-06-14 2005-12-22 Hitachi Omron Terminal Solutions Corp Usb equipment, host device, and usb connection system
JP2011008819A (en) * 2010-08-24 2011-01-13 Hitachi Omron Terminal Solutions Corp Usb device and usb connection system
JP2012174000A (en) * 2011-02-22 2012-09-10 Kyocera Corp Communication module and in-vehicle equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005352942A (en) * 2004-06-14 2005-12-22 Hitachi Omron Terminal Solutions Corp Usb equipment, host device, and usb connection system
JP2011008819A (en) * 2010-08-24 2011-01-13 Hitachi Omron Terminal Solutions Corp Usb device and usb connection system
JP2012174000A (en) * 2011-02-22 2012-09-10 Kyocera Corp Communication module and in-vehicle equipment

Similar Documents

Publication Publication Date Title
JP2000305678A (en) Method and device for adding or removing component without turning off power source of computer system
US20110283141A1 (en) System-on-chip and debugging method thereof
US7581087B2 (en) Method and apparatus for debugging a multicore system
CN110647486B (en) PCIe link training method, end equipment and communication system
JP4601957B2 (en) On-the-fly configuration of electronic devices with attachable submodules
CN105071484B (en) A kind of charging method and device of the terminal with data exchanging function
US20040243860A1 (en) Method and apparatus for power management event wake up
JP2004054766A (en) Information processor
CN100521433C (en) Overheat protection circuit and system circuit board
CN1790224A (en) Methods and systems for a reference clock
CN105279055A (en) HPD regulating circuit
KR100687925B1 (en) Computer System
US6567868B1 (en) Structure and method for automatically setting the CPU speed
JP2004126753A (en) Reset processing method for usb compatible device
TWI743851B (en) Pcie slot detection system
USRE48497E1 (en) Selectively limiting read access to a portable storage device
CN110752857B (en) Method and device for supporting hot plug of SIM card, wireless internet access equipment and medium
US20020199026A1 (en) Network interface for decreasing power consumption
US7881813B2 (en) System and method for sharing reset and background communication on a single MCU pin
US6349388B1 (en) Timer processing engine for supporting multiple virtual minimum time timers
CN106055510A (en) FPGA-based control system for automatic detection of configuration bus bit width
US6243782B1 (en) Method and apparatus for disabling a graphics device when an upgrade device is installed
CN115407941A (en) VMD function starting method and related assembly thereof
US6463551B1 (en) Debug circuit and microcomputer incorporating debug circuit
CN113094104A (en) Design method of detection circuit for awakening low-power-consumption circuit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050815

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080318

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080715