CN217606353U - Interface circuit and electronic device - Google Patents

Interface circuit and electronic device Download PDF

Info

Publication number
CN217606353U
CN217606353U CN202220794871.5U CN202220794871U CN217606353U CN 217606353 U CN217606353 U CN 217606353U CN 202220794871 U CN202220794871 U CN 202220794871U CN 217606353 U CN217606353 U CN 217606353U
Authority
CN
China
Prior art keywords
module
interface
switch
functional module
signal
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
CN202220794871.5U
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202220794871.5U priority Critical patent/CN217606353U/en
Application granted granted Critical
Publication of CN217606353U publication Critical patent/CN217606353U/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Power Sources (AREA)

Abstract

The present disclosure relates to the technical field of electronic devices, and in particular to an interface circuit and an electronic device, wherein the interface circuit includes: the system comprises an interface, a control module, a first functional module, a second functional module and a switching module; the control module is connected with the interface and used for outputting a control signal according to the signal received by the interface; the first functional module is one of the universal serial bus module, the serial line debugging interface module and the universal asynchronous transceiving transmission module; the second functional module is one of the universal serial bus module, the serial line debugging interface module and the universal asynchronous transceiving transmission module; the switching module is respectively connected with the interface, the control module, the first functional module and the second functional module, and responds to the control signal to conduct the interface and the first functional module or the second functional module.

Description

接口电路及电子设备Interface circuit and electronic equipment

技术领域technical field

本公开涉及电子设备技术领域,具体而言,涉及一种接口电路及电子设备。The present disclosure relates to the technical field of electronic devices, and in particular, to an interface circuit and an electronic device.

背景技术Background technique

随着技术的发展和进步,人们对手机等电子设备的外观要求越来越高,为了提升电子设备外观的一致性,在电子设备上需要尽量减少接口的数量。而在诸如工程调试等阶段,由于电子设备上接口的缺失,导致在调试时需要拆除整机。浪费整机资源,并且降低了产品开发的效率。With the development and progress of technology, people have higher and higher requirements on the appearance of electronic devices such as mobile phones. In order to improve the consistency of the appearance of electronic devices, it is necessary to minimize the number of interfaces on electronic devices. In stages such as engineering debugging, due to the lack of interfaces on the electronic equipment, the whole machine needs to be dismantled during debugging. It wastes the resources of the whole machine and reduces the efficiency of product development.

需要说明的是,在上述背景技术部分公开的信息仅用于加强对本公开的背景的理解,因此可以包括不构成对本领域普通技术人员已知的现有技术的信息。It should be noted that the information disclosed in the above Background section is only for enhancement of understanding of the background of the present disclosure, and therefore may contain information that does not form the prior art that is already known to a person of ordinary skill in the art.

发明内容SUMMARY OF THE INVENTION

本公开的目的在于提供一种接口电路及电子设备,进而至少一定程度上提升产品开发效率。The purpose of the present disclosure is to provide an interface circuit and an electronic device, thereby improving product development efficiency at least to a certain extent.

根据本公开的一方面,提供一种接口电路,所述接口电路包括:According to an aspect of the present disclosure, there is provided an interface circuit, the interface circuit comprising:

接口;interface;

控制模块,所述控制模块和所述接口连接,所述控制模块用于根据所述接口所接收的信号输出控制信号;a control module, the control module is connected to the interface, and the control module is configured to output a control signal according to a signal received by the interface;

第一功能模块,所述第一功能模块为所述通用串行总线模块、串行线调试接口模块和通用非同步收发传输模块中的一个;a first functional module, the first functional module is one of the universal serial bus module, the serial wire debugging interface module and the universal asynchronous transceiver transmission module;

第二功能模块,所述第二功能模块为所述通用串行总线模块、串行线调试接口模块和通用非同步收发传输模块中的一个,所述第一功能模块和所述第二功能模块不同;The second functional module, the second functional module is one of the universal serial bus module, the serial wire debugging interface module and the universal asynchronous transceiver transmission module, the first functional module and the second functional module different;

切换模块,所述切换模块分别连接所述接口、所述控制模块、所述第一功能模块和所述第二功能模块,所述切换模块响应所述控制信号而将所述接口和所述第一功能模块或所述第二功能模块导通。a switching module, the switching module is respectively connected to the interface, the control module, the first functional module and the second functional module, the switching module responds to the control signal to switch the interface and the first functional module A functional module or the second functional module is turned on.

根据本公开的另一方面,提供一种电子设备,所述电子设备包括上述的接口电路。According to another aspect of the present disclosure, there is provided an electronic device including the above-mentioned interface circuit.

本公开实施例提供的接口电路,通过切换模块将第一功能模块和第二功能模块和同一接口连接,并且控制模块根据接口接收的信号控制第一功能模块或者第二功能模块和接口导通,使得一个接口能够实现多种功能,既能够减少电子设备上的接口数量,也通过将多个功能集成于接口,在调试使直接通过接口进行调试,不需要拆除整机,避免浪费整机,并且也能够提升产品开发的效率。In the interface circuit provided by the embodiment of the present disclosure, the first functional module and the second functional module are connected to the same interface through the switching module, and the control module controls the first functional module or the second functional module and the interface to conduct conduction according to the signal received by the interface, It enables one interface to realize multiple functions, which can not only reduce the number of interfaces on electronic equipment, but also integrate multiple functions into the interface, so that debugging can be performed directly through the interface without dismantling the whole machine, avoiding wasting the whole machine, and It can also improve the efficiency of product development.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.

图1为本公开示例性实施例提供的第一种接口电路的示意框图;FIG. 1 is a schematic block diagram of a first interface circuit provided by an exemplary embodiment of the present disclosure;

图2为本公开示例性实施例提供的第二种接口电路的示意框图;FIG. 2 is a schematic block diagram of a second interface circuit provided by an exemplary embodiment of the present disclosure;

图3为本公开示例性实施例提供的第三种接口电路的示意框图;3 is a schematic block diagram of a third interface circuit provided by an exemplary embodiment of the present disclosure;

图4为本公开示例性实施例提供的第四种接口电路的示意框图;FIG. 4 is a schematic block diagram of a fourth interface circuit provided by an exemplary embodiment of the present disclosure;

图5为本公开示例性实施例提供的一种接口电路的工作流程图;FIG. 5 is a working flowchart of an interface circuit provided by an exemplary embodiment of the present disclosure;

图6为本公开示例性实施例提供的一种电子设备的示意图。FIG. 6 is a schematic diagram of an electronic device provided by an exemplary embodiment of the present disclosure.

具体实施方式Detailed ways

现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的实施方式;相反,提供这些实施方式使得本发明将全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。图中相同的附图标记表示相同或类似的结构,因而将省略它们的详细描述。Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments, however, can be embodied in various forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar structures, and thus their detailed descriptions will be omitted.

