CN209373578U - Circuit and device a kind of while that detect analog signal and digital signal - Google Patents

Circuit and device a kind of while that detect analog signal and digital signal Download PDF

Info

Publication number
CN209373578U
CN209373578U CN201920120497.9U CN201920120497U CN209373578U CN 209373578 U CN209373578 U CN 209373578U CN 201920120497 U CN201920120497 U CN 201920120497U CN 209373578 U CN209373578 U CN 209373578U
Authority
CN
China
Prior art keywords
analog signal
digital signal
circuit
mcu
electrically connected
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.)
Active
Application number
CN201920120497.9U
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.)
Chipsea Technologies Shenzhen Co Ltd
Original Assignee
Chipsea Technologies Shenzhen 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 Chipsea Technologies Shenzhen Co Ltd filed Critical Chipsea Technologies Shenzhen Co Ltd
Priority to CN201920120497.9U priority Critical patent/CN209373578U/en
Application granted granted Critical
Publication of CN209373578U publication Critical patent/CN209373578U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Analogue/Digital Conversion (AREA)

Abstract

The utility model relates to detect the circuit and device of analog signal and digital signal simultaneously, including the pin PA1 of detection analog signal and the pin PA2 of detection digital signal are provided on MCU, MCU;PA1 is electrically connected with PA2;The utility model is the solution of the efficient high performance-price ratio provided for the demand in background technique, not only can guarantee and meets functional requirement i.e. while detecting analog signal and digital signal, but also is not required to increase cost custom chip, so that it may fast implement scheme output.

Description

