Root control circuit of terminal equipment and connector
By designing a flash control circuit that includes a processor chip, TYPE-C interface and charging control circuit, it automatically outputs a bi-phase mark code to activate the debug interface, solving the problem of cumbersome manual operations in mobile phone maintenance and realizing rapid flashing of terminal equipment. mode, simplifying operations and saving time and effort.
Patent Information
- Application Number
- CN202420549164.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-20
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2034-03-20
AI Technical Summary
During the repair process of mobile phones, entering the flash mode requires manual operation of the power button, which is cumbersome, time-consuming and labor-intensive.
Design a flash control circuit for terminal equipment, including a processor chip, a TYPE-C interface male header, a charging control circuit and a voltage stabilizing circuit. It is connected to the TYPE-C interface male header through a bi-phase mark encoding sending pin and automatically outputs dual Phase mark encoding to activate debug_tx and debug_rx, and use AT commands to put the terminal device into flash mode.
There is no need for the user to operate the power button on the terminal device, and the terminal device can be quickly and easily entered into the flash mode, saving time and effort.
Smart Images

Figure CN221841335U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the field of electronic technology, in particular to a flash control circuit and a connector of a terminal device. Background Art
[0002] In the traditional mobile phone repair process, the mobile phone needs to be quickly put into flashing mode by pressing a button. Or, when a mobile phone or tablet is being repaired on a single board, it needs to be connected to the outer shell to enter the flashing mode. Entering the flashing mode is cumbersome and time-consuming. Utility Model Content
[0003] Based on this, it is necessary to provide a flashing control circuit and connector for a terminal device to address the above technical problems, so that the terminal device can quickly enter the flashing mode without the user having to operate the buttons on the terminal device. The operation is simple, saving time and effort.
[0004] A flashing control circuit of a terminal device, the flashing control circuit comprising a processor chip, a TYPE-C interface male plug, a charging control circuit and a voltage stabilizing circuit;
[0005] The biphase mark coded sending pin of the processor chip is connected to the CC1 pin of the TYPE-C interface male connector, and the TYPE-C interface male connector is used to connect to the TYPE-C interface female connector of the terminal device;
[0006] The voltage input terminal of the voltage stabilizing circuit is used to be connected to an external power supply, and the voltage output terminal of the voltage stabilizing circuit is connected to the voltage input terminal of the processor chip;
[0007] The voltage input end of the charging control circuit is connected to the external power supply, the control end of the charging control circuit is connected to the enable pin of the processor chip, and the voltage output end of the charging control circuit is connected to the voltage input pin of the TYPE-C interface male connector.
[0008] Preferably, the processor chip is of model HC32L110 and is packaged in QFN20; the transmitting pin of the bi-phase mark encoding is a pin obtained by merging pins 19 and 20 of the processor chip.
[0009] Preferably, when the processor chip is in a data sending state, pin 19 of the processor chip is set to an output mode, and the bi-phase mark coding is a TTL level of 1.8V.
[0010] Preferably, when the processor chip is in a data receiving state, pins 19 and 20 of the processor chip are both set to input mode and pin 20 of the processor chip is set to interrupt input mode;
[0011] The processor chip receives a 1.2V TTL level from the terminal device.
[0012] Preferably, pin 15 of the processor chip is connected to pin B8 of the TYPE-C male interface, and pin 14 of the processor chip is connected to pin A8 of the TYPE-C male interface.
[0013] Preferably, the voltage stabilizing circuit comprises a first transistor of the patch type of the XC6206P model, the voltage input terminal of the first transistor is used to be connected to an external power supply, and the external power supply provides a 5V voltage;
[0014] The voltage output end of the first transistor is connected to the voltage input pin of the processor chip, the voltage output end of the first transistor outputs a 1.8V voltage, and the ground end of the first transistor is grounded.
[0015] Preferably, the charging control circuit comprises a second triode and a third triode;
[0016] The control end of the second triode is connected to the enable pin of the processor chip, the output end of the second triode is grounded, and the input end of the second triode is connected to the control end of the third triode;
[0017] The input end of the third transistor is connected to the external power supply, and the output end of the third transistor is respectively connected to the A4 pin, the A9 pin, the B4 pin and the B9 pin of the TYPE-C interface male connector.
[0018] Preferably, the second transistor is a BSS138 transistor, and the third transistor is an AO3401 transistor.
[0019] A connector, comprising any one of the above-mentioned flash control circuits, and further comprising a second interface male connector;
[0020] The second interface male connector is connected to the voltage input terminal of the voltage stabilizing circuit, and the second interface male connector is also connected to the voltage input terminal of the charging control circuit.
[0021] Preferably, the second interface male connector is a Mini USB connector, a Micro USB connector, a Type-C connector or a Lighting connector.
[0022] The above-mentioned terminal device has a flashing control circuit and connector, the flashing control circuit includes a processor chip, a TYPE-C interface male connector, a charging control circuit and a voltage stabilizing circuit; the bi-phase mark coded sending pin of the processor chip is connected to the CC1 pin of the TYPE-C interface male connector, and the TYPE-C interface male connector is used to connect to the TYPE-C interface female connector of the terminal device; the voltage input end of the voltage stabilizing circuit is used to connect to an external power supply, and the voltage output end of the voltage stabilizing circuit is connected to the voltage input end of the processor chip; the voltage input end of the charging control circuit is connected to the external power supply, the control end of the charging control circuit is connected to the enable pin of the processor chip, and the voltage output end of the charging control circuit is connected to the voltage input pin of the TYPE-C interface male connector.
[0023] For the flashing control circuit, when the voltage input end of the charging control circuit is connected to the external power supply and the TYPE-C interface male plug is inserted into the TYPE-C interface female socket of the terminal device, the bi-phase mark code sending pin of the processor chip can output the bi-phase mark code to the TYPE-C interface female socket of the terminal device through the CC1 pin of the TYPE-C interface male plug, so that the terminal device activates debug_tx and debug_rx and then uses AT instructions to make the terminal device enter the flashing mode through debug_tx. No manual operation is required, just connect the flashing control circuit to the terminal device to make the terminal device enter the flashing mode, which is simple to operate and saves time and effort. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 This is a structural block diagram of a flash control circuit of a terminal device in one embodiment of the utility model;
[0025] Figure 2 A circuit diagram of a processor chip in one embodiment of the utility model;
[0026] Figure 3 This is a circuit diagram of a TYPE-C male connector in one embodiment of the utility model;
[0027] Figure 4 A circuit diagram of a voltage stabilizing circuit in one embodiment of the utility model;
[0028] Figure 5 A circuit diagram of a charging control circuit in one embodiment of the utility model;
[0029] Figure 6 This is a schematic diagram of the connection between the MCU chip inside the data cable and the TYPE-C interface of the mobile phone in one embodiment of the utility model. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solution and advantages of the utility model more clear, the utility model is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the utility model and are not used to limit the utility model.
[0031] The utility model provides a flash control circuit of a terminal device, such as Figure 1 As shown, a flash control circuit 10 of a terminal device includes a processor chip 101, a TYPE-C interface male connector 102, a charging control circuit 103 and a voltage stabilizing circuit 104. The bi-phase mark coded transmitting pin of the processor chip 101 is connected to the CC1 pin of the TYPE-C interface male connector 102, and the TYPE-C interface male connector 102 is used to connect to the TYPE-C interface female connector of the terminal device 20; the voltage input end of the voltage stabilizing circuit 104 is used to connect to the external power supply 30, and the voltage output end of the voltage stabilizing circuit 104 is connected to the voltage input end of the processor chip 101; the voltage input end of the charging control circuit 103 is connected to the external power supply 30, the control end of the charging control circuit 103 is connected to the enable pin of the processor chip 101, and the voltage output end of the charging control circuit 103 is connected to the voltage input pin of the TYPE-C interface male connector 102.
[0032] The terminal device may be a mobile terminal such as a smart phone or a tablet computer.
[0033] In one embodiment, the processor chip 101 is HC32L110 and is packaged in QFN20. The transmitting pin of the bi-phase mark coding is the pin obtained by merging the 19th pin and the 20th pin of the processor chip 101.
[0034] In one embodiment, when the processor chip is in a data transmission state, pin 19 of the processor chip is set to an output mode, and the bi-phase mark encoding is a 1.8V TTL level.
[0035] In one embodiment, when the processor chip is in a data receiving state, pins 19 and 20 of the processor chip are both set to input mode and pin 20 of the processor chip is set to interrupt input mode; wherein the processor chip receives a 1.2V TTL level from the terminal device.
[0036] Specifically, Figure 2As shown, the processor chip U1 uses the HC32L110 model and adopts a QFN20 package. The 19th and 20th pins of the processor chip U1 are combined and connected to the CC1 pin of the TYPE-C interface male connector. When sending data, the 19th pin (i.e., P35) of the processor chip U1 is set to output mode, and through software simulation, the biphase mark coding (BMC) protocol of the 1.8V TTL level is sent to the terminal device. The data sent by the terminal device to the processor chip U1 is a 1.2V TTL level. The processor chip U1 receives compatible 1.2V and 1.8V levels. When receiving data, the 19th and 20th pins (P35, P36) of the processor chip U1 are set to input mode, and P36 is set to interrupt input mode, so that the 1.2V data sent by the terminal device can be efficiently collected.
[0037] In one embodiment, pin 15 of the processor chip is connected to pin B8 of the TYPE-C male connector, and pin 14 of the processor chip is connected to pin A8 of the TYPE-C male connector.
[0038] Specifically, the pins of the TYPE-C male connector are as follows: Figure 3 As shown, combined Figure 2 As shown in the circuit of the processor chip U1, the 15th pin TXD of the processor chip U1 is connected to the B8 pin of the TYPE-C interface male connector, and the 14th pin RXD of the processor chip U1 is connected to the A8 pin of the TYPE-C interface male connector. The processor chip U1 works in the standard UART with a rate of 115200. After the terminal device enters debug, the processor chip U1 communicates with the terminal device through AT commands.
[0039] In one embodiment, the voltage stabilizing circuit includes a first transistor of the XC6206P surface-mount type, wherein the voltage input terminal of the first transistor is used to connect to an external power supply, and the external power supply provides a 5V voltage; the voltage output terminal of the first transistor is connected to the voltage input pin of the processor chip, the voltage output terminal of the first transistor outputs a 1.8V voltage, and the ground terminal of the first transistor is grounded.
[0040] Specifically, the voltage stabilizing circuit is as follows Figure 4 As shown, combined with Figure 2 The circuit diagram of the processor chip U1 in FIG. The first transistor Q1 outputs a 1.8V voltage to the 6th pin of the processor chip U1 to provide a stable 1.8V voltage for the processor chip U1.
[0041] In one embodiment, the charging control circuit includes a second triode and a third triode; the control end of the second triode is connected to the enable pin of the processor chip, the output end of the second triode is grounded, and the input end of the second triode is connected to the control end of the third triode; the input end of the third triode is connected to the external power supply, and the output end of the third triode is respectively connected to the A4 pin, the A9 pin, the B4 pin, and the B9 pin of the TYPE-C interface male connector. Among them, the second triode is a BSS138 triode, and the third triode is an AO3401 triode.
[0042] Specifically, the charging control circuit is as follows: Figure 5 As shown, combined Figure 2 Circuit diagram of processor chip U1 and Figure 3 Circuit diagram of the TYPE-C male interface. The processor chip U1 works at 1.8V and cannot directly drive the third transistor Q3, so it drives the second transistor Q2, which in turn controls the third transistor Q3 to achieve charging control. Figure 3 As shown, the drain V_OUT of the third transistor Q3 is connected to the four pins of the TYPE-C male connector, namely the 4 pin, the A9 pin, the B4 pin and the B9 pin. The source of the third transistor Q3 is connected to the 5V external power supply of the USB-A port of the charger. When fully charged, the 3 pin of the processor chip U1 outputs a low level, and the second transistor Q2 and the third transistor Q3 are turned off at the same time, turning off charging. When charging, the 3 pin of the processor chip U1 is at a high level, and the second transistor Q2 and the third transistor Q3 are turned on at the same time to charge the smart terminal.
[0043] Therefore, for the flash control circuit, when the voltage input end of the charging control circuit is connected to the external power supply and the TYPE-C interface male plug is inserted into the TYPE-C interface female socket of the terminal device, the bi-phase mark code sending pin of the processor chip can output the bi-phase mark code to the TYPE-C interface female socket of the terminal device through the CC1 pin of the TYPE-C interface male plug, so that the terminal device activates debug_tx and debug_rx and then uses AT instructions to make the terminal device enter the flash mode through debug_tx. No manual operation is required, just connect the flash control circuit to the terminal device to make the terminal device enter the flash mode, which is simple to operate and saves time and effort.
[0044] The utility model also provides a connector, including any one of the above-mentioned flashing control circuits, and also including a second interface male head; the second interface male head is connected to the voltage input end of the voltage stabilizing circuit, and the second interface male head is also connected to the voltage input end of the charging control circuit.
[0045] In one embodiment, the second interface male connector is a Mini USB connector, a Micro USB connector, a Type-C connector, or a Lighting connector.
[0046] Specifically, the connector can be a data cable. The above-mentioned flash control circuit is configured in the data cable, and the second interface male head is configured at the other end. In practical applications, the data cable can be a USB cable (Universal Serial Bus, USB cable for short). Correspondingly, the second interface male head can be a Mini USB connector, a Micro USB connector, a Type-C connector, or a Lighting connector, etc. The first interface male head, i.e., the Type-C connector, is a USB connector. The data interface of the terminal device can be a Mini USB interface, a Micro USB interface, a Type-C interface, or a Lighting interface, etc., which is set according to the actual situation and is not limited here.
[0047] In one example, the terminal device is a mobile phone, and the flashing mode control method of the terminal device using the above connector is specifically as follows:
[0048] After the phone is turned off, one connector of the data cable is connected to the computer USB port or charger for power supply, and the other connector of the data cable is plugged into the phone. The connection diagram of the MCU chip inside the data cable and the TYPE-C interface of the phone is as follows Figure 6 As shown. The MCU chip inside the data line outputs a 1.2V voltage bi-phase mark coding (BMC) protocol to the CC1 pin (A5) of the mobile phone's TYPE-C interface, so that the mobile phone activates debug_tx and debug_rx. Then the MCU chip uses AT instructions to make the mobile phone enter the flashing mode, that is, the recovery mode, through debug_tx.
[0049] The above-mentioned embodiments only express several implementation methods of the utility model, and the description is relatively specific and detailed, but it cannot be understood as limiting the scope of the utility model patent. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the utility model, which all belong to the protection scope of the utility model. Therefore, the protection scope of the utility model patent shall be based on the attached claims.
Claims
1. A flash control circuit for a terminal device, It is characterized in that The flash control circuit includes a processor chip, a TYPE-C male interface, a charging control circuit and a voltage stabilizing circuit; The biphase mark coded sending pin of the processor chip is connected to the CC1 pin of the TYPE-C interface male connector, and the TYPE-C interface male connector is used to connect to the TYPE-C interface female connector of the terminal device; The voltage input terminal of the voltage stabilizing circuit is used to be connected to an external power supply, and the voltage output terminal of the voltage stabilizing circuit is connected to the voltage input terminal of the processor chip; The voltage input end of the charging control circuit is connected to the external power supply, the control end of the charging control circuit is connected to the enable pin of the processor chip, and the voltage output end of the charging control circuit is connected to the voltage input pin of the TYPE-C interface male connector.
2. The flash control circuit according to claim 1, It is characterized in that The processor chip is of model HC32L110 and is packaged in QFN20; the sending pin of the bi-phase mark code is a pin obtained by merging pins 19 and 20 of the processor chip.
3. The flash control circuit according to claim 2, It is characterized in that When the processor chip is in a data sending state, the 19th pin of the processor chip is set to an output mode, and the bi-phase mark code is a 1.8V TTL level.
4. The flash control circuit according to claim 3, It is characterized in that When the processor chip is in a data receiving state, pins 19 and 20 of the processor chip are both set to input mode and pin 20 of the processor chip is set to interrupt input mode; The processor chip receives a 1.2V TTL level from the terminal device.
5. The flash control circuit according to claim 2, It is characterized in that The 15th pin of the processor chip is connected to the B8th pin of the TYPE-C male interface, and the 14th pin of the processor chip is connected to the A8th pin of the TYPE-C male interface.
6. The flash control circuit according to claim 1, It is characterized in that The voltage stabilizing circuit includes a first transistor of the patch type of the XC6206P model, wherein the voltage input terminal of the first transistor is used to be connected to the external power supply, and the external power supply provides a 5V voltage; The voltage output end of the first transistor is connected to the voltage input pin of the processor chip, the voltage output end of the first transistor outputs a 1.8V voltage, and the ground end of the first transistor is grounded.
7. The flash control circuit according to claim 1, It is characterized in that The charging control circuit includes a second triode and a third triode; The control end of the second transistor is connected to the enable pin of the processor chip, the output end of the second transistor is grounded, and the input end of the second transistor is connected to the control end of the third transistor; The input end of the third transistor is connected to the external power supply, and the output end of the third transistor is respectively connected to the A4 pin, A9 pin, B4 pin and B9 pin of the TYPE-C interface male connector.
8. The flash control circuit according to claim 7, It is characterized in that The second transistor is a BSS138 transistor, and the third transistor is an AO3401 transistor.
9. A connector, It is characterized in that The flash control circuit comprises any one of claims 1 to 8, and further comprises a second male interface connector; The second interface male connector is connected to the voltage input terminal of the voltage stabilizing circuit, and the second interface male connector is also connected to the voltage input terminal of the charging control circuit.
10. The connector according to claim 9, It is characterized in that The second interface male connector is a MiniUSB connector, a Micro USB connector, a Type-C connector or a Lighting connector.
