CN104466470A - Anti-jitter SD card base, terminal and method for identifying inserting and pulling state of SD card - Google Patents

Anti-jitter SD card base, terminal and method for identifying inserting and pulling state of SD card Download PDF

Info

Publication number
CN104466470A
CN104466470A CN201410656530.1A CN201410656530A CN104466470A CN 104466470 A CN104466470 A CN 104466470A CN 201410656530 A CN201410656530 A CN 201410656530A CN 104466470 A CN104466470 A CN 104466470A
Authority
CN
China
Prior art keywords
card
identification circuit
draw
groove
contact
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
CN201410656530.1A
Other languages
Chinese (zh)
Other versions
CN104466470B (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.)
Weihai Regional Innovation Center 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 CN201410656530.1A priority Critical patent/CN104466470B/en
Publication of CN104466470A publication Critical patent/CN104466470A/en
Application granted granted Critical
Publication of CN104466470B publication Critical patent/CN104466470B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R12/00Structural associations of a plurality of mutually-insulated electrical connecting elements, specially adapted for printed circuits, e.g. printed circuit boards [PCB], flat or ribbon cables, or like generally planar structures, e.g. terminal strips, terminal blocks; Coupling devices specially adapted for printed circuits, flat or ribbon cables, or like generally planar structures; Terminals specially adapted for contact with, or insertion into, printed circuits, flat or ribbon cables, or like generally planar structures
    • H01R12/70Coupling devices
    • H01R12/71Coupling devices for rigid printing circuits or like structures
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R13/00Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
    • H01R13/02Contact members
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R13/00Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
    • H01R13/66Structural association with built-in electrical component
    • H01R13/70Structural association with built-in electrical component with built-in switch
    • H01R13/703Structural association with built-in electrical component with built-in switch operated by engagement or disengagement of coupling parts, e.g. dual-continuity coupling part
    • H01R13/7031Shorting, shunting or bussing of different terminals interrupted or effected on engagement of coupling part, e.g. for ESD protection, line continuity
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K19/00Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits
    • H03K19/0175Coupling arrangements; Interface arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Details Of Connecting Devices For Male And Female Coupling (AREA)

Abstract

The invention discloses an anti-jitter SD card base, a terminal and a method for identifying the inserting and pulling sate of an SD card. The anti-jitter SD card base comprises a card slot component and an identifying circuit, the card slot component comprises a metal elastic piece with a first contact and a second contact, and the first contact and the second contact are electrically connected with the identifying circuit. In the inserting and pulling process of the SD card, the SD card enables the first contact and the second contact to be electrically connected or disconnected with the identifying circuit, the identifying circuit outputs corresponding high-low level signals according to the connection state of the first contact, the second contact and the identifying circuit, when the SD card is completely inserted into the card slot, the identifying circuit outputs high level, when the SD card is completely pulled out of the card slot, the identifying circuit outputs low level, and when the SD card is not completely inserted and pulled, detection is not affected. Therefore, the inserting and pulling state of the SD card can be determined uniquely by detecting the magnitude of the level output by the identifying circuit, frequent detection of the SD card in the inserting and pulling process is avoided, and the detection precision is improved.

Description