虽然本说明书中使用相对性的用语,例如“上”“下”来描述图标的一个组件对于另一组件的相对关系,但是这些术语用于本说明书中仅出于方便,例如根据附图中所述的示例的方向。能理解的是,如果将图标的装置翻转使其上下颠倒,则所叙述在“上”的组件将会成为在“下”的组件。当某结构在其它结构“上”时,有可能是指某结构一体形成于其它结构上,或指某结构“直接”设置在其它结构上,或指某结构通过另一结构“间接”设置在其它结构上。Although relative terms such as "upper" and "lower" are used in this specification to describe the relative relationship of one component of an icon to another component, these terms are used in this specification only for convenience, such as according to the direction of the example described. It will be appreciated that if the device of the icon is turned upside down, the components described as "on" will become the components on "bottom". When a certain structure is "on" other structures, it may mean that a certain structure is integrally formed on other structures, or that a certain structure is "directly" arranged on other structures, or that a certain structure is "indirectly" arranged on another structure through another structure. other structures.

在手机等电子设备中,为了提升电子设备的外观,往往在电子设备上只留有USB接口(比如,Type-C接口或者Micro-USB接口等)。电子设备序下载均是通过蓝牙OTA(Over theAir Technology,空中下载技术)的方式实现。在售后维修或者研发调试阶段均要拆除整机,通过有线的SWD(Serial Wire-Debug,串行线调试接口)去下载程序调试验证故障。此外,一些电子设备中的蓝牙模组在认证时,都要用到UART(Universal AsynchronousReceiver/Transmitter,通用非同步收发传输器)接口,往往这个时候均是要通过拆机,破坏整机的方式通过连线的方式将UART模块的接线引出。一方面会浪费整机资源,另一方面拆除整机,再进行连接和调试降低了产品开发的效率。In electronic devices such as mobile phones, in order to improve the appearance of the electronic device, only a USB interface (for example, a Type-C interface or a Micro-USB interface, etc.) is often left on the electronic device. The sequence download of the electronic device is realized by the way of Bluetooth OTA (Over the Air Technology, over-the-air technology). In the after-sales maintenance or R&D and debugging stage, the whole machine should be dismantled, and the program should be downloaded to debug and verify the fault through the wired SWD (Serial Wire-Debug, serial wire debugging interface). In addition, the UART (Universal Asynchronous Receiver/Transmitter, Universal Asynchronous Receiver/Transmitter) interface is required for the certification of the Bluetooth modules in some electronic devices. Often this time, it is necessary to disassemble the device and destroy the whole device. The wiring method leads the wiring of the UART module. On the one hand, it will waste the resources of the whole machine, and on the other hand, dismantling the whole machine, and then connecting and debugging reduces the efficiency of product development.

本公开示例性实施例首先提供一种接口电路10,如图1所示,该接口电路10包括:接口110、控制模块120、第一功能模块140、第二功能模块150和切换模块130,控制模块120和接口110连接,控制模块120用于根据接口110所接收的信号输出控制信号;第一功能模块140为通用串行总线(USB,Universal Serial Bus)模块、串行线调试接口模块和通用非同步收发传输模块中的一个;第二功能模块150为通用串行总线模块、串行线调试接口模块和通用非同步收发传输模块中的一个,第一功能模块140和第二功能模块150不同;切换模块130分别连接接口110、控制模块120、第一功能模块140和第二功能模块150,切换模块130响应控制信号而将接口110和第一功能模块140或第二功能模块150导通。Exemplary embodiments of the present disclosure first provide an interface circuit 10, as shown in FIG. 1, the interface circuit 10 includes: an interface 110, a control module 120, a first function module 140, a second function module 150, and a switch module 130, which control the The module 120 is connected to the interface 110, and the control module 120 is used for outputting a control signal according to the signal received by the interface 110; the first functional module 140 is a universal serial bus (USB, Universal Serial Bus) module, a serial wire debugging interface module and a general One of the asynchronous transceiver transmission modules; the second functional module 150 is one of a universal serial bus module, a serial wire debugging interface module and a universal asynchronous transceiver transmission module, and the first functional module 140 and the second functional module 150 are different The switching module 130 is respectively connected to the interface 110, the control module 120, the first functional module 140 and the second functional module 150, and the switching module 130 responds to the control signal to conduct the interface 110 with the first functional module 140 or the second functional module 150.

本公开实施例提供的接口电路10,通过切换模块130将第一功能模块140和第二功能模块150和同一接口110连接,并且控制模块120根据接口110接收的信号控制第一功能模块140或者第二功能模块150和接口110导通,使得一个接口110能够实现多种功能,既能够减少电子设备上的接口110数量,也通过将多个功能集成于接口110,在调试或者维修时直接通过接口110进行调试维修,不需要拆除整机,避免浪费整机,并且也能够提升产品开发的效率及维修效率。In the interface circuit 10 provided by the embodiments of the present disclosure, the first functional module 140 and the second functional module 150 are connected to the same interface 110 through the switching module 130 , and the control module 120 controls the first functional module 140 or the first functional module 120 according to the signal received by the interface 110 . The two-function module 150 is connected to the interface 110, so that one interface 110 can realize multiple functions, which can not only reduce the number of interfaces 110 on the electronic device, but also integrate multiple functions into the interface 110. 110 for debugging and maintenance without dismantling the whole machine, avoiding waste of the whole machine, and also improving the efficiency of product development and maintenance.

进一步的,如图2所示,本公开实施例提供的接口电路10还可以包括第三功能模块160和第四功能模块170,第三功能模块160连接切换模块130,第三功能模块160为通用串行总线模块、串行线调试接口模块、通用非同步收发传输模块和音频模块中的一个;第四功能模块170连接切换模块130,切换模块130响应控制信号而将接口110和第一功能模块140、第二功能模块150、第三功能模块160或第四功能模块170导通,第四功能模块170为通用串行总线模块、串行线调试接口模块、通用非同步收发传输模块和音频模块中的一个,第一功能模块140、第二功能模块150、第三功能模块160和第四功能模块170均不同。Further, as shown in FIG. 2 , the interface circuit 10 provided by the embodiment of the present disclosure may further include a third functional module 160 and a fourth functional module 170 , the third functional module 160 is connected to the switching module 130 , and the third functional module 160 is a general-purpose module One of a serial bus module, a serial line debugging interface module, a general asynchronous transceiver and transmission module and an audio module; the fourth functional module 170 is connected to the switching module 130, and the switching module 130 responds to the control signal to connect the interface 110 to the first functional module 140, the second functional module 150, the third functional module 160 or the fourth functional module 170 is turned on, and the fourth functional module 170 is a universal serial bus module, a serial line debugging interface module, a universal asynchronous transceiver transmission module and an audio module One of the first functional module 140 , the second functional module 150 , the third functional module 160 and the fourth functional module 170 are all different.

通过上述接口电路10,将通用串行总线模块、串行线调试接口模块、通用非同步收发传输模块和音频模块集成在同一接口110,能够在研发调试阶段,将接口110和串行线调试接口模块或通用非同步收发传输模块连接,实现程序的下载及测试,在电子设备作为电子听诊器时,利用接口110连接耳机,避免了需要在电子设备上设置专用的耳机孔,提升电子设备外观的一致性。Through the above interface circuit 10, the universal serial bus module, the serial wire debugging interface module, the general asynchronous transceiver transmission module and the audio module are integrated into the same interface 110, so that the interface 110 and the serial wire debugging interface can be integrated in the R&D and debugging stage. The module or general asynchronous transceiver module is connected to realize the downloading and testing of the program. When the electronic device is used as an electronic stethoscope, the interface 110 is used to connect the earphone, which avoids the need to set a special earphone hole on the electronic device and improves the consistency of the appearance of the electronic device. sex.

进一步的,如图3所示,本公开实施例提供的接口电路10还可以包括电源模块180,电源模块180分别和第一功能模块140、第二功能模块150、第三功能模块160、第四功能模块170、接口110、控制模块120和切换模块130连接,供电模块用于向上述模块供电。Further, as shown in FIG. 3 , the interface circuit 10 provided by the embodiment of the present disclosure may further include a power supply module 180, and the power supply module 180 is respectively connected with the first functional module 140, the second functional module 150, the third functional module 160, the fourth functional module 160, and the fourth functional module 140. The function module 170 , the interface 110 , the control module 120 and the switching module 130 are connected, and the power supply module is used for supplying power to the above modules.

下面将对本公开实施例提供的接口电路10的各部分进行详细说明:Each part of the interface circuit 10 provided by the embodiment of the present disclosure will be described in detail below:

接口110是设置于电子设备上的接口结构,其可以以电子设备通用接口的形式呈现,比如,接口110为Type-C接口、Micro-USB接口、pogo接口或者USB接口等。接口110可以设于电子设备的边框上,比如,接口110可以设于电子设备的底边、顶边或者侧边等。The interface 110 is an interface structure provided on the electronic device, which can be presented in the form of a general interface of the electronic device. For example, the interface 110 is a Type-C interface, a Micro-USB interface, a pogo interface, or a USB interface. The interface 110 may be provided on the frame of the electronic device. For example, the interface 110 may be provided on the bottom edge, the top edge, or the side edge of the electronic device.

第一功能模块140、第二功能模块150、第三功能模块160和第四功能模块170分别为通用串行总线模块、串行线调试接口模块、通用非同步收发传输模块和音频模块中的一个。示例的,第一功能模块140为通用串行总线模块,第二功能模块150为串行线调试接口模块,第三功能模块160为通用非同步收发传输模块,第四功能模块170为音频模块。第一功能模块140、第二功能模块150、第三功能模块160和第四功能模块170可以设于电子设备的主板上。The first functional module 140, the second functional module 150, the third functional module 160 and the fourth functional module 170 are respectively one of a universal serial bus module, a serial line debugging interface module, a universal asynchronous transceiver transmission module and an audio module . For example, the first functional module 140 is a universal serial bus module, the second functional module 150 is a serial wire debugging interface module, the third functional module 160 is a universal asynchronous transceiver module, and the fourth functional module 170 is an audio module. The first functional module 140, the second functional module 150, the third functional module 160 and the fourth functional module 170 may be provided on the main board of the electronic device.

如图4所示,控制模块120根据接口电压Vbus确定控制信号,接口电压Vbus为接口110所接收的信号的电压。As shown in FIG. 4 , the control module 120 determines the control signal according to the interface voltage Vbus, which is the voltage of the signal received by the interface 110 .

当接口电压Vbus大于第一预设电压V1时,控制模块120输出第一控制信号,切换模块130响应第一控制信号而导通第一功能模块140和接口110;当接口电压Vbus小于第一预设电压V1且大于第二预设电压V2时,控制模块120输出第二控制信号,切换模块130响应第二控制信号而导通第二功能模块150和接口110;当接口电压Vbus小于第二预设电压V2值且大于第三预设电压V3时,控制模块120输出第三控制信号,切换模块130响应第三控制信号而导通第三功能模块160和接口110;当接口电压Vbus小于第三预设电压V3值时,控制模块120输出第四控制信号,切换模块130响应第四控制信号而导通第四功能模块170和接口110;第一功能模块140为串行线调试接口模块,第二功能模块150为通用串行总线模块,第三功能模块160为通用非同步收发传输模块,第四功能模块170为音频模块。When the interface voltage Vbus is greater than the first preset voltage V1, the control module 120 outputs a first control signal, and the switching module 130 turns on the first function module 140 and the interface 110 in response to the first control signal; when the interface voltage Vbus is less than the first preset voltage When the voltage V1 is greater than the second preset voltage V2, the control module 120 outputs a second control signal, and the switching module 130 turns on the second function module 150 and the interface 110 in response to the second control signal; when the interface voltage Vbus is less than the second preset voltage Vbus When the value of the voltage V2 is greater than the third preset voltage V3, the control module 120 outputs a third control signal, and the switching module 130 turns on the third function module 160 and the interface 110 in response to the third control signal; when the interface voltage Vbus is less than the third control signal When the value of the voltage V3 is preset, the control module 120 outputs a fourth control signal, and the switching module 130 turns on the fourth function module 170 and the interface 110 in response to the fourth control signal; the first function module 140 is a serial line debugging interface module, and the first function module 140 is a serial line debugging interface module. The second functional module 150 is a universal serial bus module, the third functional module 160 is a universal asynchronous transceiver module, and the fourth functional module 170 is an audio module.

其中,第一预设电压V1大于第二预设电压V2,第二预设电压V2大于第三预设电压V3。第一预设电压V1、第二预设电压V2和第三预设电压V3可以根据各模块输入信号的实际电压确定。比如,在实际应用中USB信号的电压大于SWD信号的电压,SWD信号的电压大于UART信号的电压,UART的信号大于音频信号的电压。第一预设电压V1可以介于SWD信号的电压和USB信号的电压之间,第二预设电压V2可以介于SWD信号的电压和UART信号的电压之间,第三预设电压V3可以介于UART信号的电压和音频信号的电压之间。The first preset voltage V1 is greater than the second preset voltage V2, and the second preset voltage V2 is greater than the third preset voltage V3. The first preset voltage V1, the second preset voltage V2 and the third preset voltage V3 may be determined according to the actual voltages of the input signals of the modules. For example, in practical applications, the voltage of the USB signal is greater than the voltage of the SWD signal, the voltage of the SWD signal is greater than the voltage of the UART signal, and the voltage of the UART signal is greater than the voltage of the audio signal. The first preset voltage V1 may be between the voltage of the SWD signal and the voltage of the USB signal, the second preset voltage V2 may be between the voltage of the SWD signal and the voltage of the UART signal, and the third preset voltage V3 may be between. between the voltage of the UART signal and the voltage of the audio signal.

