CN101452337A - Control method and device for peripheral equipment - Google Patents

Control method and device for peripheral equipment Download PDF

Info

Publication number
CN101452337A
CN101452337A CNA2008102402526A CN200810240252A CN101452337A CN 101452337 A CN101452337 A CN 101452337A CN A2008102402526 A CNA2008102402526 A CN A2008102402526A CN 200810240252 A CN200810240252 A CN 200810240252A CN 101452337 A CN101452337 A CN 101452337A
Authority
CN
China
Prior art keywords
external equipment
crystal oscillator
clock signal
signal
module
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
CNA2008102402526A
Other languages
Chinese (zh)
Inventor
吴大畏
张倩
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.)
Vimicro Corp
Original Assignee
Vimicro Corp
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 Vimicro Corp filed Critical Vimicro Corp
Priority to CNA2008102402526A priority Critical patent/CN101452337A/en
Publication of CN101452337A publication Critical patent/CN101452337A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Power Sources (AREA)

Abstract

The invention provides a method and a device for controlling external equipment. A crystal oscillator clock of the external equipment is closed and is in the standby state, and the method comprises the following steps: the external equipment responds to an interruption to receive a control signal, and the crystal oscillator clock signal of the external equipment is restored; and the external equipment executes the interrupt processing. The invention, by directly inputting the control signal to the external equipment in the standby state to restore the crystal oscillator clock signal of the external equipment, and without needing to restore the normal working state of the main frame connected with the external equipment to drive the external equipment, realizes the operation of the external equipment in the standby state of the main frame, and saves power consumption due to restoration the main frame to work in the normal mode.

Description

