CN111241023A - Insertion detection circuit and method of flash memory card, and electronic device - Google Patents

Insertion detection circuit and method of flash memory card, and electronic device Download PDF

Info

Publication number
CN111241023A
CN111241023A CN202010061252.0A CN202010061252A CN111241023A CN 111241023 A CN111241023 A CN 111241023A CN 202010061252 A CN202010061252 A CN 202010061252A CN 111241023 A CN111241023 A CN 111241023A
Authority
CN
China
Prior art keywords
insertion detection
power supply
flash memory
memory card
unit
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.)
Granted
Application number
CN202010061252.0A
Other languages
Chinese (zh)
Other versions
CN111241023B (en
Inventor
俞斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Huasi Intelligent Intellectual Property Operation Co ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202010061252.0A priority Critical patent/CN111241023B/en
Publication of CN111241023A publication Critical patent/CN111241023A/en
Application granted granted Critical
Publication of CN111241023B publication Critical patent/CN111241023B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4022Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/266Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Power Sources (AREA)

Abstract

The embodiment of the application provides an insertion detection circuit and an insertion detection method of a flash memory card and electronic equipment. The insertion detection circuit includes: the power supply device comprises a first power supply unit, a second power supply unit, a switch control unit and an insertion detection unit, wherein the insertion detection unit is respectively connected with the second power supply unit and the switch control unit, and the switch control unit is connected with the first power supply unit. The insertion detection unit is used for receiving a first electric signal output by the first power supply unit through the switch control unit, receiving a second electric signal output by the second power supply unit and detecting the insertion operation of the flash memory card; the switch control unit is used for stopping outputting the first electric signal when receiving the third electric signal which is sent by the insertion detection unit and inserted into the flash memory card. The scheme can detect the insertion operation of the flash memory card through voltage change, thereby improving the detection efficiency; in addition, a pin for identifying the flash memory card is additionally reduced on the basis of not influencing the identification function of the normal flash memory card, so that the resources of electronic equipment are saved.

Description

Insertion detection circuit and method of flash memory card, and electronic device
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to an insertion detection circuit, an insertion detection method, and an electronic device for a flash memory card.
Background
A tf (transflash) card is a flash memory card, which is a memory card that is frequently used in mobile devices. Some mobile terminals (such as a tablet) are provided with two TF card slots, and the mobile terminal supports plugging and unplugging of the two TF cards. The TF card is a new generation memory device based on a semiconductor flash memory, and is widely used in portable devices such as Digital cameras, PDAs (Personal Digital assistants), multimedia players, and the like
The TF card has a multifunctional memory card with the characteristics of high capacity, high performance, safety and the like, and the read-write speed reaches 2M/s. In the prior art, because the storage capacity of the mobile terminal is limited, the memory of the mobile terminal is often expanded by using the TF card, at this time, only the central processing unit can identify the TF card, and the central processing unit needs to add a pin specially used for identifying the TF card, thereby increasing the consumption of resources in the mobile terminal.
Disclosure of Invention
The insertion detection circuit, the insertion detection method and the electronic device of the flash memory card provided by the embodiment of the application can improve the insertion detection efficiency of the flash memory card and save the resources of the electronic device.
In a first aspect, an embodiment of the present application provides an insertion detection circuit of a flash memory card, the insertion detection circuit including: the power supply device comprises a first power supply unit, a second power supply unit, a switch control unit and an insertion detection unit, wherein the insertion detection unit is respectively connected with the second power supply unit and the switch control unit, and the switch control unit is connected with the first power supply unit;
the first power supply unit is used for generating a first electric signal;
the second power supply unit is used for generating a second electric signal;
the insertion detection unit is used for receiving a first electric signal output by the first power supply unit through the switch control unit, receiving a second electric signal output by the second power supply unit, detecting the insertion operation of the flash memory card, and sending a third electric signal accessed by the flash memory card to the switch control unit when the insertion of the flash memory card is detected;
and the switch control unit is used for stopping outputting the first electric signal to the insertion detection unit when receiving the third electric signal sent by the insertion detection unit.
In one embodiment, the insertion detection unit includes: a sample resistance and potential detector;
one end of the sample resistor is connected with the switch control unit, the other end of the sample resistor is respectively connected with one end of the potential detector and the second power supply unit, and the other end of the potential detector is connected with the switch control unit.
In one embodiment, the insertion detection unit further comprises: the potential detector is connected with the switch control unit through the comparator;
and the comparator is used for comparing the current potential value detected by the potential detector with the historical potential value detected last time, and sending a third electric signal accessed by the flash memory card to the switch control unit when the current potential value is detected to be smaller than the historical potential value.
In one embodiment, when one end of the potential detector is connected with a designated pin of a flash memory card, the potential detector takes the currently acquired potential value at the designated pin of the flash memory card as the current potential value;
when the switch control unit stops outputting the first electric signal to the insertion detection unit, the second power supply unit supplies power to the flash memory card through the designated pin of the flash memory card.
In one embodiment, the switch control unit includes: one end of the switch is connected with the first power supply unit, and the other end of the switch is connected with the insertion detection unit;
when the third electric signal sent by the insertion detection unit is not detected, the switch is kept closed to output the first electric signal to the insertion detection unit;
when the third electric signal sent by the insertion detection unit is received, the switch is switched off to stop outputting the first electric signal to the insertion detection unit.
In a second aspect, an embodiment of the present application provides a method for detecting insertion of a flash memory card, applied to an insertion detection circuit, where the detection circuit includes: the power supply device comprises a first power supply unit, a second power supply unit, a switch control unit and an insertion detection unit, wherein the insertion detection unit is respectively connected with the second power supply unit and the switch control unit, and the switch control unit is connected with the first power supply unit; the method comprises the following steps:
acquiring the voltage information change detected by the insertion detection unit;
judging whether the potential information change generates falling edge interruption or not;
if yes, the flash memory card is determined to be inserted, and the first power supply unit is controlled to stop outputting the first electric signal, so that the second power supply unit supplies power to the flash memory card.
In a third aspect, embodiments of the present application provide an electronic device including an insertion detection circuit of a flash memory card as described above.
The embodiment of the application provides an insertion detection circuit and an insertion detection method of a flash memory card and electronic equipment. Wherein, this insertion detection circuit includes: the power supply device comprises a first power supply unit, a second power supply unit, a switch control unit and an insertion detection unit, wherein the insertion detection unit is respectively connected with the second power supply unit and the switch control unit, and the switch control unit is connected with the first power supply unit. The scheme can detect the insertion operation of the flash memory card through voltage change, thereby improving the detection efficiency; in addition, a pin for identifying the flash memory card is additionally reduced on the basis of not influencing the identification function of the normal flash memory card, so that the resources of electronic equipment are saved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 2 is a schematic diagram of a first structure of an insertion detection circuit according to an embodiment of the present application.
Fig. 3 is a schematic diagram of a second structure of an insertion detection circuit according to an embodiment of the present application.
FIG. 4 is a schematic diagram of a system architecture for detecting insertion of a flash memory card according to an embodiment of the present application.
FIG. 5 is a flowchart illustrating a method for detecting insertion of a flash memory card according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application. In the description of the present application, the terms "first", "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
In the description of the present application, it should be noted that the terms "mounted" and "connected" are to be interpreted broadly, unless otherwise explicitly stated or limited, and the specific meanings of the above terms in the present application will be understood by those skilled in the art as appropriate.
The embodiment of the application provides an insertion detection circuit of a flash memory card and an electronic device. The details will be described below separately. The insertion detection circuit can be arranged in electronic equipment, and the electronic equipment can be equipment such as a smart phone and a tablet personal computer.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. The electronic device 10 may include a housing 11, a display 12, a circuit board 13, and a battery 14. It should be noted that the electronic device 10 is not limited to the above.
Wherein the housing 11 may form an outer contour of the electronic device 10. In some embodiments, the housing 11 may be a metal housing, such as a metal such as magnesium alloy, stainless steel, and the like. It should be noted that the material of the housing 11 in the embodiment of the present application is not limited to this, and other manners may also be adopted, such as: the housing 15 may be a plastic housing, a ceramic housing, a glass housing, or the like.
Wherein the display screen 12 is mounted in the housing 11. The display screen 12 is electrically connected to the circuit board 13 to form a display surface of the electronic device 10. In some embodiments, the display surface of the electronic device 10 may be provided with non-display areas, such as: the top end or/and the bottom end of the electronic device 10 may form a non-display area, that is, the electronic device 10 forms a non-display area on the upper portion or/and the lower portion of the display 12, and the electronic device 10 may mount a camera, a receiver, and the like on the non-display area. Note that the display surface of the electronic device 10 may not be provided with the non-display area, that is, the display 12 may be a full-screen. The display screen may be laid over the entire display surface of the electronic device 10, so that the display screen can be displayed in a full screen on the display surface of the electronic device 10.
The display 12 may be in a regular shape, such as a rectangular parallelepiped structure or a rounded rectangular structure, and the display 12 may also be in an irregular shape.
The display 12 may be one or a combination of liquid crystal display, organic light emitting diode display, electronic ink display, plasma display, and display using other display technologies. The display screen 12 may include an array of touch sensors (i.e., the display screen 12 may be a touch display screen). The touch sensor may be a capacitive touch sensor formed by a transparent touch sensor electrode (e.g., an Indium Tin Oxide (ITO) electrode) array, or may be a touch sensor formed using other touch technologies, such as acoustic wave touch, pressure sensitive touch, resistive touch, optical touch, and the like, and the embodiments of the present application are not limited thereto.
It should be noted that, in some embodiments, a cover plate may be disposed on the display 12, and the cover plate may cover the display 12 to protect the display 12. The cover may be a clear glass cover so that the display 12 is shown through the cover. In some embodiments, the cover plate may be a glass cover plate made of a material such as sapphire.
In some embodiments, after the display 12 is mounted on the housing 11, a receiving space is formed between the housing 11 and the display 12, and the receiving space can receive components of the electronic device 10, such as the circuit board 13, a battery, and the like.
The circuit board 13 is mounted in the housing 11, the circuit board 13 may be a main board of the electronic device 10, and one, two or more functional devices of a motor, a microphone, a speaker, an earphone interface, a universal serial bus interface, a camera, a distance sensor, an ambient light sensor, a receiver, a processor, and the like may be integrated on the circuit board 13.
In some embodiments, the circuit board 13 may be secured within the housing 15. Specifically, the circuit board 13 may be screwed to the housing 11 by screws, or may be snap-fitted to the housing 11. It should be noted that the way in which the circuit board 13 is specifically fixed to the housing 15 according to the embodiment of the present application is not limited to this, and other ways, such as a way of jointly fixing by a snap and a screw, are also possible.
Wherein a battery 14 is mounted in the housing 11, and the battery 11 is electrically connected to the circuit board 13 to supply power to the electronic device 10. The housing 11 may serve as a battery cover for the battery 14. The case 11 covers the battery 14 to protect the battery 14, reducing damage to the battery 14 due to collision, dropping, and the like of the electronic apparatus 10.
In some embodiments, the battery 11 may be a nickel cadmium battery, a lithium ion battery, or other type of battery. The number of batteries may be one or more. The shape of the battery can be square, strip or other shapes, and in practical application, the shape of the battery can be set according to the internal structure of the electronic equipment, which is not limited in the application.
In this implementation, the electronic device 10 may comprise an insertion detection circuit 131 of the flash memory card, which may in particular be integrated in the circuit board 13 described above. Referring to fig. 2, the insertion detection circuit 131 may include: a first power supply unit 1311, a second power supply unit 1312, a switch control unit 1313, and an insertion detection unit 1314. The insertion detection unit 1314 is connected to the second power supply unit 1312 and the switch control unit 1313, respectively, and the switch control unit 1313 is connected to the first power supply unit 1311.
A first power supply unit 1311 for generating a first electrical signal;
a second power supply unit 1312 for generating a second electrical signal, wherein a signal value of the first electrical signal is greater than a signal value of the second electrical signal;
an insertion detection unit 1313 configured to receive a first electrical signal output by the first power supply unit through the switch control unit, receive a second electrical signal output by the second power supply unit, detect an insertion operation of the flash memory card, and send a third electrical signal for access of the flash memory card to the switch control unit when the insertion of the flash memory card is detected;
a switch control unit 1314 for stopping outputting the first electrical signal to the insertion detection unit upon receiving the third electrical signal sent by the insertion detection unit 1313.
Referring to fig. 3, in some embodiments, insertion detection unit 1313 includes: a sample resistor R0 and a potential detector. One end of the sample resistor R0 is connected to the switch control unit 1314, the other end of the sample resistor R0 is connected to one end of the potential detector and the second power supply unit 1312, and the other end of the potential detector is connected to the switch control unit 1314.
With continued reference to fig. 3, the inserted detection unit 1313 may further include: a comparator through which the potential detector is connected to the switch control unit 1314. The comparator is configured to compare the current potential value detected by the potential detector with the previous detected historical potential value, and send a third electrical signal for accessing the flash memory card to the switch control unit 1314 when the current potential value is detected to be smaller than the historical potential value.
In some embodiments, the flash memory card has a designated pin that serves as a power access terminal for the flash memory card. The pins are the pins of the flash memory card itself, which is equivalent to adding a function of detecting the insertion detection of the flash memory card to the pins on the gold finger of the flash memory card, rather than requiring an additional pin specially for the insertion detection of the flash memory card as in the prior art. When one end of the potential detector is connected with the appointed pin of the flash memory card, the potential detector takes the currently acquired potential value at the appointed pin of the flash memory card as the current potential value. When the switch control unit 1314 stops outputting the first electric signal to the insertion detection unit 1313, the second power supply unit supplies power to the flash memory card through the designated pin of the flash memory card.
In the scheme, pins of a flash memory card are relatively reduced, the pins of the flash memory card are not simply reused, the flash memory card insertion detection is carried out through a power supply terminal of the flash memory card, the power supply terminal is changed before and after the insertion, the power supply terminal is used as an identification pin of the flash memory card before the insertion, and the power supply pin is used after the insertion).
With continued reference to fig. 3, in some embodiments, the switch control unit 1314 includes: one end of the switch K0, the switch K0 is connected to the first power supply unit, and the other end of the switch K0 is connected to the insertion detection unit 1313. When the third electrical signal sent by insertion detection unit 1313 is not detected, switch K0 remains closed to output the first electrical signal to insertion detection unit 1313. When receiving the third electrical signal sent by insertion detection unit 1313, switch K0 opens to stop outputting the first electrical signal to insertion detection unit 1313.
The flash memory card insertion detection circuit provided by the scheme can detect the insertion operation of the flash memory card through voltage change, so that the detection efficiency is improved; in addition, a pin for identifying the flash memory card is additionally reduced on the basis of not influencing the identification function of the normal flash memory card, so that the resources of electronic equipment are saved.
Next, the flash memory card detection method in the present embodiment will be described in detail by taking the flash memory card as a TF card as an example. Referring to FIG. 4, FIG. 4 is a schematic diagram of a system architecture for detecting the insertion of a flash memory card according to the present embodiment. As shown in fig. 4, the TF flash card includes a pin a and a pin B, and when the pin A, B is inserted into the TF card interface of the mobile terminal, it is respectively connected to a pin C, D on the mobile terminal, so that the mobile terminal can supply power to the TF. As in fig. 4, VLDO is the supply voltage of the detection circuit, whose value is higher than the TF card supply voltage, for example 4V; the resistor R is a large resistor, e.g. 200Mohm, and the switch K is a controllable switch, which remains closed when no TF card is inserted, and in practice the switch K may be replaced by a transistor. When the TF card is not inserted, the VDD, namely the point C is high level, and the voltage is 4V; when the TF card is inserted, A, C is connected, B, D is connected, the TF card can be regarded as a resistor, so that the voltage at VDD changes, namely whether the TF card is inserted or not can be judged by detecting the voltage change of VDD, when the voltage changes from high to low, the TF card is inserted, K is disconnected, and VDD is started to supply power to the TF card. In the prior art, whether the TF card is inserted or not can be known only by continuously polling related pins on the TF card, or an additional pin is added to judge the insertion of the TF card, so that the additional pin is not added, and processor resources consumed by polling are saved.
With continued reference to fig. 4, for one pin a on the TF card to identify the TF card insertion, pin a will identify a high level when the TF card is not inserted and pin a will identify a low level when the TF card is inserted. During the mobile terminal boot process, pin a is set to a falling edge interrupt, and the TF card is considered to be inserted when the falling edge interrupt occurs. And in the power-on state of the mobile terminal, if the falling edge interrupt generated on the pin A is identified, the TF card is considered to be inserted.
In some embodiments, the method for detecting the insertion of the flash memory card according to the present invention will be further described by taking the electronic device as a mobile terminal, which includes a TF card interface, an identification circuit, and a central processing unit. The following were used:
and the TF card interface is used for connecting each pin of the TF card. For example, the TF flash card may include two pins, VDD (power pin of the TF card) and VSS (ground pin of the TF card).
The identification circuit is connected with VDD and VSS pins of the TF card interface, and the identification circuit internally comprises a switch which is controlled by a switch control module. When the switch control module controls the switch to be switched off, the VDD pin is connected with the VLDO through a 600M omega resistor; when the switch control module controls the switch to be closed, the VDD pin is directly connected with the power supply voltage VLDO, and the resistance of 600M omega has no effect.
The central processing unit internally comprises: the device comprises a switch control module, an identification module and an interruption configuration module. The switch control module is used for controlling the on or off of the switch; the pin in the identification module is connected with a VDD pin of the TF card interface and is used for identifying an interrupt signal on the VDD pin; the interrupt configuration module is used for configuring interrupt identification of the pins, and can be configured into low-level interrupt or high-level interrupt.
How the respective modules in the TF card interface, the identification circuit, and the central processing unit operate will be described below. Specifically, after the mobile terminal is started, the switch control module switches off the control switch, and the interrupt configuration module configures the pin as low-level interrupt; when the TF card is not inserted into the card holder, namely, each pin of the TF card interface is suspended, the VDD pin is connected with the VLDO through a 600M omega resistor, therefore, the VDD is pulled up to a high level, and a low level interrupt signal cannot be generated at the pin. When a card is inserted into the card seat, each pin of the TF card interface is respectively contacted with each pin of the TF card; the resistance between the VDD pin and the VSS pin of the TF card is far less than 600M omega, and the VDD is low level; and the pin is a low-level interrupt, so the identification module will recognize the TF card insertion. Then, the interrupt configuration module configures the pin not to recognize the interrupt, and the switch control module closes the control switch to supply power to the TF card through the VLDO.
The VLDO is a power supply voltage of the TF card, and is connected with a VDD pin of the TF card when the TF card is used.
When the TF card is not powered, the resistance between the VDD pin and the VSS pin of the TF card is far less than 600M omega. Generally, the resistance between the VDD pin and the VSS pin of the TF card is about 60k Ω.
The 600M omega resistor in the identification circuit is an optimal value, other resistance values can be selected, and the resistance value is only required to be larger than 10 Rds. Wherein, Rds is the resistance value between the VDD pin and the VSS pin of the TF card when the TF card is not powered; according to Rds ═ 60k Ω, when the TF card is inserted into the card socket and the switch is off, the voltage at VDD (i.e. at pin a of the TF card) is at
Figure BDA0002374568720000081
Generally below 10% of the supply voltage, a low level is considered and pin a of the TF card will recognize a low level interrupt.
Specifically, when the switch control unit switches off the control switch, the configuration pin of the interrupt configuration unit is in low-level interrupt; when the identification unit identifies that the low-level interrupt is generated at the pin, the interrupt configuration unit configures the pin not to identify the interrupt, and the switch control unit closes the control switch to supply power to the TF card through the VLDO.
In the embodiment, a pin is arranged for identifying the insertion of the TF card, the pin identifies a high level when the TF card is not inserted, and the pin identifies a low level when the TF card is inserted; setting the pin as a falling edge interrupt in the starting process of the mobile terminal, and considering that the TF card is inserted when the falling edge interrupt is generated; and under the power-on state of the mobile terminal, if the falling edge interrupt generated on the pin is identified, the TF card is considered to be inserted. Therefore, the pin for identifying the TF card can be additionally reduced on the basis of not influencing the normal identification function of the TF card, the resources of the central processing unit are saved, the pin can be used for other purposes, and the working efficiency of the central processing unit is improved.
Referring to fig. 5, fig. 5 is a flowchart illustrating a method for detecting insertion of a flash memory card according to an embodiment of the present application. The method for detecting the insertion of the flash memory card is applied to an insertion detection circuit. Wherein, this detection circuitry includes: the power supply device comprises a first power supply unit, a second power supply unit, a switch control unit and an insertion detection unit, wherein the insertion detection unit is respectively connected with the second power supply unit and the switch control unit, and the switch control unit is connected with the first power supply unit. The method for detecting the insertion of the flash memory card may specifically include the following steps:
s101, acquiring voltage information change detected by an insertion detection unit;
s102, judging whether the potential information change generates falling edge interruption or not;
s103, if the falling edge interruption occurs, the insertion of the flash memory card is determined, and the first power supply unit is controlled to stop outputting the first electric signal, so that the second power supply unit supplies power to the flash memory card.
In some embodiments, the insertion detection unit includes: a sample resistance and potential detector; one end of the sample resistor is connected with the switch control unit, the other end of the sample resistor is respectively connected with one end of the potential detector and the second power supply unit, and the other end of the potential detector is connected with the switch control unit;
when acquiring the voltage information change detected by the insertion detection unit, the following process may be specifically included:
acquiring potential information detected by the potential detector;
and determining the voltage information change detected by the insertion detection unit according to the potential information.
In some embodiments, the switch control unit includes: and one end of the switch is connected with the first power supply unit, and the other end of the switch is connected with the insertion detection unit. When the third electric signal sent by the insertion detection unit is not detected, the control switch is kept closed to output the first electric signal to the insertion detection unit. And when receiving the third electric signal sent by the insertion detection unit, controlling the switch to be switched off to stop outputting the first electric signal to the insertion detection unit.
In this embodiment, the signal value of the first electrical signal is greater than the signal value of the second electrical signal.
An embodiment of the present application further provides a storage medium, where the storage medium stores a computer program, and when the computer program runs on a computer, the computer is caused to execute the charging method in any one of the above embodiments. For example: acquiring the voltage information change detected by the insertion detection unit; judging whether the potential information change generates falling edge interruption or not; if yes, the flash memory card is determined to be inserted, and the first power supply unit is controlled to stop outputting the first electric signal, so that the second power supply unit supplies power to the flash memory card.
In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The insertion detection circuit and the electronic device provided by the embodiment of the present application are described in detail above. The principles and implementations of the present application are described herein using specific examples, which are presented only to aid in understanding the present application. Meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. An insertion detection circuit for a flash memory card, the insertion detection circuit comprising: the power supply device comprises a first power supply unit, a second power supply unit, a switch control unit and an insertion detection unit, wherein the insertion detection unit is respectively connected with the second power supply unit and the switch control unit, and the switch control unit is connected with the first power supply unit;
the first power supply unit is used for generating a first electric signal;
the second power supply unit is used for generating a second electric signal;
the insertion detection unit is used for receiving a first electric signal output by the first power supply unit through the switch control unit, receiving a second electric signal output by the second power supply unit, detecting the insertion operation of the flash memory card, and sending a third electric signal accessed by the flash memory card to the switch control unit when the insertion of the flash memory card is detected;
and the switch control unit is used for stopping outputting the first electric signal to the insertion detection unit when receiving the third electric signal sent by the insertion detection unit.
2. The insertion detection circuit of the flash memory card of claim 1, wherein the insertion detection unit comprises: a sample resistance and potential detector;
one end of the sample resistor is connected with the switch control unit, the other end of the sample resistor is respectively connected with one end of the potential detector and the second power supply unit, and the other end of the potential detector is connected with the switch control unit.
3. The insertion detection circuit of a flash memory card of claim 2, wherein the insertion detection unit further comprises: the potential detector is connected with the switch control unit through the comparator;
and the comparator is used for comparing the current potential value detected by the potential detector with the historical potential value detected last time, and sending a third electric signal accessed by the flash memory card to the switch control unit when the current potential value is detected to be smaller than the historical potential value.
4. The insertion detection circuit of a flash memory card according to claim 2, wherein when one end of said potential detector is connected to a designated pin of a flash memory card, said potential detector takes a value of a potential currently acquired at said designated pin of said flash memory card as said current potential value;
when the switch control unit stops outputting the first electric signal to the insertion detection unit, the second power supply unit supplies power to the flash memory card through the designated pin of the flash memory card.
5. The insertion detection circuit of a flash memory card according to any one of claims 1 to 4, wherein the switch control unit comprises: one end of the switch is connected with the first power supply unit, and the other end of the switch is connected with the insertion detection unit;
when the third electric signal sent by the insertion detection unit is not detected, the switch is kept closed to output the first electric signal to the insertion detection unit;
when the third electric signal sent by the insertion detection unit is received, the switch is switched off to stop outputting the first electric signal to the insertion detection unit.
6. A method for detecting the insertion of a flash memory card, applied to an insertion detection circuit, characterized in that the detection circuit comprises: the power supply device comprises a first power supply unit, a second power supply unit, a switch control unit and an insertion detection unit, wherein the insertion detection unit is respectively connected with the second power supply unit and the switch control unit, and the switch control unit is connected with the first power supply unit; the method comprises the following steps:
acquiring the voltage information change detected by the insertion detection unit;
judging whether the potential information change generates falling edge interruption or not;
if yes, the flash memory card is determined to be inserted, and the first power supply unit is controlled to stop outputting the first electric signal, so that the second power supply unit supplies power to the flash memory card.
7. The method of claim 6, wherein the insertion detection unit comprises: a sample resistance and potential detector; one end of the sample resistor is connected with the switch control unit, the other end of the sample resistor is respectively connected with one end of the potential detector and the second power supply unit, and the other end of the potential detector is connected with the switch control unit;
the acquiring of the voltage information change detected by the insertion detection unit includes:
acquiring potential information detected by the potential detector;
and determining the voltage information change detected by the insertion detection unit according to the potential information.
8. The method of claim 6, wherein the switch control unit comprises: one end of the switch is connected with the first power supply unit, and the other end of the switch is connected with the insertion detection unit;
when the third electric signal sent by the insertion detection unit is not detected, controlling a switch to be kept closed so as to output a first electric signal to the insertion detection unit;
and when receiving the third electric signal sent by the insertion detection unit, controlling the switch to be switched off to stop outputting the first electric signal to the insertion detection unit.
9. The insertion detection circuit of a flash memory card of any of claims 6-8, wherein the signal value of the first electrical signal is greater than the signal value of the second electrical signal.
10. An electronic device comprising the flash memory card insertion detection circuit of any of claims 1 to 5.
CN202010061252.0A 2020-01-19 2020-01-19 Insertion detection circuit and method of flash memory card, and electronic device Active CN111241023B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010061252.0A CN111241023B (en) 2020-01-19 2020-01-19 Insertion detection circuit and method of flash memory card, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010061252.0A CN111241023B (en) 2020-01-19 2020-01-19 Insertion detection circuit and method of flash memory card, and electronic device

Publications (2)

Publication Number Publication Date
CN111241023A true CN111241023A (en) 2020-06-05
CN111241023B CN111241023B (en) 2021-10-26

Family

ID=70874713

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010061252.0A Active CN111241023B (en) 2020-01-19 2020-01-19 Insertion detection circuit and method of flash memory card, and electronic device

Country Status (1)

Country Link
CN (1) CN111241023B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112202464A (en) * 2020-10-22 2021-01-08 Tcl通讯(宁波)有限公司 Identification card detection method and device, storage medium and mobile terminal

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002056359A (en) * 2000-08-11 2002-02-20 Denso Corp Card detector
US6491226B1 (en) * 1998-08-24 2002-12-10 Nec Infrontia Corporation Method and apparatus for preventing extraction of card-shaped functional device for information processing apparatus, and recording medium storing program for realizing extraction preventing operation on computer
US20030154326A1 (en) * 2002-02-08 2003-08-14 C-One Technology Corp. Multi-functional electronic card capable of detecting removable cards
US20040006654A1 (en) * 2001-07-25 2004-01-08 Hideaki Bando Interface apparatus
CN202276138U (en) * 2011-10-21 2012-06-13 深圳大乘电子制造有限公司 Battery protection circuit based on TF (TransFlash) card detection
CN104317528A (en) * 2014-10-13 2015-01-28 惠州Tcl移动通信有限公司 Detecting system and detecting method of micro safe digital (SD) card
CN104464783A (en) * 2014-12-18 2015-03-25 江苏天安智联科技股份有限公司 Car-mounted memory card interface short-circuit protection device
CN106412152A (en) * 2016-06-08 2017-02-15 Tcl移动通信科技(宁波)有限公司 SIM card detection method based on mobile terminal and mobile terminal
CN106792863A (en) * 2017-02-24 2017-05-31 惠州Tcl移动通信有限公司 A kind of SIM triggers the method and mobile terminal of recognition detection automatically
CN108681514A (en) * 2018-05-02 2018-10-19 Oppo广东移动通信有限公司 Equipment detection method, device, storage medium and electronic equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6491226B1 (en) * 1998-08-24 2002-12-10 Nec Infrontia Corporation Method and apparatus for preventing extraction of card-shaped functional device for information processing apparatus, and recording medium storing program for realizing extraction preventing operation on computer
JP2002056359A (en) * 2000-08-11 2002-02-20 Denso Corp Card detector
US20040006654A1 (en) * 2001-07-25 2004-01-08 Hideaki Bando Interface apparatus
US20030154326A1 (en) * 2002-02-08 2003-08-14 C-One Technology Corp. Multi-functional electronic card capable of detecting removable cards
CN202276138U (en) * 2011-10-21 2012-06-13 深圳大乘电子制造有限公司 Battery protection circuit based on TF (TransFlash) card detection
CN104317528A (en) * 2014-10-13 2015-01-28 惠州Tcl移动通信有限公司 Detecting system and detecting method of micro safe digital (SD) card
CN104464783A (en) * 2014-12-18 2015-03-25 江苏天安智联科技股份有限公司 Car-mounted memory card interface short-circuit protection device
CN106412152A (en) * 2016-06-08 2017-02-15 Tcl移动通信科技(宁波)有限公司 SIM card detection method based on mobile terminal and mobile terminal
CN106792863A (en) * 2017-02-24 2017-05-31 惠州Tcl移动通信有限公司 A kind of SIM triggers the method and mobile terminal of recognition detection automatically
CN108681514A (en) * 2018-05-02 2018-10-19 Oppo广东移动通信有限公司 Equipment detection method, device, storage medium and electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
T. VOITSEKHIVSKA等: ""Portable measurement system for silicon nanowire field-effect transistor-based biosensors"", 《IEEE》 *
刘笑达: ""冰层内部物理参数综合试验装置的设计与研制"", 《中国优秀博硕士学位论文全文数据库(硕士)基础科学辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112202464A (en) * 2020-10-22 2021-01-08 Tcl通讯(宁波)有限公司 Identification card detection method and device, storage medium and mobile terminal

Also Published As

Publication number Publication date
CN111241023B (en) 2021-10-26

Similar Documents

Publication Publication Date Title
US11336105B2 (en) Multi-battery charging and discharging device and mobile terminal
EP3706401B1 (en) Method for detecting and controlling battery status by using sensor, and electronic device using same
EP2665153A2 (en) Mobile terminal
CN109450023B (en) Charging circuit, charging processing method, electronic device, and storage medium
CN109378878B (en) Charging circuit, charging processing method, electronic device, and storage medium
CN108845655B (en) Electronic equipment control method and device, control circuit and electronic equipment
US20130086397A1 (en) Electronic apparatus and its control method
EP3518380A1 (en) Electronic device including battery and method of controlling charging thereof
CN107786223B (en) Prevent SIM card from burning the method, apparatus and computer equipment of card
US11379026B2 (en) Electronic device for preventing damage of USB device and operating method thereof
CN109378877A (en) Charging circuit, charging method, electronic equipment and storage medium
CN109067019A (en) Charge-discharge circuit, method, electronic equipment and storage medium
CN109149697B (en) Charging circuit and electronic device
US10250736B2 (en) Terminal controlling device and controlling method using same
CN110352532B (en) Method for detecting swelling of rechargeable battery and portable electronic equipment
CN111241023B (en) Insertion detection circuit and method of flash memory card, and electronic device
CN109286219B (en) Charging circuit, charging processing method, electronic device, and storage medium
US20200042107A1 (en) Electronic device and method for displaying affordance for providing charging of battery of external device through display
CN110431518B (en) Method for outputting touch signal and electronic equipment
CN110380484B (en) Charging method, terminal and storage medium
CN109194788B (en) Electronic device and electronic device charging method
CN111241022B (en) GPIO state query method, device and storage medium
US11428753B2 (en) Method for detecting water in connection terminal of electronic device and electronic device supporting the same
CN108682992B (en) Serial bus plug, from equipment, main equipment, from equipment detection method and system
CN109066904B (en) Charging management method, electronic device, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240327

Address after: Room 410, No. 36 Xindi Road, Lanhe Town, Nansha District, Guangzhou City, Guangdong Province, 510000

Patentee after: Guangzhou Huasi Intelligent Intellectual Property Operation Co.,Ltd.

Country or region after: China

Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West

Patentee before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right