在一可行的实施方式中,切换模块130可以包括:第一开关S1、第二开关S2、第三开关S3、第四开关S4、第五开关S5和第六开关S6,第一开关S1连接第一功能模块140和控制模块120;第二开关S2连接第二功能模块150和控制模块120;第一开关S1连接第三功能模块160和控制模块120;第二开关S2连接第四功能模块170和控制模块120;第五开关S5连接第一开关S1、第二开关S2、接口110和控制模块120;第六开关S6连接第三开关S3、第四开关S4、接口110和控制模块120;In a feasible implementation manner, the switching module 130 may include: a first switch S1, a second switch S2, a third switch S3, a fourth switch S4, a fifth switch S5 and a sixth switch S6, and the first switch S1 is connected to the first switch S1. A functional module 140 and the control module 120; the second switch S2 is connected to the second functional module 150 and the control module 120; the first switch S1 is connected to the third functional module 160 and the control module 120; the second switch S2 is connected to the fourth functional module 170 and the control module 120; The control module 120; the fifth switch S5 is connected to the first switch S1, the second switch S2, the interface 110 and the control module 120; the sixth switch S6 is connected to the third switch S3, the fourth switch S4, the interface 110 and the control module 120;

其中,第一控制信号控制第五开关S5和第一开关S1导通,以导通第一功能模块140和接口110,第二控制信号控制第五开关S5和第二开关S2导通,以导通第二功能模块150和接口110,第三控制信号控制第六开关S6和第三开关S3导通,以导通第三功能模块160和接口110,第四控制信号控制第六开关S6和第四开关S4导通,以导通第四功能模块170和接口110。The first control signal controls the fifth switch S5 and the first switch S1 to be turned on to turn on the first functional module 140 and the interface 110, and the second control signal controls the fifth switch S5 and the second switch S2 to be turned on to turn on the first functional module 140 and the interface 110. Connect the second functional module 150 and the interface 110, the third control signal controls the sixth switch S6 and the third switch S3 to be turned on, so as to turn on the third functional module 160 and the interface 110, and the fourth control signal controls the sixth switch S6 and the The four switches S4 are turned on to turn on the fourth functional module 170 and the interface 110 .

在本公开实施例中,同一时间最多只有一个功能模块和接口110导通。比如,当第一功能模块140和接口110导通时,第二功能模块150、第三功能模块160和第四功能模块170与接口110断开。In the embodiment of the present disclosure, at most one functional module and the interface 110 are connected at the same time. For example, when the first functional module 140 and the interface 110 are connected, the second functional module 150 , the third functional module 160 and the fourth functional module 170 are disconnected from the interface 110 .

本公开实施例中,第一开关S1、第二开关S2、第三开关S3、第四开关S4、第五开关S5和第六开关S6可以是双刀双掷模拟开关。当然在实际应用中,第一开关S1、第二开关S2、第三开关S3、第四开关S4、第五开关S5和第六开关S6也可以是其他类型的开关,本公开实施例并不以此为限。In the embodiment of the present disclosure, the first switch S1 , the second switch S2 , the third switch S3 , the fourth switch S4 , the fifth switch S5 and the sixth switch S6 may be double-pole double-throw analog switches. Of course, in practical applications, the first switch S1 , the second switch S2 , the third switch S3 , the fourth switch S4 , the fifth switch S5 and the sixth switch S6 may also be other types of switches. This is limited.

控制模块120可以包括:第一比较器C1、第二比较器C2和第三比较器C3,第一比较器C1分别连接接口110、第一开关S1和第二开关S2,用于比较接口电压Vbus和第一预设电压V1,并在接口电压Vbus大于第一预设电压V1时输出第一导通信号A0_1,在接口电压Vbus小于第一预设电压V1时输出第二导通信号A0_2;第二比较器C2分别连接接口110、第五开关S5和第六开关S6,用于比较接口电压Vbus和第二预设电压V2,并在接口电压Vbus大于第二预设电压V2时输出第三导通信号B0_1,在接口电压Vbus小于第二预设电压V2时输出第四导通信号B0_2;第三比较器C3分别连接接口110、第三开关S3和第四开关S4,用于比较接口电压Vbus和第三预设电压V3,并在接口电压Vbus大于第三预设电压V3时输出第五导通信号A1_1,在接口电压Vbus小于第三预设电压V3时输出第六导通信号A1_2The control module 120 may include: a first comparator C1, a second comparator C2 and a third comparator C3, the first comparator C1 is respectively connected to the interface 110, the first switch S1 and the second switch S2 for comparing the interface voltage Vbus and the first preset voltage V1, and output the first conduction signal A0_1 when the interface voltage Vbus is greater than the first preset voltage V1, and output the second conduction signal A0_2 when the interface voltage Vbus is less than the first preset voltage V1; The two comparators C2 are respectively connected to the interface 110, the fifth switch S5 and the sixth switch S6, and are used to compare the interface voltage Vbus with the second preset voltage V2, and output the third lead when the interface voltage Vbus is greater than the second preset voltage V2. The turn-on signal B0_1 is used to output the fourth turn-on signal B0_2 when the interface voltage Vbus is less than the second preset voltage V2; the third comparator C3 is respectively connected to the interface 110, the third switch S3 and the fourth switch S4 for comparing the interface voltage Vbus and the third preset voltage V3, and outputs the fifth turn-on signal A1_1 when the interface voltage Vbus is greater than the third preset voltage V3, and outputs the sixth turn-on signal A1_2 when the interface voltage Vbus is less than the third preset voltage V3

其中,第三导通信号B0_1和第一导通信号A0_1形成第一控制信号,第三导通信号B0_1第五开关S5,第一导通信号A0_1导通第一开关S1;第三导通信号B0_1和第二导通信号A0_2形成第二控制信号,第三导通信号B0_1第五开关S5,第二导通信号A0_2导通第二开关S2;第四导通信号B0_2和第五导通信号A1_1形成第三控制信号,第四导通信号B0_2第六开关S6,第五导通信号A1_1导通第三开关S3;第四导通信号B0_2和第六导通信号A1_2形成第四控制信号,第四导通信号B0_2第六开关S6,第六导通信号A1_2导通第四开关S4。The third turn-on signal B0_1 and the first turn-on signal A0_1 form the first control signal, the third turn-on signal B0_1 turns on the fifth switch S5, the first turn-on signal A0_1 turns on the first switch S1; the third turn-on signal B0_1 and the second turn-on signal A0_2 form a second control signal, the third turn-on signal B0_1 turns on the fifth switch S5, the second turn-on signal A0_2 turns on the second switch S2; the fourth turn-on signal B0_2 and the fifth turn-on signal A1_1 forms the third control signal, the fourth turn-on signal B0_2 turns on the sixth switch S6, the fifth turn-on signal A1_1 turns on the third switch S3; the fourth turn-on signal B0_2 and the sixth turn-on signal A1_2 form the fourth control signal, The fourth turn-on signal B0_2 turns on the sixth switch S6, and the sixth turn-on signal A1_2 turns on the fourth switch S4.

