1. Technical Field
The present disclosure relates to control systems, and particularly to a control system and a method for lighting up a screen of an electronic device.
2. Description of Related Art
Before the activation of electronic devices, the electronic device will detect whether or not the device is in a ready state, and if so, the electronic device will light up a screen and then implement startup operations. If not, the electronic device will repeat the above step to detect readiness again and again until readiness is detected. If duration of the readiness-detecting function is lengthy, this will result in a longer time for starting up the electronic device.
Therefore, what is needed is a control system for lighting up a screen to overcome the above described limitations.
The processor 24 includes a detecting module 242, a first controlling module 243, a second controlling module 245, and a determining module 244 which is collection of software instructions for execution by the processor 24.
The detecting module 242 detects whether or not the state register 22 is in the ready state in response to an instruction which is instructed hereinafter. The second controlling module 245 controls the electronic device 2 to light up the screen 25 when the state register 22 is in the ready state. The first controlling module 243 controls the electronic device 2 to implement startup operations, and controls the timer 21 to start timing when the state register 22 is in the not-ready state. The determining module 244 determines whether or not duration of time recorded by the timer 21 reaches a predetermined duration of time. The detecting module 242 further detects whether or not the state register 22 is in the ready state when the duration recorded by the timer 21 reaches the predetermined duration. In one embodiment, the predetermined duration is milliseconds (20 ms).
The processor 24 further includes a lighting module 246. The lighting module 246 controls the electronic device 2 to light up the screen 25 after the electronic device 2 has finished startup operations even if the state register 243 is in the not-ready state, thereby avoiding the continuous detection of the state of the state register 22.
In one embodiment, the electronic device 2 further includes a first timer (not labeled) for starting to time when starting up the electronic device 2, to obtain a first duration of time. The determining module 244 determines whether or not the first duration reaches a first predetermined duration. If the first duration reaches the first predetermined duration, it signifies that the electronic device 2 has finished startup operations. Otherwise, the electronic device 2 is deemed not to finished startup operations.
The electronic device 2 further includes a power key 23. The processor 24 further includes a receiving module 241 which is collection of software instructions for execution by the processor 24. The receiving module 241 receives an operation on the power key 23 to the instruction.
The first controlling module 243 further controls the timer 21 to reset when the duration recorded by the timer 21 reaches the predetermined duration.
In step S601, the receiving module 241 receives an operation on the power key 23 to generate the instruction.
In step S602, the detecting module 242 detects whether or not the state register 22 is in the ready state, if yes, the procedure goes to step S605, if no, the procedure goes to step S603.
In step S603, the first controlling module 243 controls the electronic device 2 to implement startup operation, and controls the timer 21 to start timing.
In step S604, the determining module 244 determines whether or not the duration of time recorded by the timer 21 reaches the predetermined duration of time, if yes, the procedure goes to step S602, if no, the procedure goes to step S604.
In step S605, the second controlling module 245 controls the electronic device 2 to light up the screen 25.
In step S606, the first controlling module 243 controls the electronic device 2 to implement startup operations.
The method further includes sub-step: the lighting module 246 controls the electronic device 2 to light up the screen 25 after the electronic device 2 has finished the startup operations even if the state register 243 is in the not-ready state.
The method further includes sub-step: the first controlling module 243 controls the timer 21 to reset when the duration recorded by the timer 21 reaches the predetermined duration.
Although various embodiments have been specifically described, the disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiments without departing from the scope and spirit of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
2013102622936 | Jun 2013 | CN | national |