CN105050172B - A kind of configuration method of power management chip, system and mobile terminal - Google Patents
A kind of configuration method of power management chip, system and mobile terminal Download PDFInfo
- Publication number
- CN105050172B CN105050172B CN201510467274.6A CN201510467274A CN105050172B CN 105050172 B CN105050172 B CN 105050172B CN 201510467274 A CN201510467274 A CN 201510467274A CN 105050172 B CN105050172 B CN 105050172B
- Authority
- CN
- China
- Prior art keywords
- power supply
- register
- management chip
- power management
- setting
- 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.)
- Expired - Fee Related
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
- Power Sources (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明公开了一种电源管理芯片的配置方法、系统及移动终端,其中,所述方法在供电模式需要切换时,根据需要切换到的供电模式,获取该供电模式和当前供电模式对应在电源管理芯片中的寄存器设置;比较这两种供电模式对应的寄存器设置,得到设置不同的寄存器;仅将需要切换到的供电模式中与当前供电模式设置不同的寄存器的设置写入电源管理芯片对应的寄存器中,即可实现供电模式的切换,极大的减少了电源管理芯片在切换供电模式时需要设置的寄存器的数量,从而提高供电模式切换的效率,节省了电池电量。
The invention discloses a power supply management chip configuration method, system and mobile terminal, wherein, when the power supply mode needs to be switched, the method switches to the power supply mode according to the need, and obtains the power supply mode and the current power supply mode corresponding to the power supply management Register settings in the chip; compare the register settings corresponding to the two power supply modes to obtain different registers; only write the settings of the registers that are different from the current power supply mode settings in the power supply mode that needs to be switched to the corresponding registers of the power management chip In this way, the switching of the power supply mode can be realized, which greatly reduces the number of registers that the power management chip needs to set when switching the power supply mode, thereby improving the efficiency of power supply mode switching and saving battery power.
Description
技术领域technical field
本发明涉及通信领域,特别涉及一种电源管理芯片的配置方法、系统及移动终端。The invention relates to the communication field, in particular to a configuration method, system and mobile terminal of a power management chip.
背景技术Background technique
电源管理芯片用来管理移动终端所有模块的供电,电源管理芯片是移动终端最主要的芯片之一,移动终端在使用过程中会有多种模式;模式的多少由移动终端厂商设定,在早期的移动终端中,因为功能单调:移动终端只用作电话、信息,因此对于电源管理来说往往只有四种模式:亮屏状态的飞行模式、灭屏状态的飞行模式、亮屏状态的正常使用模式、灭屏状态的正常使用模式。所谓亮屏状态的飞行模式,即电源管理芯片将移动终端射频部分的供电全部关闭,但其他供电均打开。所谓灭屏状态的飞行模式,即电源管理芯片将移动终端所有供电均关闭。所谓亮屏状态的正常使用模式,即电源管理芯片将移动终端所有供电均打开。所谓灭屏状态的正常使用模式,即电源管理芯片只将移动终端射频部分的供电打开。The power management chip is used to manage the power supply of all modules of the mobile terminal. The power management chip is one of the most important chips of the mobile terminal. The mobile terminal will have multiple modes during use; the number of modes is set by the mobile terminal manufacturer. In the mobile terminal, because the function is monotonous: the mobile terminal is only used for telephone and information, so there are often only four modes for power management: flight mode in the bright screen state, flight mode in the off screen state, and normal use in the bright screen state mode, the normal use mode of the off-screen state. The so-called flight mode in the bright screen state means that the power management chip turns off all the power supplies of the radio frequency part of the mobile terminal, but turns on other power supplies. The so-called flight mode in the off-screen state means that the power management chip turns off all power supplies of the mobile terminal. The normal use mode of the so-called bright screen state means that the power management chip turns on all the power supplies of the mobile terminal. The normal use mode of the so-called off-screen state means that the power management chip only turns on the power supply of the radio frequency part of the mobile terminal.
而目前的移动终端除了电话、信息的基本功能外,还有照相、WIFI、蓝牙等诸多功能,对于电源管理来说模式将更加多。由于各个模式下,电源管理芯片的供电均是不相同的,需要根据模式进行配置;在现有技术中,对于各个模式均配备了一套对应的电源管理芯片设置,当供电模式A切换到模式B时,将获取模式B对应的电源管理芯片的设置,然后将该设置写入电源管理芯片中;其中,所谓的电源管理芯片的设置,实际上就是对电源管理芯片一系列寄存器的设置,即,是通过向电源管理芯片写入相应的寄存器设置来实现各个模块的供电的使能与禁能。In addition to the basic functions of telephone and information, the current mobile terminals also have many functions such as camera, WIFI, Bluetooth, etc., and there will be more modes for power management. Since the power supply of the power management chip is different in each mode, it needs to be configured according to the mode; in the prior art, each mode is equipped with a set of corresponding power management chip settings. B, it will obtain the settings of the power management chip corresponding to mode B, and then write the settings into the power management chip; among them, the so-called settings of the power management chip are actually the settings of a series of registers of the power management chip, that is, , to enable and disable the power supply of each module by writing corresponding register settings to the power management chip.
因此,现有技术中是一种供电模式对应一套电源管理芯片的寄存器设置,当移动终端切换到一种新的供电模式时获取该模式下对应的电源管理芯片的寄存器设置然后写入电源管理芯片;现有技术的这种方法在很多时候存在寄存器重复设置,效率较低,例如:供电模式A和B下WIFI均为禁能(模式A与B对应的电源管理芯片的寄存器设置均是将WIFI供电关闭的),但按照现有技术移动终端的供电模式从模式A切换为模式B或从模式B切换为模式A时,都将会对WIFI的电源进行关闭操作,显然在A、B两模式之间互相切换时对WIFI的电源进行关闭操作都是重复的。上述例子只是冰山一角,在实际的移动终端使用中,特别是功能复杂的移动终端,其重复操作更加多,执行效率更加低。Therefore, in the prior art, a power supply mode corresponds to a set of register settings of a power management chip. When the mobile terminal switches to a new power supply mode, the register settings of the corresponding power management chip in this mode are obtained and then written into the power management chip. chips; in this method of the prior art, there are many register duplication settings, and the efficiency is low. WIFI power supply is turned off), but according to the existing technology, when the power supply mode of the mobile terminal is switched from mode A to mode B or from mode B to mode A, the power supply of WIFI will be turned off. The operation of turning off the power of WIFI when switching between modes is repeated. The above examples are just the tip of the iceberg. In the actual use of mobile terminals, especially mobile terminals with complex functions, there are more repetitive operations and lower execution efficiency.
因此,现有技术还有待改进和提高。Therefore, the prior art still needs to be improved and improved.
发明内容Contents of the invention
鉴于上述现有技术的不足之处,本发明的目的在于提供一种电源管理芯片的配置方法、系统及移动终端,可以极大的减少电源管理芯片在切换供电模式时需要设置的寄存器的数量,从而提高供电模式切换的效率。In view of the shortcomings of the above-mentioned prior art, the object of the present invention is to provide a power management chip configuration method, system and mobile terminal, which can greatly reduce the number of registers that need to be set when the power management chip switches power supply modes, Therefore, the efficiency of power supply mode switching is improved.
为了达到上述目的,本发明采取了以下技术方案:In order to achieve the above object, the present invention has taken the following technical solutions:
一种电源管理芯片的配置方法,所述方法包括:A method for configuring a power management chip, the method comprising:
A、供电模式需要切换时,根据需要切换到的供电模式,获取该供电模式对应在电源管理芯片中的寄存器设置;A. When the power supply mode needs to be switched, according to the power supply mode to be switched to, obtain the register settings corresponding to the power supply mode in the power management chip;
B、获取当前供电模式对应在电源管理芯片中的寄存器设置;B. Obtain the register settings corresponding to the current power supply mode in the power management chip;
C、比较需要切换到的供电模式对应的寄存器设置和当前供电模式对应的寄存器设置,得到设置不同的寄存器;C. Compare the register settings corresponding to the power supply mode to be switched to with the register settings corresponding to the current power supply mode, and obtain registers with different settings;
D、仅将需要切换到的供电模式中与当前供电模式设置不同的寄存器的设置写入电源管理芯片对应的寄存器中。D. Only write the settings of the registers in the power supply mode to be switched to that are different from the current power supply mode settings into the corresponding registers of the power management chip.
所述的电源管理芯片的配置方法中,在所述步骤A之前,还包括:步骤A0、预先在移动终端的存储器中保存电源管理芯片在各种供电模式下对应的各个寄存器的设置。In the configuration method of the power management chip, before the step A, it further includes: Step A0, pre-saving the settings of the registers corresponding to the power management chip in various power supply modes in the memory of the mobile terminal.
所述的电源管理芯片的配置方法中,存储器中保存的各种供电模式下对应的各个寄存器的设置,有一种供电模式对应的寄存器的设置为电源管理芯片复位后的寄存器的默认值。In the configuration method of the power management chip, among the settings of the registers corresponding to various power supply modes stored in the memory, the setting of the register corresponding to one power supply mode is the default value of the register after the power management chip is reset.
所述的电源管理芯片的配置方法中,所述配置方法还包括:步骤E、在供电模式切换后,保存当前供电模式对应在电源管理芯片中的寄存器设置。In the configuration method of the power management chip, the configuration method further includes: step E, after switching the power supply mode, saving the register setting corresponding to the current power supply mode in the power management chip.
所述的电源管理芯片的配置方法中,所述存储器为掉电不易失存储器。In the method for configuring a power management chip, the memory is a non-volatile memory upon power failure.
一种电源管理芯片的配置系统,包括:A configuration system for a power management chip, comprising:
供电设置模块,用于供电模式需要切换时,根据需要切换到的供电模式,获取该供电模式对应在电源管理芯片中的寄存器设置;获取当前供电模式对应在电源管理芯片中的寄存器设置;比较需要切换到的供电模式对应的寄存器设置和当前供电模式对应的寄存器设置,得到设置不同的寄存器;仅将需要切换到的供电模式中与当前供电模式设置不同的寄存器的设置写入电源管理芯片对应的寄存器中。The power supply setting module is used when the power supply mode needs to be switched. According to the power supply mode to be switched to, obtain the register setting corresponding to the power supply mode in the power management chip; obtain the register setting corresponding to the current power supply mode in the power management chip; compare the needs The register settings corresponding to the switched power supply mode and the register settings corresponding to the current power supply mode are set to different registers; only the settings of the registers in the power supply mode to be switched to that are different from the current power supply mode settings are written into the corresponding registers of the power management chip register.
所述的电源管理芯片的配置系统中,所述配置系统还包括设置保存模块,所述设置保存模块用于保存移动终端的电源管理芯片在各种供电模式下对应的各个寄存器的设置。In the configuration system of the power management chip, the configuration system further includes a setting saving module, and the setting saving module is used to save the settings of the corresponding registers of the power management chip of the mobile terminal in various power supply modes.
所述的电源管理芯片的配置系统中,所述设置保存模块中保存的各种供电模式下对应的各个寄存器的设置,有一种供电模式对应的寄存器的设置为电源管理芯片复位后的寄存器的默认值。In the configuration system of the power management chip, the setting of each register corresponding to the various power supply modes saved in the setting saving module has a register setting corresponding to the power supply mode as the default value of the register after the power management chip is reset. value.
所述的电源管理芯片的配置系统中,所述供电设置模块,还用于在供电模式切换后,保存当前供电模式对应在电源管理芯片中的寄存器设置。In the configuration system of the power management chip, the power supply setting module is further configured to save the register settings corresponding to the current power supply mode in the power management chip after the power supply mode is switched.
一种移动终端,包括如上所述的电源管理芯片的配置系统。A mobile terminal includes the configuration system for a power management chip as described above.
相较于现有技术,本发明提供的电源管理芯片的配置方法、系统及移动终端,通过获取需要切换到的供电模式和当前供电模式对应在电源管理芯片中的寄存器设置,并比较两种供电模式下寄存器设置的不同,找出设置不同的寄存器,在切换供电模式时,仅将需要切换到的供电模式中与当前供电模式设置不同的寄存器的设置写入电源管理芯片对应的寄存器中,即可实现供电模式的切换,极大的减少了电源管理芯片在切换供电模式时需要设置的寄存器的数量,从而提高供电模式切换的效率,节省了电池电量。Compared with the prior art, the configuration method, system and mobile terminal of the power management chip provided by the present invention obtain the power supply mode to be switched to and the register settings corresponding to the current power supply mode in the power management chip, and compare the two power supply modes. According to the different register settings in different modes, find out the registers with different settings. When switching the power supply mode, only write the settings of the registers in the power supply mode to be switched to that are different from the current power supply mode settings into the corresponding registers of the power management chip, that is The switch of the power supply mode can be realized, which greatly reduces the number of registers that the power management chip needs to set when switching the power supply mode, thereby improving the efficiency of power supply mode switching and saving battery power.
附图说明Description of drawings
图1为本发明提供的电源管理芯片的配置方法的流程图。FIG. 1 is a flowchart of a method for configuring a power management chip provided by the present invention.
图2为本发明提供的电源管理芯片的配置系统的结构框图。FIG. 2 is a structural block diagram of a power management chip configuration system provided by the present invention.
具体实施方式Detailed ways
本发明提供一种电源管理芯片的配置方法、系统及移动终端。为使本发明的目的、技术方案及效果更加清楚、明确,以下参照附图并举实施例对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。The invention provides a configuration method, system and mobile terminal of a power management chip. In order to make the object, technical solution and effect of the present invention more clear and definite, the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
请参阅图1,本发明提供的电源管理芯片的配置方法,包括步骤:Please refer to Fig. 1, the configuration method of the power management chip provided by the present invention includes steps:
S10、预先在移动终端的存储器中保存电源管理芯片在各种供电模式下对应的各个寄存器的设置。其中,所述存储器中保存的各种供电模式下对应的各个寄存器的设置,有一种供电模式对应的寄存器的设置为电源管理芯片复位后的寄存器的默认值,即,电源管理芯片复位后的默认供电模式为存储器中存储各种供电模式的其中一种,以确保电源管理芯片复位后电源管理芯片仍可正常工作。S10. Pre-save the settings of the registers corresponding to the power management chip in various power supply modes in the memory of the mobile terminal. Among the settings of the corresponding registers in various power supply modes stored in the memory, there is a setting of the register corresponding to the power supply mode as the default value of the register after the power management chip is reset, that is, the default value of the power management chip after reset. The power supply mode is one of various power supply modes stored in the memory, so as to ensure that the power management chip can still work normally after the power management chip is reset.
所述存储器为掉电不易失存储器,如emmc、flash、eeprom等。其中,存储器对各种供电模式下对应的各个寄存器的设置保存为:供电模式1对应寄存器设置1、供电模式2对应寄存器设置2、供电模式3对应寄存器设置3、……、供电模式N对应寄存器设置N。其中,N为大于等于2的自然数。The memory is a power-fail non-volatile memory, such as emmc, flash, eeprom, etc. Among them, the memory stores the settings of the corresponding registers in various power supply modes as follows: power supply mode 1 corresponds to register setting 1, power supply mode 2 corresponds to register setting 2, power supply mode 3 corresponds to register setting 3, ..., power supply mode N corresponds to register Set N. Wherein, N is a natural number greater than or equal to 2.
S20、供电模式需要切换时,根据需要切换到的供电模式,获取该供电模式对应在电源管理芯片中的寄存器设置。具体的,预先将移动终端的各种操作指令与各种供电模式建立对应关系,在接收到用户控制移动终端发出的操作指令后,找出对应的供电模式,该供电模式就是需要切换到的供电模式,根据该需要切换到的供电模式,获取该供电模式对应在电源管理芯片中的寄存器设置。所述“预先将移动终端的各种操作指令与各种供电模式建立对应关系”具体为:操作1对应供电模式K1、操作2对应供电模式K2、操作3对应供电模式K3、……、操作M对应供电模式KM。其中,M为大于等于1的自然数,Kx(x为1、2、3、……、M)为大于等于1的自然数,并且K1、K2、K3、……、KM之间可以相同,换而言之,同一种供电模式可对应多个操作。例如,用户的拍照操作和视频聊天操作中,都需对摄像头供电,拍照操作和视频聊天操作都对应摄像头供电。S20. When the power supply mode needs to be switched, according to the power supply mode to be switched to, acquire the register setting corresponding to the power supply mode in the power management chip. Specifically, various operating instructions of the mobile terminal are correspondingly established with various power supply modes in advance, and the corresponding power supply mode is found after receiving the operation command sent by the user to control the mobile terminal, and this power supply mode is the power supply mode to be switched to. Mode, according to the power supply mode that needs to be switched to, obtain the register settings corresponding to the power supply mode in the power management chip. The "pre-establishing correspondence between various operating instructions of the mobile terminal and various power supply modes" is specifically: operation 1 corresponds to power supply mode K1, operation 2 corresponds to power supply mode K2, operation 3 corresponds to power supply mode K3, ..., operation M Corresponding to the power supply mode KM. Among them, M is a natural number greater than or equal to 1, Kx (x is 1, 2, 3, ..., M) is a natural number greater than or equal to 1, and K1, K2, K3, ..., KM can be the same, instead In other words, the same power supply mode can correspond to multiple operations. For example, the user needs to supply power to the camera during the camera operation and the video chat operation, and both the camera operation and the video chat operation correspond to the power supply of the camera.
S30、获取当前供电模式对应在电源管理芯片中的寄存器设置。S30. Obtain register settings corresponding to the current power supply mode in the power management chip.
S40、比较需要切换到的供电模式对应的寄存器设置和当前供电模式对应的寄存器设置,得到设置不同的寄存器。S40. Compare the register setting corresponding to the power supply mode to be switched to with the register setting corresponding to the current power supply mode, and obtain registers with different settings.
S50、仅将需要切换到的供电模式中与当前供电模式设置不同的寄存器的设置写入电源管理芯片对应的寄存器中。即,比较两种供电模式对应的寄存器设置,在找出设置不同的寄存器后,只需改变这些设置不同的寄存器的设置,即可完成供电模式的切换,极大的减少了电源管理芯片在切换供电模式时需要设置的寄存器的数量,从而提高供电模式切换的效率,节省了电池电量。S50. Only write the settings of the registers in the power supply mode to be switched to that are different from the settings of the current power supply mode into the registers corresponding to the power management chip. That is, compare the register settings corresponding to the two power supply modes. After finding the registers with different settings, you only need to change the settings of these registers with different settings to complete the switching of the power supply mode, which greatly reduces the switching time of the power management chip. The number of registers that need to be set in the power supply mode improves the efficiency of power supply mode switching and saves battery power.
S60、在供电模式切换后,保存当前供电模式对应在电源管理芯片中的寄存器设置。以便下次切换供电模式时,步骤S30的执行。当然,还可以在供电模式切换后,将此次操作指令和设置不同的寄存器及其寄存器设置对应起来,并保存,下次用户通过移动终端发出该操作指令时,无需执行步骤S20、S30和S40,直接执行步骤S50即可,进一步节省了比较的步骤,提高了供电模式切换的效率。S60. After the power supply mode is switched, save the register setting corresponding to the current power supply mode in the power management chip. In order to execute step S30 when switching the power supply mode next time. Of course, after the power supply mode is switched, it is also possible to associate the operation instruction with the different registers and their register settings, and save them. When the user sends the operation instruction through the mobile terminal next time, it is not necessary to perform steps S20, S30 and S40. , directly execute step S50, which further saves the steps of comparison and improves the efficiency of power supply mode switching.
本发明在具体实施时,以3种供电模式为例,这3种供电模式对应的寄存器设置如下:In the specific implementation of the present invention, taking three power supply modes as an example, the registers corresponding to these three power supply modes are set as follows:
电源管理芯片的供电模式1:Power supply mode 1 of the power management chip:
电源管理芯片的供电模式2:Power supply mode 2 of the power management chip:
电源管理芯片的供电模式3:Power supply mode 3 of the power management chip:
设电源管理芯片当前的供电模式为供电模式3,用户对移动终端进行操作,需要将供电模式3切换到供电模式2,设该操作指令为操作2,则比较供电模式3和供电模式2对应的寄存器设置,得到需要设置的寄存器及其设置为:Assume that the current power supply mode of the power management chip is power supply mode 3, the user needs to switch the power supply mode 3 to power supply mode 2 when operating the mobile terminal, and set the operation command as operation 2, then compare the power supply mode 3 and power supply mode 2 corresponding Register settings, get the registers that need to be set and their settings:
因此,只需将地址为0x0101的寄存器的设置修改为0x72、将地址为0x0106的寄存器的设置修改为0x52、将地址为0x0108的寄存器的设置修改为0x88,就完成了从供电模式3到供电模式2的切换。由此可知,在这一例子中,只需修改三个寄存器设置即可完成供电模式的切换。在实际运用中,由于移动终端功能越来越多,供电模式也在增多,供电模式对应的寄存器也越来越多,采用本发明提供的配置方法,可以极大的减少寄存器设置的修改,不仅提高了供电模式的切换效率,还提高了电源管理芯片的使用寿命。Therefore, just modify the setting of the register with address 0x0101 to 0x72, the setting of the register with address 0x0106 to 0x52, and the setting of the register with address 0x0108 to 0x88, and the transition from power supply mode 3 to power supply mode is completed. 2 switch. It can be seen that, in this example, only need to modify the three register settings to complete the switching of the power supply mode. In practical application, since the functions of mobile terminals are increasing, the power supply modes are also increasing, and the registers corresponding to the power supply modes are also increasing. Using the configuration method provided by the present invention can greatly reduce the modification of register settings, not only The switching efficiency of the power supply mode is improved, and the service life of the power management chip is also improved.
而且,由于保存了操作2与寄存器0x0101和寄存器设置0x72、寄存器0x0106和寄存器设置0x52、寄存器0x0108和寄存器设置0x88的对应关系,用户下次执行操作2时,直接将电源管理芯片的寄存器0x0101、寄存器0x0106和寄存器0x0108的设置进行修改即可,省去了获取和比较两种供电模式寄存器设置的动作,进一步提高了供电效率。Moreover, since the corresponding relationship between operation 2 and register 0x0101 and register setting 0x72, register 0x0106 and register setting 0x52, register 0x0108 and register setting 0x88 is saved, when the user performs operation 2 next time, the register 0x0101, register The settings of 0x0106 and register 0x0108 can be modified, which saves the action of obtaining and comparing the register settings of the two power supply modes, and further improves the power supply efficiency.
基于上一实施例提供的电源管理芯片的配置方法,本发明还提供一种电源管理芯片的配置系统,如图2所示,所述配置系统包括供电设置模块10、操作关联模块20和设置保存模块30。Based on the configuration method of the power management chip provided in the previous embodiment, the present invention also provides a configuration system of the power management chip. As shown in FIG. Module 30.
所述操作关联模块20,用于将移动终端的各种操作指令与设置保存模块中的各种供电模式建立对应关系。具体的,将操作1对应供电模式K1、操作2对应供电模式K2、操作3对应供电模式K3、……、操作M对应供电模式KM。其中,M为大于等于1的自然数,Kx(x为1、2、3、……、M)为大于等于1的自然数,并且K1、K2、K3、……、KM之间可以相同,换而言之,同一种供电模式可对应多个操作。例如,用户的拍照操作和视频聊天操作中,都需对摄像头供电,拍照操作和视频聊天操作都对应摄像头供电。The operation association module 20 is used to establish correspondence between various operation instructions of the mobile terminal and various power supply modes in the setting saving module. Specifically, operation 1 corresponds to the power supply mode K1 , operation 2 corresponds to the power supply mode K2 , operation 3 corresponds to the power supply mode K3 , . . . , and operation M corresponds to the power supply mode KM. Among them, M is a natural number greater than or equal to 1, Kx (x is 1, 2, 3, ..., M) is a natural number greater than or equal to 1, and K1, K2, K3, ..., KM can be the same, instead In other words, the same power supply mode can correspond to multiple operations. For example, the user needs to supply power to the camera during the camera operation and the video chat operation, and both the camera operation and the video chat operation correspond to the power supply of the camera.
所述设置保存模块30,用于保存移动终端的电源管理芯片在各种供电模式下对应的各个寄存器的设置。所述设置保存模块30中保存的各种供电模式下对应的各个寄存器的设置,有一种供电模式对应的寄存器的设置为电源管理芯片复位后的寄存器的默认值,即,电源管理芯片复位后的默认供电模式为存储器中存储各种供电模式的其中一种,以确保电源管理芯片复位后电源管理芯片仍可正常工作。The setting saving module 30 is configured to save the setting of each register corresponding to the power management chip of the mobile terminal in various power supply modes. For the setting of each register corresponding to various power supply modes saved in the setting saving module 30, the setting of a register corresponding to a power supply mode is the default value of the register after the power management chip is reset, that is, the default value of the register after the power management chip is reset The default power supply mode is one of various power supply modes stored in the memory, so as to ensure that the power management chip can still work normally after the power management chip is reset.
其中,所述设置保存模块30为存储器,所述存储器为掉电不易失存储器,如emmc、flash、eeprom等。其中,存储器对各种供电模式下对应的各个寄存器的设置保存为:供电模式1对应寄存器设置1、供电模式2对应寄存器设置2、供电模式3对应寄存器设置3、……、供电模式N对应寄存器设置N。其中,N为大于等于2的自然数。Wherein, the setting saving module 30 is a memory, and the memory is a non-volatile memory after power failure, such as emmc, flash, eeprom and the like. Among them, the memory stores the settings of the corresponding registers in various power supply modes: power supply mode 1 corresponds to register setting 1, power supply mode 2 corresponds to register setting 2, power supply mode 3 corresponds to register setting 3, ..., power supply mode N corresponds to register Set N. Wherein, N is a natural number greater than or equal to 2.
所述供电设置模块10,用于供电模式需要切换时,根据需要切换到的供电模式,获取该供电模式对应在电源管理芯片中的寄存器设置;获取当前供电模式对应在电源管理芯片中的寄存器设置;比较需要切换到的供电模式对应的寄存器设置和当前供电模式对应的寄存器设置,得到设置不同的寄存器;仅将需要切换到的供电模式中与当前供电模式设置不同的寄存器的设置写入电源管理芯片对应的寄存器中。具体的,所述供电设置模块10根据移动终端发出的操作指令,从操作关联模块20中找出对应的供电模式,该供电模式就是需要切换到的供电模式,根据该需要切换到的供电模式,从设置保存模块30中获取该供电模式对应的寄存器设置,获取当前供电模式的寄存器设置;比较需要切换到的供电模式对应的寄存器设置和当前供电模式对应的寄存器设置,得到设置不同的寄存器;仅将需要切换到的供电模式中与当前供电模式设置不同的寄存器的设置写入电源管理芯片对应的寄存器中。即,所述供电设置模块10比较两种供电模式对应的寄存器设置,在找出设置不同的寄存器后,只需改变这些设置不同的寄存器的设置,即可完成供电模式的切换,极大的减少了电源管理芯片在切换供电模式时需要设置的寄存器的数量,从而提高供电模式切换的效率,节省了电池电量。The power supply setting module 10 is used when the power supply mode needs to be switched, according to the power supply mode to be switched to, obtains the register setting corresponding to the power supply mode in the power management chip; obtains the register setting corresponding to the current power supply mode in the power management chip ; Compare the register settings corresponding to the power supply mode to be switched to with the register settings corresponding to the current power supply mode, and obtain registers with different settings; only write the settings of the registers in the power supply mode to be switched to that are different from the current power supply mode settings into the power management In the corresponding register of the chip. Specifically, the power supply setting module 10 finds out the corresponding power supply mode from the operation association module 20 according to the operation command sent by the mobile terminal, the power supply mode is the power supply mode to be switched to, and the power supply mode to be switched to according to the need, Obtain the register setting corresponding to the power supply mode from the setting preservation module 30, and obtain the register setting of the current power supply mode; compare the register setting corresponding to the power supply mode to be switched to and the register setting corresponding to the current power supply mode, and obtain different registers; only Write the settings of the registers in the power supply mode to be switched to that are different from the current power supply mode settings into the corresponding registers of the power management chip. That is, the power supply setting module 10 compares the register settings corresponding to the two power supply modes, and after finding the registers with different settings, it only needs to change the settings of these registers with different settings to complete the switching of the power supply mode, which greatly reduces The number of registers that the power management chip needs to set when switching the power supply mode is reduced, thereby improving the efficiency of power supply mode switching and saving battery power.
进一步的,所述供电设置模块10,还用于在供电模式切换后,保存当前供电模式对应在电源管理芯片中的寄存器设置,以便下次切换供电模式时,可直接获取当然供电模式对应的寄存器设置。当然,所述供电设置模块10还可以用于在供电模式切换后,将此次操作指令和设置不同的寄存器及其寄存器设置对应起来,并保存,下次用户通过移动终端发出该操作指令时,无需获取需要切换到的供电模式和当前供电模式对应的寄存器设置,也无需比较这两种供电模式的寄存器设置,直接将该操作指令对应的寄存器设置写入电源管理芯片对应的寄存器中。由此可知,进一步节省了获取和比较的步骤,提高了供电模式切换的效率。Further, the power supply setting module 10 is also used to save the register settings corresponding to the current power supply mode in the power management chip after the power supply mode is switched, so that when the power supply mode is switched next time, the register corresponding to the power supply mode can be obtained directly. set up. Of course, the power supply setting module 10 can also be used to associate the operation instruction with setting different registers and their register settings after the power supply mode is switched, and save it. When the user sends the operation instruction through the mobile terminal next time, There is no need to obtain the register settings corresponding to the power supply mode to be switched to and the current power supply mode, and there is no need to compare the register settings of the two power supply modes, and directly write the register settings corresponding to the operation instruction into the corresponding registers of the power management chip. It can be seen that the steps of acquisition and comparison are further saved, and the efficiency of power supply mode switching is improved.
在具体实施时,以3种供电模式为例,这3种供电模式对应的寄存器设置如下:In the specific implementation, taking three power supply modes as an example, the registers corresponding to these three power supply modes are set as follows:
电源管理芯片的供电模式1:Power supply mode 1 of the power management chip:
电源管理芯片的供电模式2:Power supply mode 2 of the power management chip:
电源管理芯片的供电模式3:Power supply mode 3 of the power management chip:
设电源管理芯片当前的供电模式为供电模式3,用户对移动终端进行操作,需要将供电模式3切换到供电模式2,设该操作指令为操作2,则供电设置模块10比较供电模式3和供电模式2对应的寄存器设置,得到需要设置的寄存器及其设置为:Assume that the current power supply mode of the power management chip is power supply mode 3, the user needs to switch the power supply mode 3 to power supply mode 2 when operating the mobile terminal, and set the operation command as operation 2, then the power supply setting module 10 compares the power supply mode 3 with the power supply mode 2. The register settings corresponding to mode 2, the registers to be set and their settings are obtained:
因此,只需将地址为0x0101的寄存器的设置修改为0x72、将地址为0x0106的寄存器的设置修改为0x52、将地址为0x0108的寄存器的设置修改为0x88,就完成了从供电模式3到供电模式2的切换。由此可知,在这一例子中,只需修改三个寄存器设置即可完成供电模式的切换。在实际运用中,由于移动终端功能越来越多,供电模式也在增多,供电模式对应的寄存器也越来越多,采用本发明提供的配置方法,可以极大的减少寄存器设置的修改,不仅提高了供电模式的切换效率,还提高了电源管理芯片的使用寿命。Therefore, just modify the setting of the register with address 0x0101 to 0x72, the setting of the register with address 0x0106 to 0x52, and the setting of the register with address 0x0108 to 0x88, and the transition from power supply mode 3 to power supply mode is completed. 2 switch. It can be seen that, in this example, only need to modify the three register settings to complete the switching of the power supply mode. In practical application, since the functions of mobile terminals are increasing, the power supply modes are also increasing, and the registers corresponding to the power supply modes are also increasing. Using the configuration method provided by the present invention can greatly reduce the modification of register settings, not only The switching efficiency of the power supply mode is improved, and the service life of the power management chip is also improved.
而且,由于供电设置模块10保存了操作2与寄存器0x0101和寄存器设置0x72、寄存器0x0106和寄存器设置0x52、寄存器0x0108和寄存器设置0x88的对应关系,用户下次执行操作2时,供电设置模块10直接将电源管理芯片的寄存器0x0101、寄存器0x0106和寄存器0x0108的设置进行修改即可,省去了获取和比较两种供电模式寄存器设置的动作,进一步提高了供电效率。Moreover, since the power supply setting module 10 has saved the corresponding relationship between operation 2 and register 0x0101 and register setting 0x72, register 0x0106 and register setting 0x52, register 0x0108 and register setting 0x88, when the user performs operation 2 next time, the power supply setting module 10 directly sets The settings of register 0x0101, register 0x0106 and register 0x0108 of the power management chip can be modified, which saves the action of obtaining and comparing the register settings of the two power supply modes, and further improves the power supply efficiency.
基于上一实施例提供的电源管理芯片的配置系统,本发明还提供一种移动终端,包括如上所述的电源管理芯片的配置系统。由于所述移动终端电源管理芯片的配置原理和特征在上一实施例中已详细阐述,在次不再赘述。Based on the power management chip configuration system provided in the previous embodiment, the present invention further provides a mobile terminal, including the above power management chip configuration system. Since the configuration principles and features of the mobile terminal power management chip have been described in detail in the previous embodiment, they will not be repeated here.
可以理解的是,对本领域普通技术人员来说,可以根据本发明的技术方案及其发明构思加以等同替换或改变,而所有这些改变或替换都应属于本发明所附的权利要求的保护范围。It can be understood that those skilled in the art can make equivalent replacements or changes according to the technical solutions and inventive concepts of the present invention, and all these changes or replacements should belong to the protection scope of the appended claims of the present invention.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510467274.6A CN105050172B (en) | 2015-08-03 | 2015-08-03 | A kind of configuration method of power management chip, system and mobile terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510467274.6A CN105050172B (en) | 2015-08-03 | 2015-08-03 | A kind of configuration method of power management chip, system and mobile terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN105050172A CN105050172A (en) | 2015-11-11 |
| CN105050172B true CN105050172B (en) | 2018-09-18 |
Family
ID=54456261
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510467274.6A Expired - Fee Related CN105050172B (en) | 2015-08-03 | 2015-08-03 | A kind of configuration method of power management chip, system and mobile terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105050172B (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109412637A (en) * | 2018-09-28 | 2019-03-01 | Tcl移动通信科技(宁波)有限公司 | Mobile terminal radio frequency frequency range setting method, device and computer equipment |
| CN109862568A (en) * | 2019-03-15 | 2019-06-07 | 京信通信系统(中国)有限公司 | Switching method, device, computer equipment and storage medium of base station frequency point |
| CN112017580B (en) | 2020-09-02 | 2022-02-22 | Tcl华星光电技术有限公司 | Display device driving system and electronic apparatus |
| CN113014773B (en) * | 2021-03-02 | 2023-08-01 | 山东鲁软数字科技有限公司智慧能源分公司 | Video visualization monitoring system and method for overhead line |
| CN115396243B (en) * | 2022-10-27 | 2023-03-14 | 武汉思创易控科技有限公司 | A PoE power supply control method, storage medium and terminal |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101155362A (en) * | 2006-09-29 | 2008-04-02 | 联想(北京)有限公司 | Electric power controller and method for mobile terminal |
| CN101719964A (en) * | 2009-11-27 | 2010-06-02 | 中兴通讯股份有限公司 | Mobile terminal and Power management method thereof |
| CN104298147A (en) * | 2014-09-01 | 2015-01-21 | 上海大唐移动通信设备有限公司 | Power management device and method |
| CN104808730A (en) * | 2015-04-10 | 2015-07-29 | 惠州Tcl移动通信有限公司 | Control method and system for output voltage of mobile terminal and power supply management chip thereof |
-
2015
- 2015-08-03 CN CN201510467274.6A patent/CN105050172B/en not_active Expired - Fee Related
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101155362A (en) * | 2006-09-29 | 2008-04-02 | 联想(北京)有限公司 | Electric power controller and method for mobile terminal |
| CN101719964A (en) * | 2009-11-27 | 2010-06-02 | 中兴通讯股份有限公司 | Mobile terminal and Power management method thereof |
| CN104298147A (en) * | 2014-09-01 | 2015-01-21 | 上海大唐移动通信设备有限公司 | Power management device and method |
| CN104808730A (en) * | 2015-04-10 | 2015-07-29 | 惠州Tcl移动通信有限公司 | Control method and system for output voltage of mobile terminal and power supply management chip thereof |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105050172A (en) | 2015-11-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105050172A (en) | Power management chip configuration method, power management chip configuration system and mobile terminal | |
| CN105517128B (en) | A network switching method, device and terminal | |
| US20100034042A1 (en) | Power consumption-oriented management of a storage system | |
| US9727114B2 (en) | HW-controlled power domains with automatic power-on request | |
| CN105517083B (en) | A kind of method for switching network, device and terminal | |
| CN103197962B (en) | Multi-process state switching method and device | |
| CN105896086A (en) | Impedance matching method and device | |
| CN102722455A (en) | Method and device for storing data in flash memory equipment | |
| CN102377880A (en) | Mobile phone and power saving method thereof | |
| CN105573796A (en) | Function switching method and function switching device for FPGA | |
| CN105511803A (en) | Processing method of erasing interruption of storage mediums | |
| CN103206961A (en) | Vehicle navigation system and information storing method thereof | |
| CN104660818B (en) | Mobile terminal based audio parameter configuration method and system | |
| CN104834610A (en) | Magnetic disk power-down protection circuit and method | |
| CN102572110A (en) | Smart phone power-down protection system and method | |
| CN103176800A (en) | Application program login method and device | |
| CN113518501B (en) | Intelligent lighting system equipment replacement method, system, device and storage medium | |
| US20220312526A1 (en) | Dual-connectivity mode launching method, mobile terminal, and readable storage medium | |
| CN103297620A (en) | Power-down protection system and method for smart phone | |
| CN105472599A (en) | Method for accessing SIM cards and double-card mobile terminal | |
| CN104484619A (en) | Method for accessing file system of smart card through application module | |
| CN102521065B (en) | Method for dynamic loading of configuration file through FPGA (field programmable gate array) | |
| CN102447765A (en) | Mobile terminal with circulation prompting function and method for realizing circulation prompting | |
| CN101835062B (en) | Method for processing service plate changeover and shelf control unit | |
| CN107734165B (en) | Mobile terminal, display screen register read-write overrun early warning method and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20201023 Address after: 6 building, No. 999, Lane 315100, sailing Road, hi tech Zone, Zhejiang, Ningbo, 5 Patentee after: TCL COMMUNICATION (NINGBO) Co.,Ltd. Address before: 10 building, No. 999, Lane 315100, sailing Road, hi tech Zone, Zhejiang, Ningbo, 5 Patentee before: TCL mobile communication technology (Ningbo) Co.,Ltd. |
|
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180918 |