CN104793965B - Electronic device, functional unit and its closedown method - Google Patents

Electronic device, functional unit and its closedown method Download PDF

Info

Publication number
CN104793965B
CN104793965B CN201410022624.3A CN201410022624A CN104793965B CN 104793965 B CN104793965 B CN 104793965B CN 201410022624 A CN201410022624 A CN 201410022624A CN 104793965 B CN104793965 B CN 104793965B
Authority
CN
China
Prior art keywords
unit
functional unit
time
processing unit
electronic device
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
CN201410022624.3A
Other languages
Chinese (zh)
Other versions
CN104793965A (en
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.)
Realtek Semiconductor Corp
Original Assignee
Realtek Semiconductor 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 Realtek Semiconductor Corp filed Critical Realtek Semiconductor Corp
Priority to CN201410022624.3A priority Critical patent/CN104793965B/en
Publication of CN104793965A publication Critical patent/CN104793965A/en
Application granted granted Critical
Publication of CN104793965B publication Critical patent/CN104793965B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the present invention provides a kind of electronic device.The electronic device includes on-off circuit, processing unit, functional unit and Power Management Unit, and functional unit includes timer.Power Management Unit is coupled to processing unit and functional unit, and processing unit receives switch signal caused by on-off circuit with functional unit.After switch signal change current potential reaches first time, processing unit produces power-off signal.Timer proceeds by counting when switching signal and changing current potential, and functional unit performs bolt down procedure after counter was counted up to the second time.Second time was less than at the first time, and before Power Management Unit receives power-off signal and interrupts the power supply of driving processing unit and functional unit, functional unit completes bolt down procedure.

Description