Circuit and device a kind of while that detect analog signal and digital signal
Technical field
The utility model relates to signal detection technique field, more specifically to it is a kind of detect simultaneously analog signal and The circuit and device of digital signal.
Background technique
When for unknown signaling detection, since the signal is likely to be analog signal, it is also possible to be digital signal, at this moment Just be required to detect analog signal and digital signal simultaneously, only simultaneously detect the integrality that just can guarantee tested signal and when Effect property finally reaches the effect for correctly responding tested signal in time;
General MCU detection analog signal can generally be realized with ADC, analog comparator etc. on the market at present, testing number It is believed that can number be generally triggered using exterior I O interruption to realize, but analog signal and digital signal can not be detected simultaneously, It just cannot achieve in some applications in this way and think function to be achieved, or need custom-made chip to realize, and be achieved If cost also will increase much.
Utility model content
The technical problem to be solved by the present invention is in view of the above drawbacks of the prior art, provide a kind of while examining Survey the circuit of analog signal and digital signal;
Additionally provide device that is a kind of while detecting analog signal and digital signal and one kind at the same detect analog signal and The method of digital signal.
The technical scheme adopted by the utility model to solve the technical problem is as follows:
Construct circuit that is a kind of while detecting analog signal and digital signal, wherein including MCU, be provided on the MCU Detect the pin PA1 of analog signal and the pin PA2 of detection digital signal;The PA1 is electrically connected with the PA2.
Circuit that is described in the utility model while detecting analog signal and digital signal, wherein the PA1 with it is described It is electrically connected after PA2 encapsulation by PCB trace.
Circuit that is described in the utility model while detecting analog signal and digital signal, wherein the PA1 with it is described Electrical connection is realized to same PIN by routing when PA2 is encapsulated.
Circuit that is described in the utility model while detecting analog signal and digital signal, wherein the circuit further includes AC-DC/DC-DC module, LDO power supply module and usb interface module;The LDO power supply module and the usb interface module are logical VBUS is crossed to be electrically connected with the AC-DC/DC-DC module;The LDO power supply module is electrically connected with the MCU;The MCU passes through FB is electrically connected with the AC-DC/DC-DC module;The usb interface module is connected by D+/D- with MCU.
Circuit that is described in the utility model while detecting analog signal and digital signal, wherein the usb interface module D+ be electrically connected with the PA0 of MCU mouth, D- is electrically connected with the PA1 and the PA2.
Device that is a kind of while detecting analog signal and digital signal, according to it is above-mentioned while detection analog signal and number The circuit of signal, wherein the circuit is provided in described device.
Method that is a kind of while detecting analog signal and digital signal detects analog signal and number letter while root is above-mentioned Number circuit, its implementation is as follows:
Step 1: detecting that USB port has load to access, MCU controls VBUS and exports 5V, while PA0, PA1 being shorted, starting BC1.2 detection;
Step 2:, by PA0, PA1 short circuit disconnects, while the pull down resistor of PA1 being opened, and opens after the completion of BC1.2 detection Simulation input detection is opened, PA2 opens numeral input detection;
Step 3: starting fast charge protocol detection waits, detection is electrically charged the fast charge protocol type of equipment;
Step 4:, according to Host Command, responding host after detection fast charge agreement.
Circuit that is described in the utility model while detecting analog signal and digital signal, wherein further include step 5: inspection After measurement equipment is extracted, testing process is reset.
Circuit that is described in the utility model while detecting analog signal and digital signal, wherein the fast charge protocol class Type includes QC, FCP and AFC;The QC is analog signal;The FCP and AFC is digital signal.
The utility model has the beneficial effects that: the utility model is the height provided for the demand in background technique The solution of high performance-price ratio is imitated, not only can guarantee and meet functional requirement i.e. while detecting analog signal and digital signal, but also be not required to Increase cost custom chip, so that it may fast implement scheme output.
Detailed description of the invention
In order to illustrate the embodiment of the utility model or the technical proposal in the existing technology more clearly, below in conjunction with attached drawing And the utility model is described in further detail for embodiment, the accompanying drawings in the following description is only that the part of the utility model is implemented Example, for those of ordinary skill in the art, without creative efforts, can also obtain according to these attached drawings Obtain other accompanying drawings:
The circuit circuit diagram of analog signal and digital signal is detected while Fig. 1 is the utility model preferred embodiment;
The method logic flow of analog signal and digital signal is detected while Fig. 2 is the utility model preferred embodiment Figure.
Specific embodiment
It is practical below in conjunction with this in order to keep the objectives, technical solutions, and advantages of the embodiments of the present invention clearer Technical solution in new embodiment carries out clear, complete description, it is clear that described embodiment is the portion of the utility model Point embodiment, rather than whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not being paid Every other embodiment obtained, belongs to the protection scope of the utility model under the premise of creative work.
The circuit that analog signal and digital signal are detected while the utility model preferred embodiment, as shown in Figure 1, including The pin PA1 of detection analog signal and the pin PA2 of detection digital signal are provided on MCU3, MCU3;PA1 is electrically connected with PA2; The utility model is the solution of the efficient high performance-price ratio provided for the demand in background technique, both can guarantee and meets Functional requirement is while detecting analog signal and digital signal, and is not required to increase cost custom chip, so that it may fast implement scheme Output.
Preferably, PA1 is electrically connected with after PA2 encapsulation by PCB trace, alternatively, PA1 and PA2 is arrived when encapsulating by routing Same PIN is electrically connected to realize.
Preferably, circuit further includes AC-DC/DC-DC module 1, LDO power supply module 2 and usb interface module 4;LDO power supply Module 2 and usb interface module 4 are electrically connected by VBUS with AC-DC/DC-DC module 1;LDO power supply module 2 and MCU3 is electrically connected It connects;MCU3 is electrically connected by FB with AC-DC/DC-DC module 1;Usb interface module 4 is connected by D+/D- with MCU3;
AC-DC/DC-DC module is connected with LDO power supply module and usb interface module, and AC-DC/DC-DC output voltage is given to LDO and by USB interface output be given to outside load, be combined into a discharge output circuit;
LDO power supply module is connected with MCU module, and MCU is powered by LDO, because VBUS exports high pressure sometimes, and it is general MCU is low pressure process, so needing LDO that voltage is reduced to power to MCU;
Usb interface module is connected with MCU module, and USB is connected by D+/D- with MCU, is mainly used to fast charge agreement of shaking hands, The desired charging voltage of AC-DC/DC-DC output charging equipment can be controlled by shaking hands fast charge agreement in this way, to realize The effect of fast charge;
AC-DC/DC-DC module is connected with MCU module, and MCU is connected by FB with AC-DC/DC-DC, is mainly used to feed back Control the voltage of AC-DC/DC-DC output fast charge protocol handshake.
Preferably, the PA0 mouth of the D+ and MCU3 of usb interface module 4 are electrically connected, and D- is electrically connected with PA1 and PA2.
Device that is a kind of while detecting analog signal and digital signal, according to it is above-mentioned while detection analog signal and number The circuit of signal is provided with circuit on device.
Method that is a kind of while detecting analog signal and digital signal detects analog signal and number letter while root is above-mentioned Number circuit, as shown in Fig. 2, its implementation is as follows:
Step 1: detecting that USB port has load to access, MCU controls VBUS and exports 5V, while PA0, PA1 being shorted, starting BC1.2 detection;
Step 2:, by PA0, PA1 short circuit disconnects, while the pull down resistor of PA1 being opened, and opens after the completion of BC1.2 detection Simulation input detection is opened, PA2 opens numeral input detection;
Step 3: starting fast charge protocol detection waits, detection is electrically charged the fast charge protocol type of equipment;
Step 4:, according to Host Command, responding host after detection fast charge agreement.
It preferably, further include step 5: resetting testing process after detection device extraction;
The utility model is the solution of the efficient high performance-price ratio provided for the demand in background technique, both may be used Guarantee meets functional requirement i.e. while detecting analog signal and digital signal, and is not required to increase cost custom chip, so that it may quickly Implementation output.
Preferably, fast charge protocol type includes QC, FCP and AFC;QC is analog signal;FCP and AFC is digital signal.
It should be understood that for those of ordinary skills, it can be modified or changed according to the above description, And all these modifications and variations all should belong to the protection scope of the appended claims for the utility model.