A kind of control method of external equipment and device
Technical field
The present invention relates to the chip controls field, particularly relate to a kind of control method and device of external equipment.
Background technology
At present, most electronic equipment all is provided with standby mode in order to increase the service life and energy savings, and promptly when equipment was not temporarily worked, it was set to dormant state, realizes standby.For example: circumscribed USB (Universal Serial Bus, a USB (universal serial bus)) device that is plugged on the PC (Personal Computer, PC), keep 3ms if on usb bus, be in idle condition, then this USB device enters holding state; Another kind of situation is that after the PC standby, the circumscribed USB device that is plugged on the PC also enters holding state.
Under holding state, the crystal oscillator clock of this USB device is closed.Because closing of crystal oscillator clock, corresponding circumscribed USB device can not carry out any work.At this moment, when this circumscribed USB device carries out work once more if desired, then need to recover again the crystal oscillator clock of this circumscribed USB device, make this circumscribed USB device return to normal mode of operation.The common way of prior art is: at first allow PC recover normal operating conditions, and then " arousing " circumscribed USB device, operate this circumscribed USB device and carry out work.
But because said method must return to PC normal operating conditions and drive the circumscribed USB device, therefore, for holding state, this PC just must expend a large amount of power consumptions.And in the practical application, the user often only needs to use the circumscribed USB device, and need not to use PC, and this moment, this PC and the inner numerous components and parts that are in operate as normal thereof then caused unnecessary power wastage.Therefore, how to make external equipment when the PC holding state, still can carry out work, just become the problem of the required solution of those skilled in the art to the power wastage that normal mode of operation was caused save to recover PC.
Summary of the invention
Technical matters to be solved by this invention provides a kind of control method and device of external equipment, makes external equipment still can carry out work when the PC holding state.
In order to address the above problem, the invention discloses a kind of control method of external equipment, the crystal oscillator clock of described external equipment is closed, and is in holding state, said method comprising the steps of:
The external equipment response is interrupted, and receives control signal, recovers the crystal oscillator clock signal of described external equipment;
Described external equipment is carried out Interrupt Process.
Further, also comprise after the crystal oscillator clock signal of described recovery external equipment:
Described crystal oscillator clock signal is carried out frequency division, the output low frequency clock signal;
Wherein, described external equipment execution Interrupt Process comprises:
Start the data module corresponding in the external equipment with described low-frequency clock signal; This data module is carried out Interrupt Process;
After Interrupt Process finishes, close the low-frequency clock signal of described external equipment.
Preferably, after Interrupt Process finishes, close the crystal oscillator clock signal of described external equipment.
Preferably, described control signal is by the general programmable input/output interface pin input of external equipment.
Further, described control signal is through filtered high level pulse signal or low level pulse signal.
According to embodiments of the invention, a kind of control device of external equipment is also disclosed, described control device comprises and is used for a standby module that the crystal oscillator clock of external equipment is closed and a controller; The crystal oscillator clock of described external equipment is closed, and is in holding state; Described controller comprises:
The down trigger module is used to receive interrupt trigger signal, produces control signal, and notice crystal oscillator clock module;
The crystal oscillator clock module is used to recover crystal oscillator clock signal;
Interruption processing module is used to control described external equipment and carries out Interrupt Process.
Further, described controller also comprises:
Clock frequency division module is used for described crystal oscillator clock signal is carried out frequency division, produces the low-frequency clock signal of the data module of corresponding described interruption, starts the data module of corresponding described low-frequency clock signal;
The clock counter module is used to control the output of crystal oscillator clock signal and low-frequency clock signal;
The Clock gating module is used for low-frequency clock signal is offered and the corresponding data module of described interruption.
Preferably, described interruption processing module also is used for:
Control corresponding data modules execution Interrupt Process in the described external equipment.
Preferably, described clock counter module also is used for:
Interrupt Process is closed described crystal oscillator clock signal and low-frequency clock signal after finishing.
Further, described control signal is by the general programmable input/output interface pin input of external equipment.
Preferably, described control signal is through filtered high level pulse signal or low level pulse signal.
Compared with prior art, the present invention has the following advantages:
Prior art is recovered normal operating conditions with PC usually, and then " arousing " external equipment, operate this external equipment and carry out work, like this, when the user only need use external equipment, and when need not to use PC, will make this PC and the inner numerous components and parts that are in normal operating conditions thereof produce unnecessary power wastage; Among the present invention, by directly to the external equipment input control signal that is in holding state, recover the crystal oscillator clock signal of this external equipment, need not PC is returned to normal operating conditions to drive external equipment, just can realize that this external equipment operates under the PC holding state, save and recovered PC to power wastage that normal mode of operation caused.
Description of drawings
Fig. 1 is the flow chart of steps of the control method embodiment of a kind of external equipment of the present invention;
Fig. 2 is the signal timing diagram in the embodiment of the invention;
Fig. 3 is the structured flowchart of the control device embodiment of a kind of external equipment of the present invention.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with embodiment.
With reference to Fig. 1, show the control method of a kind of external equipment of the present invention, the crystal oscillator clock of described external equipment is closed, and is in holding state, and described method specifically can may further comprise the steps:
Step 101, external equipment response are interrupted, and receive control signal, recover the crystal oscillator clock signal of described external equipment;
Step 102, described external equipment are carried out Interrupt Process.
Interruption described herein is meant the external event that needs external equipment to carry out, when external event takes place, external equipment " is jumped out " from holding state, go to carry out the processing of interrupt event, after interrupting the processing end, return holding state again or recover normal operating conditions.
Preferably, described described crystal oscillator clock signal is carried out frequency division, the output low frequency clock signal starts the data module corresponding with described low-frequency clock signal in the external equipment;
Corresponding data modules is carried out Interrupt Process in the described external equipment.
In actual application, some interruption of external equipment response can drive corresponding data modules execution Interrupt Process in this external equipment by certain low-frequency clock, and for example: the data module of certain low-frequency clock signal correspondence is carried out the work that the control pilot lamp is opened in " waking up " external equipment.Be that the control pilot lamp is opened equally, if drive external equipment work by the high frequency crystal oscillator clock that recovers external equipment, then all data modules in this external equipment all will " be waken " and be returned to up normal operating conditions, at this moment, unnecessary power wastage has then been caused by other numerous modules and the components and parts that described high frequency crystal oscillator clock " wakes up " in this external equipment inside.Therefore, in order further to save the power consumption of external equipment, the present invention proposes: when needs are carried out some particular job on external equipment, by to the crystal oscillator clock signal frequency division, the required low-frequency clock signal of described particular job is carried out in output, drive data module corresponding in the external equipment by this low-frequency clock signal and carry out corresponding Interrupt Process, and need not this external unit complete " waking up ".
Described low frequency signal produces by described high frequency crystal oscillator clock signal being carried out frequency division.Generally, carry out frequency division by PLL (Phase Locked Loop, phase-locked loop or phaselocked loop).Because this part technology belongs to well-known to those skilled in the art, therefore, repeats no more.In concrete the application, can use other any feasible methods according to actual needs and produce needed low-frequency clock signal.
By the low-frequency clock signal that frequency division produces, just enabled in the external equipment and interrupted corresponding data module, and other modules still keep holding state, thereby saved the power consumption of electric energy with described.
Preferably, can finish, close the crystal oscillator clock signal and the low-frequency clock signal of described external equipment, with further saving electrical source consumption in Interrupt Process.
In the embodiment of the invention,, import the control signal that described control recovers described external equipment crystal oscillator clock signal by GPIO (General-Purpose IO ports is called for short GPIO, the general programmable input/output interface) pin of external equipment.
GPIO is meant can provide the output pin of input signal for external equipment, and/or the input pin of input signal is provided for CPU.Because the mode of operation of interfaces for external devices may be different, therefore, need be according to the coupling requirement of interfaces for external devices, the mode by software or software and combination of hardware is configured to various type with GPIO.For example, corresponding if the interface of external equipment is a tri-state mode, GPIO need be configured to tri-state mode; If external equipment is the open collector pattern, corresponding, just GPIO need be configured to the open collector pattern.
Described control signal is through filtered high level pulse signal or low level pulse signal, can be by the high level pulse signal or the low level pulse signal of register selection, and the control external equipment enters the low power mode of operation under the holding state.
With reference to Fig. 2, show the signal timing diagram in the embodiment of the invention.At first, Opportunity awaiting control for linear signal suspendm puts low level, and the control external equipment enters standby mode (when suspendm puts high level, then external equipment recovery mode of operation); When standby triggers as external interrupt, GPIO pin input high level pulse signal, generation enters the high level signal Ipo_mode of the low power mode of operation under the holding state (when Ipo_mode is low level, the control external equipment recovers normal mode of operation), the control external unit enters the low power mode of operation under the holding state; Start crystal oscillator clock control signal osc_en, output crystal oscillator clock signal clkxc; Crystal oscillator clock signal clkxc produces and the described clock signal clkcpm that interrupts corresponding data module by frequency division, and simultaneously, other modules still keep holding state, and clock signal pclk/clkadc is closed; As the signal int of final output execution interrupt operation, external equipment begins under holding state, carries out Interrupt Process by data module corresponding with described interruption in the external equipment.
With reference to Fig. 3, show the control device embodiment of a kind of external equipment of the present invention, this device specifically can comprise and is used for a standby module 300 that the crystal oscillator clock of external equipment is closed and a controller 301; Described standby module 300 is closed the crystal oscillator clock of external equipment, makes this external equipment be in holding state; Described controller 301 comprises:
Down trigger module 302 is used to receive interrupt trigger signal, produces control signal, and notice crystal oscillator clock module 303;
Crystal oscillator clock module 303 is used to recover crystal oscillator clock signal;
Interruption processing module 304 is used to control described external equipment and carries out Interrupt Process.
Preferably, described controller 301 also comprises:
Clock frequency division module is used for described crystal oscillator clock signal is carried out frequency division, produces the low-frequency clock of the data module of corresponding described interruption, starts the data module of corresponding described low-frequency clock signal;
The clock counter module is used to control the output of crystal oscillator clock signal and low-frequency clock signal;
The Clock gating module is used for low-frequency clock signal is offered the data module relevant with described interruption.
In the practical operation, described interruption processing module can also be used for: control described external equipment corresponding data modules and carry out Interrupt Process; Described clock counter module also is used for: close described crystal oscillator clock signal and low-frequency clock signal after Interrupt Process finishes.
Preferably, described control signal can be by the GPIO pin input of external equipment.
Described control recovers the control signal of described external equipment crystal oscillator clock signal, is that the selection of high and low level pulse signal can be carried out specific design as required through filtered high level pulse signal or low level pulse signal.
For system embodiment, because it is similar substantially to method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
More than to the control method and the device of a kind of external equipment provided by the present invention, be described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (11)