The method of stabilization SD deck, terminal and identification SD card plug state
Technical field
The present invention relates to storage card and detect identification field, particularly a kind of method of stabilization SD deck, terminal and identification SD card plug state.
Background technology
SD card, because its compatibility is good, volume is little, has been widely used in the expansion of mobile terminal memory space.Fig. 1 is the draw-in groove assembly assumption diagram of SD card in prior art, described draw-in groove assembly comprises SD card 1, draw-in groove 2, baffle plate 3, metal clips 4 and resistance R, described metal clips 4 has a contact, and one end of metal clips 4 is fixed on the inwall of draw-in groove 2, the other end of metal clips 4 arranges baffle plate 3, and one end of described metal clips 4 also connects external detection module and connects feeder ear VDD by resistance R.K point in Fig. 1 represents that external detection module detects the position of the voltage of metal clips 4 one end, and the voltage of K point is the voltage of metal clips 4 one end.
When SD card 1 does not insert draw-in groove 2, contact does not contact with ground, and is high level by resistance R pull-up, and now K point is high level; When SD card 1 inserts draw-in groove 2, contact ground, now K point is low level; Prior art is exactly judge whether SD card 1 inserts draw-in groove 2 by the low and high level state of detection K point.
This detection mode existing defects, when SD card 1 insertion draw-in groove 2 or when extracting from draw-in groove 2, because metal clips 4 has elasticity, when SD card 1 inserts, contact can not contiguously stably, also can not stably disconnect with ground when SD card 1 is extracted at once at once.SD card 1 insertion or when extracting K point place all have a series of shake, shaky time determined by the elastic characteristic of metal clips 4.As shown in Figure 2, abscissa is time T, and ordinate is the voltage U of K point, and t1 is the moment that SD card inserts draw-in groove, and t2 is the moment that draw-in groove extracted by SD card.As shown in Figure 2, when SD is stuck in and inserts and extract draw-in groove, the level signal (voltage) that K point detects there will be a series of shake, when jitter amplitude is larger, there will be SD card frequently and plug and unplug detection, gently then waste system resource affect Consumer's Experience, heavy then cause deadlock.
Therefore, prior art need improvement and bring new ideas.
Summary of the invention
In view of above-mentioned the deficiencies in the prior art part, the object of the present invention is to provide a kind of method of stabilization SD deck, terminal and identification SD card plug state, accurately can identify the plug state of SD card.
In order to achieve the above object, this invention takes following technical scheme:
A kind of stabilization SD deck, comprise draw-in groove assembly and identification circuit, described draw-in groove assembly comprises draw-in groove, and baffle plate and one end are fixed on the metal clips on draw-in groove inwall, the other end of described metal clips connects described baffle plate, and described metal clips has the first contact and the second contact; When SD card does not insert described draw-in groove, described first contact disconnects with described identification circuit, described second contact is electrically connected with described identification circuit; When SD card does not insert described draw-in groove completely, described first contact and described second contact all disconnect with described identification circuit; When SD card inserts described draw-in groove completely, described first contact is electrically connected with described identification circuit, described second contact and described identification circuit disconnect; When described draw-in groove do not extracted completely by SD card, described first contact and described second contact all disconnect with described identification circuit; When described draw-in groove extracted completely by SD card, described first contact disconnects with described identification circuit, described second contact is electrically connected with described identification circuit; Described identification circuit is used for exporting corresponding low and high level signal according to described first contact and described second contact to the conducting state of described identification circuit.
In described stabilization SD deck, described identification circuit comprises the first resistance, second resistance, first NOR gate and the second NOR gate, the feeder ear of described metal clips linkage identification circuit, the first input end of described first NOR gate connects draw-in groove and passes through the first grounding through resistance, second input of the first NOR gate connects the output of the second NOR gate, the first input end of described second NOR gate connects draw-in groove and by the second grounding through resistance, the second input of the second NOR gate connects the output of the first NOR gate; When described first contact and identification circuit conducting, identification circuit exports high level, when the first contact and identification circuit disconnect, and identification circuit output low level.
In described stabilization SD deck, described draw-in groove is provided with brace, and described brace is between the first contact and draw-in groove and be electrically connected with the first input end of the first resistance and the first NOR gate.
A kind of terminal, it comprises baseband controller and stabilization SD deck described above, the output of the input linkage identification circuit of described baseband controller, for detecting the height state of identification circuit output level, according to the plug state of the height condition adjudgement SD card of output level, and drive according to the plug state of SD card corresponding load or unload SD card.
In described terminal, described baseband controller comprises:
GPIO pin, is electrically connected with the identification circuit of SD deck;
Pin configuration unit is that rising edge interrupts or trailing edge interrupts for configuring GPIO pin;
Interrupting detecting unit, for detecting the interruption in GPIO pin, when detecting that GPIO pin producing rising edge interrupts, thinking that SD card inserts draw-in groove completely, when detect GPIO pin produces trailing edge interruption time, think that SD card is extracted from draw-in groove;
Drive load unit, for when SD card inserts draw-in groove completely, loads SD card and drives;
Drive unloading unit, for when SD card is extracted from draw-in groove, unloading SD card drives.
In described terminal, described pin configuration unit, is configured to rising edge and interrupts by GPIO pin time also for detecting that SD card is extracted completely in terminal, when detecting that SD card inserts completely, GPIO pin is configured to trailing edge and interrupts.
A method for terminal recognition SD card plug state described above, it comprises:
A, when identification circuit exports high level, judge that SD card inserts in draw-in groove completely, the driving of baseband controller loading SD card;
B, when identification circuit output low level, judge that SD card extracts draw-in groove completely, the driving of baseband controller unloading SD card.
In the method for described identification SD card plug state, described steps A specifically comprises:
When A1, starting up of terminal, the GPIO pin of baseband controller is configured to rising edge and interrupts;
A2, when detect GPIO pin produce interrupt time, judge that SD card inserts in draw-in groove completely;
A3, baseband controller load SD card and drive, and the GPIO pin of baseband controller are configured to trailing edge interruption.
In the method for described identification SD card plug state, described step B specifically comprises:
B1, when detect GPIO pin produce interrupt time, judge that SD card is extracted from draw-in groove;
B2, baseband controller drive unloading unit unloading SD card to drive, and GPIO pin are configured to rising edge interruption.
Compared to prior art, stabilization SD deck provided by the invention, the method of terminal and identification SD card plug state, by arranging metal clips and the identification circuit with the first contact and the second contact, when SD card does not insert, do not insert completely, insert completely, when not extracting completely and extract draw-in groove completely, first gets an electric shock accesses identification circuit state with the second electric shock is different, and then utilize identification circuit to export corresponding low and high level signal according to the first contact and the second contact to the conducting state of identification circuit, the low and high level signal exported by detecting identification circuit can judge the plug state of SD card, no matter whether shake in SD card swapping process, accurately can judge the plug state of SD card, save system resource, avoid terminal crash phenomenon.
Accompanying drawing explanation
Fig. 1 is the draw-in groove assembly assumption diagram of prior art.
Fig. 2 is the oscillogram that prior art detects SD card plug state.
The circuit diagram of the stabilization SD deck that Fig. 3 provides for the embodiment of the present invention.
In the terminal that Fig. 4 provides for the embodiment of the present invention, SD card does not insert completely and extracts the schematic diagram of draw-in groove.
In the terminal that Fig. 5 provides for the embodiment of the present invention, SD card inserts the schematic diagram of draw-in groove completely.
The circuit diagram of the terminal that Fig. 6 provides for the embodiment of the present invention.
In the terminal that Fig. 7 provides for the embodiment of the present invention, the structure chart of baseband controller.
The method flow diagram of the identification SD card plug state that Fig. 8 provides for the embodiment of the present invention.
The concrete grammar flow chart of the identification SD card plug state that Fig. 9 provides for the embodiment of the present invention.
Embodiment
The invention provides a kind of method of stabilization SD deck, terminal and identification SD card plug state, there is by arranging an identification circuit and one metal clips of the first contact and the second contact, identification circuit exports corresponding low and high level signal according to the first contact and the second contact to the conducting state of identification circuit, realizes the detection to SD card plug state.
For making object of the present invention, technical scheme and effect clearly, clearly, developing simultaneously referring to accompanying drawing, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Refer to Fig. 3, the stabilization SD deck 10 that the embodiment of the present invention provides, comprise draw-in groove assembly 100 and identification circuit 200, described draw-in groove assembly 100 comprises draw-in groove 110, baffle plate 120 and one end are fixed on the metal clips 130 on draw-in groove 110 inwall, the other end of described metal clips 130 connects described baffle plate 120, and wherein, described metal clips 130 has the first contact 131 and the second contact 132; When SD card 140 does not insert draw-in groove 110, described first contact 131 disconnects with identification circuit 200, described second contact 132 is electrically connected with identification circuit 200; When SD card 140 does not insert draw-in groove 110 completely, described first contact 131 and described second contact 132 all disconnect with identification circuit 200; When SD card 140 inserts draw-in groove 110 completely, described first contact 131 is electrically connected with identification circuit 200, described second contact 132 disconnects with identification circuit 200; When draw-in groove 110 do not extracted completely by SD card 140, described first contact 131 and described second contact 132 all disconnect with identification circuit 200; When draw-in groove 110 extracted completely by SD card 140, described first contact 131 disconnects with identification circuit 200, described second contact 132 is electrically connected with identification circuit 200; Described identification circuit 200 is for exporting corresponding low and high level signal according to the first contact 131 and the second contact 132 to the conducting state of identification circuit 200.The height of described identification circuit 200 outputs level signals and the height change of level signal all can be used for the plug state judging SD card 140.
In the embodiment of the present invention, described identification circuit 200 comprises the first resistance R1, second resistance R2, first NOR gate U1 and the second NOR gate U2, the feeder ear VDD of described metal clips 130 linkage identification circuit 200, the first input end 1 of described first NOR gate U1 connects draw-in groove 110, and by the first resistance R1 ground connection, second input 2 of the first NOR gate U1 connects the output of the second NOR gate U2, the first input end 1 of described second NOR gate U2 connects draw-in groove 110, and by the second resistance R2 ground connection, second input 2 of the second NOR gate U2 connects the output of the first NOR gate U1, the output (the OUT end shown in Fig. 3) that the output of described second NOR gate U2 is identification circuit 200, when described first contact 131 is with identification circuit 200 conducting, identification circuit 200 exports high level (Fig. 3 OUT holds and exports high level), when first contact 131 disconnects with identification circuit 200, identification circuit 200 output low level (Fig. 3 OUT holds output low level).
Please continue to refer to Fig. 3, when SD card 140 does not insert draw-in groove 110, described first contact 131 disconnects with identification circuit 200, described second contact 132 is electrically connected with identification circuit 200, now first input end 1 input high level of the second NOR gate U2, first input end 1 input low level of the first NOR gate U1, output (i.e. the output of the second NOR gate U2) output low level of identification circuit 200, the output of the first NOR gate U1 is high level.
Refer to Fig. 4, when SD card 140 does not insert draw-in groove 110 completely, described first contact 131 and described second contact 132 all disconnect with identification circuit 200, now first input end 1 input low level of the second NOR gate U2, first input end 1 input low level of the first NOR gate U1, output due to the first NOR gate U1 is high level, therefore the output output low level of identification circuit 200, the output of the first NOR gate U1 is high level.
Refer to Fig. 5, when SD card 140 inserts draw-in groove 110 completely, described first contact 131 is electrically connected with identification circuit 200, described second contact 132 disconnects with identification circuit 200, now first input end 1 input low level of the second NOR gate U2, first input end 1 input high level of the first NOR gate U1, the output of identification circuit 200 exports high level, and the output of the first NOR gate U1 is low level.
Refer to Fig. 4, when draw-in groove 110 do not extracted completely by SD card 140, described first contact 131 and described second contact 132 all disconnect with identification circuit 200, now first input end 1 input low level of the second NOR gate U2, first input end 1 input low level of the first NOR gate U1, output due to the first NOR gate U1 is low level, therefore the output of identification circuit 200 exports high level, and the output of the first NOR gate U1 is low level.
Refer to Fig. 3, when draw-in groove 110 extracted completely by SD card 140, described first contact 131 disconnects with identification circuit 200, described second contact 132 is electrically connected with identification circuit 200, now first input end 1 input high level of the second NOR gate U2, first input end 1 input low level of the first NOR gate U1, the output output low level of identification circuit 200, the output of the first NOR gate U1 is high level.
It can thus be appreciated that insert at SD card 140 in the process of draw-in groove 110, only have when SD card 140 inserts draw-in groove 110 completely, the output of identification circuit 200 just exports high level; Extract at SD card 140 in the process of draw-in groove 110, only have when draw-in groove 110 extracted completely by SD card 140, the output just output low level of identification circuit 200; The level height that namely only need detect the output of identification circuit 200 output can judge whether SD card 140 inserts completely and extract draw-in groove 110.Even if there is the situation (situation do not inserted completely and extract) that SD card 140 is shaken in swapping process, also can not affect the level that identification circuit 200 output exports, avoid the situation that appearance identifies repeatedly.Certainly, the present invention can also judge by the height change detecting the level that identification circuit 200 output exports whether SD card 140 inserts completely and extract draw-in groove 110 completely, namely detect that the level that identification circuit 200 exports is uprised by low, then think that SD card 140 executes insert action, insert draw-in groove 110 completely, detect that level that identification circuit 200 exports is by high step-down, then think that SD card 140 executes pull action, extract draw-in groove 110 completely.
Refer to Fig. 3 to Fig. 5, described draw-in groove 110 is provided with brace 111, and described brace 111 is between the first contact 131 and draw-in groove 110 and be electrically connected with the first input end 1 of the first resistance R1 and the first NOR gate U1.Preferably, described brace 111 is copper sheet, can well realize being electrically connected with the first contact 131.
Refer to Fig. 6, the present invention is also corresponding provides a kind of terminal, comprise baseband controller 20 and the stabilization SD deck 10 as above described in an embodiment, the output of the input linkage identification circuit 200 of described baseband controller 20, for detecting the height state of identification circuit 200 output level, according to the plug state of the height condition adjudgement SD card 140 of output level, and drive according to the plug state load or unload SD card of SD card 140; Described baseband controller 20 is also for checking the plug state of SD card 140 according to the height change of identification circuit 200 output level, namely baseband controller 20 detects that the level that identification circuit 200 exports is uprised by low, then think that SD card 140 executes insert action, insert draw-in groove 110 completely, baseband controller 20 detects that level that identification circuit 200 exports is by high step-down, then think that SD card 140 executes pull action, extract draw-in groove 110 completely.Baseband controller 20 on the basis of height state detecting the level that identification circuit 200 exports, then detects the height change of level, and this two mode detected, improves the accuracy judging SD card 140 plug state.Due to the stabilization effect of above-mentioned stabilization SD deck 10, baseband controller 20 can not drive by load or unload SD card frequently, makes the plug of SD card 140 can not cause harmful effect to the use of terminal.
Refer to Fig. 7, in described terminal, described baseband controller 20 comprises: GPIO pin 21, pin configuration unit 22, interruption detecting unit 23, drive load unit 24 and driving unloading unit 25.
Wherein, described GPIO pin 21, is electrically connected with the identification circuit of SD deck.Described pin configuration unit 22, for configuring GPIO pin 21 for rising edge interruption or trailing edge interruption, during specifically for starting up of terminal, before the feeder ear of identification circuit powers on, GPIO pin 21 is configured to rising edge interrupt, when terminal detects that SD card is extracted completely, GPIO pin 21 is configured to rising edge interrupt, when detecting that SD card inserts completely, GPIO pin 21 is configured to trailing edge and interrupts.
Described interruption detecting unit 23, for detecting the interruption in GPIO pin 21, when detecting that GPIO pin 21 producing rising edge interrupts, think that SD card inserts draw-in groove completely, when detecting that GPIO pin 21 producing trailing edge interrupts, think that SD card is extracted from draw-in groove.Described drive load unit 24, for when SD card inserts draw-in groove completely, loads SD card and drives.Described driving unloading unit 25, for when SD card is extracted from draw-in groove, unloading SD card drives.
Described baseband controller 20 also comprises verification unit (not shown), described verification unit is electrically connected with the identification circuit of SD deck, for checking the plug state of SD card according to the height change of identification circuit output level, namely verification unit detects that the level that identification circuit exports is uprised by low, then think that SD card executes insert action, insert draw-in groove completely, verification unit detects that level that identification circuit exports is by high step-down, then think that SD card executes pull action, extract draw-in groove completely.The testing result of verification unit and the judged result of interrupting detecting unit 23 can be contrasted, if result is consistent, then carry out the load or unload that SD card drives.Adopt this two mode detected, improve the accuracy judging SD card plug state.
Refer to Fig. 6 and Fig. 7, in the embodiment of the present invention, when starting up of terminal, before the feeder ear VDD of identification circuit 200 powers on, GPIO pin 21 is configured to rising edge and interrupts by pin configuration unit 22, and the feeder ear VDD of identification circuit 200 powers on afterwards.If now SD card 140 inserts draw-in groove 110 completely, then the output of identification circuit 200 exports high level to the GPIO pin 21 of baseband controller 20, interrupt because GPIO pin 21 has been configured to rising edge, therefore GPIO pin 21 produces interruption, interrupt detecting unit 23 and the interruption that GPIO pin 21 produces detected, think that SD card inserts draw-in groove completely, and testing result is exported to drive load unit 24, load SD card by drive load unit 24 and drive.If after the feeder ear VDD of identification circuit 200 powers on, SD card 140 does not insert draw-in groove 110, then the output output low level of identification circuit 200 is to the GPIO pin 21 of baseband controller 20, because now GPIO pin 21 is configured to rising edge interruption by pin configuration unit 22, therefore GPIO pin 21 does not produce interruption, interrupt detecting unit 23 and can't detect interruption, also would not control drive load unit 24 and drive unloading unit 25.
It can thus be appreciated that the level height that terminal detects identification circuit output by baseband controller can judge whether SD card inserts completely or extract draw-in groove, and load or unload drives according to this, achieves the accurate identification to SD card plug state.And the switching on and shutting down of terminal all can not affect the identification to SD card plug state, achieve the automation of SD card identification, intellectuality.
In another embodiment of the invention, described interruption detecting unit is also for when starting up of terminal, and the height reading level in GPIO pin judges the plug state of SD card.The specific works principle of described terminal elaborates in a upper embodiment, does not repeat them here.
Refer to Fig. 8, based on terminal as above, the present invention also provides a kind of method identifying SD card plug state, and concrete steps comprise:
S100, when identification circuit exports high level, judge that SD card inserts in draw-in groove completely, the driving of baseband controller loading SD card;
S200, when identification circuit output low level, judges that SD card extracts draw-in groove completely, and baseband controller unloading SD card drives.
When SD card does not insert draw-in groove, described first contact disconnects with identification circuit, described second contact is electrically connected with identification circuit, the first input end input high level of the second NOR gate, the first input end input low level of the first NOR gate, the output output low level of identification circuit, the output of the first NOR gate is high level.
When SD card does not insert draw-in groove completely, described first contact and described second contact all disconnect with identification circuit, the now first input end input low level of the second NOR gate, the first input end input low level of the first NOR gate, the output output low level of identification circuit, the output of the first NOR gate is high level.
When SD card inserts draw-in groove completely, described first contact is electrically connected with identification circuit, described second contact and identification circuit disconnect, the now first input end input low level of the second NOR gate, the first input end input high level of the first NOR gate, the output of identification circuit exports high level, and the output of the first NOR gate is low level.
When draw-in groove do not extracted completely by SD card, described first contact and described second contact all disconnect with identification circuit, the now first input end input low level of the second NOR gate, the first input end input low level of the first NOR gate, the output of identification circuit exports high level, and the output of the first NOR gate is low level.
When draw-in groove extracted completely by SD card, described first contact disconnects with identification circuit, described second contact is electrically connected with identification circuit, the now first input end input high level of the second NOR gate, the first input end input low level of the first NOR gate, the output output low level of identification circuit, the output of the first NOR gate is high level.
It can thus be appreciated that insert at SD card in the process of draw-in groove, only have when SD card inserts draw-in groove completely, the output of identification circuit just exports high level; Extract in the process of draw-in groove at SD card, only have when draw-in groove extracted completely by SD card, the output just output low level of identification circuit; The level height that namely only need detect the output of identification circuit output can judge whether SD card inserts completely and extract draw-in groove.Even if there is the situation (situation do not inserted completely and extract) that SD card is shaken in swapping process, also can not affect the level that identification circuit output exports, avoid the situation that appearance identifies repeatedly.
The method of identification SD card plug state provided by the invention, detects by baseband controller the level height that identification circuit exports and can judge whether SD card inserts completely or extract draw-in groove, and load or unload driver element according to this, achieve the accurate identification to SD card.
Refer to Fig. 9, in the method for described identification SD card plug state, described step S100 specifically comprises:
When S110, starting up of terminal, the GPIO pin of baseband controller is configured to rising edge and interrupts;
S120, when detect GPIO pin produce interrupt time, judge that SD card inserts in draw-in groove completely;
S130, baseband controller load SD card and drive, and the GPIO pin of baseband controller are configured to trailing edge interruption.
Wherein, described step S120 specifically comprises:
Interrupt when detection GPIO pin produces, and when detecting that level that identification circuit exports is by low uprising, judge that SD card inserts in draw-in groove completely.
Described step S200 specifically comprises:
S210, when detect GPIO pin produce interrupt time, judge that SD card is extracted from draw-in groove;
S220, baseband controller drive unloading unit unloading SD card to drive, and GPIO pin are configured to rising edge interruption.
Described step S210 specifically comprises:
Interrupt when detection GPIO pin produces, and when detecting that level that identification circuit exports is by high step-down, judge that SD card is extracted from draw-in groove.
Due to when starting up of terminal, need to know in draw-in groove and whether be inserted with SD card completely, the interruption of the configuration GPIO pin that pin configuration unit ability is correct, therefore, when starting up of terminal, before the feeder ear of identification circuit powers on, by pin configuration unit, GPIO pin need be configured to rising edge and interrupt.The plug state of SD card detects and can be undertaken by above-mentioned steps S100 and S200 afterwards.Certainly, also can take following measure: when starting up of terminal, be judged the plug state of SD card by the height interrupting level in detecting unit reading GPIO pin.The plug state of SD card detects and can be undertaken by above-mentioned steps S100 and S200 afterwards.
The method of the identification SD card plug state that the corresponding above-mentioned terminal of the embodiment of the present invention provides, its specific works principle elaborates in a upper embodiment, does not repeat them here.
In sum, stabilization SD deck provided by the invention, the method of terminal and identification SD card plug state, by arranging metal clips and the identification circuit with the first contact and the second contact, when SD card does not insert, do not insert completely, insert completely, when not extracting completely and extract draw-in groove completely, first gets an electric shock accesses identification circuit state with the second electric shock is different, and then utilize identification circuit to export corresponding low and high level signal according to the first contact and the second contact to the conducting state of identification circuit, the low and high level signal exported by detecting identification circuit can judge the plug state of SD card, no matter whether shake in SD card swapping process, accurately can judge the plug state of SD card, save system resource, avoid terminal crash phenomenon.
Be understandable that, for those of ordinary skills, can be equal to according to technical scheme of the present invention and inventive concept thereof and replace or change, and all these change or replace the protection range that all should belong to the claim appended by the present invention.

Claims (9)

1. a stabilization SD deck, comprise draw-in groove assembly and identification circuit, described draw-in groove assembly comprises draw-in groove, baffle plate and one end are fixed on the metal clips on draw-in groove inwall, the other end of described metal clips connects described baffle plate, it is characterized in that, described metal clips has the first contact and the second contact; When SD card does not insert described draw-in groove, described first contact disconnects with described identification circuit, described second contact is electrically connected with described identification circuit; When SD card does not insert described draw-in groove completely, described first contact and described second contact all disconnect with described identification circuit; When SD card inserts described draw-in groove completely, described first contact is electrically connected with described identification circuit, described second contact and described identification circuit disconnect; When described draw-in groove do not extracted completely by SD card, described first contact and described second contact all disconnect with described identification circuit; When described draw-in groove extracted completely by SD card, described first contact disconnects with described identification circuit, described second contact is electrically connected with described identification circuit; Described identification circuit is used for exporting corresponding low and high level signal according to described first contact and described second contact to the conducting state of described identification circuit.
2. stabilization SD deck according to claim 1, it is characterized in that, described identification circuit comprises the first resistance, second resistance, first NOR gate and the second NOR gate, the feeder ear of described metal clips linkage identification circuit, the first input end of described first NOR gate connects draw-in groove and passes through the first grounding through resistance, second input of the first NOR gate connects the output of the second NOR gate, the first input end of described second NOR gate connects draw-in groove and by the second grounding through resistance, the second input of the second NOR gate connects the output of the first NOR gate; When described first contact and identification circuit conducting, identification circuit exports high level, when the first contact and identification circuit disconnect, and identification circuit output low level.
3. stabilization SD deck according to claim 2, is characterized in that, described draw-in groove is provided with brace, and described brace is between the first contact and draw-in groove and be electrically connected with the first input end of the first resistance and the first NOR gate.
4. a terminal, it is characterized in that, comprise baseband controller and the stabilization SD deck as described in claim 1-3 any one, the output of the input linkage identification circuit of described baseband controller, for detecting the height state of identification circuit output level, according to the plug state of the height condition adjudgement SD card of output level, and drive according to the plug state of SD card corresponding load or unload SD card.
5. terminal according to claim 4, is characterized in that, described baseband controller comprises:
GPIO pin, is electrically connected with the identification circuit of SD deck;
Pin configuration unit is that rising edge interrupts or trailing edge interrupts for configuring GPIO pin;
Interrupting detecting unit, for detecting the interruption in GPIO pin, when detecting that GPIO pin producing rising edge interrupts, thinking that SD card inserts draw-in groove completely, when detect GPIO pin produces trailing edge interruption time, think that SD card is extracted from draw-in groove;
Drive load unit, for when SD card inserts draw-in groove completely, loads SD card and drives;
Drive unloading unit, for when SD card is extracted from draw-in groove, unloading SD card drives.
6. terminal according to claim 5, it is characterized in that, described pin configuration unit, is configured to rising edge and interrupts by GPIO pin time also for detecting that SD card is extracted completely in terminal, when detecting that SD card inserts completely, GPIO pin is configured to trailing edge and interrupts.
7. a method for terminal recognition SD card plug state as claimed in claim 4, is characterized in that, comprising:
A, when identification circuit exports high level, judge that SD card inserts in draw-in groove completely, the driving of baseband controller loading SD card;
B, when identification circuit output low level, judge that SD card extracts draw-in groove completely, the driving of baseband controller unloading SD card.
8. the method for identification SD card plug state according to claim 7, it is characterized in that, described steps A specifically comprises:
When A1, starting up of terminal, the GPIO pin of baseband controller is configured to rising edge and interrupts;
A2, when detect GPIO pin produce interrupt time, judge that SD card inserts in draw-in groove completely;
A3, baseband controller load SD card and drive, and the GPIO pin of baseband controller are configured to trailing edge interruption.
9. the method for identification SD card plug state according to claim 8, it is characterized in that, described step B specifically comprises:
B1, when detect GPIO pin produce interrupt time, judge that SD card is extracted from draw-in groove;
B2, baseband controller drive unloading unit unloading SD card to drive, and GPIO pin are configured to rising edge interruption.
CN201410656530.1A 2014-11-18 2014-11-18 Anti-jitter SD card base, terminal and method for identifying inserting and pulling state of SD card Active CN104466470B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410656530.1A CN104466470B (en) 2014-11-18 2014-11-18 Anti-jitter SD card base, terminal and method for identifying inserting and pulling state of SD card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410656530.1A CN104466470B (en) 2014-11-18 2014-11-18 Anti-jitter SD card base, terminal and method for identifying inserting and pulling state of SD card

Publications (2)

Publication Number Publication Date
CN104466470A true CN104466470A (en) 2015-03-25
CN104466470B CN104466470B (en) 2017-03-22

Family

ID=52912109

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410656530.1A Active CN104466470B (en) 2014-11-18 2014-11-18 Anti-jitter SD card base, terminal and method for identifying inserting and pulling state of SD card

Country Status (1)

Country Link
CN (1) CN104466470B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106210198A (en) * 2016-07-29 2016-12-07 维沃移动通信有限公司 A kind of smart card protection circuit, mobile terminal and smart card guard method
CN108226671A (en) * 2017-12-14 2018-06-29 Tcl移动通信科技(宁波)有限公司 A kind of charging interface detection circuit and its system, method and mobile terminal
CN109471829A (en) * 2018-10-31 2019-03-15 深圳市道通智能航空技术有限公司 Recognition methods, identification mould group and the electronic equipment of SD card hot plug
CN109974819A (en) * 2017-12-27 2019-07-05 新智数字科技有限公司 Automatic counting and detecting device and the gas meter, flow meter with it
CN111650537A (en) * 2020-06-17 2020-09-11 东莞华贝电子科技有限公司 Auxiliary detection circuit, device, main board and terminal equipment
CN112887166A (en) * 2021-01-18 2021-06-01 惠州Tcl移动通信有限公司 Detection method and system for SD card of mobile terminal, intelligent terminal and storage medium
CN114915313A (en) * 2021-02-09 2022-08-16 Oppo广东移动通信有限公司 Electronic device and customer premises equipment
WO2022247577A1 (en) * 2021-05-28 2022-12-01 山东英信计算机技术有限公司 Rj45 socket apparatus, server and network switching method
CN116049070A (en) * 2022-05-30 2023-05-02 荣耀终端有限公司 Camera module identification method and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06139414A (en) * 1992-10-28 1994-05-20 Sony Corp Ic card detecting device
CN101996054A (en) * 2009-08-19 2011-03-30 上海风格信息技术有限公司 CF (Compact Flash) card protective device on embedded device and protective method thereof
CN102709725A (en) * 2012-05-23 2012-10-03 中兴通讯股份有限公司 SIM (subscriber identity module) card clamping seat, mobile terminal and method for identifying hot plugging of SIM card

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06139414A (en) * 1992-10-28 1994-05-20 Sony Corp Ic card detecting device
CN101996054A (en) * 2009-08-19 2011-03-30 上海风格信息技术有限公司 CF (Compact Flash) card protective device on embedded device and protective method thereof
CN102709725A (en) * 2012-05-23 2012-10-03 中兴通讯股份有限公司 SIM (subscriber identity module) card clamping seat, mobile terminal and method for identifying hot plugging of SIM card

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106210198A (en) * 2016-07-29 2016-12-07 维沃移动通信有限公司 A kind of smart card protection circuit, mobile terminal and smart card guard method
CN108226671A (en) * 2017-12-14 2018-06-29 Tcl移动通信科技(宁波)有限公司 A kind of charging interface detection circuit and its system, method and mobile terminal
CN109974819B (en) * 2017-12-27 2024-01-12 新智数字科技有限公司 Automatic count detection device and have its gas table
CN109974819A (en) * 2017-12-27 2019-07-05 新智数字科技有限公司 Automatic counting and detecting device and the gas meter, flow meter with it
CN114328341A (en) * 2018-10-31 2022-04-12 深圳市道通智能航空技术股份有限公司 SD card hot plug identification method, identification module and electronic equipment
CN109471829A (en) * 2018-10-31 2019-03-15 深圳市道通智能航空技术有限公司 Recognition methods, identification mould group and the electronic equipment of SD card hot plug
CN111650537A (en) * 2020-06-17 2020-09-11 东莞华贝电子科技有限公司 Auxiliary detection circuit, device, main board and terminal equipment
CN112887166A (en) * 2021-01-18 2021-06-01 惠州Tcl移动通信有限公司 Detection method and system for SD card of mobile terminal, intelligent terminal and storage medium
CN114915313A (en) * 2021-02-09 2022-08-16 Oppo广东移动通信有限公司 Electronic device and customer premises equipment
CN114915313B (en) * 2021-02-09 2023-07-14 Oppo广东移动通信有限公司 Electronic device and customer premises equipment
WO2022247577A1 (en) * 2021-05-28 2022-12-01 山东英信计算机技术有限公司 Rj45 socket apparatus, server and network switching method
CN116049070A (en) * 2022-05-30 2023-05-02 荣耀终端有限公司 Camera module identification method and electronic equipment
CN116049070B (en) * 2022-05-30 2023-11-10 荣耀终端有限公司 Camera module identification method and electronic equipment

Also Published As

Publication number Publication date
CN104466470B (en) 2017-03-22

Similar Documents

Publication Publication Date Title
CN104466470A (en) Anti-jitter SD card base, terminal and method for identifying inserting and pulling state of SD card
US9128691B2 (en) Method and terminal for selecting internal circuit according to USB interface status
KR101978192B1 (en) Charger detection with proprietary charger support
CN102025173B (en) Method and system for distinguishing between downward charging ports and special charging ports
US8970165B2 (en) Determination circuit
EP2480043A1 (en) Method and device for identifying universal serial bus (usb) insertion or charger insertion of mobile terminal
US10571499B2 (en) USB data pin impedance detection
US20130179603A1 (en) Apparatus and method of identifying a usb or an mhl device
CN101963949B (en) Hot plug realization method, hot plug system and board card
EP3964899A1 (en) Wake-up circuit and wake-up method
CN102945652A (en) Method and system for solving abnormal display of display screen
CN106340932B (en) Connection detection method and system of mobile terminal based on USB interface charger
CN105071484B (en) A kind of charging method and device of the terminal with data exchanging function
CN103019991A (en) Interface system, switching method, USB key and UART terminal
CN105120081A (en) SIM card detection device and method thereof for detecting plugging and unplugging of SIM card
CN107886883B (en) Circuit and method for detecting common electrode wiring short circuit
CN105301386A (en) OTG detection circuit and mobile terminal with OTG detection circuit
CN106226647B (en) The earphone socket and electronic equipment of a kind of electronic equipment
US9588859B2 (en) Detecting circuit and related circuit detecting method
CN203276863U (en) Register set circuit, and apparatus and system for error detection in memory cell
CN107390080B (en) battery disconnection detection circuit
CN108091061B (en) IC card detection circuit for metering device
CN104297579A (en) Detection device and method
CN101493489A (en) Transient detection circuit for ESD protection
CN107196389B (en) Processing method and device of terminal charger

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211201

Address after: 264200 No. 369-11, Shuangdao Road, Weihai high district, Weihai City, Shandong Province

Patentee after: Weihai Regional Innovation Center Co.,Ltd.

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

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