Electronic device, functional unit and its closedown method
Technical field
The present invention is related to a kind of electronic device, especially with regard to a kind of work(for avoiding causing dysfunction during forced shutdown Can unit, electronic device and its closedown method.
Background technology
In recent years, with science and technology and the development of electronic device, the popularity rate of various handheld devices or mobile device, which has, to be shown The growth of work.For intelligent mobile phone (Smart Phone), personal player (MP3Player) and personal digital assistant For (Personal Digital Assistant, PDA) such equipment, dealer also energetically develops miscellaneous additional Function, such as common music playback function is one of above-mentioned common additional function so that above-mentioned handheld device becomes people Live in indispensable carry-on articles.
However, when dealer adds more functions in handheld device, the complexity and handheld device of handheld device entirety The load of processing unit also lifted therewith.In the case where the load of processing unit is excessive, handheld device may crash.Though So all possesses the mechanism for having forced shutdown in traditional handheld device, but the mechanism of traditional forced shutdown is only with cut-out All driving powers come force handheld device close and further restart.In this manner, internal circuit then easily with Unexpected interrupt of power supply and mistake occurs or produces malfunction.
For example, referring to Fig. 1, Fig. 1 is the circuit block diagram of traditional electronic devices.Electronic device 1 in Fig. 1 wraps Include on-off circuit 11, processing unit 12, message codec unit 13, Power Management Unit 14, battery unit 15 and resistance R. Resistance R is coupled to logic high potential V+, and the first end of on-off circuit 11 is coupled to resistance R, the second end coupling of on-off circuit 11 In logic low potential V-, wherein when on-off circuit 11 is pressed, the first end of on-off circuit 11 turns on each other with second end, and When on-off circuit 11 is not pressed, first end and the second end of on-off circuit 11 are electrically insulated.Processing unit 12 is coupled to out The first end on powered-down road 11, processing unit 12 are coupled to Power Management Unit 14, and processing unit 12 is coupled to message and compiles solution Code unit 13.Processing unit 12 is coupled to the driving power that Power Management Unit 14 is provided with message codec unit 13 1.8V/3.3V/5V.Power Management Unit 14 is coupled to one end of battery unit 15, the other end ground connection of battery unit 15.Separately Outside, loudspeaker 16 couple the message codec unit 13 of electronic device 1 with earphone 17.
Please refer to Fig. 1 and Fig. 2, Fig. 2 is the signal schematic diagram of traditional electronic devices.When electronic device 1 is by user One is produced when pressing on-off circuit 11 and goes to logic low potential V-'s (being, for example, 0V) by logic high potential V+ (being, for example, 5V) Switch signal.It is changed into time T1 second of logic low potential V- from logic high potential V+ in the received switch signal of processing unit 12 Afterwards, processing unit 12 produces power-off signal, and sends power-off signal to Power Management Unit 14, so that power supply Administrative unit 14, which is interrupted, provides driving power.Logic low potential V- is changed into from logic high potential V+ in switch signal and is then started After gate time T1 seconds, the driving voltage signal as shown in the A points of Fig. 2 is changed to logic low potential by logic high potential V+ V-, and Power Management Unit 14 interrupts and provides driving power.Therefore, processing unit 12 and the driving electricity of message codec unit 13 Source is then just interrupted, and processing unit 12 controls the control signal of message codec unit 13 also to be interrupted at the same time.
By upper it is known that the situation for controlling the control signal of message codec unit 13 to interrupt suddenly in processing unit 12 Under, loudspeaker 16 and earphone 17 that message codec unit 13 is coupled may produce popcorn noise (Pop noise), and make The puzzlement for causing user is used, or even above-mentioned popcorn noise may frighten user, cause unexpected or dangerous generation.
The content of the invention
The embodiment of the present invention provides a kind of electronic device, and electronic device includes on-off circuit, processing unit, at least one first Functional unit and Power Management Unit, and the first functional unit includes timer.Power Management Unit is coupled to processing unit With the first functional unit.Processing unit and the first functional unit receive switch signal caused by on-off circuit.In switch signal After the first time for changing current potential, processing unit produces power-off signal.Timer starts when switching signal and changing current potential Counted, and the first functional unit in timer count up to the first bolt down procedure is performed after the second time, wherein the second time Less than at the first time, receive power-off signal in Power Management Unit and interrupt driving processing unit and first functional unit Before power supply, the first functional unit completes the first bolt down procedure.
The embodiment of the present invention provides a kind of functional unit, and functional unit includes timer, and wherein functional unit is coupled to electricity The timer of source control unit and processing unit, processing unit and functional unit is coupled to on-off circuit.Processing unit and function Unit receives switch signal caused by on-off circuit at the same time.Processing unit changes after current potential reaches first time in switch signal to be produced Raw power-off signal.Timer proceeds by counting when switching signal and changing current potential, and functional unit is in timer count Bolt down procedure is performed after up to the second time, wherein the second time was less than at the first time, power-off is received in Power Management Unit Signal and interrupt driving processing unit and functional unit power supply before, functional unit complete bolt down procedure.
The embodiment of the present invention provides a kind of closedown method, and the closedown method is suitable for a kind of electronic device, and including with Lower step.First, switch signal is produced by the on-off circuit of electronic device.Thereafter, the timing of processing unit and functional unit Device proceeds by counting when switching signal and changing current potential.Then, after timer count is up to the second time, functional unit performs Bolt down procedure.Then, power-off signal is produced after processing unit, which counts, reaches first time.Finally, interrogated according to power-off Number, Power Management Unit interrupts the power supply of driving processing unit and functional unit, wherein the second time was less than at the first time, in electricity Before source control unit receives power-off signal and interrupts the power supply for driving processing unit and functional unit, functional unit is completed to close Close program.
In conclusion in the case of crash, electronic device, functional unit and its shutdown that the embodiment of the present invention is provided Method can avoid user from making internal circuit caused by electronic device progress forced shutdown because driving power is directly interrupted Into running mistake.More carefully say, during electronic device performs forced shutdown, above-mentioned electronic device, functional unit And its closedown method more can be protected further except the internal circuit can be made to complete to be intended to perform original normal shutdown program Internal circuit is protected, and avoids forced shutdown affected to the use feeling of user.
For the enabled feature and technology contents for being further understood that the present invention, refer to below in connection with the present invention specifically Bright and attached drawing, but these explanations are only used for illustrating the present invention with appended attached drawing, rather than interest field of the invention is made any Limitation.
Brief description of the drawings
Fig. 1 is the circuit block diagram of traditional electronic devices.
Fig. 2 is the signal schematic diagram of traditional electronic devices.
Fig. 3 is the circuit block diagram of the electronic device of the embodiment of the present invention.
Fig. 4 is the signal schematic diagram of the electronic device of the embodiment of the present invention.
Fig. 5 is the circuit block diagram of the electronic device of another embodiment of the present invention.
Fig. 6 is the circuit block diagram of the electronic device of yet another embodiment of the invention.
Fig. 7 is the circuit block diagram of the more electronic device of an embodiment of the invention.
Fig. 8 is the flow chart of the closedown method of the embodiment of the present invention.
Wherein, the reference numerals are as follows:
1、3、5、6、7:Electronic device
11、31、51、61、71:On-off circuit
12、32、52、62、72:Processing unit
13、33:Message codec unit
53、58、59、60、63、68、69、70、73:Functional unit
732、733、734、735:Function subelement
14、34、54、64、74:Power Management Unit
15、35、55、65、75:Battery unit
16、36、56、66、76:Loudspeaker
17、37、57、67、77:Earphone
331、531、631、681、691、701、731:Timer
332:Audio-frequency power amplifier
R:Resistance
V+:High potential
V-:Low potential
T1、T2:Time
A:Popcorn noise generation time
B:Normal switching-off program execution time
S101~S105 is method and step flow
Embodiment
Various exemplary embodiments will be more fully described referring to annexed drawings below, shown in annexed drawings Exemplary embodiments.However, concept of the present invention may embody in many different forms, and it should not be construed as limited by institute herein The exemplary embodiments of elaboration.Specifically, there is provided these exemplary embodiments make it that the present invention will be detailed and complete, and will The category of concept of the present invention is fully passed on to those skilled in the art.In all attached drawings, Ceng Ji areas can be lavished praise on oneself in order to clear Size and relative size.Similar numeral indicates similar component all the time.
It is to be understood that although various elements, these yuan may be described using term first, second, third, etc. herein Part should not be limited by these terms.These terms are to distinguish an element and another element.Therefore, first yuan be discussed herein below Part can be described as teaching of second element without departing from concept of the present invention.As used herein, term "or" can depending on actual conditions Can include being associated lists any one of project or all combinations of more persons.
Referring to Fig. 3, Fig. 3 is the circuit block diagram of the electronic device of the embodiment of the present invention.Electronic device 3 in figure 3 Including on-off circuit 31, processing unit 32, message codec unit 33, Power Management Unit 34, battery unit 35 and resistance R.Message codec unit 33 includes timer 331.Resistance R is coupled to logic high potential V+, the first end coupling of on-off circuit 31 Resistance R is connected to, the second end of on-off circuit 31 is coupled to logic low potential V-, wherein when on-off circuit 31 is pressed, switch The first end of circuit 31 turns on each other with second end, and when on-off circuit 31 is not pressed, the first end of on-off circuit 31 with Second end is electrically insulated.Processing unit 32 is coupled to the first end of on-off circuit 31 with message codec unit 33, and message is compiled The timer 331 of decoding unit 33 is coupled to the first end of switch element 31.Processing unit 32 is coupled to Power Management Unit 34, And processing unit 32 is coupled to message codec unit 33.Processing unit 32 is coupled to power supply pipe with message codec unit 33 The driving power 1.8V/3.3V/5V that reason unit 34 is provided.Power Management Unit 34 is coupled to one end of battery unit 35, electricity The other end ground connection of pool unit 35.In addition, loudspeaker 36 couple the message codec unit 33 of electronic device 3 with earphone 37.
On-off circuit 31 carries out the manipulation of switching on and shutting down to provide user to electronic device 3.When user is by compressing switch During circuit 31, on-off circuit 31 changes the current potential for switch signal, and causes the processing unit for receiving switch signal 32 and message codec unit 33 according to switch signal potential change carry out subsequent action.In embodiments of the present invention, when In the case of system in case of system halt, user can be forced electronic device 3 by the action of long-time pressing on-off circuit 31 Shutdown.Then, the current potential of switch signal will be varied from caused by on-off circuit 31, and the machine of forced shutdown is carried out with instruction System, and processing unit 32 is carried out follow-up processing routine with message codec unit 33, wherein switch signal is continuous Signal.
It is noted that the potential change of switch signal can be by logic high potential V+ (examples caused by on-off circuit 31 Such as it is 5V) it is changed to logic low potential V- (being, for example, 0V) or logic high potential V+ is changed to by logic low potential V-.Citing comes Say, in embodiments of the present invention, first end and the second end of on-off circuit 31 are respectively coupled to logic high potential V+ and logic low Current potential V- (high potential V+ and low potential V- can be provided by battery unit 35).As shown in Figure 3, in the switch electricity of electronic device 3 When road 31 is pressed, the switch signal in the first end of its switch element 31 can produce change, it is changed into from logic high potential V+ Logic low potential V-.However, those of ordinary skill in the art are it will be appreciated that the on-off circuit 31 of electronic device 3 can also be used instead open Close signal and logic high potential V- is changed to indicate to carry out the on-off circuit of the mechanism of pressure start Lai real by logic low potential V- Apply, to sum up, the present invention is not in this, as limitation.
Processing unit 32 is to handle the computing needed for electronic device 3, its can supervise the cooking for center unit (CPU), miniature control Processing unit (MCU) processed or the circuit element of other tool calculation functions.Processing unit 32 receives to be opened caused by on-off circuit 31 Close signal and be pocessed.In addition, processing unit 32 is coupled to Power Management Unit 34, processing unit 32 is to power management Unit 34 is controlled, and processing unit 32 is coupled to the functional circuit (not illustrating) inside electronic device 3, processing unit 32 To carry out signal transmission or control to the functional circuit inside electronic device 3.
More carefully say, in embodiments of the present invention, processing unit 32 provides sound signal and compiled with control signal to message Decoding unit 33, makes it further perform the function of playing message.It is noted that processing unit 32, which is coupled to message, compiles solution The interface of code unit 33 can be that inter-integrated circuit interface (I2C interface) or other data transmission interfaces do and implement.Lift For example, processing unit 32 receives switch signal, and when switch signal is changed into logic low potential V- from logic high potential V+, into One step performs tally function.When processing unit 32, which counts, reaches first time, processing unit 32 produces a control power-off Power-off signal, and power-off signal is transmitted to Power Management Unit 34, so that after Power Management Unit 34 carries out Continuous processing routine.
Message codec unit 33 includes digital analog converter and analog-digital converter, can be by the sound signal of simulation The digital signal of binary bit (1/0) is converted into by analog-digital converter.Message codec unit 33 also can be by digital signal Electric signal is converted into analog signal via digital analog converter, and further by an audio-frequency power amplifier 332 by Loudspeaker 36 or earphone 37 play.For example, when message codec unit 33 receives the audible signals transmitted of processing unit 32, The loudspeaker 36 or earphone 37 that message codec unit 33 is coupled by audio-frequency power amplifier 332 play the audible signals. Wherein audio-frequency power amplifier 332 can be Earphone Amplifier or horn amplifier, or amplify comprising Earphone Amplifier and loudspeaker Device.
In addition, in embodiments of the present invention, message codec unit 33 includes timer 331.When message codec unit When the 33 switch signals received are changed into logic low potential V- from logic high potential V+, message codec unit 33 starts internal Timer 331 proceed by counting.When timer 331 was counted up to the second time, then message codec unit 33 performs sound The bolt down procedure of codec unit 33 is interrogated, message codec unit 33 is closed or by the part in message codec unit 33 Function is closed.For example, the audio-frequency power amplifier 332 in message codec unit 33 can by one switch (not illustrating) come Audible signals are received, and message codec unit 33 can be directed to audio-frequency power amplifier 332 and perform a normal switching-off program, message Codec unit 33 can be first by the switch open circuit corresponding to audio-frequency power amplifier 332, then audible signals cannot be introduced into audio work( Rate amplifier 332, makes the loudspeaker 36 of connection first mute with earphone 37, audio-frequency power amplifier 332 then is closed power supply again, with Upper step can avoid loudspeaker 36 from producing sonic boom with earphone 37.It will be appreciated that those of ordinary skill in the art also can be with software, program control Message codec unit 33 processed reaches the function of timer 331, although the embodiment of the present invention only with the hardware of function element into Row explanation, but the present invention is not in this, as limitation.
Power Management Unit 34 is a kind of microcontroller of integrated management, to by multiple power managements of traditional discrete Chip is managed concentratedly, conventional power source managing chip such as low pressure difference linear voltage regulator (LDO), DC to DC converter (DC/DC).Electricity Source control unit 34 is coupled to battery 15, and the power supply that Power Management Unit 34 can make the electric power of battery unit 35 and have higher is changed Efficiency and more low-power consumption loss.In embodiments of the present invention, Power Management Unit 34 passes through the coupling of Power Management Unit 34 shown in Fig. 3 It is connected to processing unit 32 and message codec unit 33 and provides the driving power of 1.8V/3.3V/5V to processing unit 32 and sound Interrogate codec unit 33.For example, when Power Management Unit 34 receive processing unit 32 caused by power-off signal or During electric power starting signal, then the driving power of coupled element is further interrupted or provided to Power Management Unit 34.
Then, please refer to Fig. 3 and Fig. 4, Fig. 4 is the signal schematic diagram of the electronic device of the embodiment of the present invention.Citing For, when electronic device 3 is pressed on-off circuit 31 by user, switch signal can be changed to logic low electricity by logic high potential Position, and processing unit 32 can proceed by counting.Power-off is produced after processing unit 32, which counts, reaches first time T1 second Signal, and it is transmitted to Power Management Unit 34.Then, Power Management Unit 34 receives power-off caused by processing unit 32 During signal, then Power Management Unit 34 further interrupts the driving power of coupled element.However, received in processing unit 32 While to switch signal, message codec unit 33 also can equally receive switch signal caused by on-off circuit 31.More Carefully say, when the switch signal received by message codec unit 33 is changed into logic low potential from logic high potential, sound News codec unit 33 is that the timer 331 inside starting proceeds by counting.Counted in timer 331 up to the second time T2 When, then message codec unit 33 performs bolt down procedure.
As shown in Tu4Zhong B areas, the second time T2 is less than first time T1, such as the time of the second time at the first time 30~80%.Therefore message codec unit 33 has reserved the second time T2 and has subtracted first time T1 when counting first time T1 Time interval, message codec unit 33 is first completed bolt down procedure.After message codec unit 33 completes bolt down procedure, Then processing unit 32, which counts, reaches first time T1, and produces a power-off signal.Finally, Power Management Unit 34 receives Power-off signal caused by processing unit 32 simultaneously interrupts driving processing unit 32 and the driving electricity of message codec unit 33 Source.In other words, receive power-off signal in Power Management Unit 34 and interrupt driving processing unit 32 and message encoding and decoding Before the driving power of unit 33, message codec unit 33 has just completed bolt down procedure.Therefore, in the drive of processing unit 32 When dynamic power supply is interrupted, the normal switching-off audio-frequency power amplifier 332 of message codec unit 33.In this way, filled in electronics Put 3 be forced shutdown when, it is not in sonic boom (the A area as shown in Figure 2) as caused by traditional electronic devices forced shutdown.
Then, referring to Fig. 5, Fig. 5 is the circuit block diagram of the electronic device of another embodiment of the present invention.In Figure 5 Electronic device 5 includes on-off circuit 51, processing unit 52, multiple functional units 53,58~60, Power Management Unit 54, battery Unit 55 and resistance R.Functional unit 53 includes timer 531.Resistance R is coupled to logic high potential V+, on-off circuit 51 First end is coupled to resistance R, and the second end of on-off circuit 51 is coupled to logic low potential V-, wherein when on-off circuit 51 is pressed When, the first end of on-off circuit 51 turns on each other with second end, and when on-off circuit 51 is not pressed, the of on-off circuit 51 One end is electrically insulated with second end.Processing unit 52 is coupled to the first end of on-off circuit 51, and function list with functional unit 53 The timer 531 of member 53 is coupled to the first end of switch element 51.Processing unit 52 is coupled to Power Management Unit 54, and place Reason unit 52 is coupled to functional unit 53.Processing unit 52 is coupled together at Power Management Unit with functional unit 53,58~60 The 54 driving power 1.8V/3.3V/5V provided.Power Management Unit 54 is coupled to one end of battery unit 55, battery unit 55 other end ground connection.Functional unit 53 is further coupled to functional unit 58~60.In addition, loudspeaker 56 couple electricity with earphone 57 The functional unit 60 of sub-device 5.More carefully say, loudspeaker 56 and earphone 57 can be respectively by coupling the loudspeaker of functional unit 60 Amplifier or Earphone Amplifier make the signal of output carry out power amplification;For example, functional unit 53 is a built-in message Codec unit, and the message codec unit that functional unit 60 is a higher order.In embodiments of the present invention, electronic device 5 On-off circuit 51, processing unit 52 and Power Management Unit 54 and Fig. 3 embodiment on-off circuit 31, processing unit 32 And Power Management Unit 34 is identical, is repeated no more in this.
Functional unit 53,58~60 can be message codec unit (as described in the embodiment of Fig. 3), video signal encoding and decoding list Member, backlight drive circuit, memory cell or other elements driven inside electronic device 5 by Power Management Unit 54.Such as Shown in Fig. 5, processing unit 52 carries out signal transmission or control to functional unit 53.In embodiments of the present invention, functional unit 53 Pass with other functional units 58~60 of data signals of the processing from processing unit 52 or control signal and independent control The ability of program is closed, further to carry out signal transmission or control to other functional units 58~60.
For example, when electronic device 5 is pressed on-off circuit 51 by user, switch signal can be by logic high potential V+ Change turns to logic low potential V-, and processing unit 52 proceeds by counting.After processing unit 52, which counts, reaches first time T1 second Power-off signal is produced, and is transmitted to Power Management Unit 54.Then, Power Management Unit 54 receives the institute of processing unit 52 During the power-off signal of generation, then Power Management Unit 54 further interrupts the driving power of coupled element.
More carefully say, when the switch signal of on-off circuit 51 received by functional unit 53 is changed into from logic high potential V+ During logic low potential V-, functional unit 53 is that the timer 531 inside starting proceeds by counting.Count and reach in timer 531 During the second time T2, then functional unit 53 performs bolt down procedure, functional unit 33 is closed or by the part in functional unit 53 Function is closed.
It is important to note, however, that the place different from Fig. 3 embodiments of the embodiment of the present invention is, in the embodiment of the present invention The further control function unit 58~60 of functional unit 53 with timer 531.Reached that is, being counted in timer 531 During the bolt down procedure of the second time T2 and perform function unit 53, further transmission out code to functional unit 58~60, with Functional unit 58~60 is set each to perform its bolt down procedure (closed comprising repertoire or part function is closed);For example, The loudspeaker of the message codec unit 60 of one higher order or Earphone Amplifier can be performed normal switching-off program by functional unit 53, with Prevent the generation of sonic boom.
Therefore, when the driving power of processing unit 32 is interrupted, all functional units 53,58~60 are normal Close.Be not in traditional electronic devices shutdown mode and the mistake that produces or malfunction situation, such as memory cell write-in or Read error causes storage circuit damage, backlight drive circuit component wear etc. harmful effect.
Referring to Fig. 6, Fig. 6 is the circuit block diagram of the electronic device of yet another embodiment of the invention.
In embodiments of the present invention, the on-off circuit 61 of electronic device 6, processing unit 62 and Power Management Unit 64 with The on-off circuit 51 of the embodiment of Fig. 5, processing unit 52 and Power Management Unit 54 are identical, it couples relation such as Fig. 6, in this Repeat no more.In addition, the difference of this embodiment and the embodiment of Fig. 5 maximum is, Fig. 5 embodiments only have a functional unit 53 have timer 531, and the functional unit 63,68~70 of this embodiment all has timer 631,681~701.Timer 631st, 681~701 when switching the potential change of signal, starts timing.When timer 631,681~701 timing are up to second Between T2, functional unit 63,68~70 can each carry out bolt down procedure.
For example, when electronic device 6 is pressed on-off circuit 61 by user, switch signal can be by logic high potential V+ Change turns to low potential V-, and processing unit 62 proceeds by counting.Produced after processing unit 62, which counts, reaches first time T1 second Raw power-off signal, and it is transmitted to Power Management Unit 64.Then, produced by the reception of Power Management Unit 64 processing unit 62 Power-off signal when, then Power Management Unit 64 further interrupts the driving power of coupled element.
More carefully say, when the switch signal received by functional unit 63,68~70 is changed into patrolling from logic high potential V+ When collecting low potential V-, functional unit 63,68~70 is that the timer 631,681~701 inside starting proceeds by counting.Counting When device 631,681~701 count each up to the second time T2 when, then functional unit 63,68~70 perform bolt down procedure with by its Itself is closed, and in different embodiments, timer 631,681~701 respective second times T2 may be designed as different time length Degree.
In addition, referring to Fig. 7, Fig. 7 is the circuit block diagram of the more electronic device of an embodiment of the invention.Of the invention real Apply in example, the switch of on-off circuit 71, processing unit 72 and the Power Management Unit 74 of electronic device 7 and the embodiment of Fig. 5 Circuit 51, processing unit 52 and Power Management Unit 54 are identical, it couples relation such as Fig. 7, is repeated no more in this.In addition, this The difference of embodiment and the embodiment of Fig. 5 maximum is that the functional unit 73 of this embodiment contains multiple function subelements 732~735.Functional unit 73 includes timer 73 and multiple function subelements 732~735.In addition, loudspeaker 76 and earphone 77 Couple functional unit 73.Function subelement 732~735 is coupled together at timer 731.That is, functional unit 73 can be with It is a kind of single-chip (combination core with multiple chip functions (can be with software or hardware realization) subelement 732~735 Piece, combo chip), wherein function subelement 732~735 can be message process chip, Wifi modules, image processing chip Etc. functional chip hardware, can also be difference in functionality function software formula.In another embodiment, functional unit 73 can For multiple message codec chips with multi-functional subelement 732~735 composition, wherein function subelement 732~735 is loudspeaker The group of the functions such as amplifier, Earphone Amplifier, processor, analog-digital converter (A/D), digital analog converter (D/A) Close chip.
When electronic device 7 is pressed on-off circuit 71 by user, switch signal can be turned to low by logic high potential V+ changes Current potential V-, and processing unit 72 proceeds by counting.Power supply is produced after processing unit 72, which counts, reaches first time T1 second to close Signal is closed, and is transmitted to Power Management Unit 74.Then, Power Management Unit 74 receives power supply caused by processing unit 72 and closes When closing signal, then Power Management Unit 74 further interrupts the driving power of connected element.More carefully say, when function list When switch signal received by member 73 is changed into logic low potential V- from logic high potential V+, functional unit 73 is i.e. inside startup Timer 731 proceeds by counting.
It is noted that the timer 731 in the present embodiment is also designed to be respectively coupled to function subelement 732 ~735 carry out the counting of multiple time intervals.That is, when counter 731 counts reach different time intervals respectively, then Function subelement 732~735 performs its respective closing subprogram so that function subelement 732~735 itself to be closed respectively, most Functional unit 73 can just complete overall bolt down procedure afterwards.For example, the second time T2 is counted when timer 731 proceeds by When, wherein function subelement 732 performs first when timer 731 is counted up to first time interval in the second time T2 and closes Subprogram;Function subelement 733 performs second when timer 731 is counted up to the second time interval in the second time T2 and closes Subprogram.That is, the timer 731 of the present embodiment is sequentially according to different time intervals by different function subelements 732~735 function is closed, to complete the overall bolt down procedure of functional unit 73.When wherein the second time interval is more than first Between be spaced, the second time interval was less than for the second time.For example, the second time was 20 milliseconds, the second time interval is 15 milliseconds, the One time is at intervals of 10 milliseconds.
In above-mentioned multiple embodiments, those of ordinary skill in technical field is it should be appreciated that be combined with each other reality Apply, also without departing from the category of key concept of the present invention.
Then, referring to Fig. 8, Fig. 8 is the flow chart of the closedown method of the embodiment of the present invention.Closedown method includes step S101~S105.In step S101, the current potential for the switch signal that on-off circuit produces changes, such as by logic high potential It is changed into logic low potential.In step S102, when the current potential for switching signal changes, processing unit proceeds by counting, and The timer of functional unit also proceeds by counting at the same time.In step S103, after timer count is up to the second time, function list Member performs bolt down procedure.In step S104, power-off signal is produced after processing unit, which counts, reaches first time.In step S105, according to power-off signal, Power Management Unit interrupts the power supply of driving processing unit and functional unit.
Please refer to Fig. 3 and Fig. 8.In step S101, when electronic device 3 is pressed on-off circuit 31 by user, Switch signal is become by logic high potential V+ turns to logic low potential V-.Then, in step s 102, when switch signal is by logically high Current potential V+, which becomes, turns to logic low potential V-, and processing unit 32 proceeds by counting, meanwhile, message codec unit 33 starts inside Timer 331 proceed by counting.In step s 103, when timer 331 is counted up to the second time T2, then message compiles solution Code unit 33 performs bolt down procedure and closes itself.
In step S104, power-off signal is produced after processing unit 32, which counts, reaches first time T1 second, and pass Transport to Power Management Unit 34.Finally, in step S105, Power Management Unit 34 receives power supply caused by processing unit 32 When closing signal, then Power Management Unit 34 further interrupts the driving power of coupled element.
[ the effect of present invention is possible ]
In conclusion in the case of crash, electronic device, functional unit and its shutdown that the embodiment of the present invention is provided Method can avoid user from making internal circuit caused by electronic device progress forced shutdown because driving power is directly interrupted Into running mistake.More carefully say, during electronic device performs forced shutdown, above-mentioned electronic device, functional unit And its closedown method more can be protected further except the internal circuit can be made to complete to be intended to perform original normal shutdown program Internal circuit is protected, and avoids forced shutdown affected to the use feeling of user.
The above, is only the optimal specific embodiment of the present invention, but the feature of the present invention is not limited thereto, Ren Heben Field technology personnel in the field of the invention, can think easily and change or modification, can all cover the present invention patent model Enclose.

Claims (15)

1. a kind of electronic device, has an on-off circuit, which includes:
One processing unit, receives caused by the on-off circuit switch signal, start when the switch signal changes current potential into Row counts, and is receiving the switch signal up to producing a power-off signal after a first time;
One first functional unit, receives the switch signal caused by the on-off circuit, which includes:One timing Device, counting is proceeded by when the switch signal changes current potential, wherein in the timer count up to after one second time, this first Functional unit performs one first bolt down procedure;And
One Power Management Unit, is coupled to the processing unit and first functional unit;
Wherein second time is less than this at the first time, receives the power-off signal in the Power Management Unit and interrupts driving Before the processing unit and the first functional unit power supply, which completes first bolt down procedure.
2. electronic device according to claim 1, which further includes:
At least one second functional unit is coupled to first functional unit;
When wherein first functional unit performs first bolt down procedure, further transmit an out code to this at least one second Functional unit is to perform one second bolt down procedure.
3. electronic device according to claim 1, which further includes:
At least one second functional unit, couples with the processing unit and the Power Management Unit, receives the on-off circuit institute respectively The switch signal produced;
Wherein this at least one second functional unit respectively includes:One timer, starts timing when the switch signal changes current potential;Its In in the timer reach second time after, at least one second functional unit performs a respective bolt down procedure respectively for this.
4. electronic device according to claim 1, wherein first functional unit further include:
One first function subelement;And
One second function subelement, the first function subelement are coupled to the timer with the second function subelement;
Wherein when the timer count reaches the first time interval in second time, which performs one First closes subprogram;When the timer count reaches second time interval in second time, second function is single Member performs one second and closes subprogram;Second time interval is more than the first time interval.
5. electronic device according to claim 1, wherein first functional unit further include:
One audio-frequency power amplifier;
Wherein, when the timer count reaches second time, which makes the audio-frequency power amplifier perform one Normal switching-off program.
6. electronic device according to claim 5, the wherein audio-frequency power amplifier are a horn amplifier or an earphone Amplifier.
7. electronic device according to claim 1, wherein first functional unit are message codec unit, video signal compiles solution Code unit, memory cell, backlight drive circuit or other elements driven by the Power Management Unit.
Produced by 8. electronic device according to claim 1, wherein the switch signal press for a long time for the on-off circuit A continuous signal.
9. a kind of functional unit, is coupled to a Power Management Unit and a processing unit, the processing unit and the functional unit coupling It is connected to an on-off circuit and receives a switch signal caused by the on-off circuit at the same time, which is receiving switch news Number change current potential up to a power-off signal is produced after a first time, which includes:
One timer, counting is proceeded by when the switch signal changes current potential, and the functional unit is in the timer count A bolt down procedure is performed after up to one second time;
Wherein second time is less than this at the first time, receives the power-off signal in the Power Management Unit and interrupts driving Before the power supply of the processing unit and the functional unit, which completes the bolt down procedure.
10. functional unit according to claim 9, the wherein functional unit are message codec unit, video signal encoding and decoding Unit, memory cell, backlight drive circuit or other elements driven by the Power Management Unit.
11. a kind of closedown method, suitable for a kind of electronic device, which includes:
One switch signal is produced by an on-off circuit of the electronic device;
One timer of one processing unit and a functional unit proceeds by counting when the switch signal changes current potential;
After the timer count is up to second time, which performs a bolt down procedure;
A power-off signal is produced after the processing unit was counted up to a first time;And
According to the power-off signal, a Power Management Unit interrupts the power supply for driving the processing unit and the functional unit;
Wherein second time is less than this at the first time, receives the power-off signal in the Power Management Unit and interrupts driving Before the power supply of the processing unit and the functional unit, which completes the bolt down procedure.
12. closedown method according to claim 11, which further includes:
When the functional unit performs the bolt down procedure, which further transmits an out code to the electronic device At least one second functional unit is to perform one second bolt down procedure.
13. including multiple, which further includes for closedown method according to claim 11, the wherein functional unit:
The multiple respective timer of functional unit starts timing respectively when the switch signal changes current potential;
After the multiple functional unit timing reaches second time, the multiple functional unit performs respective closing journey respectively Sequence.
14. closedown method according to claim 11, which further includes:
When the timer reaches the first time interval in second time, one first function subelement of the functional unit is held Row one first closes subprogram;When the timer count reaches second time interval in second time, the functional unit One second function subelement perform one second close subprogram;Second time interval is more than the first time interval.
15. closedown method according to claim 11, the wherein functional unit are message codec unit, video signal encoding and decoding Unit, memory cell, backlight drive circuit or other elements driven by the Power Management Unit.
CN201410022624.3A 2014-01-17 2014-01-17 Electronic device, functional unit and its closedown method Active CN104793965B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410022624.3A CN104793965B (en) 2014-01-17 2014-01-17 Electronic device, functional unit and its closedown method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410022624.3A CN104793965B (en) 2014-01-17 2014-01-17 Electronic device, functional unit and its closedown method

Publications (2)

Publication Number Publication Date
CN104793965A CN104793965A (en) 2015-07-22
CN104793965B true CN104793965B (en) 2018-05-08

Family

ID=53558781

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410022624.3A Active CN104793965B (en) 2014-01-17 2014-01-17 Electronic device, functional unit and its closedown method

Country Status (1)

Country Link
CN (1) CN104793965B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230027611A1 (en) * 2021-07-26 2023-01-26 Realtek Semiconductor Corporation Power supply device, power supply system and non-transitory computer-readable recording medium
TWI812947B (en) * 2021-05-06 2023-08-21 瑞昱半導體股份有限公司 External audio device and method for operating an external audio device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112562597B (en) * 2019-09-26 2022-03-11 瑞昱半导体股份有限公司 Display control device and method with dynamic backlight adjustment mechanism

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1369754A (en) * 2001-02-10 2002-09-18 皇家菲利浦电子有限公司 Spare circuit for electronic device
CN101174246A (en) * 2006-10-31 2008-05-07 佛山市顺德区顺达电脑厂有限公司 Flash memory protection module and closing method thereof
CN101261532A (en) * 2007-03-08 2008-09-10 纬创资通股份有限公司 Electronic device energy supply control module and energy supply control method
CN101430594A (en) * 2007-11-05 2009-05-13 联发科技股份有限公司 Electronic system and power control method thereof
CN101930374A (en) * 2009-06-26 2010-12-29 和硕联合科技股份有限公司 Peripheral control module, computer system and operating method of computer system
CN103297897A (en) * 2012-02-23 2013-09-11 纬创资通股份有限公司 Loudspeaker control method and loudspeaker control system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1369754A (en) * 2001-02-10 2002-09-18 皇家菲利浦电子有限公司 Spare circuit for electronic device
CN101174246A (en) * 2006-10-31 2008-05-07 佛山市顺德区顺达电脑厂有限公司 Flash memory protection module and closing method thereof
CN101261532A (en) * 2007-03-08 2008-09-10 纬创资通股份有限公司 Electronic device energy supply control module and energy supply control method
CN101430594A (en) * 2007-11-05 2009-05-13 联发科技股份有限公司 Electronic system and power control method thereof
CN101930374A (en) * 2009-06-26 2010-12-29 和硕联合科技股份有限公司 Peripheral control module, computer system and operating method of computer system
CN103297897A (en) * 2012-02-23 2013-09-11 纬创资通股份有限公司 Loudspeaker control method and loudspeaker control system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI812947B (en) * 2021-05-06 2023-08-21 瑞昱半導體股份有限公司 External audio device and method for operating an external audio device
US20230027611A1 (en) * 2021-07-26 2023-01-26 Realtek Semiconductor Corporation Power supply device, power supply system and non-transitory computer-readable recording medium

Also Published As

Publication number Publication date
CN104793965A (en) 2015-07-22

Similar Documents

Publication Publication Date Title
CN202236208U (en) Remote control health care massage rod
CN104793965B (en) Electronic device, functional unit and its closedown method
CN107122037A (en) Method and device and system for reducing Type C interface power consumptions
CN205264171U (en) This sign indicating number receiving and dispatching training ware of mole
CN107864140A (en) Multimedia processing system and its operating method
TW201527935A (en) Electrical apparatus, functional unit and shutdown method thereof
CN106849781A (en) A kind of motor drive circuit, method and electronic equipment
CN103533181A (en) Device and method for awakening external equipment of mobile terminal
CN104882155B (en) The anti-lost safe USB disk of low-power consumption
CN107302627A (en) Improve method, mobile terminal and the storage device of mobile terminal endurance
TW200623862A (en) Control circuit and method thereof for reducing power consumption of a display device
CN206672078U (en) A kind of sound card for possessing voice control function
CN201230537Y (en) Wireless master-slave mode voice animal-driving device
CN102695107A (en) Combined microphone for teaching
CN201788408U (en) Handheld control device for intelligent household control system
CN206574232U (en) A kind of charge control system with function of seeking for remote controller
CN106028103A (en) Wearable apparatus, intelligent television, and interactive method and device of wearable apparatus and intelligent television
CN109031935A (en) A kind of smartwatch and its application method with voice prompting function
CN104427440B (en) Electronic device and control method
CN201378420Y (en) Sound device
CN210295320U (en) Doorbell with Bluetooth function
CN204028611U (en) A kind of novel voice identification switch system
CN110460357B (en) Near field communication device, communication method and communication equipment based on magnetic field coding
CN102510454A (en) Control circuit with ultra-low standby power consumption
CN102096382A (en) Interactive sound-control coffee pot controller

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant