CN201322770Y - IO port detecting circuit - Google Patents

IO port detecting circuit Download PDF

Info

Publication number
CN201322770Y
CN201322770Y CNU2008202237702U CN200820223770U CN201322770Y CN 201322770 Y CN201322770 Y CN 201322770Y CN U2008202237702 U CNU2008202237702 U CN U2008202237702U CN 200820223770 U CN200820223770 U CN 200820223770U CN 201322770 Y CN201322770 Y CN 201322770Y
Authority
CN
China
Prior art keywords
mouth
switch
testing circuit
resistor
down resistor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNU2008202237702U
Other languages
Chinese (zh)
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.)
IPGoal Microelectronics Sichuan Co Ltd
Original Assignee
HEXIN MICROELECTRONICS (SHANGHAI) 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 HEXIN MICROELECTRONICS (SHANGHAI) CO Ltd filed Critical HEXIN MICROELECTRONICS (SHANGHAI) CO Ltd
Priority to CNU2008202237702U priority Critical patent/CN201322770Y/en
Application granted granted Critical
Publication of CN201322770Y publication Critical patent/CN201322770Y/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Testing Of Short-Circuits, Discontinuities, Leakage, Or Incorrect Line Connections (AREA)

Abstract

The utility model discloses an IO port detecting circuit which comprises a divider resistor which is used to detect signal; a pull-down resistor which corresponds to the divider resistor is connected with an IO port or a switch; the circuit uses the discontinuity of detecting time and adopts a novel detection control method, to control the time of the ground resistor, thereby reducing the current leakage and increasing the use time of a battery, without increasing the product cost.

Description

A kind of IO mouth testing circuit
Technical field
The utility model relates to integrated circuit fields, particularly a kind of IO mouth (general input/output port) testing circuit that can reduce power consumption.
Background technology
We use the IO mouth to do the detection whether signal or voltage exist through regular meeting in product is used, and when using the IO mouth to do to detect, use the method for dividing potential drop or sampling to come detection signal if desired, and general structure as shown in Figure 1.
The IO mouth detection method that designs under this structure is running into the structure that is equivalent to Fig. 2 when there are pull-up resistor or any pull-up resistor that cannot avoid in IO mouth inside.
Structure shown in Figure 2, because the pull-up resistor that exists is generally tens K, then Wai Bu divider resistance value can not be got too greatly, then under this structure, can produce bigger lasting electric leakage, the service time of minimizing battery.
For this existing IO mouth detection method, the resistance clamper is arranged running into (when the pull-up resistor that can not lack out being arranged, as above figure) such as chip internal, when can not strengthen resistance value arbitrarily, can produce the electric leakage that continues, increase the power consumption of system, reduce the service time of battery.
The utility model content
The utility model purpose is to provide a kind of IO mouth testing circuit that can reduce power consumption, can solve the lasting electric leakage when detecting with the IO mouth, reduces the power consumption of system.
The technical solution of the utility model is as follows:
A kind of IO mouth testing circuit is characterized in that: comprise the divider resistance that is used for input, the pull down resistor of described divider resistance correspondence connects IO mouth or switch.
Joint detection branch road behind the described pull down resistor connection IO mouth.
After described pull down resistor connects switch, the other end ground connection of switch, other end joint detection branch road.
Described divider resistance can be made up of a plurality of resistance.
The control flow of this testing circuit is as follows:
Control IO mouth is set to input state or exports high state, and detection branch is earth-free; Need detection signal the time, control the IO mouth and be set to export low state, detection branch is worked; After discharging control IO, control IO is multiplexed with other functions, not occupying system resources separately.
The control flow of this testing circuit is as follows:
In the ordinary course of things switch is disconnected, because detection branch does not have ground connection, so can not produce electric leakage; Only when needs detect switch is closed, make detection branch ground connection like this, resistance plays the effect of dividing potential drop.
The beneficial effects of the utility model are as follows:
This circuit utilizes the not continuation of detection time, has adopted new detection control method, and stake resistance is carried out temporal control, has reached the effect that reduces leakage current, has increased the service time of battery, and can not increase cost of products.
Description of drawings
Fig. 1 comes the electrical block diagram of detection signal for the method for employing dividing potential drop in the background technology or sampling
Fig. 2 is the synoptic diagram that is equivalent to structure shown in Figure 1 in the background technology
Fig. 3 is a structural representation of the present utility model
Fig. 4 is the control flow chart of Fig. 3 of the present utility model
Fig. 5 is a structural representation of the present utility model
Fig. 6 is the control flow chart of the utility model Fig. 5
Embodiment
As Fig. 3 or shown in Figure 5, a kind of IO mouth testing circuit is characterized in that: comprise the divider resistance that is used for input, the pull down resistor of described divider resistance correspondence connects IO mouth or switch.
Joint detection branch road behind the described pull down resistor connection IO mouth.
After described pull down resistor connects switch, the other end ground connection of switch, other end joint detection branch road.
Described divider resistance can be made up of a plurality of resistance.
As shown in Figure 4, the control flow of this testing circuit is as follows:
Can control the IO mouth in the ordinary course of things and be set to input state or export high state, detection branch is earth-free, so can not produce electric leakage; Only controlling the IO mouth in the needs detection signal is set to export low state, and detection branch is worked; After discharging control IO, control IO is multiplexed with other functions, not occupying system resources separately.
As shown in Figure 6, the control flow of this testing circuit is as follows:
In the ordinary course of things switch is disconnected, because detection branch does not have ground connection, so can not produce electric leakage; Only when needs detect switch is closed, make detection branch ground connection like this, resistance plays the effect of dividing potential drop.
For example: adopt the MCU of the inner band of IO mouth 64K pull-up resistor, detect whether connecting system of external 3V power supply, promptly the 3V power supply is our detected signal
System detected in per 1 minute, and whether external power supply inserts.
Input mouth after we use P2.1 as the external power supply dividing potential drop, the inner band of this IO mouth 64K pull-up resistor.
We use a button to detect the multiplexing IO as control of IO mouth (P2.0).
P2.0 is set is that input pin detects button to program after initialization, and when whether program loop need detect external power supply and insert, P2.0 was set to low, and whether use P2.1 to detect is high, and height represents that then external power supply inserts.Otherwise then do not insert.It is that input pin continues to detect button that P2.0 is set after detection finishes immediately.
Total system, because just detected and once power on not in per 1 minute, and it is quite of short duration to detect the duration, so electric leakage seldom.Can obviously reduce power consumption.

