Summary of the invention
Mirror, in above content, is necessary to provide a kind of sequential control system and method, can avoid the situation of the CPU electric leakage of vice-mode chip to occur by adjusting pin configuration sequential.
Described sequential control system, for controlling master mold chip and the configuration sequential of vice-mode chip to pin of dual-mode handset, this system comprises: module is set, for the level state of the output pin of this master mold chip after master mold chip powers on, be set to low level, the output pin of described master mold chip is connected to the input pin of described vice-mode chip; The first configuration module, for configure the input pin of described master mold chip according to bimodulus interaction protocol, the input pin of this master mold chip is connected to the output pin of described vice-mode chip; Start module, for controlling vice-mode chip, power on to control this vice-mode chip and according to bimodulus interaction protocol, the input of this vice-mode chip and output pin are configured; Receiver module, has completed the signal of pin configuration for receiving this vice-mode chip of described vice-mode chip transmission according to bimodulus interaction protocol; And second configuration module, for when receiving described vice-mode chip and complete the signal of pin configuration, according to bimodulus interaction protocol, configure the output pin of this master mold chip.
Described sequential control method, for controlling master mold chip and the configuration sequential of vice-mode chip to pin of dual-mode handset, the method comprises: setting steps, after master mold chip powers on, the level state of the output pin of this master mold chip is set to low level, and the output pin of described master mold chip is connected to the input pin of described vice-mode chip; The first configuration step, configures the input pin of described master mold chip according to bimodulus interaction protocol, the input pin of this master mold chip is connected to the output pin of described vice-mode chip; Setting up procedure, control vice-mode chip powers on to control this vice-mode chip and according to bimodulus interaction protocol, the input of this vice-mode chip and output pin is configured; Receiving step, this vice-mode chip that receives described vice-mode chip transmission has completed the signal of pin configuration according to bimodulus interaction protocol; And second configuration step, when receiving described vice-mode chip and complete the signal of pin configuration, according to bimodulus interaction protocol, configure the output pin of this master mold chip.
Compared to prior art, sequential control system of the present invention and method, can avoid the situation of the CPU electric leakage of vice-mode chip to occur by adjusting pin configuration sequential, and then avoid dual-mode handset because the CPU of vice-mode chip electric leakage and situation that cannot normal boot-strap occurs.
Embodiment
As shown in Figure 1, be the Organization Chart of sequential control system of the present invention (hereinafter to be referred as control system) preferred embodiment.In the present embodiment, the output pin 11 of the master mold chip 1 of dual-mode handset 100 is connected to the input pin 21 of described vice-mode chip 2, and the input pin 12 of this master mold chip 1 is connected to the output pin 22 of described vice-mode chip 2.In the master mold chip 1 of the described dual-mode handset 100 of control system 10 operation, for when described dual-mode handset 100 starting up, control the master mold chip 1 of this dual-mode handset 100 and the sequential that vice-mode chip 2 is configured pin (being described output pin 11,22 and input pin 12,21) according to bimodulus interaction protocol.
It should be noted that, bimodulus interaction protocol described in the present embodiment can be based on GSM(global system for mobile communications, global system for mobile communications) and CDMA(Code Division Multiple Access, the code division multiple access) interaction protocol under network schemer.
In the present embodiment, described control system 10 comprises that module 101, the first configuration module 102, startup module 103, receiver module 104 and the second configuration module 105(are set to be consulted shown in Fig. 2).The described module of this enforcement is the program segment that can complete certain function, will be in following specific descriptions about the function of each module.
As shown in Figure 3, be the flow chart of sequential control method preferred embodiment of the present invention.
Step S1, the level state that the output pin 11 of module 101 this master mold chip 1 after master mold chip 1 powers on is set is set to low level.
In general, the output pin 11 of described master mold chip 1 at least comprises for transmitting data or order to the TX pin of vice-mode chip 2, for waking the interrupt pin of vice-mode chip 2 up, for starting the pin of vice-mode chip 2 and for controlling the pin of the power supply of vice-mode chip 2.Describedly the level state that module 101 is about to these pins is set is all set to low level.
Step S2, the first configuration module 102 configures the input pin 12 of this master mold chip 1 according to bimodulus interaction protocol.
Take described input pin 12 as being example for receiving data that vice-mode chip 2 transmitted or the RX pin of order, if the mode of operation of this RX pin of described bimodulus interaction protocol definition master mold chip 1 need be configured to drop-down input, the mode of operation of this RX pin of described the first configuration module 102 configuration master mold chips 1 is drop-down input.
Step S3, startup module 103 control vice-mode chips 2 power on to control this vice-mode chip 2 and according to bimodulus interaction protocol, the input pin 21 of this vice-mode chip 2 and output pin 22 are configured.
Particularly, vice-mode chip 2 powers on, and this vice-mode chip 2, according to the pin configuration method of prior art, is configured the input pin of this vice-mode chip 2 21 and output pin 22 according to bimodulus interaction protocol.In general, the output pin 22 of described vice-mode chip 2 at least comprise for by data or command transfer to the TX pin of described master mold chip 1 and for waking the interrupt pin of master mold chip 1 up.Take the output pin 22 of described vice-mode chip 2 as for being example by data or command transfer to the TX pin of described master mold chip 1, if described bimodulus interaction protocol defines the TX pin of described vice-mode chip 2, need be configured to meet UART(Universal Asynchronous Receiver/Transmitter ' Universal Asynchronous Receiver & dispensing device) pin of communications protocol, the TX pin configuration that described vice-mode chip 2 is about to this vice-mode chip 2 is the pin that meets described UART communications protocol.
Vice-mode chip 2 complete after pin configuration, be sent completely pin configuration signal to master mold chip 1.Particularly, described vice-mode chip 2 can utilize the output pin 22 in this vice-mode chip 2 to send this signal to described master mold chip 1.Take in this vice-mode chip 2 is example for waking the interrupt pin of master mold chip 1 up, suppose that this is set up for low level state according to bimodulus interaction protocol for waking the interrupt pin of master mold chip 1 up, 2 of described vice-mode chips can be pulled out the high pulse signal of height and notify described master mold chip 1 for waking the interrupt pin of master mold chip 1 up by being controlled this.And for example, described in supposing, for waking the interrupt pin of master mold chip 1 up, according to bimodulus interaction protocol, arrange for high level state, 2 of described vice-mode chips can be controlled this pulse signal of pulling out low height for waking the interrupt pin of master mold chip 1 up and notify described master mold chip 1.
In other embodiment, described vice-mode chip 2 can also carry out to be sent completely the signal of pin configuration to described master mold chip 1 in other way, for example, by for transmitting data or order to the signal that completes pin configuration described in the TX pin transmission of master mold chip 1.
Step S4, this vice-mode chip 2 that receiver module 104 reception vice-mode chips 2 send has completed the signal of pin configuration according to bimodulus interaction protocol.
Step S5, the second configuration module 105 configures the output pin 11 of this master mold chip 1 according to bimodulus interaction protocol.
Particularly, take in described master mold chip 1 is example for waking the interrupt pin of described vice-mode chip 2 up, suppose that this interrupt pin that described bimodulus interaction protocol defines described master mold chip 1 need wake described vice-mode chip 2 up in low level mode, described the second configuration module 105 is drawn high the level of this interrupt pin in described master mold chip 1.
From process step of the present invention, can find out, the present invention is before described vice-mode chip 2 powers on, first the output pin of described master mold chip 1 11 is controlled as low level state, according to bimodulus interaction protocol, the input pin of described master mold chip 1 12 is first configured simultaneously, after completing the configuration of its input pin 21 and output pin 22 etc. vice-mode chip 2 according to bimodulus interaction protocol, then control described master mold chip 1 and according to bimodulus interaction protocol, the output pin 11 of this master mold chip 1 is configured.Also before vice-mode chip 2 powers on, can avoid the situation of being drawn high the CPU electric leakage that causes vice-mode chip 2 because of the level of the output pin 11 of master mold chip 1 to occur, and then avoid dual-mode handset 100 because the CPU of vice-mode chip 2 electric leakage and situation that cannot normal boot-strap occurs.
Above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although the present invention is had been described in detail with reference to above preferred embodiment, those of ordinary skill in the art should be appreciated that and can modify or person is equal to replacement and should not departs from the spirit and scope of technical solution of the present invention to technical scheme of the present invention.