CN201716718U - Single-chip microcomputer detection circuit and device thereof - Google Patents

Single-chip microcomputer detection circuit and device thereof Download PDF

Info

Publication number
CN201716718U
CN201716718U CN2009202041532U CN200920204153U CN201716718U CN 201716718 U CN201716718 U CN 201716718U CN 2009202041532 U CN2009202041532 U CN 2009202041532U CN 200920204153 U CN200920204153 U CN 200920204153U CN 201716718 U CN201716718 U CN 201716718U
Authority
CN
China
Prior art keywords
port
chip microcomputer
switch
resistance
capacitor
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
CN2009202041532U
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.)
Shenzhen H&T Intelligent Control Co Ltd
Original Assignee
Shenzhen H&T Intelligent Control 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 Shenzhen H&T Intelligent Control Co Ltd filed Critical Shenzhen H&T Intelligent Control Co Ltd
Priority to CN2009202041532U priority Critical patent/CN201716718U/en
Application granted granted Critical
Publication of CN201716718U publication Critical patent/CN201716718U/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)
  • Microcomputers (AREA)

Abstract

The utility model provides a single-chip microcomputer detection circuit. The single-chip microcomputer detection circuit comprises a single-chip microcomputer, a resistor, a capacitor, a switch, a first port, a second port and a third port; the single-chip microcomputer comprises a single-chip microcomputer detection port grounded via the resistor and the capacitor in sequence; the first port is connected to an external voltage source; the second port is connected to a node between the capacitor and the resistor; the third port is grounded; the resistor has the function of a current limiting resistor or a discharge resistor; the capacitor is used as a charging and discharging capacitor; the switch adopts a jumper cap or an external switch with similar function; and the single-chip microcomputer detection port can be taken as an input port or an output port. The utility model also provides a device adopting the single-chip microcomputer detection circuit.

Description