Claims (4)

1, a kind of IO mouth testing circuit is characterized in that: comprise the divider resistance that is used for input, the pull down resistor of described divider resistance correspondence connects IO mouth or switch.
2, according to the described a kind of IO mouth testing circuit of claim 1, it is characterized in that: joint detection branch road behind the described pull down resistor connection IO mouth.
3, according to the described a kind of IO mouth testing circuit of claim 1, it is characterized in that: after described pull down resistor connects switch, the other end ground connection of switch, other end joint detection branch road.
4, according to the described a kind of IO mouth testing circuit of claim 1, it is characterized in that: described divider resistance is made up of a plurality of resistance.
CNU2008202237702U 2008-12-25 2008-12-25 IO port detecting circuit Expired - Fee Related CN201322770Y (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNU2008202237702U CN201322770Y (en) 2008-12-25 2008-12-25 IO port detecting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNU2008202237702U CN201322770Y (en) 2008-12-25 2008-12-25 IO port detecting circuit

Publications (1)

Publication Number Publication Date
CN201322770Y true CN201322770Y (en) 2009-10-07

Family

ID=41160149

Family Applications (1)

Application Number Title Priority Date Filing Date
CNU2008202237702U Expired - Fee Related CN201322770Y (en) 2008-12-25 2008-12-25 IO port detecting circuit

Country Status (1)

Country Link
CN (1) CN201322770Y (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102053618A (en) * 2011-01-25 2011-05-11 东莞市步步高家用电器有限公司 MCU truthlikeness check method and checking circuit thereof
CN110771001A (en) * 2018-11-22 2020-02-07 深圳市大疆创新科技有限公司 Charger and charging control circuit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102053618A (en) * 2011-01-25 2011-05-11 东莞市步步高家用电器有限公司 MCU truthlikeness check method and checking circuit thereof
CN110771001A (en) * 2018-11-22 2020-02-07 深圳市大疆创新科技有限公司 Charger and charging control circuit

Similar Documents

Publication Publication Date Title
CN101043144B (en) Electrical source managing method of portable electronic products and apparatus thereof
CN206579491U (en) A kind of low-power consumption Vehicular charger charging system
CN206650446U (en) A kind of low-power consumption standby circuit of BMS
CN204287442U (en) Circuit is eliminated in a kind of electric energy meter pond passivation detection and passivation
CN201322770Y (en) IO port detecting circuit
CN205978786U (en) Locking ball valve with communication interface
CN209462050U (en) Standby capacitor charge and discharge circuit and its fault detector
CN202772653U (en) Dual battery mobile phone
CN103209270B (en) Mainframe of medical communication calling device
CN206833202U (en) A kind of eject key switch electromechanics road
CN107561450A (en) A kind of monomer battery voltage measurement apparatus and method
CN202995351U (en) Buzzer and switch-assembly multiplexing system
CN206759110U (en) A kind of portable power source
CN207766381U (en) A kind of microphone and camera force switch circuit
CN207225120U (en) One kind is used for new energy electric motor vehicle high-voltage detecting device
CN207398868U (en) A kind of balancing control circuit of power battery pack
CN206638286U (en) A kind of super low-power consumption high reliability water meter
CN207251244U (en) A kind of multi-mode wake-up circuit of BMS
CN201072874Y (en) Standby circuit of television
CN205670743U (en) Drive circuit for electromechanical equipment safety detector DC source
CN205301545U (en) Power -down detection circuit
CN203490494U (en) Novel power consumption reading intelligent card seat
CN203732915U (en) Intelligent voltage switching device
CN218825335U (en) Circuit with ultra-low power consumption
CN107733025A (en) Double charging circuits and its operation method compatible with DC a kind of USB

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee

Owner name: SICHUAN HEXIN MICROELECTRONICS (SICHUAN) CO., LTD.

Free format text: FORMER NAME: HEXIN MICROELECTRONICS (SICHUAN) CO., LTD.

CP01 Change in the name or title of a patent holder

Address after: 409 room 7, building 610041, incubator Park, hi tech Zone, Sichuan, Chengdu

Patentee after: IPGoal Microelectronics (Sichuan) Co., Ltd.

Address before: 409 room 7, building 610041, incubator Park, hi tech Zone, Sichuan, Chengdu

Patentee before: Hexin Microelectronics (Shanghai) Co., Ltd.

C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20091007

Termination date: 20131225