The apparatus 1 includes a microcontroller unit (MCU) 2, an input unit 3, a storage unit 4, a backlight unit 5, and a display unit 6. The input unit 3 is configured for receiving operational inputs from users. Typically, the input unit 3 is a keypad. The backlight unit 5 is configured for providing lighting. The backlight unit 5 includes a keypad backlight unit 51 and a display backlight unit 52. The keypad backlight unit 51 is configured for illuminating the keypad 3 of the apparatus 1. The display backlight unit 52 is configured for illuminating the display unit 6.
The MCU 2 includes a timing module 21, a backlight controlling module 22, an acquiring module 23, an executing module 24, and a setting module 25. The timing module 21 is configured for counting a time period. The executing module 24 is configured for running the application programs, thus performing corresponding functions of the operation modes. The executing module 24 further generates a mode signal that indicates a current operation mode of the apparatus 1.
The setting module 25 is configured for assigning predetermined time periods to each of the operation modes, namely setting relationships between the operation modes and the predetermined time periods. Each of the operation modes can be set with a corresponding predetermined time period, i.e., different operation modes may have different predetermined time periods. Furthermore, in the same operation mode, the keypad backlight unit 51 and the display backlight unit 52 can be set with different predetermined time periods. For example, in the video play mode, the display unit 6 displays video information while the keypad 3 is idle, consequently, the display backlight unit 52 needs to remain enabled while the keypad backlight unit 51 can be set with a predetermined time period of 3 seconds. The setting module 25 further stores the relationships into a setting table 41 (see
The acquiring module 23 is configured for detecting the current operation mode according to the mode signal generated by the executing module 24, and for reading the corresponding predetermined time periods from the setting table 41 according to the current operation mode. The backlight controlling module 22 is configured for controlling the backlight unit 5 to be enabled or to remain enabled while the input unit 3 receives the operational inputs, and for disabling the backlight unit 5 based on not receiving operational inputs from users for the read predetermined time period.
In step S101, the executing module 24 controls the apparatus 1 to switch to an operation mode to perform the corresponding function while the input unit 3 receives an operational input from users, and generates the mode signal that indicates the current operation mode of the apparatus 1.
In step S102, the acquiring module 23 detects the current operation mode according to the mode signal, and reads the corresponding predetermined time period from the setting table 41 according to the current operation mode indicated by the mode signal.
In step S103, the backlight controlling module 22 determines whether the read predetermined time period is 0 seconds, which means backlight is not needed in the current operation mode.
If the read predetermined time period is 0 seconds, the procedure goes to step S107 described below.
If the read predetermined time period is not 0 seconds, in step S104, the backlight controlling module 22 controls the backlight unit 5 to be enabled or remain enabled, and the timing module 21 starts or restarts to count a time period.
In step S105, the input unit 3 determines whether an input is received.
If an input is received, the procedure goes back to step S104, the timing module 21 restarts to count a time period.
If no operational inputs are received, in step S106, the timing module 21 determines whether the counted time period has exceeded the read predetermined time period.
If the counted time period has not exceeded the read predetermined time period, the procedure goes back to S105 described above.
If the counted time period has exceeded the read predetermined time period, in step S107, the backlight controlling module 22 controls the backlight unit 5 to turn off.
Therefore, by utilizing the apparatus 1, backlight can be automatically turned off in unnecessary operation modes, thereby saving power consumption of the apparatus 1 and prolonging the use life time of the apparatus 1.
Although the present invention has been specifically described on the basis of a preferred embodiment including a preferred method thereof, the invention is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiment including the method without departing from the scope and spirit of the invention.
Number | Date | Country | Kind |
---|---|---|---|
200610062570.9 | Sep 2006 | CN | national |