Single-chip microcomputer testing circuit and device thereof
Technical field
The utility model relates to a kind of single-chip microcomputer testing circuit, particularly a kind of single-chip microcomputer testing circuit that utilizes the single-chip processor i/o mouth to detect different operate outside states.The utility model also relates to a kind of device that adopts above-mentioned single-chip microcomputer testing circuit.
Background technology
At present, single-chip microcomputer as the major control element widespread usage on domestic electric appliances controller.Fierce day by day and cost of products required reasons such as more and more lower owing to market competition, the multiplexing of multiple function is widely used in the design on the electric control circuit of being in.Yet the operate outside state-detection for the single-chip microcomputer multiplexing functions but lacks corresponding circuit design.
The utility model content
For solving the needs that the prior art single-chip microcomputer detects different operate outside states, be necessary to provide a kind of single-chip microcomputer testing circuit and device thereof that can detect different operate outside states.
A kind of single-chip microcomputer testing circuit comprises a single-chip microcomputer, a resistance, an electric capacity, a switch, one first port, one second port and one the 3rd port.This single-chip microcomputer comprises a single-chip microcomputer detection port.This single-chip microcomputer detection port is successively via this resistance and this capacity earth.This first port is connected to external voltage source.This second port is connected to a node between this electric capacity and this resistance.The 3rd port ground connection.This resistance plays the effect of current-limiting resistance or discharge resistance.This electric capacity is used for as charge and discharge capacitance.This switch is jumper cap or similar functions external switch.This single-chip microcomputer detection port can be used as input port or as output port.
In the utility model single-chip microcomputer testing circuit, have three kinds of different operating states, first kind is that this first port and this second port are by this switch short circuit; Second kind is that this second port and the 3rd port are by this switch short circuit; The third is that this first port, this second port and the 3rd port are and open circuit, and promptly this switch is not connected to this first port, this second port and the 3rd port.
In the utility model single-chip microcomputer testing circuit, this detection port can be arranged to input or output two kinds of working methods.
In the utility model single-chip microcomputer testing circuit, be set to the way of output by this detection port, it is set to input mode behind high level to make its output, just carries out the judgement of external circuit duty according to the level that detects this detections input then.
In the utility model single-chip microcomputer testing circuit, the detection port of this single-chip microcomputer is set to the way of output, and makes its output high level; This single-chip microcomputer detection port is set to input mode, detects the incoming level state; If this moment, this detection port incoming level was a low level, this second port and the 3rd port short circuit; If this detection port incoming level is for being input as high level at this moment, then this single-chip microcomputer detection port is set to the way of output, and is output as low level; This single-chip microcomputer detection port is set to input mode again, detects the incoming level state; If be input as high level this moment, this first port and this second port short circuit; If be input as low level, this second port and the 3rd port are and open circuit.
The utility model also provides a kind of device, and it comprises above-mentioned single-chip microcomputer testing circuit.
Compared to prior art, the utility model utilizes the detection of the existing three kinds of different external status of an I/O cause for gossip of single-chip microcomputer, circuit is simple, software programming is easy to realize, it utilizes the I/O mouth of single-chip microcomputer to be arranged to export different conditions, discharge and recharge control for the I/O outside, change the I/O mouth then and be arranged to input state, judge that incoming level changes, thereby draw the outside whether the connection charge and discharge capacitance is arranged, and draw three kinds of different external status, reduce system cost, and function realizes simple, and circuit performance is reliable.
Description of drawings
Fig. 1 is the electrical block diagram of the utility model single-chip microcomputer testing circuit one preferred implementation.
Embodiment
Below in conjunction with Figure of description the utility model embodiment is specified.
Seeing also Fig. 1, is the electrical block diagram of the utility model single-chip microcomputer testing circuit one preferred implementation.This single-chip microcomputer testing circuit 10 comprises a single-chip microcomputer U1, a resistance R 1, a capacitor C 1, a switch JP, one first port K1, one second port K2 and one the 3rd port K3.This single-chip microcomputer U1 comprises a single-chip microcomputer detection port I/O.
This single-chip microcomputer detection port I/O is successively via this resistance R 1 and this capacitor C 1 ground connection.This first port K1 is connected to external voltage source VDD.This second port K2 is connected to a node between this capacitor C 1 and this resistance R 1.The 3rd port K3 ground connection.
This resistance R 1 plays the effect of current-limiting resistance or discharge resistance.This capacitor C 1 is used for as charge and discharge capacitance.This switch JP is jumper cap or similar functions external switch.This single-chip microcomputer detection port I/O can be used as input port or as output port.
The single-chip microcomputer of described single-chip microcomputer U1 detects a mouthful I/O outside can exist three kinds of different operating states:
First kind is that this first port K1 and this second port K2 are by this switch JP short circuit;
Second kind is that this second port K2 and the 3rd port K3 are by this switch JP short circuit;
The third opens circuit for this first port K1, this second port K2 and the 3rd port K3 are, and promptly this switch JP is not connected to this first port K1, this second port K2 and the 3rd port K3.
The principle of work of this single-chip microcomputer testing circuit 10 is described below:
The detection port I/O of this single-chip microcomputer U1 is set to the way of output, and makes its output high level;
This single-chip microcomputer detection port I/O mouth is set to input mode (resistance value of concrete this resistance R 1 of basis of time, the capacitance of this capacitor C 1 are selected), detects the incoming level state.
If this moment, this detection port I/O incoming level was a low level, show that voltage is low level on this capacitor C 1, then this capacitor C 1 is not recharged when this single-chip microcomputer detection port I/O output high level, shows that promptly external circuit is second kind of state, i.e. this second port K2 and the 3rd port K3 short circuit; If this detection port I/O incoming level then carries out following operation for being input as high level at this moment:
This single-chip microcomputer detection port I/O mouth is set to the way of output, and is output as low level;
This single-chip microcomputer detection port I/O mouth is set to input mode (resistance value of concrete this resistance R 1 of basis of time, the capacitance of this capacitor C 1 are selected) again, detects the incoming level state; If be input as high level this moment, then is first kind of state, i.e. this first port K1 and this second port K2 short circuit; If be input as low level, then be the third state, promptly this first port K1, this second port K2 and the 3rd port K3 are and open circuit.
In the utility model SCM detection device, comprise at least one above-mentioned single-chip microcomputer testing circuit.
Compared to prior art, the utility model single-chip microcomputer testing circuit utilizes the detection port I/O of this single-chip microcomputer U1 to realize the detection of three kinds of different external status, circuit is simple, software programming is easy to realize, its utilization is arranged to output state with this detection port I/O, discharge and recharge for this external circuit, change the input state that is of this single-chip microcomputer detection port I/O then, judge that incoming level changes, thereby draw external circuit whether the connection charge and discharge capacitance is arranged, and draw three kinds of different external status, reduce system cost, and function realizes simple, and circuit performance is reliable.The utility model SCM detection device comprises above-mentioned single-chip microcomputer testing circuit, therefore can realize the detection of three kinds of different external status equally.
Above content be in conjunction with concrete preferred implementation to further describing that the utility model is done, can not assert that concrete enforcement of the present utility model is confined to these explanations.For the utility model person of an ordinary skill in the technical field, under the prerequisite that does not break away from the utility model design, can also make some simple deduction or replace, all should be considered as belonging to protection domain of the present utility model.

Claims (3)