Claims (6)

1. a kind of circuit for detecting analog signal and digital signal simultaneously, which is characterized in that including MCU, be provided on the MCU Detect the pin PA1 of analog signal and the pin PA2 of detection digital signal;The PA1 is electrically connected with the PA2.
2. circuit that is according to claim 1 while detecting analog signal and digital signal, which is characterized in that the PA1 It is electrically connected with after PA2 encapsulation by PCB trace.
3. circuit that is according to claim 1 while detecting analog signal and digital signal, which is characterized in that the PA1 It is electrically connected when being encapsulated with the PA2 by routing to same PIN to realize.
4. circuit that is according to claim 1 while detecting analog signal and digital signal, which is characterized in that the circuit It further include AC-DC/DC-DC module, LDO power supply module and usb interface module;The LDO power supply module and the USB interface mould Block passes through VBUS and is electrically connected with the AC-DC/DC-DC module;The LDO power supply module is electrically connected with the MCU;It is described MCU is electrically connected by FB with the AC-DC/DC-DC module;The usb interface module is connected by D+/D- with MCU.
5. circuit that is according to claim 4 while detecting analog signal and digital signal, which is characterized in that the USB The D+ of interface module is electrically connected with the PA0 of MCU mouth, and D- is electrically connected with the PA1 and the PA2.
6. a kind of device for detecting analog signal and digital signal simultaneously, is detected while -5 is any described according to claim 1 The circuit of analog signal and digital signal, which is characterized in that the circuit is provided in described device.
CN201920120497.9U 2019-01-22 2019-01-22 Circuit and device a kind of while that detect analog signal and digital signal Active CN209373578U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201920120497.9U CN209373578U (en) 2019-01-22 2019-01-22 Circuit and device a kind of while that detect analog signal and digital signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201920120497.9U CN209373578U (en) 2019-01-22 2019-01-22 Circuit and device a kind of while that detect analog signal and digital signal

Publications (1)

Publication Number Publication Date
CN209373578U true CN209373578U (en) 2019-09-10

Family

ID=67826005

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201920120497.9U Active CN209373578U (en) 2019-01-22 2019-01-22 Circuit and device a kind of while that detect analog signal and digital signal

Country Status (1)

Country Link
CN (1) CN209373578U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109614033A (en) * 2019-01-22 2019-04-12 芯海科技(深圳)股份有限公司 It is a kind of while detecting the circuit of analog signal and digital signal, device and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109614033A (en) * 2019-01-22 2019-04-12 芯海科技(深圳)股份有限公司 It is a kind of while detecting the circuit of analog signal and digital signal, device and method

Similar Documents

Publication Publication Date Title
CN203933124U (en) A kind of single interface portable power source, bluetooth keyboard and protective sleeve
CN102882246B (en) Use the system and method that master device is charged by detachable apparatus
CN103973287A (en) Startup and shutdown machine circuit
CN207320876U (en) A kind of charging circuit and charger
CN102539990A (en) Capacitor short circuit detecting circuit
CN209373578U (en) Circuit and device a kind of while that detect analog signal and digital signal
CN203705526U (en) Voltage polarity judgment circuit and system
CN202002964U (en) Detection circuit for power grid power failures
CN110233512A (en) The quick power supply of multithreading
CN205944638U (en) Speech recognition safety smart jack
CN206818851U (en) Portable LED lamp aging tester
CN203466962U (en) Audio port identification circuit and communication device
CN109614033A (en) It is a kind of while detecting the circuit of analog signal and digital signal, device and method
CN203745556U (en) Automatic testing device used for testing load capability of communication interface of intelligent electric energy meter
CN201994695U (en) Power supply circuit
CN204462295U (en) Auxiliary circuit is detected from equipment and insertion thereof
CN106602645B (en) Charger
CN207425101U (en) A kind of remote-controlled test circuit and device
CN107677936A (en) A kind of automatic detector for the detection of diode breakdown critical voltage
CN207459705U (en) A kind of protection drive module
CN207835053U (en) Attachment interface short-circuit preventing device, terminal and system
CN207184087U (en) A kind of portable power source automatic recognition of load circuit
CN201805409U (en) Reset circuit of FPGA system
CN205283163U (en) Mobile device lithium battery supply manages circuit
CN211480956U (en) Label printer based on single lithium battery charging circuit

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant