The utility model discloses an interface circuit and a terminal of a plug and play OTG device. The interface circuit includes an ID signal pin, and the ID signal pin has a first branch and a second branch. The ID signal pin is electrically connected to the main control unit through the first branch and to the voltage source through the first electronic component in the second branch. Thus, when the interface circuit is connected to the external device, if the level state of the ID signal pin is detected to be high, the OTG device is determined to be the slave device of the external device. With this structure, under the action of the first electronic component and voltage source in the second branch, the level state of the ID signal pin can keep relatively stable high level state, which can effectively avoid the interference of the level state of the ID signal pin caused by the fast data transmission speed and other reasons, thereby improving the anti-interference strength of the ID signal pin.
【技术实现步骤摘要】
一种即插即用OTG设备的接口电路及终端
本技术涉及电路
,尤其涉及一种即插即用OTG设备的接口电路及终端。
技术介绍
近年来,即插即用(On-The-Go,OTG)设备的应用越来越广泛,两个OTG设备间可以在脱离个人电脑(PersonalComputer,PC)的情况下直接进行数据传输,从而使得设备间的数据交换更为简单、快捷。OTG设备可以是PC、手机、移动硬盘、打印机,通用串行总线(UniversalSerialBus,USB)闪存盘等。在进行数据交换的两个OTG设备中,一个OTG设备作为主机,用于控制两个OTG设备间的数据发送和接收过程,另一个OTG设备用于配合作为主机的OTG设备执行发送和接收指令。然而,在两个OTG设备之间进行数据传输时,若数据传输数据较快,容易对两个OTG设备中的从设备的身份(Identity,ID)信号引脚产生干扰。一旦ID信号引脚被干扰,极有可能将ID信号引脚从悬空状态干扰成低电平状态,从而导致从设备的OTG功能被误触发。基于此,目前亟需一种OTG设备的接口电路,用于解决OTG功能容易被误触发的问题。
技术实现思路
本技术实施例提供一种即插即用OTG设备的接口电路及终端,以解决现有技术中OTG功能容易被误触发。本技术实施例提供一种即插即用OTG设备的接口电路,所述接口电路包括ID信号引脚,所述ID信号引脚具有第一支路和第二支路;所述ID信号引脚通过所述第一支路与主控单元电连接,所述ID信号引脚通过所述第二支路上的第一电子元件与电压源电连接;所述主控单元,用于在所述接口电路与外部设备连接时,检测所述ID信号引脚的电平状态,并在检测 ...
【技术保护点】
1.一种即插即用OTG设备的接口电路,其特征在于,所述接口电路包括ID信号引脚,所述ID信号引脚具有第一支路和第二支路;所述ID信号引脚通过所述第一支路与主控单元电连接,所述ID信号引脚通过所述第二支路上的第一电子元件与电压源电连接;所述主控单元,用于在所述接口电路与外部设备连接时,检测所述ID信号引脚的电平状态,并在检测到所述电平状态为高电平状态后,确定所述OTG设备为所述外部设备的从设备。
【技术特征摘要】
1.一种即插即用OTG设备的接口电路,其特征在于,所述接口电路包括ID信号引脚,所述ID信号引脚具有第一支路和第二支路;所述ID信号引脚通过所述第一支路与主控单元电连接,所述ID信号引脚通过所述第二支路上的第一电子元件与电压源电连接;所述主控单元,用于在所述接口电路与外部设备连接时,检测所述ID信号引脚的电平状态,并在检测到所述电平状态为高电平状态后,确定所述OTG设备为所述外部设备的从设备。2.根据权利要求1所述的接口电路,其特征在于,所述第一电子元件包括第一电阻、二极管、三极管中任意一项。3.根据权利要求2所述的接口电路,其特征在于,所述第一电子元件包括第一电...
【专利技术属性】
技术研发人员:封梅泉,
申请(专利权)人:南昌华勤电子科技有限公司,
类型:新型
国别省市:江西,36
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。