示例的,第一导通信号A0_1为高电平信号,第二导通信号A0_2为低电平信号,第三导通信号B0_1为高电平信号,第四导通信号B0_2为低电平信号,第五导通信号A1_1为高电平信号,第六导通信号A1_2为低电平信号。第一开关S1、第三开关S3和第五开关S5响应高电平信号而导通,第二开关S2、第四开关S4和第六开关S6响应低电平信号而导通。For example, the first turn-on signal A0_1 is a high-level signal, the second turn-on signal A0_2 is a low-level signal, the third turn-on signal B0_1 is a high-level signal, and the fourth turn-on signal B0_2 is a low-level signal , the fifth turn-on signal A1_1 is a high-level signal, and the sixth turn-on signal A1_2 is a low-level signal. The first switch S1 , the third switch S3 and the fifth switch S5 are turned on in response to the high level signal, and the second switch S2 , the fourth switch S4 and the sixth switch S6 are turned on in response to the low level signal.

参见图5所示的流程图,本公开实施例中各开关的导通和关断状态可以如下:Referring to the flowchart shown in FIG. 5 , the on and off states of each switch in the embodiment of the present disclosure may be as follows:

在第一时刻,当接口电压Vbus大于第一预设电压V1时,第五开关S5、第一开关S1导通,其余开关关断,第一功能模块140和接口110导通。At the first moment, when the interface voltage Vbus is greater than the first preset voltage V1, the fifth switch S5 and the first switch S1 are turned on, the other switches are turned off, and the first functional module 140 and the interface 110 are turned on.

在第二时刻,当接口电压Vbus大于第二预设电压V2且小于第一预设电压V1时,第五开关S5和第二开关S2导通,其余开关关断,第二功能模块150和接口110导通。At the second moment, when the interface voltage Vbus is greater than the second preset voltage V2 and less than the first preset voltage V1, the fifth switch S5 and the second switch S2 are turned on, the other switches are turned off, and the second functional module 150 and the interface 110 is turned on.

在第三时刻,当接口电压Vbus大于第三预设电压V3且小于第二预设电压V2时,第六开关S6和第三开关S3导通,其余开关关断,第三功能模块160和接口110导通。At the third moment, when the interface voltage Vbus is greater than the third preset voltage V3 and less than the second preset voltage V2, the sixth switch S6 and the third switch S3 are turned on, the other switches are turned off, and the third functional module 160 and the interface 110 is turned on.

在第四时刻,当接口电压Vbus小于第三预设电压V3时,第六开关S6和第四开关S4导通,其余开关关断,第四功能模块170和接口110导通。At the fourth moment, when the interface voltage Vbus is lower than the third preset voltage V3, the sixth switch S6 and the fourth switch S4 are turned on, the other switches are turned off, and the fourth functional module 170 and the interface 110 are turned on.

需要说明的是,第一时刻、第二时刻、第三时刻和第四时刻是指不同的时刻,并不代表其具有先后顺序或者在时间上具有连续性等。It should be noted that the first moment, the second moment, the third moment and the fourth moment refer to different moments, and do not mean that they have a sequence or continuity in time.

在本公开另一可行的实施方式中,切换电路也可以包括第一开关、第二开关、第三开关和第四开关,第一开关分别连接第一功能模块140和接口110,第二开关分别连接第二功能模块150和接口110,第三开关分别连接第三功能模块160和接口110,第四开关分别连接第四功能模块170和接口110。In another feasible implementation manner of the present disclosure, the switching circuit may also include a first switch, a second switch, a third switch, and a fourth switch. The first switch is connected to the first functional module 140 and the interface 110 respectively, and the second switch is respectively connected to The second function module 150 and the interface 110 are connected, the third switch is connected to the third function module 160 and the interface 110 respectively, and the fourth switch is connected to the fourth function module 170 and the interface 110 respectively.

控制模块120和第一开关、第二开关、第三开关及第四开关连接,控制模块120根据接口110信号的电压确定导通第一开关、第二开关、第三开关及第四开关中的一个。The control module 120 is connected to the first switch, the second switch, the third switch and the fourth switch, and the control module 120 determines to turn on the first switch, the second switch, the third switch and the fourth switch according to the voltage of the signal of the interface 110 One.

控制模块120可以包括电压检测单元和处理单元,电压检测单元用于检测接口110处输入信号的电压,处理单元和电压检测单元连接,处理单元用于根据接口110输入信号的电压输出控制信号。第一开关、第二开关、第三开关及第四开关和处理单元连接,处理单元将控制信号传输至第一开关、第二开关、第三开关及第四开关。The control module 120 may include a voltage detection unit and a processing unit, the voltage detection unit is used for detecting the voltage of the input signal at the interface 110 , the processing unit is connected with the voltage detection unit, and the processing unit is used for outputting the control signal according to the voltage of the input signal at the interface 110 . The first switch, the second switch, the third switch and the fourth switch are connected to the processing unit, and the processing unit transmits the control signal to the first switch, the second switch, the third switch and the fourth switch.

其中,电压检测单元可以是电压传感器或者电压检测电路等,处理单元可以是处理器或者微处理器等。处理单元可以和电子设备内的处理器或者微处理器共用,或者处理单元可以是专用的微处理器等,本公开实施例对此不做具体限定。The voltage detection unit may be a voltage sensor or a voltage detection circuit, and the processing unit may be a processor or a microprocessor. The processing unit may be shared with a processor or a microprocessor in the electronic device, or the processing unit may be a dedicated microprocessor, etc., which is not specifically limited in this embodiment of the present disclosure.

电源模块180分别连接第一功能模块140、第二功能模块150、第三功能模块160、第四功能模块170、控制模块120和切换模块130,供电模块用于向第一功能模块140、第二功能模块150、第三功能模块160、第四功能模块170、控制模块120和切换模块130供电。The power supply module 180 is respectively connected to the first functional module 140, the second functional module 150, the third functional module 160, the fourth functional module 170, the control module 120 and the switching module 130. The functional module 150 , the third functional module 160 , the fourth functional module 170 , the control module 120 and the switching module 130 are powered.

进一步的,电源模块180还连接接口110,电源模块180响应接口110所接收的信号而向第一功能模块140、第二功能模块150、第三功能模块160、第四功能模块170、控制模块120和切换模块130供电。也即是,接口110所接收的信号可以作为供电模块的触发信号,当接口110接收到信号时供电模块向各模块供电。Further, the power supply module 180 is also connected to the interface 110 , and the power supply module 180 responds to the signal received by the interface 110 and sends signals to the first functional module 140 , the second functional module 150 , the third functional module 160 , the fourth functional module 170 , and the control module 120 . and the switching module 130 is powered. That is, the signal received by the interface 110 can be used as a trigger signal for the power supply module, and the power supply module supplies power to each module when the interface 110 receives the signal.

电源模块180可以是电子设备中的电源管理芯片,电源模块180连接电池及各功能模块。电源模块180向各功能模块供电也可以是有选择的供电,此时电源模块180可以和控制模块120连接,电源模块180根据控制模块120输出的控制信号向对应的功能模块供电。The power module 180 may be a power management chip in an electronic device, and the power module 180 is connected to the battery and each functional module. The power supply module 180 can supply power to each functional module selectively. At this time, the power supply module 180 can be connected to the control module 120 , and the power supply module 180 supplies power to the corresponding functional module according to the control signal output by the control module 120 .

示例的,当控制模块120输出第一控制信号时,控制模块120控制电源模块180向第一功能模块140供电。当控制模块120输出第二控制信号时,控制模块120控制电源模块180向第二功能模块150供电。当控制模块120输出第三控制信号时,控制模块120控制电源模块180向第三功能模块160供电。当控制模块120输出第四控制信号时,控制模块120控制电源模块180向第四功能模块170供电。For example, when the control module 120 outputs the first control signal, the control module 120 controls the power supply module 180 to supply power to the first functional module 140 . When the control module 120 outputs the second control signal, the control module 120 controls the power supply module 180 to supply power to the second functional module 150 . When the control module 120 outputs the third control signal, the control module 120 controls the power supply module 180 to supply power to the third functional module 160 . When the control module 120 outputs the fourth control signal, the control module 120 controls the power supply module 180 to supply power to the fourth functional module 170 .

也即是,当接口电压Vbus大于第一预设电压V1时,供电模块向用串行总线模块供电;当接口电压Vbus大于第二预设电压V2且小于等于第一预设电压V1时,供电模块向行线调试接口模块供电;当接口电压Vbus大于第三预设电压V3且小于等于第二预设电压V2时,供电模块向通用非同步收发传输模块供电;当接口电压Vbus小于等于第三预设电压V3时,供电模块向音频模块供电。That is, when the interface voltage Vbus is greater than the first preset voltage V1, the power supply module supplies power to the serial bus module; when the interface voltage Vbus is greater than the second preset voltage V2 and less than or equal to the first preset voltage V1, power supply. The module supplies power to the line debugging interface module; when the interface voltage Vbus is greater than the third preset voltage V3 and less than or equal to the second preset voltage V2, the power supply module supplies power to the general asynchronous transceiver module; when the interface voltage Vbus is less than or equal to the third When the preset voltage is V3, the power supply module supplies power to the audio module.

当然在实际应用中,电源模块180也可以同时向第一功能模块140、第二功能模块150、第三功能模块160和第四功能模块170供电,本公开实施例并不以此为限。Of course, in practical applications, the power supply module 180 can also supply power to the first functional module 140 , the second functional module 150 , the third functional module 160 and the fourth functional module 170 at the same time, which is not limited in this embodiment of the present disclosure.

当接口110有信号输入时,接口110输入的信号可也用作向电子设备的电池充电。接口110输入的信号通过电源模块180后流向电池为电池充电。其中,可以在接口110接收的信号的电压大于预设阈值时,电源模块180向电池充电。比如,当接口电压Vbus大于第一预设电压V1时,电源模块180向电池充电。When the interface 110 has a signal input, the signal input by the interface 110 can also be used to charge the battery of the electronic device. The signal input from the interface 110 passes through the power module 180 and flows to the battery to charge the battery. Wherein, when the voltage of the signal received by the interface 110 is greater than the preset threshold, the power module 180 can charge the battery. For example, when the interface voltage Vbus is greater than the first preset voltage V1, the power module 180 charges the battery.

在本公开实施例中音频模块可以被用作电子听诊器的信号输出件。比如,通过电子设备内部的录音机作为电子听诊器的听诊头,采集患者的生物声音,并通过音频模块将录音机采集到的声音信号转换为电信号。在电子设备作为电子听诊器使用时,音频模块将录音机采集的信号转换为电信号传输至接口110,接口110可以连接耳机,通过耳机将电信号转换为声音信号,传输给医生。通过和其他功能模块共用接口110,实现了具有电子听诊器功能的电子设备中接口110的缩减,有利于电子设备外观的一致性和美观性。In the embodiment of the present disclosure, the audio module can be used as a signal output member of an electronic stethoscope. For example, the sound recorder inside the electronic device is used as the auscultation head of the electronic stethoscope to collect the patient's biological sound, and the sound signal collected by the recorder is converted into an electrical signal through the audio module. When the electronic device is used as an electronic stethoscope, the audio module converts the signals collected by the recorder into electrical signals and transmits them to the interface 110. The interface 110 can be connected to an earphone, and the electrical signals are converted into sound signals through the earphones and transmitted to the doctor. By sharing the interface 110 with other functional modules, the reduction of the interface 110 in the electronic device with the function of the electronic stethoscope is realized, which is beneficial to the consistency and aesthetics of the appearance of the electronic device.

本公开实施例提供的接口电路10,通过切换模块130将第一功能模块140和第二功能模块150和同一接口110连接,并且控制模块120根据接口110接收的信号控制第一功能模块140或者第二功能模块150和接口110导通,使得一个接口110能够实现多种功能,既能够减少电子设备上的接口110数量,也通过将多个功能集成于接口110,在调试使直接通过接口110进行调试,不需要拆除整机,避免浪费整机,并且也能够提升产品开发的效率。In the interface circuit 10 provided by the embodiments of the present disclosure, the first functional module 140 and the second functional module 150 are connected to the same interface 110 through the switching module 130 , and the control module 120 controls the first functional module 140 or the first functional module 120 according to the signal received by the interface 110 . The two-function module 150 is connected to the interface 110, so that one interface 110 can realize multiple functions, which can not only reduce the number of interfaces 110 on the electronic device, but also integrate multiple functions into the interface 110. For debugging, it is not necessary to dismantle the whole machine, to avoid wasting the whole machine, and it can also improve the efficiency of product development.

本公开示例性实施例还提供一种电子设备,电子设备包括上述的接口电路10。Exemplary embodiments of the present disclosure also provide an electronic device including the above-mentioned interface circuit 10 .