1. single-chip microcomputer testing circuit, it is characterized in that: comprise a single-chip microcomputer, one resistance, one electric capacity, one switch, one first port, one second port and one the 3rd port, this single-chip microcomputer comprises a single-chip microcomputer detection port, this single-chip microcomputer detection port is successively via this resistance and this capacity earth, this first port is connected to external voltage source, this second port is connected to a node between this electric capacity and this resistance, the 3rd port ground connection, this resistance plays the effect of current-limiting resistance or discharge resistance, this electric capacity is used for as charge and discharge capacitance, this switch is jumper cap or similar functions external switch, and this single-chip microcomputer detection port can be used as input port or as output port.
2. single-chip microcomputer testing circuit as claimed in claim 1 is characterized in that: have three kinds of different operating states, first kind is that this first port and this second port are by this switch short circuit; Second kind is that this second port and the 3rd port are by this switch short circuit; The third is that this first port, this second port and the 3rd port are and open circuit, and promptly this switch is not connected to this first port, this second port and the 3rd port.
3. a device is characterized in that: comprise the single-chip microcomputer testing circuit described in aforesaid right requirement 1 or 2.
CN2009202041532U 2009-08-28 2009-08-28 Single-chip microcomputer detection circuit and device thereof Expired - Fee Related CN201716718U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009202041532U CN201716718U (en) 2009-08-28 2009-08-28 Single-chip microcomputer detection circuit and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009202041532U CN201716718U (en) 2009-08-28 2009-08-28 Single-chip microcomputer detection circuit and device thereof

Publications (1)

Publication Number Publication Date
CN201716718U true CN201716718U (en) 2011-01-19

Family

ID=43462724

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009202041532U Expired - Fee Related CN201716718U (en) 2009-08-28 2009-08-28 Single-chip microcomputer detection circuit and device thereof

Country Status (1)

Country Link
CN (1) CN201716718U (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102544408A (en) * 2012-02-27 2012-07-04 惠州Tcl移动通信有限公司 Battery box and mobile phone charging and discharging measurement system
CN104407954A (en) * 2014-11-24 2015-03-11 深圳市振邦智能科技有限公司 Method for detecting I/O (input/output) interface faults in MCU (microprogrammed control unit)
WO2019011037A1 (en) * 2017-07-10 2019-01-17 比亚迪股份有限公司 Fault detection method and device for train controller input circuit

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102544408A (en) * 2012-02-27 2012-07-04 惠州Tcl移动通信有限公司 Battery box and mobile phone charging and discharging measurement system
CN104407954A (en) * 2014-11-24 2015-03-11 深圳市振邦智能科技有限公司 Method for detecting I/O (input/output) interface faults in MCU (microprogrammed control unit)
WO2019011037A1 (en) * 2017-07-10 2019-01-17 比亚迪股份有限公司 Fault detection method and device for train controller input circuit

Similar Documents

Publication Publication Date Title
CN103928958B (en) A kind of charging and discharging lithium battery management circuit and lithium battery management system
CN203482903U (en) Touch control circuit and cigarette case circuit
CN103618353A (en) Battery monitoring circuit
CN201716718U (en) Single-chip microcomputer detection circuit and device thereof
CN105471591A (en) POE power supply system and power supply method
CN204290464U (en) Power supply circuits and electronic equipment
CN205249247U (en) POE power supply system
CN204408675U (en) Illumination control circuit and lighting apparatus
CN203859544U (en) Battery device for preventing reverse installation of battery
CN104600763A (en) Under-voltage protection circuit and lamp
CN208623327U (en) Discharge circuit
CN101697410B (en) Short-circuit protection circuit adopted in battery charger circuit
CN103036686A (en) Network terminal and circuit thereof capable of achieving report of power down information
CN102751703A (en) Rechargeable battery protector
CN102752941B (en) State detection circuit for gas burst flashing lamp
CN202906437U (en) Input undervoltage protection circuit
CN205176537U (en) Combination switch control circuit of single channel AD sampling
CN109581227A (en) A kind of intelligent door lock energy-saving voltage detection circuit
CN201828602U (en) Power failure detection circuit with low power consumption
CN209486164U (en) Microcontroller power supply low-voltage detection circuit without A D interface and internal reference voltage
CN103777145A (en) Storage battery intelligent monitoring and maintenance apparatus with functions of testing voltage and load discharge
CN202486551U (en) Power-off timing circuit of automobile control unit
CN206272139U (en) A kind of electronic type of distribution terminal it is anti-jump and point, combined floodgate monitoring arrangement
CN201754176U (en) Battery detection circuit and device thereof
CN204992688U (en) Battery charging circuit

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110119

Termination date: 20170828

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