1, a kind of control method of external equipment is characterized in that, the crystal oscillator clock of described external equipment is closed, and is in holding state, said method comprising the steps of:
The external equipment response is interrupted, and receives control signal, recovers the crystal oscillator clock signal of described external equipment;
Described external equipment is carried out Interrupt Process.
2, control method according to claim 1 is characterized in that, also comprises after the crystal oscillator clock signal of described recovery external equipment:
Described crystal oscillator clock signal is carried out frequency division, the output low frequency clock signal;
Described external equipment is carried out Interrupt Process and is comprised:
Start the data module corresponding in the external equipment with described low-frequency clock signal; This data module is carried out Interrupt Process;
After Interrupt Process finishes, close the low-frequency clock signal of described external equipment.
3, control method according to claim 1 and 2 is characterized in that, also comprises:
After Interrupt Process finishes, close the crystal oscillator clock signal of described external equipment.
4, control method according to claim 1 is characterized in that, described control signal is by the general programmable input/output interface pin input of external equipment.
5, control method according to claim 1 is characterized in that, described control signal is through filtered high level pulse signal or low level pulse signal.
6, a kind of control device of external equipment is characterized in that, described control device comprises and is used for a standby module that the crystal oscillator clock of external equipment is closed and a controller; The crystal oscillator clock of described external equipment is closed, and is in holding state; Described controller comprises:
The down trigger module is used to receive interrupt trigger signal, produces control signal, and notice crystal oscillator clock module;
The crystal oscillator clock module is used to recover crystal oscillator clock signal;
Interruption processing module is used to control described external equipment and carries out Interrupt Process.
7, control device according to claim 6 is characterized in that, described controller also comprises:
Clock frequency division module is used for described crystal oscillator clock signal is carried out frequency division, produces the low-frequency clock signal of the data module of corresponding described interruption, starts the data module of corresponding described low-frequency clock signal;
The clock counter module is used to control the output of crystal oscillator clock signal and low-frequency clock signal;
The Clock gating module is used for low-frequency clock signal is offered and the corresponding data module of described interruption.
8, control device according to claim 6 is characterized in that, described interruption processing module also is used for:
Control corresponding data modules execution Interrupt Process in the described external equipment.
9, control device according to claim 7 is characterized in that, described clock counter module also is used for:
Interrupt Process is closed described crystal oscillator clock signal and low-frequency clock signal after finishing.
10, control device according to claim 6 is characterized in that, described control signal is by the general programmable input/output interface pin input of external equipment.
11, control device according to claim 6 is characterized in that, described control signal is through filtered high level pulse signal or low level pulse signal.
CNA2008102402526A 2008-12-18 2008-12-18 Control method and device for peripheral equipment Pending CN101452337A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008102402526A CN101452337A (en) 2008-12-18 2008-12-18 Control method and device for peripheral equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008102402526A CN101452337A (en) 2008-12-18 2008-12-18 Control method and device for peripheral equipment

Publications (1)

Publication Number Publication Date
CN101452337A true CN101452337A (en) 2009-06-10

Family

ID=40734603

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008102402526A Pending CN101452337A (en) 2008-12-18 2008-12-18 Control method and device for peripheral equipment

Country Status (1)

Country Link
CN (1) CN101452337A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI460595B (en) * 2011-08-12 2014-11-11 Sk Hynix Inc Power management method for external electronic device
CN106444965A (en) * 2015-08-06 2017-02-22 三星电子株式会社 Clock management unit, integrated circuit including the clock management unit, and clock management method
CN108628793A (en) * 2017-03-20 2018-10-09 华大半导体有限公司 SPI communication circuit and method
CN111159068A (en) * 2019-12-30 2020-05-15 联想(北京)有限公司 Information processing method and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5025387A (en) * 1988-09-06 1991-06-18 Motorola, Inc. Power saving arrangement for a clocked digital circuit
GB2246455A (en) * 1990-07-23 1992-01-29 Philips Electronic Associated Altering the rate at which digital circuitry operates
US5774702A (en) * 1994-11-22 1998-06-30 Hitachi, Ltd. Integrated circuit having function blocks operating in response to clock signals
US20020040444A1 (en) * 2000-09-29 2002-04-04 Mitsuya Ohie Micro-controller having USB control unit, MC unit and oscillating circuit commonly used by the USB control unit and the MC unit
CN1716144A (en) * 2004-07-02 2006-01-04 上海迪比特实业有限公司 Method for reducing powder consumption of electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5025387A (en) * 1988-09-06 1991-06-18 Motorola, Inc. Power saving arrangement for a clocked digital circuit
GB2246455A (en) * 1990-07-23 1992-01-29 Philips Electronic Associated Altering the rate at which digital circuitry operates
US5774702A (en) * 1994-11-22 1998-06-30 Hitachi, Ltd. Integrated circuit having function blocks operating in response to clock signals
US20020040444A1 (en) * 2000-09-29 2002-04-04 Mitsuya Ohie Micro-controller having USB control unit, MC unit and oscillating circuit commonly used by the USB control unit and the MC unit
CN1716144A (en) * 2004-07-02 2006-01-04 上海迪比特实业有限公司 Method for reducing powder consumption of electronic equipment

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI460595B (en) * 2011-08-12 2014-11-11 Sk Hynix Inc Power management method for external electronic device
CN106444965A (en) * 2015-08-06 2017-02-22 三星电子株式会社 Clock management unit, integrated circuit including the clock management unit, and clock management method
US10983551B2 (en) 2015-08-06 2021-04-20 Samsung Electronics Co., Ltd. Clock management unit, integrated circuit including the clock management unit, system on chip, and method of operating the system on chip
CN106444965B (en) * 2015-08-06 2021-06-25 三星电子株式会社 Clock management unit, integrated circuit including the same, and method of managing clock
CN108628793A (en) * 2017-03-20 2018-10-09 华大半导体有限公司 SPI communication circuit and method
CN111159068A (en) * 2019-12-30 2020-05-15 联想(北京)有限公司 Information processing method and electronic device
CN111159068B (en) * 2019-12-30 2022-04-22 联想(北京)有限公司 Information processing method and electronic device

Similar Documents

Publication Publication Date Title
CN101470509B (en) Computer system control method, computer system and notebook computer
CN102385531B (en) Apparatus for performing timer management and associated method
CN100442204C (en) System-on-chip chip and its power consumption control method
CN104024980A (en) Connected standby sleep state
US20070005995A1 (en) Power management system for computing platform
CN101859173A (en) Electronic device for reducing power consumption during sleep mode of computer motherboard and motherboard thereof
CN108304223A (en) A kind of operating system for power supply dormancy mechanism and hardware platform exchange method
CN101930279A (en) Electronic device for reducing power consumption of computer motherboard and motherboard thereof
TWI574148B (en) Embedded controller for power-saving and method thereof
CN109613970B (en) Low-power-consumption processing method based on FPGA and DSP framework
CN105159722B (en) RTC wakes up the method and computer of system
CN101452337A (en) Control method and device for peripheral equipment
CN102929381B (en) Electronic system and method for managing power supply thereof
CN106774808B (en) A kind of multistage low-power consumption administrative unit and its method of multi-core chip
CN115826728A (en) Chip power management method and device
CN1278203C (en) Method for PCI express power management using a PCI PM mechanism in a computer system
CN106708642A (en) Watch dog timer used for MCU (Microprogrammed Control Unit) chip
CN101751299A (en) Computer mainboard with automatic adjusting hardware parameter value
CN114020138B (en) Micro control unit chip and method for reducing electric quantity consumption
CN102572592B (en) Based on the set-top box standby control method of system Dynamic clock management
CN106774788B (en) SOC based on MCU and kernel cooperation control unit thereof
CN100452005C (en) System and method for controlling interrput
CN101329595A (en) Emulator of low power consumption mode
TWI751501B (en) Control setting method for link state transition and electronic device using the same
CN110619203A (en) Logic watchdog implementation method based on finite-state machine

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20090610