CN217606353U - Interface circuit and electronic device - Google Patents
Interface circuit and electronic device Download PDFInfo
- 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
Links
Images
Landscapes
- Power Sources (AREA)
Abstract
Description
技术领域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
本公开实施例提供的接口电路10,通过切换模块130将第一功能模块140和第二功能模块150和同一接口110连接,并且控制模块120根据接口110接收的信号控制第一功能模块140或者第二功能模块150和接口110导通,使得一个接口110能够实现多种功能,既能够减少电子设备上的接口110数量,也通过将多个功能集成于接口110,在调试或者维修时直接通过接口110进行调试维修,不需要拆除整机,避免浪费整机,并且也能够提升产品开发的效率及维修效率。In the
进一步的,如图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
通过上述接口电路10,将通用串行总线模块、串行线调试接口模块、通用非同步收发传输模块和音频模块集成在同一接口110,能够在研发调试阶段,将接口110和串行线调试接口模块或通用非同步收发传输模块连接,实现程序的下载及测试,在电子设备作为电子听诊器时,利用接口110连接耳机,避免了需要在电子设备上设置专用的耳机孔,提升电子设备外观的一致性。Through the
进一步的,如图3所示,本公开实施例提供的接口电路10还可以包括电源模块180,电源模块180分别和第一功能模块140、第二功能模块150、第三功能模块160、第四功能模块170、接口110、控制模块120和切换模块130连接,供电模块用于向上述模块供电。Further, as shown in FIG. 3 , the
下面将对本公开实施例提供的接口电路10的各部分进行详细说明:Each part of the
接口110是设置于电子设备上的接口结构,其可以以电子设备通用接口的形式呈现,比如,接口110为Type-C接口、Micro-USB接口、pogo接口或者USB接口等。接口110可以设于电子设备的边框上,比如,接口110可以设于电子设备的底边、顶边或者侧边等。The
第一功能模块140、第二功能模块150、第三功能模块160和第四功能模块170分别为通用串行总线模块、串行线调试接口模块、通用非同步收发传输模块和音频模块中的一个。示例的,第一功能模块140为通用串行总线模块,第二功能模块150为串行线调试接口模块,第三功能模块160为通用非同步收发传输模块,第四功能模块170为音频模块。第一功能模块140、第二功能模块150、第三功能模块160和第四功能模块170可以设于电子设备的主板上。The first
如图4所示,控制模块120根据接口电压Vbus确定控制信号,接口电压Vbus为接口110所接收的信号的电压。As shown in FIG. 4 , the
当接口电压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
其中,第一预设电压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
其中,第一控制信号控制第五开关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
在本公开实施例中,同一时间最多只有一个功能模块和接口110导通。比如,当第一功能模块140和接口110导通时,第二功能模块150、第三功能模块160和第四功能模块170与接口110断开。In the embodiment of the present disclosure, at most one functional module and the
本公开实施例中,第一开关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
其中,第三导通信号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
在第二时刻,当接口电压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
在第三时刻,当接口电压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
在第四时刻,当接口电压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
需要说明的是,第一时刻、第二时刻、第三时刻和第四时刻是指不同的时刻,并不代表其具有先后顺序或者在时间上具有连续性等。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
控制模块120和第一开关、第二开关、第三开关及第四开关连接,控制模块120根据接口110信号的电压确定导通第一开关、第二开关、第三开关及第四开关中的一个。The
控制模块120可以包括电压检测单元和处理单元,电压检测单元用于检测接口110处输入信号的电压,处理单元和电压检测单元连接,处理单元用于根据接口110输入信号的电压输出控制信号。第一开关、第二开关、第三开关及第四开关和处理单元连接,处理单元将控制信号传输至第一开关、第二开关、第三开关及第四开关。The
其中,电压检测单元可以是电压传感器或者电压检测电路等,处理单元可以是处理器或者微处理器等。处理单元可以和电子设备内的处理器或者微处理器共用,或者处理单元可以是专用的微处理器等,本公开实施例对此不做具体限定。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
进一步的,电源模块180还连接接口110,电源模块180响应接口110所接收的信号而向第一功能模块140、第二功能模块150、第三功能模块160、第四功能模块170、控制模块120和切换模块130供电。也即是,接口110所接收的信号可以作为供电模块的触发信号,当接口110接收到信号时供电模块向各模块供电。Further, the
电源模块180可以是电子设备中的电源管理芯片,电源模块180连接电池及各功能模块。电源模块180向各功能模块供电也可以是有选择的供电,此时电源模块180可以和控制模块120连接,电源模块180根据控制模块120输出的控制信号向对应的功能模块供电。The
示例的,当控制模块120输出第一控制信号时,控制模块120控制电源模块180向第一功能模块140供电。当控制模块120输出第二控制信号时,控制模块120控制电源模块180向第二功能模块150供电。当控制模块120输出第三控制信号时,控制模块120控制电源模块180向第三功能模块160供电。当控制模块120输出第四控制信号时,控制模块120控制电源模块180向第四功能模块170供电。For example, when the
也即是,当接口电压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
当接口110有信号输入时,接口110输入的信号可也用作向电子设备的电池充电。接口110输入的信号通过电源模块180后流向电池为电池充电。其中,可以在接口110接收的信号的电压大于预设阈值时,电源模块180向电池充电。比如,当接口电压Vbus大于第一预设电压V1时,电源模块180向电池充电。When the
在本公开实施例中音频模块可以被用作电子听诊器的信号输出件。比如,通过电子设备内部的录音机作为电子听诊器的听诊头,采集患者的生物声音,并通过音频模块将录音机采集到的声音信号转换为电信号。在电子设备作为电子听诊器使用时,音频模块将录音机采集的信号转换为电信号传输至接口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
本公开实施例提供的接口电路10,通过切换模块130将第一功能模块140和第二功能模块150和同一接口110连接,并且控制模块120根据接口110接收的信号控制第一功能模块140或者第二功能模块150和接口110导通,使得一个接口110能够实现多种功能,既能够减少电子设备上的接口110数量,也通过将多个功能集成于接口110,在调试使直接通过接口110进行调试,不需要拆除整机,避免浪费整机,并且也能够提升产品开发的效率。In the
本公开示例性实施例还提供一种电子设备,电子设备包括上述的接口电路10。Exemplary embodiments of the present disclosure also provide an electronic device including the above-mentioned
其中,接口电路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
本公开实施例提供的电子设备,通过切换模块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
进一步的,如图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
接口110可以设于边框30,比如,边框30可以是矩形框或者近似矩形框的结构。边框30可以包括顶边、底边和位于顶边和底边之间的侧边,接口110可以设于顶边、底边或者侧边。The
第一功能模块140、第二功能模块150、第三功能模块160、第四功能模块170、控制模块120和切换模块130可以设于主板50。也即是通用串行总线模块、串行线调试接口模块、通用非同步收发传输模块和音频模块可以设于主板50。The first
供电模块180和电池60连接,一方面供电模块180可以将电池60的电源提供给各功能模块,另一方面供电模块180也可以用于向电池60充电。比如,当接口110接收的信号的电压大于预设阈值时,供电模块180向电池60充电。The
本公开实施例中电子设备可以是手机、平板电脑、手表、手环、智能眼镜、智能头盔、电子阅读器、电子听诊器或者笔记本电脑等。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
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由所附的权利要求指出。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)
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)
| 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 |
-
2022
- 2022-04-06 CN CN202220794871.5U patent/CN217606353U/en not_active Expired - Fee Related
Cited By (1)
| 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 |