其中,接口电路10包括:接口110、控制模块120、第一功能模块140、第二功能模块150和切换模块130,控制模块120和接口110连接,控制模块120用于根据接口110所接收的信号输出控制信号;第一功能模块140为通用串行总线(USB,Universal Serial Bus)模块、串行线调试接口模块、通用非同步收发传输模块和音频模块中的一个;第二功能模块150为通用串行总线模块、串行线调试接口模块、通用非同步收发传输模块和音频模块中的一个,第一功能模块140和第二功能模块150不同;切换模块130分别连接接口110、控制模块120、第一功能模块140和第二功能模块150,切换模块130响应控制信号而将接口110和第一功能模块140或第二功能模块150导通。The interface circuit 10 includes: an interface 110 , a control module 120 , a first functional module 140 , a second functional module 150 and a switching module 130 , the control module 120 is connected to the interface 110 , and the control module 120 is used for signals received by the interface 110 output control signal; the first functional module 140 is one of a universal serial bus (USB, Universal Serial Bus) module, a serial wire debugging interface module, a general asynchronous transceiver transmission module and an audio module; the second functional module 150 is a general One of a serial bus module, a serial line debugging interface module, a general asynchronous transceiver and transmission module and an audio module, the first functional module 140 and the second functional module 150 are different; the switching module 130 is respectively connected to the interface 110, the control module 120, The first functional module 140 and the second functional module 150, and the switching module 130 turns on the interface 110 and the first functional module 140 or the second functional module 150 in response to the control signal.

本公开实施例提供的电子设备,通过切换模块130将第一功能模块140和第二功能模块150和同一接口110连接,并且控制模块120根据接口110接收的信号控制第一功能模块140或者第二功能模块150和接口110导通,使得一个接口110能够实现多种功能,既能够减少电子设备上的接口110数量,也通过将多个功能集成于接口110,在调试使直接通过接口110进行调试,不需要拆除整机,避免浪费整机,并且也能够提升产品开发的效率。In the electronic device provided by the embodiments of the present disclosure, the first functional module 140 and the second functional module 150 are connected to the same interface 110 through the switching module 130 , and the control module 120 controls the first functional module 140 or the second functional module 120 according to the signal received by the interface 110 . The function module 150 is connected to the interface 110, so that one interface 110 can realize multiple functions, which can not only reduce the number of interfaces 110 on the electronic device, but also integrate multiple functions into the interface 110, so that debugging can be performed directly through the interface 110. , do not need to dismantle the whole machine, avoid wasting the whole machine, and can also improve the efficiency of product development.

进一步的,如图6所示,本公开实施例提供的电子设备还可以包括显示屏20、边框30、后盖40、主板50和电池60,显示屏20和后盖40分别设于边框30的两侧,并且显示屏20、边框30和后盖40形成一容置空间,主板50和电池60设于该容置空间内。Further, as shown in FIG. 6 , the electronic device provided by the embodiment of the present disclosure may further include a display screen 20 , a frame 30 , a back cover 40 , a main board 50 and a battery 60 , and the display screen 20 and the back cover 40 are respectively disposed on the sides of the frame 30 . On both sides, the display screen 20 , the frame 30 and the back cover 40 form an accommodating space, and the main board 50 and the battery 60 are arranged in the accommodating space.

接口110可以设于边框30,比如,边框30可以是矩形框或者近似矩形框的结构。边框30可以包括顶边、底边和位于顶边和底边之间的侧边,接口110可以设于顶边、底边或者侧边。The interface 110 may be provided on the frame 30, for example, the frame 30 may be a rectangular frame or a structure similar to a rectangular frame. The frame 30 may include a top edge, a bottom edge and a side edge between the top edge and the bottom edge, and the interface 110 may be provided on the top edge, the bottom edge or the side edge.

第一功能模块140、第二功能模块150、第三功能模块160、第四功能模块170、控制模块120和切换模块130可以设于主板50。也即是通用串行总线模块、串行线调试接口模块、通用非同步收发传输模块和音频模块可以设于主板50。The first functional module 140 , the second functional module 150 , the third functional module 160 , the fourth functional module 170 , the control module 120 and the switching module 130 may be provided on the mainboard 50 . That is, the universal serial bus module, the serial line debugging interface module, the universal asynchronous transceiver and transmission module and the audio module can be arranged on the main board 50 .

供电模块180和电池60连接,一方面供电模块180可以将电池60的电源提供给各功能模块,另一方面供电模块180也可以用于向电池60充电。比如,当接口110接收的信号的电压大于预设阈值时,供电模块180向电池60充电。The power supply module 180 is connected to the battery 60 . On the one hand, the power supply module 180 can provide power of the battery 60 to each functional module, and on the other hand, the power supply module 180 can also be used to charge the battery 60 . For example, when the voltage of the signal received by the interface 110 is greater than the preset threshold, the power supply module 180 charges the battery 60 .

本公开实施例中电子设备可以是手机、平板电脑、手表、手环、智能眼镜、智能头盔、电子阅读器、电子听诊器或者笔记本电脑等。In the embodiment of the present disclosure, the electronic device may be a mobile phone, a tablet computer, a watch, a wristband, a smart glasses, a smart helmet, an electronic reader, an electronic stethoscope, or a laptop computer.

本公开实施例提供的电子设备,通过切换模块130将第一功能模块140和第二功能模块150和同一接口110连接,并且控制模块120根据接口110接收的信号控制第一功能模块140或者第二功能模块150和接口110导通,使得一个接口110能够实现多种功能,既能够减少电子设备上的接口110数量,提升电子设备的外观,也通过将多个功能集成于接口110,在调试使直接通过接口110进行调试,不需要拆除整机,避免浪费整机,并且也能够提升产品开发的效率。In the electronic device provided by the embodiments of the present disclosure, the first functional module 140 and the second functional module 150 are connected to the same interface 110 through the switching module 130 , and the control module 120 controls the first functional module 140 or the second functional module 120 according to the signal received by the interface 110 . The function module 150 is connected to the interface 110, so that one interface 110 can realize multiple functions, which can not only reduce the number of interfaces 110 on the electronic device, improve the appearance of the electronic device, but also integrate multiple functions into the interface 110. Debugging directly through the interface 110 does not require dismantling the whole machine, avoids wasting the whole machine, and can also improve the efficiency of product development.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由所附的权利要求指出。Other embodiments of the present disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or techniques in the technical field not disclosed by the present disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the appended claims.

Claims (10)

1. An interface circuit, wherein the interface circuit comprises:
an interface;
the control module is connected with the interface and used for outputting a control signal according to the signal received by the interface;
the first function module is one of a universal serial bus module, a serial line debugging interface module and a universal asynchronous transceiving transmission module;
the second functional module is one of the universal serial bus module, the serial line debugging interface module and the universal asynchronous transceiving transmission module, and the first functional module is different from the second functional module;
the switching module is respectively connected with the interface, the control module, the first functional module and the second functional module, and responds to the control signal to conduct the interface and the first functional module or the second functional module.
2. The interface circuit of claim 1, wherein the interface circuit further comprises:
the third functional module is connected with the switching module and is one of the universal serial bus module, the serial line debugging interface module, the universal asynchronous receiving and transmitting module and the audio module;
a fourth functional module, the fourth functional module is connected to the switching module, the switching module responds to the control signal to switch on the interface with the first functional module, the second functional module, the third functional module or the fourth functional module, the fourth functional module is one of the universal serial bus module, the serial line debugging interface module, the universal asynchronous transceiving transmission module and the audio module, and the first functional module, the second functional module, the third functional module and the fourth functional module are all different.
3. The interface circuit of claim 2, wherein the control module determines the control signal based on an interface voltage, the interface voltage being a voltage of a signal received by the interface.
4. The interface circuit according to claim 3, wherein when the interface voltage is greater than a first predetermined voltage value, the control module outputs a first control signal, and the switching module switches on the first functional module and the interface in response to the first control signal;
when the interface voltage is less than or equal to the first preset voltage and greater than a second preset voltage, the control module outputs a second control signal, and the switching module responds to the second control signal to conduct the second functional module and the interface;
when the interface voltage is less than or equal to the second preset voltage value and greater than a third preset voltage value, the control module outputs a third control signal, and the switching module responds to the third control signal to conduct the third functional module and the interface;
when the interface voltage is less than or equal to the third preset voltage value, the control module outputs a fourth control signal, and the switching module responds to the fourth control signal to conduct the fourth functional module and the interface;
the first preset voltage is greater than the second preset voltage, the second preset voltage is greater than the third preset voltage, the first functional module is a universal serial bus module, the second functional module is a serial line debugging interface module, the third functional module is a universal asynchronous receiving and transmitting module, and the fourth functional module is an audio module.
5. The interface circuit of claim 4, wherein the switching module comprises:
a first switch connecting the first functional module and the control module;
a second switch connecting the second functional module and the control module;
a third switch connecting the third functional module and the control module;
a fourth switch connecting the fourth functional module and the control module;
a fifth switch connected to the first switch, the second switch, the interface, and the control module;
a sixth switch that connects the third switch, the fourth switch, the interface, and the control module;
wherein the first control signal controls the fifth switch and the first switch to turn on the first functional module and the interface, the second control signal controls the fifth switch and the second switch to turn on the second functional module and the interface, the third control signal controls the sixth switch and the third switch to turn on the third functional module and the interface, and the fourth control signal controls the sixth switch and the fourth switch to turn on the fourth functional module and the interface.
6. The interface circuit of claim 5, wherein the control module comprises:
the first comparator is respectively connected with the interface, the first switch and the second switch and is used for comparing the interface voltage with the first preset voltage, outputting a first conduction signal when the interface voltage is greater than the first preset voltage and outputting a second conduction signal when the interface voltage is less than the first preset voltage;
the second comparator is respectively connected with the interface, the fifth switch and the sixth switch, and is used for comparing the interface voltage with the second preset voltage, outputting a third conducting signal when the interface voltage is greater than the second preset voltage, and outputting a fourth conducting signal when the interface voltage is less than the second preset voltage;
the third comparator is respectively connected with the interface, the third switch and the fourth switch, and is used for comparing the interface voltage with the third preset voltage, outputting a fifth conduction signal when the interface voltage is greater than the third preset voltage, and outputting a sixth conduction signal when the interface voltage is less than the third preset voltage;
wherein the third turn-on signal and the first turn-on signal form the first control signal, the third turn-on signal turns on the fifth switch, and the first turn-on signal turns on the first switch; the third conducting signal and the second conducting signal form the second control signal, the fifth switch is conducted by the third conducting signal, and the second switch is conducted by the second conducting signal; the fourth turn-on signal and the fifth turn-on signal form the third control signal, the fourth turn-on signal turns on the sixth switch, and the fifth turn-on signal turns on the third switch; the fourth conducting signal and the sixth conducting signal form the fourth control signal, the fourth conducting signal conducts the sixth switch, and the sixth conducting signal conducts the fourth switch.
7. The interface circuit of claim 1, wherein the interface circuit further comprises:
the power module is respectively connected with the first functional module, the second functional module, the control module and the interface, and responds to the signal received by the interface to supply power to the first functional module, the second functional module and the control module.
8. The interface circuit of claim 7, wherein the power module is further configured to transmit signals received by the interface to a battery in an electronic device to charge the battery.
9. An interface circuit as claimed in any one of claims 1 to 8, wherein the interface is a universal USB interface.
10. An electronic device, characterized in that the electronic device comprises an interface circuit as claimed in any one of claims 1-9.
CN202220794871.5U 2022-04-06 2022-04-06 Interface circuit and electronic device Expired - Fee Related CN217606353U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202220794871.5U CN217606353U (en) 2022-04-06 2022-04-06 Interface circuit and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202220794871.5U CN217606353U (en) 2022-04-06 2022-04-06 Interface circuit and electronic device

Publications (1)

Publication Number Publication Date
CN217606353U true CN217606353U (en) 2022-10-18

Family

ID=83566024

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202220794871.5U Expired - Fee Related CN217606353U (en) 2022-04-06 2022-04-06 Interface circuit and electronic device

Country Status (1)

Country Link
CN (1) CN217606353U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2025020706A1 (en) * 2023-07-21 2025-01-30 杭州灵伴科技有限公司 Terminal assembly for split-type smart glasses, and data cable

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2025020706A1 (en) * 2023-07-21 2025-01-30 杭州灵伴科技有限公司 Terminal assembly for split-type smart glasses, and data cable

Similar Documents

Publication Publication Date Title
CN111239617B (en) Control method and device for charge and discharge test, storage medium and system
US20250165427A1 (en) Pcie network card and interface mode switching method therefor, electronic device, and storage medium
CN111681621B (en) Communication method and driving structure of time schedule controller and power management chip
US20200242064A1 (en) Display driver board with multiple type-c full-function interfaces
US8976111B2 (en) Electronic device and method for operating electronic device
CN106445858B (en) Information processing method, information processing module and electronic equipment
JP7558288B2 (en) Electronics
US8970175B2 (en) Charging circuit employing a southbridge microchip to control charging when the electronic apparatus is shut down
CN116643631A (en) A server cooling method, device, electronic equipment and storage medium
CN217606353U (en) Interface circuit and electronic device
US20110007224A1 (en) Projector
CN106844277B (en) Server and information transmission method thereof
US20120089763A1 (en) Computer and usb interface module thereof
CN206804823U (en) One kind is based on TCL scripts to multichannel FPGA test board host computers
CN111782455B (en) Portable device for testing screen end product
CN106771970A (en) A kind of electronic equipment and its test system
CN203643893U (en) Terminal equipment
CN102122198A (en) Industrial control main board, expansion board of industrial control main board and industrial computer
US20150084851A1 (en) Electronic device having plurality of human-machine operation modules
CN104122820A (en) Sensor interface chip and sensor signal detection system
CN111611182B (en) Electronic equipment capable of being detected by detection device and detection system
CN204360371U (en) A kind of USBKey
KR20120106480A (en) Mobile terminal for connection with external device, and processing method thereof
CN120047134B (en) Wearable portable maintenance equipment and online test diagnosis maintenance method
CN219246074U (en) An embedded motherboard

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20221018