WO2020232582A1 - Integrated circuit having interface multiplexing functionality and pin switching method - Google Patents

Integrated circuit having interface multiplexing functionality and pin switching method Download PDF

Info

Publication number
WO2020232582A1
WO2020232582A1 PCT/CN2019/087464 CN2019087464W WO2020232582A1 WO 2020232582 A1 WO2020232582 A1 WO 2020232582A1 CN 2019087464 W CN2019087464 W CN 2019087464W WO 2020232582 A1 WO2020232582 A1 WO 2020232582A1
Authority
WO
WIPO (PCT)
Prior art keywords
switching
pin
circuit
data
debugging interface
Prior art date
Application number
PCT/CN2019/087464
Other languages
French (fr)
Chinese (zh)
Inventor
刘文学
朱志军
彭亢
黄宽
曾令慧
黄观冰
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2019/087464 priority Critical patent/WO2020232582A1/en
Priority to CN201980089733.8A priority patent/CN113383326A/en
Publication of WO2020232582A1 publication Critical patent/WO2020232582A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Definitions

  • the control circuit includes: a state machine, the number of the state machine is not less than the number of types of the preset switching data, and one preset switching data corresponds to a switching method; the first tube The pin is coupled with the state machine; after acquiring the preset switching data, the target state machine in the state machine generates the switching signal corresponding to the preset switching data, wherein the target state machine is switched to the preset switching data The state machine corresponding to the data.
  • the multiple functional modules also include: a circuit interconnect bus I2C controller, a universal asynchronous receiver transmitter UART controller or a serial peripheral SPI interface.
  • the debugging interface module is a joint test working group JTAG debugging interface or a serial wire debugging SWD interface.
  • the integrated circuit with the interface multiplexing function disclosed in the embodiment of the present application can switch the multiplexing function of the first pin and complete the debugging of the processor.
  • control circuit is a logic circuit. Further, the control circuit is usually a serial control circuit.
  • control circuit includes: a memory 250, a comparator 260 and a buffer 270.

Abstract

Disclosed in embodiments of the present application is an integrated circuit having interface multiplexing functionality, comprising: multiple functional modules, a first pin, a switching circuit and a control circuit, the multiple functional modules providing interface functionality by means of the first pin of the integrated circuit, so as to provide external device access to the integrated circuit; the multiple functional modules multiplex the first pin by means of the switching circuit, so as to cause the integrated circuit to communicate with external devices corresponding to each of the multiple functional modules by means of the first pin; the control circuit is used to control the switching circuit to connect a target functional module to the first pin. By means of the present solution, it is possible to cause multiple functional modules to multiplex the first pin by means of the switching circuit, and to control the switching circuit by means of the control circuit; therefore, it is not necessary for each functional module to be provided with a corresponding pin, decreasing a number of pins, which can thereby lower a chip cost and decrease chip volume.

Description

一种具有接口复用功能的集成电路及管脚切换方法Integrated circuit with interface multiplexing function and pin switching method 技术领域Technical field
本申请涉及终端设备技术领域,特别是涉及一种具有接口复用功能的集成电路及管脚切换方法。This application relates to the technical field of terminal equipment, and in particular to an integrated circuit with an interface multiplexing function and a pin switching method.
背景技术Background technique
为了实现芯片的多种功能,芯片内部通常集成多种功能模块。例如,参见图1所示的芯片的结构示意图,为了实现芯片与芯片外部设备的通信,通常在芯片内部设置通用异步收发传输器(universal asynchronous receiver/transmitter,UART)控制器和集成电路互联总线(inter-integrated circuit,I2C)控制器等,其中,UART控制器可与芯片外部的UART设备通信,I2C控制器可与芯片外部的I2C设备通信;另外,为了满足对芯片的调试需求,通常还在芯片内设置联合测试工作组(joint test action group,JTAG)调试接口,以便通过JTAG调试接口与芯片外部的JTAG调试设备相连接。In order to realize multiple functions of the chip, multiple functional modules are usually integrated inside the chip. For example, referring to the schematic structural diagram of the chip shown in Figure 1, in order to realize the communication between the chip and the external devices of the chip, a universal asynchronous receiver/transmitter (UART) controller and an integrated circuit interconnection bus ( inter-integrated circuit, I2C) controller, etc., where the UART controller can communicate with the UART device outside the chip, and the I2C controller can communicate with the I2C device outside the chip; in addition, in order to meet the needs of chip debugging, it is usually still A joint test action group (JTAG) debugging interface is set in the chip to connect to the JTAG debugging device outside the chip through the JTAG debugging interface.
进一步的,为了能够使芯片内部的各个功能模块执行相应的功能,还需要为每个功能模块设置相应的管脚,以便各个功能模块能够通过自身相应的管脚与芯片外部的设备连接。例如,如图1所示,为芯片内部的UART控制器、I2C控制器和JTAG调试接口这三个功能模块分别设置相应的管脚,各个功能模块分别通过自身相应的管脚与外部设备相连接。另外,在图1中,TXD/RXD表示UART控制器的接口信号,SDA/SCL表示I2C控制器的接口信号,TMS/TCK表示JTAG调试接口的接口信号。Further, in order to enable each functional module inside the chip to perform corresponding functions, it is also necessary to set corresponding pins for each functional module, so that each functional module can be connected to devices outside the chip through its corresponding pins. For example, as shown in Figure 1, the three functional modules of the UART controller, I2C controller and JTAG debug interface inside the chip are respectively set with corresponding pins, and each functional module is connected to the external device through its own corresponding pins. . In addition, in Figure 1, TXD/RXD represents the interface signal of the UART controller, SDA/SCL represents the interface signal of the I2C controller, and TMS/TCK represents the interface signal of the JTAG debug interface.
但是,发明人在本申请的研究过程中发现,由于需要为芯片内的各个功能模块设置相应的管脚,往往需要为芯片设置较多的管脚,不仅导致芯片的成本较高,还会占用芯片较大的体积,不利于芯片的小型化发展。However, the inventor found in the research process of this application that since it is necessary to set corresponding pins for each functional module in the chip, it is often necessary to set more pins for the chip, which not only leads to higher cost of the chip, but also takes up The large size of the chip is not conducive to the miniaturization of the chip.
发明内容Summary of the invention
为了解决现有技术中,由于需要为芯片内的各个功能模块设置相应的管脚,导致芯片内设置较多管脚,所引起的芯片成本高,以及芯片体积大的问题,本申请实施例公开一种具有接口复用功能的集成电路及管脚切换方法。In order to solve the problems of high chip cost and large chip volume caused by the need to set corresponding pins for each functional module in the chip, the chip is provided with more pins, and the chip is large in size. An integrated circuit with interface multiplexing function and a pin switching method.
本申请实施例公开一种具有接口复用功能的集成电路,包括:多个功能模块、第一管脚、切换电路和控制电路,该多个功能模块通过该集成电路的第一管脚提供接口功能,以供外部设备访问该集成电路;该多个功能模块通过该切换电路复用该第一管脚,以使该集成电路通过该第一管脚与该多个功能模块分别对应的外部设备进行通信;该控制电路,用于控制该切换电路将目标功能模块与该第一管脚相连,该目标功能模块为该多个功能模块中的一个功能模块。The embodiment of the application discloses an integrated circuit with an interface multiplexing function, including: a plurality of functional modules, a first pin, a switching circuit, and a control circuit, the plurality of functional modules provide interfaces through the first pin of the integrated circuit Function for an external device to access the integrated circuit; the multiple functional modules multiplex the first pin through the switching circuit, so that the integrated circuit passes through the external device corresponding to the first pin and the multiple functional modules respectively To communicate; the control circuit is used to control the switching circuit to connect the target function module to the first pin, and the target function module is one of the plurality of function modules.
通过本申请实施例公开的具有接口复用功能的集成电路,能够使多个功能模块通过切换电路复用第一管脚,以及通过控制电路对切换电路进行控制,减少了管脚的数量,从而能够减少芯片的成本,以及减小芯片体积。Through the integrated circuit with interface multiplexing function disclosed in the embodiments of the present application, multiple functional modules can be multiplexed with the first pin through the switching circuit, and the switching circuit can be controlled by the control circuit, thereby reducing the number of pins, thereby Can reduce the cost of the chip, and reduce the size of the chip.
一种可行的设计方式中,该控制电路具体用于,根据预设切换数据生成相应的切 换信号,并将该切换信号发送至该切换电路,以使该切换电路根据该切换信号,将该目标功能模块与该第一管脚相连接;其中,该预设切换数据用于指示该切换电路的切换方式。In a feasible design method, the control circuit is specifically used to generate a corresponding switching signal according to preset switching data, and send the switching signal to the switching circuit, so that the switching circuit can set the target according to the switching signal. The functional module is connected to the first pin; wherein the preset switching data is used to indicate the switching mode of the switching circuit.
一种可行的设计方式中,该集成电路还包括:处理器;该多种功能模块包括:调试接口模块,该预设切换数据包括:调试接口切换序列;在该处理器挂死的情况下,该控制电路具体用于:根据该调试接口切换序列生成调试接口切换信号;将该调试接口切换信号发送至该切换电路,以使该切换电路根据该调试接口切换信号将该调试接口模块与该第一管脚相连接。In a feasible design method, the integrated circuit further includes: a processor; the multiple functional modules include: a debug interface module, and the preset switching data includes: a debug interface switching sequence; in the case that the processor hangs, The control circuit is specifically used for: generating a debugging interface switching signal according to the debugging interface switching sequence; sending the debugging interface switching signal to the switching circuit, so that the switching circuit makes the debugging interface module and the second circuit switch according to the debugging interface switching signal One pin is connected.
在本申请实施例中,调试接口切换序列可以预先存储在存储区域中,例如存储在非易失性存储器中,在处理器挂死之后,控制电路可以访问该存储区域,以便获取调试接口切换序列生成切换信号从而控制切换电路将第一管脚复用为调试接口,从而可以通过第一接口接收调试信号实现对处理器的调试,使处理器恢复正常。In the embodiment of the present application, the debugging interface switching sequence may be pre-stored in a storage area, for example, stored in a non-volatile memory. After the processor hangs up, the control circuit can access the storage area to obtain the debugging interface switching sequence. The switching signal is generated to control the switching circuit to multiplex the first pin as a debugging interface, so that the debugging signal can be received through the first interface to realize the debugging of the processor and restore the processor to normal.
在本申请实施例中,当处理器挂死时,切换电路和控制电路仍然能够执行相应的操作,而且,存储区域中存储的调试接口切换序列也不会受到处理器挂死的影响,这种情况下,即使处理器挂死,控制电路仍然能够获取调试接口切换序列,并根据该调试接口切换序列生成相应的调试接口切换信号,以便切换电路根据该调试接口切换信号,将该调试接口模块与第一管脚相连接。因此,即使处理器挂死,本申请实施例公开的集成电路仍然能够实现管脚功能的切换,并实现对处理器的调试。In the embodiment of the present application, when the processor hangs up, the switching circuit and the control circuit can still perform corresponding operations, and the debugging interface switching sequence stored in the storage area will not be affected by the hang up of the processor. In this case, even if the processor hangs up, the control circuit can still obtain the debugging interface switching sequence, and generate the corresponding debugging interface switching signal according to the debugging interface switching sequence, so that the switching circuit can connect the debugging interface module with the debugging interface switching signal according to the debugging interface switching signal. The first pin is connected. Therefore, even if the processor hangs up, the integrated circuit disclosed in the embodiments of the present application can still switch pin functions and implement debugging of the processor.
一种可行的设计方式中,该控制电路耦合至该第一管脚,该控制电路还用于监测该第一管脚上传输的数据;在该处理器挂死的情况下,该第一管脚接收外部设备发送的该调试接口切换序列;该控制电路具体用于:在监测到该第一管脚接收的该调试接口切换序列后,根据该调试接口切换序列生成该调试接口切换信号;将该调试接口切换信号发送至该切换电路,以使该切换电路根据该调试接口切换信号将该调试接口模块与该第一管脚相连接。In a feasible design, the control circuit is coupled to the first pin, and the control circuit is also used to monitor the data transmitted on the first pin; when the processor hangs up, the first tube The pin receives the debugging interface switching sequence sent by the external device; the control circuit is specifically used to: after monitoring the debugging interface switching sequence received by the first pin, generate the debugging interface switching signal according to the debugging interface switching sequence; The debugging interface switching signal is sent to the switching circuit, so that the switching circuit connects the debugging interface module with the first pin according to the debugging interface switching signal.
在本申请实施例中,调试接口切换序列是外部设备发送给第一管脚的,该外部设备可以是个人计算机(personal computer,PC)工具等,在处理器挂死之后,通过外部设备发送调试接口切换序列给第一管脚,控制电路在监测到第一管脚接收到调试接口切换序列之后,生成切换信号从而控制切换电路将第一管脚复用为调试接口,从而可以通过第一接口接收调试信号实现对处理器的调试,使处理器恢复正常。In the embodiment of this application, the debugging interface switching sequence is sent to the first pin by the external device. The external device may be a personal computer (PC) tool. After the processor hangs up, the debugging is sent through the external device. The interface switching sequence is given to the first pin. After monitoring that the first pin receives the debugging interface switching sequence, the control circuit generates a switching signal to control the switching circuit to multiplex the first pin as a debugging interface, so that the first interface can be used Receive the debugging signal to realize the debugging to the processor, make the processor return to normal.
一种可行的设计方式中,该控制电路包括:状态机,该状态机的个数不少于该预设切换数据的种类数,一种预设切换数据对应一种切换方式;该第一管脚与该状态机相耦合;在获取该预设切换数据之后,该状态机中的目标状态机生成与该预设切换数据对应的该切换信号,其中,该目标状态机为与该预设切换数据对应的状态机。In a feasible design method, the control circuit includes: a state machine, the number of the state machine is not less than the number of types of the preset switching data, and one preset switching data corresponds to a switching method; the first tube The pin is coupled with the state machine; after acquiring the preset switching data, the target state machine in the state machine generates the switching signal corresponding to the preset switching data, wherein the target state machine is switched to the preset switching data The state machine corresponding to the data.
一种可行的设计方式中,该控制电路包括:存储器、比较器和缓存器;该存储器与该缓存器均与该比较器相耦合,该比较器与该切换电路相耦合,并且该缓存器与该第一管脚相耦合;该存储器,用于存储预设切换数据;该缓存器,用于缓存该第一管脚接收到的数据;该比较器,用于在该缓存器中存储的数据与该存储器中存储的预设切换数据相匹配时,生成与该预设切换数据相对应的该切换信号。In a feasible design method, the control circuit includes: a memory, a comparator, and a buffer; the memory and the buffer are both coupled with the comparator, the comparator is coupled with the switching circuit, and the buffer is coupled with The first pin is coupled; the memory is used to store preset switching data; the buffer is used to buffer the data received by the first pin; the comparator is used to store data in the buffer When matching with the preset switching data stored in the memory, the switching signal corresponding to the preset switching data is generated.
一种可行的设计方式中,该切换电路包括:多路复用器;该多路复用器的输入端 与该第一管脚相耦合;在接收到该切换信号之后,该多路复用器的输出端与该目标功能模块相连接。In a feasible design manner, the switching circuit includes: a multiplexer; the input end of the multiplexer is coupled to the first pin; after receiving the switching signal, the multiplexer The output terminal of the converter is connected with the target function module.
一种可行的设计方式中,该调试接口模块为联合测试工作组JTAG调试接口或串行线调试SWD接口。In a feasible design method, the debugging interface module is a joint test working group JTAG debugging interface or a serial wire debugging SWD interface.
一种可行的设计方式中,该多种功能模块还包括:电路互联总线I2C控制器、通用异步收发传输器UART控制器或串行外设SPI接口。In a feasible design method, the multiple functional modules also include: a circuit interconnect bus I2C controller, a universal asynchronous receiver transmitter UART controller or a serial peripheral SPI interface.
第二方面,本申请实施例公开一种管脚切换方法,该方法应用于具有接口复用功能的集成电路,该集成电路包括:多个功能模块、第一管脚、切换电路和控制电路,该多个功能模块通过该集成电路的该第一管脚提供接口功能,以供外部设备访问该集成电路,该方法包括:该多个功能模块通过该切换电路复用该第一管脚,以使该集成电路通过该第一管脚与该多个功能模块分别对应的外部设备进行通信;该控制电路,控制该切换电路将目标功能模块与该第一管脚相连,该目标功能模块为该多个功能模块中的一个功能模块。In the second aspect, an embodiment of the present application discloses a pin switching method, which is applied to an integrated circuit with an interface multiplexing function. The integrated circuit includes: a plurality of functional modules, a first pin, a switching circuit, and a control circuit, The plurality of functional modules provide interface functions through the first pin of the integrated circuit for external devices to access the integrated circuit, and the method includes: the plurality of functional modules multiplex the first pin through the switching circuit to Make the integrated circuit communicate with the external devices corresponding to the multiple functional modules through the first pin; the control circuit controls the switching circuit to connect the target functional module to the first pin, and the target functional module is the A functional module among multiple functional modules.
一种可行的设计方式中,该控制电路控制该切换电路将目标功能模块与该第一管脚相连,包括:该控制电路根据预设切换数据生成相应的切换信号;该控制电路将该切换信号发送至该切换电路,以使该切换电路根据该切换信号,将该目标功能模块与该第一管脚相连接。In a feasible design method, the control circuit controls the switching circuit to connect the target function module to the first pin, which includes: the control circuit generates a corresponding switching signal according to preset switching data; the control circuit generates the switching signal Sending to the switching circuit so that the switching circuit connects the target function module with the first pin according to the switching signal.
一种可行的设计方式中,当该集成电路还包括:处理器,该多种功能模块包括:调试接口模块,该预设切换数据包括:调试接口切换序列;该控制电路控制该切换电路将目标功能模块与该第一管脚相连,包括:在该处理器挂死的情况下,该控制电路根据该调试接口切换序列生成调试接口切换信号;该控制电路将该调试接口切换信号发送至该切换电路,以使该切换电路根据该调试接口切换信号将该调试接口模块与该第一管脚相连接。In a feasible design method, when the integrated circuit further includes a processor, the multiple functional modules include: a debug interface module, and the preset switching data includes: a debug interface switching sequence; the control circuit controls the switching circuit to target The functional module is connected to the first pin and includes: when the processor hangs up, the control circuit generates a debugging interface switching signal according to the debugging interface switching sequence; the control circuit sends the debugging interface switching signal to the switch Circuit, so that the switching circuit connects the debugging interface module with the first pin according to the debugging interface switching signal.
一种可行的设计方式中,该控制电路耦合至该第一管脚,该方法还包括:该控制电路监测该第一管脚上传输的数据;在该处理器挂死的情况下,该第一管脚接收外部设备发送的该调试接口切换序列;In a feasible design manner, the control circuit is coupled to the first pin, and the method further includes: the control circuit monitors the data transmitted on the first pin; when the processor hangs up, the second One pin receives the debugging interface switching sequence sent by the external device;
该控制电路控制该切换电路将目标功能模块与该第一管脚相连,包括:该控制电路在监测到该第一管脚接收的该调试接口切换序列后,根据该调试接口切换序列生成该调试接口切换信号;该控制电路将该调试接口切换信号发送至该切换电路,以使该切换电路根据该调试接口切换信号将该调试接口模块与该第一管脚相连接。The control circuit controls the switching circuit to connect the target function module to the first pin, including: after the control circuit monitors the debugging interface switching sequence received by the first pin, generating the debugging according to the debugging interface switching sequence Interface switching signal; the control circuit sends the debugging interface switching signal to the switching circuit so that the switching circuit connects the debugging interface module with the first pin according to the debugging interface switching signal.
一种可行的设计方式中,该控制电路根据预设切换数据生成相应的切换信号,包括:该控制电路中的目标状态机生成与该预设切换数据对应的该切换信号,其中,该控制电路包括不少于该预设切换数据的种类数的状态机,该目标状态机为与该预设切换数据对应的状态机。In a feasible design method, the control circuit generates a corresponding switching signal according to preset switching data, including: the target state machine in the control circuit generates the switching signal corresponding to the preset switching data, wherein the control circuit The state machine includes no less than the number of types of the preset switching data, and the target state machine is a state machine corresponding to the preset switching data.
一种可行的设计方式中,该调试接口模块为联合测试工作组JTAG调试接口或串行线调试SWD接口。In a feasible design method, the debugging interface module is a joint test working group JTAG debugging interface or a serial wire debugging SWD interface.
一种可行的设计方式中,该多种功能模块还包括:电路互联总线I2C控制器、通用异步收发传输器UART控制器或串行外设SPI接口。In a feasible design method, the multiple functional modules also include: a circuit interconnect bus I2C controller, a universal asynchronous receiver transmitter UART controller or a serial peripheral SPI interface.
通过本申请实施例公开的具有接口复用功能的集成电路及管脚切换方法,能够使 多个功能模块通过切换电路复用第一管脚,以及通过控制电路对切换电路进行控制,使切换电路将目标功能模块与第一管脚相连接。这种情况下,则无需为每个功能模块设置相应的管脚,因此,与现有技术相比,减少了管脚的数量,从而能够减少芯片的成本。并且,由于管脚数量减少,管脚占用的体积减小,相应的,芯片的体积也随之减小。因此,通过本申请实施例公开的具有接口复用功能的集成电路,解决了现有技术中,由于芯片内管脚数量较多,所导致的芯片成本高,以及芯片体积大的问题。Through the integrated circuit with interface multiplexing function and the pin switching method disclosed in the embodiments of the present application, multiple functional modules can be multiplexed with the first pin through the switching circuit, and the switching circuit can be controlled by the control circuit, so that the switching circuit Connect the target function module to the first pin. In this case, there is no need to set a corresponding pin for each functional module. Therefore, compared with the prior art, the number of pins is reduced, thereby reducing the cost of the chip. Moreover, as the number of pins is reduced, the volume occupied by the pins is reduced, and accordingly, the volume of the chip is also reduced. Therefore, the integrated circuit with interface multiplexing function disclosed in the embodiments of the present application solves the problems of high chip cost and large chip volume caused by the large number of pins in the chip in the prior art.
附图说明Description of the drawings
为了更清楚地说明本申请的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solution of the present application more clearly, the following will briefly introduce the drawings needed in the embodiments. Obviously, for those of ordinary skill in the art, without paying creative labor, Other drawings can be obtained from these drawings.
图1为现有技术公开的一种芯片的结构示意图;Fig. 1 is a schematic structural diagram of a chip disclosed in the prior art;
图2为本申请实施例公开的一种具有接口复用功能的集成电路的结构示意图;2 is a schematic structural diagram of an integrated circuit with interface multiplexing function disclosed in an embodiment of the application;
图3为本申请实施例公开的一种具有接口复用功能的集成电路中,通过预设数据序列进行切换的动作示意图;FIG. 3 is a schematic diagram of an operation of switching through a preset data sequence in an integrated circuit with an interface multiplexing function disclosed in an embodiment of the application;
图4为本申请实施例公开的具有接口复用功能的集成电路中,一种控制电路的结构示意图;4 is a schematic structural diagram of a control circuit in an integrated circuit with interface multiplexing function disclosed in an embodiment of the application;
图5为本申请实施例公开的具有接口复用功能的集成电路中,另一种控制电路的结构示意图;5 is a schematic structural diagram of another control circuit in the integrated circuit with interface multiplexing function disclosed in an embodiment of the application;
图6为本申请实施例公开的具有接口复用功能的集成电路中,另一种控制电路的结构示意图;6 is a schematic structural diagram of another control circuit in the integrated circuit with interface multiplexing function disclosed in an embodiment of the application;
图7为本申请实施例公开的一种管脚切换方法的工作流程示意图。FIG. 7 is a schematic diagram of a working flow of a pin switching method disclosed in an embodiment of the application.
具体实施方式Detailed ways
为了解决现有技术中,由于需要为芯片内的各个功能模块设置相应的管脚,导致芯片内设置较多管脚,所引起的芯片成本高,以及芯片体积大的问题,本申请实施例公开一种具有接口复用功能的集成电路。In order to solve the problems of high chip cost and large chip volume caused by the need to set corresponding pins for each functional module in the chip, the chip is provided with more pins, and the chip is large in size. An integrated circuit with interface multiplexing function.
在本申请的第一实施例中,公开一种具有接口复用功能的集成电路,该集成电路可作为芯片的一部分。参见图2,该图2为本申请实施例提供的一种示例性的具有接口复用功能的集成电路的结构示意图,本申请实施例公开的具有接口复用功能的集成电路包括:多个功能模块100、第一管脚200、切换电路300和控制电路400。In the first embodiment of the present application, an integrated circuit with interface multiplexing function is disclosed. The integrated circuit can be used as a part of a chip. Refer to Figure 2, which is a schematic structural diagram of an exemplary integrated circuit with interface multiplexing function provided by an embodiment of the application. The integrated circuit with interface multiplexing function disclosed in the embodiment of the application includes: multiple functions The module 100, the first pin 200, the switching circuit 300 and the control circuit 400.
该多个功能模块100通过该集成电路的第一管脚提供接口功能,以供外部设备访问该集成电路。The multiple functional modules 100 provide interface functions through the first pin of the integrated circuit for external devices to access the integrated circuit.
其中,在本申请实施例中,多个功能模块100、切换电路300和控制电路400均为硬件逻辑电路。当外部设备需要访问某一个功能模块时,外部设备连接该第一管脚200,而第一管脚200还可以连接集成电路内该外部设备对应的功能模块,从而使外部设备与功能模块之间形成通路,便于外部设备实现对集成电路的访问。Among them, in the embodiment of the present application, the multiple functional modules 100, the switching circuit 300, and the control circuit 400 are all hardware logic circuits. When an external device needs to access a certain functional module, the external device is connected to the first pin 200, and the first pin 200 can also be connected to the functional module corresponding to the external device in the integrated circuit, so that the external device and the functional module A path is formed to facilitate access to integrated circuits by external devices.
另外,该多个功能模块100可为多种类型的功能模块,每一种类型的功能模块对应至少一种外部设备,而外部设备可通过该集成电路的管脚,访问集成电路内部的该多个功能模块,实现外部设备对集成电路的访问。In addition, the multiple functional modules 100 can be multiple types of functional modules, and each type of functional module corresponds to at least one type of external device, and the external device can access the multiple types of modules in the integrated circuit through the pins of the integrated circuit. A functional module to realize the access of external equipment to the integrated circuit.
例如,当需要对中央处理器(central processing unit,CPU)进行JTAG调试时,则JTAG调试接口这一功能模块通过第一管脚200提供接口功能,JTAG调试设备这一外部设备通过第一管脚200与JTAG调试接口相连接,从而使JTAG调试设备能够访问该集成电路。具体的,JTAG调试接口模块通过第一管脚接收JTAG调试设备发送的调试信号,实现对CPU的JTAG调试。For example, when it is necessary to perform JTAG debugging on the central processing unit (CPU), the functional module of the JTAG debugging interface provides the interface function through the first pin 200, and the external device of the JTAG debugging device through the first pin 200 is connected with the JTAG debugging interface, so that the JTAG debugging device can access the integrated circuit. Specifically, the JTAG debugging interface module receives the debugging signal sent by the JTAG debugging device through the first pin, so as to realize the JTAG debugging of the CPU.
或者,当需要进行数据传输时,UART控制器这一功能模块通过第一管脚200提供接口功能,UART设备这一外部设备通过第一管脚200与UART控制器相连接,从而使UART设备能够访问该集成电路。示例性的,UART设备包括键盘、鼠标等,具体的,键盘或鼠标等UART设备可通过UART控制器访问集成电路中的CPU,向CPU输入数据,并接收CPU所发送的数据。Or, when data transmission is required, the functional module of the UART controller provides interface functions through the first pin 200, and the UART device, an external device, is connected to the UART controller through the first pin 200, so that the UART device can Visit the integrated circuit. Exemplarily, the UART device includes a keyboard, a mouse, etc., specifically, a UART device such as a keyboard or a mouse can access the CPU in the integrated circuit through the UART controller, input data to the CPU, and receive data sent by the CPU.
当然,集成电路内还可以设置其他类型的功能模块,本申请实施例对此不做限定。Of course, other types of functional modules may also be provided in the integrated circuit, which is not limited in the embodiment of the present application.
该多个功能模块100通过该切换电路300复用该第一管脚200,以使该集成电路通过该第一管脚与该多个功能模块分别对应的外部设备进行通信。The multiple functional modules 100 multiplex the first pin 200 through the switching circuit 300, so that the integrated circuit communicates with the external devices corresponding to the multiple functional modules through the first pin.
当某一个功能模块通过该切换电路300复用该第一管脚200时,则表示该功能模块通过该切换电路300与该第一管脚200相连接,这种情况下,外部设备、第一管脚200和功能模块之间形成通路,便于实现功能模块与外部设备之间的通信。When a certain functional module multiplexes the first pin 200 through the switching circuit 300, it means that the functional module is connected to the first pin 200 through the switching circuit 300. In this case, the external device, the first pin 200 A path is formed between the pin 200 and the functional module to facilitate communication between the functional module and external devices.
在一种可选的情况中,切换电路的第一端耦合至第一管脚,切换电路的第二端耦合至目标功能模块,从而使得目标功能模块通过切换电路与第一管脚相连,从而使得第一管脚向外提供目标功能模块的接口功能;在另一种可选的情况中,切换电路的第一端耦合至第一管脚,切换电路的多个第二端分别耦合至多个功能模块,但是只有与目标功能模块耦合的第二端与第一端是接通的,其他第二端与第一端之间的通路是断开的。In an optional situation, the first end of the switching circuit is coupled to the first pin, and the second end of the switching circuit is coupled to the target function module, so that the target function module is connected to the first pin through the switching circuit, thereby Make the first pin externally provide the interface function of the target functional module; in another optional case, the first end of the switching circuit is coupled to the first pin, and the multiple second ends of the switching circuit are respectively coupled to multiple Functional modules, but only the second terminal coupled with the target functional module is connected to the first terminal, and the paths between the other second terminals and the first terminal are disconnected.
该控制电路400,用于控制该切换电路300将目标功能模块与该第一管脚200相连,该目标功能模块为该多个功能模块200中的一个功能模块。The control circuit 400 is used to control the switching circuit 300 to connect the target function module to the first pin 200, and the target function module is one of the plurality of function modules 200.
其中,该控制电路400的第一端通常耦合至该第一管脚200,而第二端耦合至该切换电路300,当需要切换第一管脚的管脚功能时,该控制电路400再对该切换电路300进行控制。Wherein, the first end of the control circuit 400 is usually coupled to the first pin 200, and the second end is coupled to the switching circuit 300. When it is necessary to switch the pin function of the first pin, the control circuit 400 will The switching circuit 300 performs control.
通过本申请实施例公开的具有接口复用功能的集成电路,能够使多个功能模块通过切换电路复用第一管脚,以及通过控制电路对切换电路进行控制,使切换电路将目标功能模块与第一管脚相连接。这种情况下,则无需为每个功能模块设置相应的管脚,因此,与现有技术相比,减少了管脚的数量,从而能够减少芯片的成本。并且,由于管脚数量减少,管脚占用的体积减小,相应的,芯片的体积也随之减小。因此,通过本申请实施例公开的具有接口复用功能的集成电路,解决了现有技术中,由于芯片内管脚数量较多,所导致的芯片成本高,以及芯片体积大的问题。Through the integrated circuit with interface multiplexing function disclosed in the embodiments of this application, multiple functional modules can be multiplexed with the first pin through the switching circuit, and the switching circuit can be controlled by the control circuit, so that the switching circuit can connect the target functional module with The first pin is connected. In this case, there is no need to set a corresponding pin for each functional module. Therefore, compared with the prior art, the number of pins is reduced, thereby reducing the cost of the chip. Moreover, as the number of pins is reduced, the volume occupied by the pins is reduced, and accordingly, the volume of the chip is also reduced. Therefore, the integrated circuit with interface multiplexing function disclosed in the embodiments of the present application solves the problems of high chip cost and large chip volume caused by the large number of pins in the chip in the prior art.
在一种可行的实现方式中,在本申请实施例中,该控制电路400具体用于,根据预设切换数据生成相应的切换信号,并将该切换信号发送至该切换电路,以使该切换电路根据该切换信号,将该目标功能模块与该第一管脚相连接。In a feasible implementation manner, in the embodiment of the present application, the control circuit 400 is specifically configured to generate a corresponding switching signal according to preset switching data, and send the switching signal to the switching circuit, so that the switching The circuit connects the target function module with the first pin according to the switching signal.
其中,该预设切换数据用于指示该切换电路的切换方式。Wherein, the preset switching data is used to indicate the switching mode of the switching circuit.
在一种实施方式中,该预设切换数据预先存储在存储区域中,当芯片中的处理器 挂死时,控制电路400可以访问该存储区域获取预设切换数据以生成对应的切换信号。例如,控制电路读取预存在存储区域中的调试接口切换序列并生成调试接口切换信号,从而使得切换电路将第一管脚切换到调试接口功能,从而通过第一管脚接收调试设备发送的对处理器的调试信号。In one embodiment, the preset switching data is pre-stored in a storage area. When the processor in the chip hangs up, the control circuit 400 can access the storage area to obtain the preset switching data to generate a corresponding switching signal. For example, the control circuit reads the debugging interface switching sequence pre-stored in the storage area and generates a debugging interface switching signal, so that the switching circuit switches the first pin to the debugging interface function, thereby receiving the pair from the debugging device through the first pin. The debug signal of the processor.
在另外一种方式中,该预设切换数据为外部设备传输至第一管脚200的,该控制电路400在监测到该第一管脚200接收到该预设切换数据之后,再对切换电路300进行控制。In another way, the preset switching data is transmitted to the first pin 200 by the external device, and the control circuit 400 sends the data to the switching circuit after monitoring that the first pin 200 receives the preset switching data. 300 for control.
进一步的,该集成电路还包括:处理器。该处理器可以为中央处理器CPU等。Further, the integrated circuit also includes a processor. The processor may be a central processing unit CPU or the like.
该多种功能模块包括:调试接口模块,该预设切换数据包括:调试接口切换序列;The multiple functional modules include: a debugging interface module, and the preset switching data includes: a debugging interface switching sequence;
在该处理器挂死的情况下,该控制电路具体用于:When the processor hangs up, the control circuit is specifically used for:
根据该调试接口切换序列生成调试接口切换信号;Generate a debugging interface switching signal according to the debugging interface switching sequence;
将该调试接口切换信号发送至该切换电路,以使该切换电路根据该调试接口切换信号将该调试接口模块与该第一管脚相连接。The debugging interface switching signal is sent to the switching circuit, so that the switching circuit connects the debugging interface module with the first pin according to the debugging interface switching signal.
在该处理器挂死的情况下,往往需要对处理器进行调试,而在对处理器进行调试的过程中,需要调试接口模块接收调试信号,因此需要调试接口模块通过该切换电路300复用该第一管脚200,以使该调试接口模块通过该第一管脚,接收调试信号,该调试信号用于对该处理器进行调试。When the processor hangs up, it is often necessary to debug the processor. In the process of debugging the processor, the debug interface module needs to receive the debug signal. Therefore, the debug interface module needs to multiplex the debug signal through the switching circuit 300. The first pin 200 allows the debug interface module to receive a debug signal through the first pin, and the debug signal is used to debug the processor.
其中,在本申请实施例中,切换电路300和控制电路400均为独立于处理器的逻辑电路,当处理器挂死时,仍然能够执行自身操作。Among them, in the embodiment of the present application, the switching circuit 300 and the control circuit 400 are logic circuits independent of the processor, and when the processor hangs up, it can still perform its own operations.
在本申请实施例中,调试接口切换序列可以预先存储在存储区域中,例如存储在非易失性存储器中,在处理器挂死之后,控制电路可以访问该存储区域,以便获取调试接口切换序列生成切换信号从而控制切换电路将第一管脚复用为调试接口,从而可以通过第一接口接收调试信号实现对处理器的调试,使处理器恢复正常。In the embodiment of the present application, the debugging interface switching sequence may be pre-stored in a storage area, for example, stored in a non-volatile memory. After the processor hangs up, the control circuit can access the storage area to obtain the debugging interface switching sequence. The switching signal is generated to control the switching circuit to multiplex the first pin as a debugging interface, so that the debugging signal can be received through the first interface to realize the debugging of the processor and restore the processor to normal.
而且,在本申请实施例中,当处理器挂死时,切换电路和控制电路仍然能够执行相应的操作,而且,存储区域中存储的调试接口切换序列也不会受到处理器挂死的影响,这种情况下,即使处理器挂死,控制电路仍然能够获取调试接口切换序列,并根据该调试接口切换序列生成相应的调试接口切换信号,以便切换电路根据该调试接口切换信号,将该调试接口模块与第一管脚相连接。因此,即使处理器挂死,本申请实施例公开的集成电路仍然能够实现管脚功能的切换,并实现对处理器的调试。Moreover, in the embodiment of the present application, when the processor hangs up, the switching circuit and the control circuit can still perform corresponding operations, and the debugging interface switching sequence stored in the storage area will not be affected by the processor hang up. In this case, even if the processor hangs up, the control circuit can still obtain the debugging interface switching sequence, and generate the corresponding debugging interface switching signal according to the debugging interface switching sequence, so that the switching circuit can switch the debugging interface according to the debugging interface switching signal. The module is connected to the first pin. Therefore, even if the processor hangs up, the integrated circuit disclosed in the embodiments of the present application can still switch pin functions and implement debugging of the processor.
另外,当处理器挂死时,还可以由外部设备产生调试接口切换序列。这种情况下,在本申请实施例中,该控制电路400耦合至该第一管脚200,该控制电路还用于监测该第一管脚200上传输的数据。In addition, when the processor hangs up, an external device can also generate a debugging interface switching sequence. In this case, in the embodiment of the present application, the control circuit 400 is coupled to the first pin 200, and the control circuit is also used to monitor the data transmitted on the first pin 200.
在该处理器挂死的情况下,该第一管脚200接收外部设备发送的该调试接口切换序列。When the processor hangs up, the first pin 200 receives the debugging interface switching sequence sent by the external device.
该控制电路400具体用于:The control circuit 400 is specifically used for:
在监测到该第一管脚200接收的该调试接口切换序列后,根据该调试接口切换序列生成该调试接口切换信号;After monitoring the debugging interface switching sequence received by the first pin 200, generate the debugging interface switching signal according to the debugging interface switching sequence;
将该调试接口切换信号发送至该切换电路300,以使该切换电路300根据该调试接口切换信号将该调试接口模块与该第一管脚200相连接。The debugging interface switching signal is sent to the switching circuit 300, so that the switching circuit 300 connects the debugging interface module to the first pin 200 according to the debugging interface switching signal.
在本申请实施例中,调试接口切换序列是外部设备发送给第一管脚的,该外部设备可以是个人计算机(personal computer,PC)工具等,在处理器挂死之后,通过外部设备发送调试接口切换序列给第一管脚,控制电路在监测到第一管脚接收到调试接口切换序列之后,生成切换信号从而控制切换电路将第一管脚复用为调试接口,从而可以通过第一接口接收调试信号实现对处理器的调试,使处理器恢复正常。In the embodiment of this application, the debugging interface switching sequence is sent to the first pin by the external device. The external device may be a personal computer (PC) tool. After the processor hangs up, the debugging is sent through the external device. The interface switching sequence is given to the first pin. After monitoring that the first pin receives the debugging interface switching sequence, the control circuit generates a switching signal to control the switching circuit to multiplex the first pin as a debugging interface, so that the first interface can be used Receive the debugging signal to realize the debugging to the processor, make the processor return to normal.
本申请实施例中,由于该控制电路400耦合至该第一管脚200,因此,该控制电路400能够监测到第一管脚200所接收到的数据。这种情况下,当该控制电路400监测到该第一管脚200上传输的数据为调试接口切换序列时,则生成该调试接口切换序列对应的调试接口切换信号,并将该调试接口切换信号发送至该切换电路300。该切换电路300在接收到该调试接口切换信号之后,基于该调试接口切换信号,将该调试接口模块与该第一管脚相连接,从而使该调试接口模块与该第一管脚之间形成通路,以便该该调试接口模块通过该第一管脚接收芯片外部的调试设备传输的调试信号,通过该调试信号完成调试。In the embodiment of the present application, since the control circuit 400 is coupled to the first pin 200, the control circuit 400 can monitor the data received by the first pin 200. In this case, when the control circuit 400 detects that the data transmitted on the first pin 200 is a debugging interface switching sequence, it generates a debugging interface switching signal corresponding to the debugging interface switching sequence, and sets the debugging interface switching signal Send to the switching circuit 300. After the switching circuit 300 receives the debugging interface switching signal, based on the debugging interface switching signal, the debugging interface module is connected to the first pin, so that a connection between the debugging interface module and the first pin is formed. Path, so that the debugging interface module receives the debugging signal transmitted by the debugging device outside the chip through the first pin, and the debugging is completed through the debugging signal.
在本申请实施例公开的具有接口复用功能的集成电路中,该切换电路300和该控制电路400均为独立于处理器的逻辑电路,当处理器挂死时,该切换电路300和该控制电路400均能够执行自身的操作。这种情况下,可通过外部设备向第一管脚200发送调试接口切换序列,该控制电路400在监测到该第一管脚中的调试接口切换序列之后,再生成相应的调试接口切换信号,并将该调试接口切换信号传输至切换电路,切换电路再接收到该调试接口切换信号之后,再将该调试接口模块与该第一管脚相连接。In the integrated circuit with interface multiplexing function disclosed in the embodiment of the present application, the switching circuit 300 and the control circuit 400 are both logic circuits independent of the processor. When the processor hangs up, the switching circuit 300 and the control circuit The circuits 400 can perform their own operations. In this case, the debugging interface switching sequence can be sent to the first pin 200 through the external device, and the control circuit 400 generates the corresponding debugging interface switching signal after monitoring the debugging interface switching sequence in the first pin. The debugging interface switching signal is transmitted to the switching circuit, and after the switching circuit receives the debugging interface switching signal, the debugging interface module is connected to the first pin.
也就是说,即使处理器挂死,本申请实施例公开的具有接口复用功能的集成电路也能够对第一管脚复用的功能进行切换,以及完成对处理器的调试。That is to say, even if the processor hangs up, the integrated circuit with the interface multiplexing function disclosed in the embodiment of the present application can switch the multiplexing function of the first pin and complete the debugging of the processor.
为了明确本申请实施例中,控制电路根据预设切换数据生成相应的切换信号的技术特征,以下公开一个示例。In order to clarify the technical characteristics of the control circuit generating the corresponding switching signal according to the preset switching data in the embodiment of the present application, an example is disclosed below.
在该示例中,设定在集成电路内设置有三个功能模块,分别为UART控制器、I2C控制器和JTAG接口模块。为了实现管脚功能的切换,可设定以下四种预设切换数据:In this example, three functional modules are set in the integrated circuit, namely, the UART controller, the I2C controller and the JTAG interface module. In order to realize the switching of pin functions, the following four preset switching data can be set:
Seq1:0xdeadbeecdeadbeecdeadbeec;Seq1:0xdeadbeecdeadbeecdeadbeec;
Seq2:0xdeadbeeddeadbeeddeadbeed;Seq2:0xdeadbeeddeadbeeddeadbeed;
Seq3:0xdeadbeefdeadbeefdeadbeef;Seq3:0xdeadbeefdeadbeefdeadbeef;
Seq4:0xdeadbeeedeadbeeedeadbeee。Seq4:0xdeadbeeedeadbeeedeadbeee.
其中,通过各种预设切换数据,进行切换的动作如图3所示。Among them, the action of switching through various preset switching data is shown in Figure 3.
这种情况下,如果当前管脚功能为UART功能,需要将管脚功能切换为JTAG功能(即当前切换电路与UART控制器相连接,需要通过切换,使切换电路与JTAG模块连接),芯片外部设备或芯片内处理器等可生成数据序列Seq1,该数据序列Seq1即为一种预设切换数据,然后将该预设切换数据传输至第一管脚,控制电路在监测到该切换数据之后,会产生相应的切换信号,以便切换电路与JTAG模块相连接,实现管脚功能的切换。In this case, if the current pin function is UART function, the pin function needs to be switched to JTAG function (that is, the current switching circuit is connected to the UART controller, and the switching circuit needs to be switched to connect the switching circuit to the JTAG module). The device or the on-chip processor can generate a data sequence Seq1, which is a kind of preset switching data, and then transmit the preset switching data to the first pin. After the control circuit monitors the switching data, Corresponding switching signals are generated so that the switching circuit can be connected with the JTAG module to realize the switching of the pin functions.
如果当前管脚功能为JTAG功能,需要将管脚功能切换为UART功能(即当前切换电路与JTAG模块相连接,需要通过切换,使切换电路与UART控制器连接),芯片外部设备或芯片内处理器等可生成数据序列Seq2,该数据序列Seq2即为一种预设 切换数据,然后将该预设切换数据传输至第一管脚,控制电路在监测到该预设切换数据之后,会产生相应的切换信号,以便切换电路与UART控制器相连接,实现管脚功能的切换。If the current pin function is JTAG function, the pin function needs to be switched to UART function (that is, the current switching circuit is connected to the JTAG module, and the switching circuit needs to be switched to connect the switching circuit to the UART controller), chip external device or internal processing The device, etc. can generate a data sequence Seq2, which is a kind of preset switching data, and then transmit the preset switching data to the first pin. After the control circuit monitors the preset switching data, it will generate a corresponding The switching signal is connected to the UART controller to realize the switching of the pin function.
如果当前管脚功能为UART功能,需要将管脚功能切换为I2C功能(即当前切换电路与UART控制器相连接,需要通过切换,使切换电路与I2C控制器连接),芯片外部设备或芯片内处理器等可生成数据序列Seq3,该数据序列Seq3即为一种预设切换数据,然后将该预设切换数据传输至第一管脚,控制电路在监测到该切换数据之后,会产生相应的切换信号,以便切换电路与I2C控制器相连接,实现管脚功能的切换。If the current pin function is UART function, the pin function needs to be switched to I2C function (that is, the current switching circuit is connected to the UART controller, and the switching circuit needs to be switched to connect the switching circuit to the I2C controller), chip external device or in the chip The processor, etc. can generate a data sequence Seq3, which is a kind of preset switching data, and then transmit the preset switching data to the first pin. After the control circuit monitors the switching data, it will generate a corresponding Switch the signal so that the switch circuit is connected with the I2C controller to realize the switch of the pin function.
如果当前管脚功能为I2C功能,需要将管脚功能切换为UART功能(即当前切换电路与I2C控制器相连接,需要通过切换,使切换电路与UART控制器连接),芯片外部设备或芯片内处理器等可生成数据序列Seq4,该数据序列Seq4即为一种预设切换数据,然后将该预设切换数据传输至第一管脚,控制电路在监测到该切换数据之后,会产生相应的切换信号,以便切换电路与UART控制器相连接,实现管脚功能的切换。If the current pin function is the I2C function, the pin function needs to be switched to the UART function (that is, the current switching circuit is connected to the I2C controller, and the switching circuit needs to be switched to connect the switching circuit to the UART controller), chip external device or inside the chip The processor, etc. can generate a data sequence Seq4, which is a kind of preset switching data, and then transmit the preset switching data to the first pin. After the control circuit monitors the switching data, it will generate a corresponding Switch the signal so that the switch circuit is connected with the UART controller to realize the switch of the pin function.
另外,如果当前管脚功能为JTAG功能,需要将管脚功能切换为I2C功能(即当前切换电路与JTAG模块相连接,需要通过切换,使切换电路与I2C控制器连接),芯片外部设备或芯片内处理器等可生成数据序列Seq2和Seq3,数据序列Seq2和Seq3均为预设切换数据,然后将预设数据序列Seq2和Seq3依次传输至第一管脚,控制电路在监测到预设数据序列Seq2之后,会生成相应的切换信号,以便切换电路与UART控制器相连接,然后,控制电路在监测到预设数据序列Seq3之后,再次生成相应的切换信号,以便切换电路从与UART控制器相连接,切换至与I2C控制器相连接,实现管脚功能的切换。In addition, if the current pin function is the JTAG function, the pin function needs to be switched to the I2C function (that is, the current switching circuit is connected to the JTAG module, and the switching circuit needs to be switched to connect the switching circuit to the I2C controller), chip external device or chip The internal processor, etc. can generate data sequences Seq2 and Seq3. The data sequences Seq2 and Seq3 are preset switching data, and then the preset data sequences Seq2 and Seq3 are sequentially transmitted to the first pin. The control circuit is monitoring the preset data sequence After Seq2, a corresponding switching signal is generated to connect the switching circuit with the UART controller. Then, after the control circuit monitors the preset data sequence Seq3, the corresponding switching signal is generated again, so that the switching circuit can communicate with the UART controller. Connect, switch to connect with I2C controller, realize the switch of pin function.
如果当前管脚功能为I2C功能,需要将管脚功能切换为JTAG功能(即当前切换电路与I2C控制器相连接,需要通过切换,使切换电路与JTAG模块连接),芯片外部设备或芯片内处理器等可生成数据序列Seq4和Seq1,数据序列Seq4和Seq1均为预设切换数据,然后将预设数据序列Seq4和Seq1依次传输至第一管脚,控制电路在监测到预设数据序列Seq4之后,会生成相应的切换信号,以便切换电路与UART控制器相连接,然后,控制电路在监测到预设数据序列Seq1之后,再次生成相应的切换信号,以便切换电路从与UART控制器相连接,切换至与JTAG模块相连接,实现管脚功能的切换。If the current pin function is the I2C function, the pin function needs to be switched to the JTAG function (that is, the current switching circuit is connected to the I2C controller, and the switching circuit needs to be switched to connect the switching circuit to the JTAG module), chip external equipment or in-chip processing The device can generate data sequences Seq4 and Seq1, the data sequences Seq4 and Seq1 are preset switching data, and then the preset data sequences Seq4 and Seq1 are transmitted to the first pin in turn, and the control circuit monitors the preset data sequence Seq4. , Will generate the corresponding switching signal to connect the switching circuit to the UART controller. Then, after the control circuit monitors the preset data sequence Seq1, it will generate the corresponding switching signal again so that the switching circuit can connect to the UART controller. Switch to the connection with the JTAG module to realize the switch of the pin function.
另外,在实际应用中,还可将其他形式的数据作为预设切换数据,本申请对此不做限定。In addition, in actual applications, other forms of data can also be used as preset switching data, which is not limited in this application.
其中,所述外部设备可为电脑等终端设备,该外部设备可通过数据线与第一管脚相连接,在生成预设切换数据之后,该外部设备再通过数据线将所述预设切换数据传输至所述第一管脚,以便所述控制电路能够监测到所述第一管脚中的预设切换数据。Wherein, the external device may be a terminal device such as a computer, and the external device may be connected to the first pin through a data line. After the preset switching data is generated, the external device then transmits the preset switching data through the data line. It is transmitted to the first pin so that the control circuit can monitor the preset switching data in the first pin.
在本申请实施例中,控制电路为一种逻辑电路。进一步的,控制电路通常为串行控制电路。In the embodiment of the present application, the control circuit is a logic circuit. Further, the control circuit is usually a serial control circuit.
另外,所述控制电路可通过通过多种形式实现。在其中一种可行的形式中,所述控制电路包括:In addition, the control circuit can be implemented in various forms. In one of the feasible forms, the control circuit includes:
状态机,所述状态机的个数不少于所述预设切换数据的种类数,一种预设切换数 据对应一种切换方式。应当理解,本申请实施例中的状态机通常为硬件逻辑,可选的,状态机也可以由软件实现。The number of state machines is not less than the number of types of the preset switching data, and one type of preset switching data corresponds to a switching method. It should be understood that the state machine in the embodiments of the present application is usually hardware logic, and optionally, the state machine may also be implemented by software.
其中,所述第一管脚与所述状态机相耦合;Wherein, the first pin is coupled with the state machine;
在获取所述预设切换数据之后,所述状态机中的目标状态机生成与所述预设切换数据对应的所述切换信号,其中,所述目标状态机为与所述预设切换数据对应的状态机。After acquiring the preset switching data, the target state machine in the state machine generates the switching signal corresponding to the preset switching data, wherein the target state machine is corresponding to the preset switching data State machine.
在本申请实施例中,所述预设切换数据包括多种类型,其中,每一种类型的预设切换数据对应一种切换方式,例如,当所述预设切换数据为:In the embodiment of the present application, the preset switching data includes multiple types, wherein each type of preset switching data corresponds to a switching method, for example, when the preset switching data is:
Seq1:0xdeadbeecdeadbeecdeadbeec;Seq1:0xdeadbeecdeadbeecdeadbeec;
Seq2:0xdeadbeeddeadbeeddeadbeed;Seq2:0xdeadbeeddeadbeeddeadbeed;
Seq3:0xdeadbeefdeadbeefdeadbeef;Seq3:0xdeadbeefdeadbeefdeadbeef;
Seq4:0xdeadbeeedeadbeeedeadbeee。Seq4:0xdeadbeeedeadbeeedeadbeee.
上述每一种数据对应一种切换方式时,则所述预设切换数据为四种。When each of the above-mentioned data corresponds to one switching mode, the preset switching data is four types.
另外,所述状态机的个数不少于所述预设切换数据的种类数,则针对每一种类型的预设切换数据,都至少存在一个状态机,能够根据该预设切换数据生成相应的切换信号。In addition, the number of the state machines is not less than the number of types of the preset switching data, and for each type of preset switching data, there is at least one state machine, and the corresponding state machine can be generated according to the preset switching data. Switching signal.
具体的,在其中一种可行的示例中,参见图4所示的结构示意图,所述控制电路包括:至少m个第一状态机210和一个第二状态机220,m为所述预设切换数据的类型的数量,所述第一状态机210的一端与第一管脚相连接,另一端与所述第二状态机220相连接。另外,所述第二状态机220的一端与第一状态机210相连接,另一端与切换电路相连接。也就是说,本申请实施中,控制电路中所包括的状态机分为两种类型,分别为第一状态机和第二状态机。Specifically, in one of the feasible examples, referring to the schematic structural diagram shown in FIG. 4, the control circuit includes: at least m first state machines 210 and one second state machine 220, where m is the preset switch For the number of data types, one end of the first state machine 210 is connected to the first pin, and the other end is connected to the second state machine 220. In addition, one end of the second state machine 220 is connected to the first state machine 210, and the other end is connected to the switching circuit. That is to say, in the implementation of this application, the state machines included in the control circuit are divided into two types, namely the first state machine and the second state machine.
每个第一状态机210分别用于监测其中一种类型的预设切换数据,这种情况下,所述至少m个第一状态机能够实现对m组预设切换数据的监测。Each first state machine 210 is used to monitor one type of preset switching data. In this case, the at least m first state machines can monitor m sets of preset switching data.
在本申请实施例中,可将用于对第一目标数据进行监测的第一状态机称为第一目标状态机。其中,所述第一目标数据为任意一种预设切换数据。In the embodiment of the present application, the first state machine used for monitoring the first target data may be referred to as the first target state machine. Wherein, the first target data is any kind of preset switching data.
这种情况下,第一目标状态机中包括n个串联的状态节点,所述第一目标状态机为用于对第一目标数据进行监测的第一状态机,n为所述第一目标数据中包含的字节的数量。In this case, the first target state machine includes n state nodes connected in series, the first target state machine is a first state machine for monitoring the first target data, and n is the first target data The number of bytes contained in.
其中,所述第一目标数据中的第r个字节,满足所述第一目标状态机中第r个状态节点的状态转移需求,并且,在所述第一目标状态机中最后一个状态节点确定所述第一目标数据中最后一个字节满足状态转移需求之后,所述最后一个状态节点向所述第二状态机输出触发信号,r为任意一个不大于n的正整数Wherein, the r-th byte in the first target data satisfies the state transition requirement of the r-th state node in the first target state machine, and the last state node in the first target state machine After determining that the last byte in the first target data satisfies the state transition requirement, the last state node outputs a trigger signal to the second state machine, and r is any positive integer not greater than n
所述第二状态机在接收到所述第一目标状态机的触发信号之后,生成所述第一目标数据对应的切换信号,并将所述切换信号传输至所述切换电路。After receiving the trigger signal of the first target state machine, the second state machine generates a switching signal corresponding to the first target data, and transmits the switching signal to the switching circuit.
也就是说,第一目标数据中包含n个字节,而第一目标状态机中包括n个串联的状态节点,每一个状态节点对其相对应的字节进行监测。状态节点通常默认处于空闲状态,当向串联的各个状态节点传输数据时,其中某一个状态节点接收到满足状态转移需求的字节之后,该状态节点会发生状态转移。如果该状态节点并非第一目标状态 机中最后一个状态节点,在发生状态转移时,该状态节点会将该数据中剩余的字节向后续的状态节点传递,以便后续的状态节点继续监测剩余的字节;另外,如果该状态节点为第一目标状态机中最后一个状态节点,该状态节点确定数据中最后一个字节满足自身的状态转移需求之后,会向第二状态机输出触发信号,以便所述第二状态机基于所述触发信号生成相应的切换信号。That is, the first target data includes n bytes, and the first target state machine includes n serially connected state nodes, and each state node monitors its corresponding byte. The state node is usually idle by default. When transmitting data to each state node in the series, after a certain state node receives a byte that meets the state transition requirement, the state node will undergo a state transition. If the state node is not the last state node in the first target state machine, when a state transition occurs, the state node will transfer the remaining bytes in the data to the subsequent state nodes so that the subsequent state nodes can continue to monitor the remaining state nodes. Byte; in addition, if the state node is the last state node in the first target state machine, after the state node determines that the last byte in the data meets its own state transition requirements, it will output a trigger signal to the second state machine for The second state machine generates a corresponding switching signal based on the trigger signal.
或者,在进行监测的过程中,如果第一状态机中某一个状态节点监测到数据中相应的字节不满足自身的状态转移需求时,该状态节点仍然处于空闲状态,并且,不再将数据中剩余的字节向后续的状态节点传递,也就是说,第一状态机结束对该数据的监测。这种情况下,所述第一状态机并非所述数据对应的第一目标状态机。Or, during the monitoring process, if a state node in the first state machine detects that the corresponding byte in the data does not meet its own state transition requirements, the state node is still in the idle state, and no more data The remaining bytes in the data are transferred to the subsequent state node, that is, the first state machine ends the monitoring of the data. In this case, the first state machine is not the first target state machine corresponding to the data.
例如,设定第一管脚接收到的某一个数据为“abc”,包含3个字节,当第一状态节点中的第一个状态节点接收到该数据之后,监测字节“a”是否满足自身的状态转移需求,若不满足,则第一个状态节点不发生状态转移,该第一状态机结束对该数据的监测,若满足,则第一状态节点发生状态转移,并将剩余的节点“bc”传递到第二个状态节点;第二个状态节点获取剩余的节点“bc”之后,监测字节“b”是否满足自身的状态转移需求,若不满足,则第二个状态节点不发生状态转移,该第一状态机结束对该数据的监测,若满足,则第二状态节点发生状态转移,并将剩余的节点“c”传递到第三个状态节点;第三个状态节点获取剩余的节点“c”之后,监测字节“c”是否满足自身的状态转移需求,若不满足,则第三个状态节点不发生状态转移,该第一状态机结束对该数据的监测,若满足,则第三个状态节点发生状态转移,而且,由于第三个状态节点为第一状态机中最后一个状态节点,所述第三个状态节点会向第二状态机输出触发信号,以便所述第二状态机根据该数据生成相应的切换信号,并且,这种情况下,可确定该第一状态机为该数据对应的第一目标状态机。For example, set a certain data received by the first pin as "abc", which contains 3 bytes. After the first state node in the first state node receives the data, monitor whether the byte "a" is Meet its own state transition requirements. If not, the first state node does not undergo state transition. The first state machine ends the monitoring of the data. If it is met, the first state node undergoes state transition, and the remaining The node "bc" is passed to the second state node; after the second state node obtains the remaining node "bc", it monitors whether the byte "b" meets its own state transition requirements, if not, the second state node No state transition occurs, the first state machine ends the monitoring of the data, if it is satisfied, the second state node undergoes a state transition, and the remaining node "c" is transferred to the third state node; the third state node After obtaining the remaining node "c", monitor whether the byte "c" meets its own state transition requirements. If not, the third state node does not undergo state transition, and the first state machine ends the monitoring of the data. If it is satisfied, the third state node undergoes a state transition, and since the third state node is the last state node in the first state machine, the third state node will output a trigger signal to the second state machine so that The second state machine generates a corresponding switching signal according to the data, and in this case, it can be determined that the first state machine is the first target state machine corresponding to the data.
另外,所述第二状态机在接收到所述第一目标状态机的触发信号之后,生成所述第一目标数据对应的切换信号,该切换信号传输至切换电路之后,切换电路能够根据该切换信号完成相应的管脚功能的切换。In addition, the second state machine generates a switching signal corresponding to the first target data after receiving the trigger signal of the first target state machine. After the switching signal is transmitted to the switching circuit, the switching circuit can switch according to the The signal completes the switch of the corresponding pin function.
在另一种可行的形式中,参见图5所示的结构示意图,所述控制电路包括:至少m个第三状态机230和一个线与逻辑器件240,m为所述数据序列的类型的数量,所述第三状态机230的一端与第一管脚相连接,另一端与所述线与逻辑器件240相连接。也就是说,本申请实施中,控制电路中所包括的状态机为第三状态机。In another feasible form, referring to the structural diagram shown in FIG. 5, the control circuit includes: at least m third state machines 230 and one line-and logic device 240, where m is the number of types of the data sequence One end of the third state machine 230 is connected to the first pin, and the other end is connected to the line and logic device 240. That is to say, in the implementation of this application, the state machine included in the control circuit is the third state machine.
另外,所述线与逻辑器件240的一端与第三状态机230相连接,另一端与切换电路相连接。其中,所述线与逻辑器件240可以为集电极开路门或三态门等,本申请实施例对此不做限定。In addition, one end of the line and logic device 240 is connected to the third state machine 230, and the other end is connected to the switching circuit. Wherein, the line and logic device 240 may be an open collector gate or a tri-state gate, etc., which is not limited in the embodiment of the present application.
每个第三状态机230分别用于监测其中一种类型的预设切换数据,这种情况下,所述至少m个第三状态机230能够实现对m组预设切换数据的监测。Each third state machine 230 is used to monitor one type of preset switching data. In this case, the at least m third state machines 230 can monitor m sets of preset switching data.
在本申请实施例中,可将用于对第三目标数据进行监测的第三状态机称为第三目标状态机。其中,所述第三目标数据为任意一个预设切换数据。In the embodiment of the present application, the third state machine for monitoring the third target data may be referred to as the third target state machine. Wherein, the third target data is any preset switching data.
这种情况下,第三目标状态机中包括s个串联的状态节点,所述第三目标状态机为用于对第三目标数据进行监测的第三状态机,s为所述第三目标数据中包含的字节的数量。In this case, the third target state machine includes s state nodes connected in series, the third target state machine is a third state machine for monitoring the third target data, and s is the third target data The number of bytes contained in.
其中,所述第三目标数据中的第t个字节,满足所述第三目标状态机中第t个状态节点的状态转移需求,并且,在所述第三目标状态机中最后一个状态节点确定所述第三目标数据中最后一个字节满足状态状态转移需求之后,向所述线与逻辑器件输出所述第三目标数据对应的切换信号,t为任意一个不大于s的正整数。Wherein, the t-th byte in the third target data satisfies the state transition requirement of the t-th state node in the third target state machine, and the last state node in the third target state machine After determining that the last byte in the third target data meets the state transition requirement, output a switching signal corresponding to the third target data to the line and logic device, and t is any positive integer not greater than s.
所述线与逻辑器件在接收到所述切换信号之后,向所述切换电路输出所述切换信号。After receiving the switching signal, the line-and logic device outputs the switching signal to the switching circuit.
也就是说,第三目标数据中包含s个字节,而第三目标状态机中包括s个串联的状态节点,每一个状态节点对其相对应的字节进行监测。各个状态节点通常默认处于空闲状态,当向串联的各个状态节点传输数据时,其中某一个状态节点接收到满足状态转移需求的字节之后,该状态节点会发生状态转移。如果该状态节点并非第三目标状态机中最后一个状态节点,在发生状态转移时,该状态节点会将该数据中剩余的字节向后续的状态节点传递,以便后续的状态节点继续监测剩余的节点;另外,如果该状态节点为第三目标状态机中最后一个状态节点,该状态节点确定所述数据中最后一个字节满足自身的状态转移需求之后,会向线与逻辑器件输出所述第三目标数据对应的切换信号,以使所述线与逻辑器件获取到所述切换信号。That is, the third target data includes s bytes, and the third target state machine includes s serially connected state nodes, and each state node monitors its corresponding byte. Each state node is usually in an idle state by default. When data is transmitted to each state node in the series, after a certain state node receives a byte that meets the state transition requirement, the state node will undergo a state transition. If the state node is not the last state node in the third target state machine, when a state transition occurs, the state node will transfer the remaining bytes in the data to the subsequent state nodes so that the subsequent state nodes can continue to monitor the remaining state nodes. Node; In addition, if the state node is the last state node in the third target state machine, after the state node determines that the last byte in the data meets its own state transition requirements, it will output the first to the line and logic device Three switching signals corresponding to the target data, so that the line and logic device can obtain the switching signal.
或者,在进行监测的过程中,如果第三状态机中某一个状态节点监测到数据中相应的字节不满足自身的状态转移需求时,该状态节点仍然处于空闲状态,并且,不再将数据中剩余的字节向后续的状态节点传递,也就是说,第三状态机结束对该数据的监测。这种情况下,所述第三状态机并非所述数据序列对应的第三目标状态机。Or, during the monitoring process, if a certain state node in the third state machine detects that the corresponding byte in the data does not meet its own state transition requirements, the state node is still in the idle state, and no more data The remaining bytes in the data are transferred to the subsequent state node, that is, the third state machine ends the monitoring of the data. In this case, the third state machine is not the third target state machine corresponding to the data sequence.
例如,设定某一个数据序列为“def”,包含3个字节,当第三状态节点中的第一个状态节点接收到该数据之后,监测字节“d”是否满足自身的状态转移需求,若不满足,则第一个状态节点不发生状态转移,该第三状态机结束对该数据的监测,若满足,则第一状态节点发生状态转移,并将剩余的节点“ef”传递到第三状态机中的第二个状态节点;第二个状态节点获取剩余的节点“ef”之后,监测字节“e”是否满足自身的状态转移需求,若不满足,则第二个状态节点不发生状态转移,该第三状态机结束对该数据的监测,若满足,则第二个状态节点发生状态转移,并将剩余的节点“f”传递到第三状态机中的第三个状态节点;第三个状态节点获取剩余的节点“f”之后,监测字节“f”是否满足自身的状态转移需求,若不满足,则第三个状态节点不发生状态转移,该第一状态机结束对该数据的监测,若满足,则第三个状态节点发生状态转移,而且,由于第三个状态节点为第三状态机中最后一个状态节点,所述第三个状态节点会向线与逻辑器件输出相应的切换信号,并且,这种情况下,可确定该第三状态机为该数据对应的第三目标状态机。For example, set a certain data sequence to "def", containing 3 bytes. After the first state node in the third state node receives the data, it monitors whether the byte "d" meets its own state transition requirements If it is not satisfied, the first state node does not undergo a state transition, and the third state machine ends the monitoring of the data. If it is satisfied, the first state node undergoes a state transition and passes the remaining node "ef" to The second state node in the third state machine; after the second state node obtains the remaining node "ef", it monitors whether the byte "e" meets its own state transition requirements, if not, then the second state node No state transition occurs, the third state machine ends the monitoring of the data, if it is satisfied, the second state node undergoes a state transition, and the remaining node "f" is transferred to the third state in the third state machine Node; after the third state node obtains the remaining node "f", it monitors whether the byte "f" meets its own state transition requirements, if not, the third state node does not undergo state transition, the first state machine End the monitoring of the data. If it is satisfied, the third state node will undergo a state transition. Moreover, since the third state node is the last state node in the third state machine, the third state node will go to the line and The logic device outputs a corresponding switching signal, and in this case, it can be determined that the third state machine is the third target state machine corresponding to the data.
另外,所述线与逻辑器件在接收到所述第三目标状态机的切换信号之后,将该切换信号传输至切换电路,切换电路再根据该切换信号完成相应的管脚功能的切换。In addition, after receiving the switching signal of the third target state machine, the line and logic device transmits the switching signal to the switching circuit, and the switching circuit completes the switching of the corresponding pin function according to the switching signal.
或者,在另一种可行的形式中,参见图6所示的结构示意图,所述控制电路包括:存储器250、比较器260和缓存器270。Or, in another feasible form, referring to the structural schematic diagram shown in FIG. 6, the control circuit includes: a memory 250, a comparator 260 and a buffer 270.
其中,所述存储器250与所述缓存器270均与所述比较器260相耦合,所述比较器260与所述切换电路相耦合,所述缓存器270与所述第一管脚相耦合;Wherein, the memory 250 and the buffer 270 are both coupled with the comparator 260, the comparator 260 is coupled with the switching circuit, and the buffer 270 is coupled with the first pin;
所述存储器250用于存储预设切换数据;The memory 250 is used to store preset switching data;
所述缓存器270用于缓存所述第一管脚接收到的数据;The buffer 270 is used to buffer the data received by the first pin;
所述比较器260用于在所述缓存器中存储的数据与所述存储器中存储的预设切换数据相匹配时,生成与所述预设切换数据相对应的所述切换信号。The comparator 260 is configured to generate the switching signal corresponding to the preset switching data when the data stored in the buffer matches the preset switching data stored in the memory.
在本申请实施例中,控制电路包括存储器250、比较器260和缓存器270。其中,缓存器270与第一管脚相连接。所述缓存器270可获取第一管脚接收到的数据并缓存。另外,在所述存储器250中,存储预先设置的各种类型的切换数据。所述比较器260将所述缓存器270中缓存的数据,与所述存储器250中存储的切换数据进行匹配,若二者相匹配,则表明第一管脚接收到的数据可用于本次的管脚切换,这种情况下,比较器260生成相应的切换信号,并将所述切换信号传输至切换电路,以便所述切换电路根据该切换信号,完成相应的管脚切换。In the embodiment of the present application, the control circuit includes a memory 250, a comparator 260, and a buffer 270. Among them, the buffer 270 is connected to the first pin. The buffer 270 can obtain and buffer the data received by the first pin. In addition, in the memory 250, various types of switching data set in advance are stored. The comparator 260 matches the data buffered in the buffer 270 with the switching data stored in the memory 250. If the two match, it indicates that the data received by the first pin can be used for this time. Pin switching, in this case, the comparator 260 generates a corresponding switching signal and transmits the switching signal to the switching circuit, so that the switching circuit completes the corresponding pin switching according to the switching signal.
其中,该比较器260用于检测缓存器中缓存的数据与存储器中存储的切换数据是否匹配。在本申请实施例中,可设定当缓存器中缓存的数据与存储器中存储的切换数据相同时,这两种数据相匹配,或者,还可以设定缓存器中缓存的数据与存储器中存储的切换数据的相似程度大于预设阈值时,这两种数据相匹配。Wherein, the comparator 260 is used to detect whether the data buffered in the buffer matches the switching data stored in the memory. In the embodiment of the present application, it can be set that when the data cached in the buffer is the same as the switching data stored in the memory, the two kinds of data match, or the data cached in the buffer can be set to match the data stored in the memory. When the similarity of the switching data is greater than the preset threshold, the two data match.
另外,在本申请实施例公开的具有接口复用功能的集成电路中,In addition, in the integrated circuit with interface multiplexing function disclosed in the embodiments of the present application,
该切换电路包括:多路复用器;The switching circuit includes: a multiplexer;
该多路复用器的输入端与该第一管脚相耦合;The input terminal of the multiplexer is coupled with the first pin;
在接收到该切换信号之后,该多路复用器的输出端与该目标功能模块相连接。After receiving the switching signal, the output terminal of the multiplexer is connected to the target function module.
进一步的,在本申请实施例中,当该多路复用器通过另一端与该切换信号相对应的功能模块相连接,并且该第一管脚与该功能模块对应的外部设备相连接时,该功能模块在该外部设备的作用下,执行相应的功能操作。Further, in the embodiment of the present application, when the multiplexer is connected to the functional module corresponding to the switching signal through the other end, and the first pin is connected to the external device corresponding to the functional module, The function module performs corresponding function operations under the action of the external device.
例如,当该切换电路的另一端与JTAG模块相连接,并且第一管脚与芯片外部的JTAG设备相连接时,芯片内部的JTAG调试接口、切换电路、第一管脚与芯片外部的JTAG调试设备形成通路,因此JTAG调试设备可以对芯片的处理器进行JTAG调试。For example, when the other end of the switching circuit is connected to the JTAG module, and the first pin is connected to the JTAG device outside the chip, the JTAG debugging interface, the switching circuit, and the first pin inside the chip are connected to the JTAG debugging outside the chip. The device forms a path, so the JTAG debugging device can perform JTAG debugging on the chip's processor.
其中,该调试接口模块为联合测试工作组JTAG调试接口或串行线调试(serial wire debug,SWD)模块,或者,还可以为其他种类的调试接口模块,本申请实施例对此不做限定。Wherein, the debugging interface module is a joint test working group JTAG debugging interface or a serial wire debugging (SWD) module, or may also be other types of debugging interface modules, which are not limited in the embodiment of the present application.
另外,为了满足芯片的其他功能,以及满足使用者的多样化需求,通常在芯片内部设置多种类型的功能模块。该多种功能模块还包括:电路互联总线I2C控制器、通用异步收发传输器UART控制器或串行外设(serial peripheral interface,SPI)接口。In addition, in order to meet other functions of the chip and meet the diverse needs of users, multiple types of functional modules are usually set inside the chip. The multiple functional modules also include: a circuit interconnect bus I2C controller, a universal asynchronous receiver transmitter UART controller, or a serial peripheral interface (SPI) interface.
当然,在芯片内还可以设置其他类型的串行接口模块或芯片调试模块,进一步的,为了使芯片具备多种功能,满足使用者的多样化需求,该芯片内还可以设置其他的功能模块,本申请对此不做限定。Of course, other types of serial interface modules or chip debugging modules can also be set in the chip. Further, in order to make the chip have multiple functions and meet the diverse needs of users, other functional modules can also be set in the chip. This application does not limit this.
相应的,本申请实施例还公开一种管脚切换方法,该方法应用于具有接口复用功能的集成电路,该集成电路包括:多个功能模块、第一管脚、切换电路和控制电路,该多个功能模块通过该集成电路的该第一管脚提供接口功能,以供外部设备访问该集成电路。参见图7所示的工作流程示意图,该方法包括以下步骤:Correspondingly, an embodiment of the present application also discloses a pin switching method, which is applied to an integrated circuit with an interface multiplexing function. The integrated circuit includes a plurality of functional modules, a first pin, a switching circuit, and a control circuit, The multiple functional modules provide interface functions through the first pin of the integrated circuit for external devices to access the integrated circuit. Referring to the schematic diagram of the work flow shown in Figure 7, the method includes the following steps:
步骤S11、该多个功能模块通过该切换电路复用该第一管脚,以使该集成电路通 过该第一管脚与该多个功能模块分别对应的外部设备进行通信;Step S11: The multiple functional modules multiplex the first pin through the switching circuit, so that the integrated circuit communicates with the external devices corresponding to the multiple functional modules through the first pin;
步骤S12、该控制电路控制该切换电路将目标功能模块与该第一管脚相连,该目标功能模块为该多个功能模块中的一个功能模块。Step S12: The control circuit controls the switching circuit to connect the target function module to the first pin, and the target function module is one of the multiple function modules.
通过本申请实施例公开的方法,能够使多个功能模块通过切换电路复用第一管脚,以及通过控制电路对切换电路进行控制,减少了管脚的数量,从而能够减少芯片的成本,以及减小芯片体积。Through the method disclosed in the embodiments of the present application, multiple functional modules can multiplex the first pin through the switch circuit, and the switch circuit can be controlled by the control circuit, thereby reducing the number of pins, thereby reducing the cost of the chip, and Reduce chip size.
进一步的,该控制电路控制该切换电路将目标功能模块与该第一管脚相连,包括:Further, the control circuit controlling the switching circuit to connect the target function module to the first pin includes:
该控制电路根据预设切换数据生成相应的切换信号;The control circuit generates a corresponding switching signal according to the preset switching data;
该控制电路将该切换信号发送至该切换电路,以使该切换电路根据该切换信号,将该目标功能模块与该第一管脚相连接。The control circuit sends the switching signal to the switching circuit, so that the switching circuit connects the target function module to the first pin according to the switching signal.
其中,该预设切换数据用于指示该切换电路的切换方式。Wherein, the preset switching data is used to indicate the switching mode of the switching circuit.
另外,在本申请实施例公开的管脚切换方法中,当该集成电路还包括:处理器,该多种功能模块包括:调试接口模块,该预设切换数据包括:调试接口切换序列;该控制电路控制该切换电路将目标功能模块与该第一管脚相连,包括:In addition, in the pin switching method disclosed in the embodiment of the present application, when the integrated circuit further includes a processor, the various functional modules include: a debugging interface module, and the preset switching data includes: a debugging interface switching sequence; The circuit controlling the switching circuit to connect the target function module to the first pin includes:
在该处理器挂死的情况下,该控制电路根据该调试接口切换序列生成调试接口切换信号;When the processor hangs up, the control circuit generates a debugging interface switching signal according to the debugging interface switching sequence;
该控制电路将该调试接口切换信号发送至该切换电路,以使该切换电路根据该调试接口切换信号将该调试接口模块与该第一管脚相连接。The control circuit sends the debugging interface switching signal to the switching circuit, so that the switching circuit connects the debugging interface module with the first pin according to the debugging interface switching signal.
在本申请实施例中,调试接口切换序列可以预先存储在存储区域中,例如存储在非易失性存储器中,在处理器挂死之后,控制电路可以访问该存储区域,以便获取调试接口切换序列生成切换信号从而控制切换电路将第一管脚复用为调试接口,从而可以通过第一接口接收调试信号实现对处理器的调试,使处理器恢复正常。In the embodiment of the present application, the debugging interface switching sequence may be pre-stored in a storage area, for example, stored in a non-volatile memory. After the processor hangs up, the control circuit can access the storage area to obtain the debugging interface switching sequence. The switching signal is generated to control the switching circuit to multiplex the first pin as a debugging interface, so that the debugging signal can be received through the first interface to realize the debugging of the processor and restore the processor to normal.
进一步的,在本申请实施例公开的管脚切换方法中,该控制电路耦合至该第一管脚,该方法还包括:Further, in the pin switching method disclosed in the embodiment of the present application, the control circuit is coupled to the first pin, and the method further includes:
该控制电路监测该第一管脚上传输的数据;The control circuit monitors the data transmitted on the first pin;
在该处理器挂死的情况下,该第一管脚接收外部设备发送的该调试接口切换序列;When the processor hangs up, the first pin receives the debugging interface switching sequence sent by the external device;
该控制电路控制该切换电路将目标功能模块与该第一管脚相连,包括:The control circuit controls the switching circuit to connect the target function module to the first pin, including:
该控制电路在监测到该第一管脚接收的该调试接口切换序列后,根据该调试接口切换序列生成该调试接口切换信号;The control circuit generates the debugging interface switching signal according to the debugging interface switching sequence after monitoring the debugging interface switching sequence received by the first pin;
该控制电路将该调试接口切换信号发送至该切换电路,以使该切换电路根据该调试接口切换信号将该调试接口模块与该第一管脚相连接。The control circuit sends the debugging interface switching signal to the switching circuit, so that the switching circuit connects the debugging interface module with the first pin according to the debugging interface switching signal.
在本申请实施例中,调试接口切换序列是外部设备发送给第一管脚的,该外部设备可以是个人计算机(personal computer,PC)工具等,在处理器挂死之后,通过外部设备发送调试接口切换序列给第一管脚,控制电路在监测到第一管脚接收到调试接口切换序列之后,生成切换信号从而控制切换电路将第一管脚复用为调试接口,从而可以通过第一接口接收调试信号实现对处理器的调试,使处理器恢复正常。In the embodiment of this application, the debugging interface switching sequence is sent to the first pin by the external device. The external device may be a personal computer (PC) tool. After the processor hangs up, the debugging is sent through the external device. The interface switching sequence is given to the first pin. After monitoring that the first pin receives the debugging interface switching sequence, the control circuit generates a switching signal to control the switching circuit to multiplex the first pin as a debugging interface, so that the first interface can be used Receive the debugging signal to realize the debugging to the processor, make the processor return to normal.
进一步的,该控制电路根据预设切换数据生成相应的切换信号,包括:Further, the control circuit generates a corresponding switching signal according to the preset switching data, including:
该控制电路中的目标状态机生成与该预设切换数据对应的该切换信号,其中,该控制电路包括不少于该预设切换数据的种类数的状态机,该目标状态机为与该预设切 换数据对应的状态机。The target state machine in the control circuit generates the switching signal corresponding to the preset switching data, wherein the control circuit includes state machines no less than the number of types of the preset switching data, and the target state machine is related to the preset switching data. Set the state machine corresponding to the switching data.
在一种可行的实现方式中,该调试接口模块为联合测试工作组JTAG调试接口或串行线调试SWD接口。In a feasible implementation manner, the debugging interface module is a joint test working group JTAG debugging interface or a serial wire debugging SWD interface.
在一种可行的实现方式中,该多种功能模块还包括:In a feasible implementation manner, the multiple functional modules further include:
电路互联总线I2C控制器、通用异步收发传输器UART控制器或串行外设SPI接口。Circuit interconnection bus I2C controller, universal asynchronous receiver transmitter UART controller or serial peripheral SPI interface.
应理解,在本申请的各种实施例中,各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that, in the various embodiments of the present application, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not correspond to the difference in the embodiments of the present application. The implementation process constitutes any limitation.
本说明书的各个部分均采用递进的方式进行描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点介绍的都是与其他实施例不同之处。尤其,对于装置和系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例部分的说明即可。Each part of this specification is described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiments.
尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。Although the preferred embodiments of the present application have been described, those skilled in the art can make additional changes and modifications to these embodiments once they learn the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
本领域的技术人员可以清楚地了解到本发明实施例中的技术可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本发明实施例中的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例或者实施例的某些部分所述的方法。Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solutions in the embodiments of the present invention can be embodied in the form of software products, which can be stored in a storage medium, such as ROM/RAM. , Magnetic disks, optical disks, etc., including a number of instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments of the present invention.
本说明书中各个实施例之间相同相似的部分互相参见即可。尤其,对于……实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例中的说明即可。The same or similar parts in the various embodiments in this specification can be referred to each other. In particular, as for the embodiment of..., since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the description in the method embodiment.
以上所述的本发明实施方式并不构成对本发明保护范围的限定。The embodiments of the present invention described above do not constitute a limitation on the protection scope of the present invention.

Claims (16)

  1. 一种具有接口复用功能的集成电路,其特征在于,包括:多个功能模块、第一管脚、切换电路和控制电路,所述多个功能模块通过所述集成电路的所述第一管脚提供接口功能,以供外部设备访问所述集成电路;An integrated circuit with an interface multiplexing function, which is characterized by comprising: a plurality of functional modules, a first pin, a switching circuit, and a control circuit; the plurality of functional modules pass through the first tube of the integrated circuit The pin provides an interface function for external devices to access the integrated circuit;
    所述多个功能模块通过所述切换电路复用所述第一管脚,以使所述集成电路通过所述第一管脚与所述多个功能模块分别对应的外部设备进行通信;The multiple functional modules multiplex the first pin through the switching circuit, so that the integrated circuit communicates with the external devices corresponding to the multiple functional modules through the first pin;
    所述控制电路,用于控制所述切换电路将目标功能模块与所述第一管脚相连,所述目标功能模块为所述多个功能模块中的一个功能模块。The control circuit is configured to control the switching circuit to connect a target function module to the first pin, and the target function module is one of the multiple function modules.
  2. 根据权利要求1所述的集成电路,其特征在于,The integrated circuit of claim 1, wherein:
    所述控制电路具体用于,根据预设切换数据生成相应的切换信号,并将所述切换信号发送至所述切换电路,以使所述切换电路根据所述切换信号,将所述目标功能模块与所述第一管脚相连接;The control circuit is specifically configured to generate a corresponding switching signal according to preset switching data, and send the switching signal to the switching circuit, so that the switching circuit transfers the target function module to the switching signal according to the switching signal. Connected with the first pin;
    其中,所述预设切换数据用于指示所述切换电路的切换方式。Wherein, the preset switching data is used to indicate the switching mode of the switching circuit.
  3. 根据权利要求2所述的集成电路,其特征在于,所述集成电路还包括:处理器;The integrated circuit according to claim 2, wherein the integrated circuit further comprises: a processor;
    所述多种功能模块包括:调试接口模块,所述预设切换数据包括:调试接口切换序列;The multiple functional modules include: a debugging interface module, and the preset switching data includes: a debugging interface switching sequence;
    在所述处理器挂死的情况下,所述控制电路具体用于:When the processor hangs up, the control circuit is specifically configured to:
    根据所述调试接口切换序列生成调试接口切换信号;Generating a debugging interface switching signal according to the debugging interface switching sequence;
    将所述调试接口切换信号发送至所述切换电路,以使所述切换电路根据所述调试接口切换信号将所述调试接口模块与所述第一管脚相连接。The debugging interface switching signal is sent to the switching circuit, so that the switching circuit connects the debugging interface module with the first pin according to the debugging interface switching signal.
  4. 根据权利要求3所述的集成电路,其特征在于,The integrated circuit of claim 3, wherein:
    所述控制电路耦合至所述第一管脚,所述控制电路还用于监测所述第一管脚上传输的数据;The control circuit is coupled to the first pin, and the control circuit is also used to monitor the data transmitted on the first pin;
    在所述处理器挂死的情况下,所述第一管脚接收外部设备发送的所述调试接口切换序列;When the processor hangs up, the first pin receives the debugging interface switching sequence sent by the external device;
    所述控制电路具体用于:The control circuit is specifically used for:
    在监测到所述第一管脚接收的所述调试接口切换序列后,根据所述调试接口切换序列生成所述调试接口切换信号;After monitoring the debugging interface switching sequence received by the first pin, generating the debugging interface switching signal according to the debugging interface switching sequence;
    将所述调试接口切换信号发送至所述切换电路,以使所述切换电路根据所述调试接口切换信号将所述调试接口模块与所述第一管脚相连接。The debugging interface switching signal is sent to the switching circuit, so that the switching circuit connects the debugging interface module with the first pin according to the debugging interface switching signal.
  5. 根据权利要求2至4任一项所述的集成电路,其特征在于,所述控制电路包括:The integrated circuit according to any one of claims 2 to 4, wherein the control circuit comprises:
    状态机,所述状态机的个数不少于所述预设切换数据的种类数,一种预设切换数据对应一种切换方式;State machines, the number of said state machines is not less than the number of types of said preset switching data, and one type of preset switching data corresponds to one switching method;
    所述第一管脚与所述状态机相耦合;The first pin is coupled with the state machine;
    在获取所述预设切换数据之后,所述状态机中的目标状态机生成与所述预设切换数据对应的所述切换信号,其中,所述目标状态机为与所述预设切换数据对应的状态机。After acquiring the preset switching data, the target state machine in the state machine generates the switching signal corresponding to the preset switching data, wherein the target state machine is corresponding to the preset switching data State machine.
  6. 根据权利要求2至4任一项所述的集成电路,其特征在于,所述控制电路包括:存储器、比较器和缓存器;The integrated circuit according to any one of claims 2 to 4, wherein the control circuit comprises: a memory, a comparator and a buffer;
    所述存储器与所述缓存器均与所述比较器相耦合,所述比较器与所述切换电路相耦合,并且所述缓存器与所述第一管脚相耦合;Both the memory and the buffer are coupled with the comparator, the comparator is coupled with the switching circuit, and the buffer is coupled with the first pin;
    所述存储器,用于存储预设切换数据;The memory is used to store preset switching data;
    所述缓存器,用于缓存所述第一管脚接收到的数据;The buffer is used to buffer the data received by the first pin;
    所述比较器,用于在所述缓存器中存储的数据与所述存储器中存储的预设切换数据相匹配时,生成与所述预设切换数据相对应的所述切换信号。The comparator is configured to generate the switching signal corresponding to the preset switching data when the data stored in the buffer matches the preset switching data stored in the memory.
  7. 根据权利要求1至6任一项所述的集成电路,其特征在于,所述切换电路包括:多路复用器;The integrated circuit according to any one of claims 1 to 6, wherein the switching circuit comprises: a multiplexer;
    所述多路复用器的输入端与所述第一管脚相耦合;The input end of the multiplexer is coupled with the first pin;
    在接收到所述切换信号之后,所述多路复用器的输出端与所述目标功能模块相连接。After receiving the switching signal, the output terminal of the multiplexer is connected to the target function module.
  8. 根据权利要求3至7任一项所述的集成电路,其特征在于,The integrated circuit according to any one of claims 3 to 7, wherein:
    所述调试接口模块为联合测试工作组JTAG调试接口或串行线调试SWD接口。The debugging interface module is a JTAG debugging interface of a joint test working group or a serial wire debugging SWD interface.
  9. 根据权利要求1至8任一项所述的集成电路,其特征在于,所述多种功能模块还包括:The integrated circuit according to any one of claims 1 to 8, wherein the multiple functional modules further comprise:
    电路互联总线I2C控制器、通用异步收发传输器UART控制器或串行外设SPI接口。Circuit interconnection bus I2C controller, universal asynchronous receiver transmitter UART controller or serial peripheral SPI interface.
  10. 一种管脚切换方法,其特征在于,应用于具有接口复用功能的集成电路,所述集成电路包括:多个功能模块、第一管脚、切换电路和控制电路,所述多个功能模块通过所述集成电路的所述第一管脚提供接口功能,以供外部设备访问所述集成电路,所述方法包括:A pin switching method, characterized in that it is applied to an integrated circuit with an interface multiplexing function. The integrated circuit includes a plurality of functional modules, a first pin, a switching circuit, and a control circuit. The multiple functional modules Providing an interface function through the first pin of the integrated circuit for external devices to access the integrated circuit, the method includes:
    所述多个功能模块通过所述切换电路复用所述第一管脚,以使所述集成电路通过所述第一管脚与所述多个功能模块分别对应的外部设备进行通信;The multiple functional modules multiplex the first pin through the switching circuit, so that the integrated circuit communicates with the external devices corresponding to the multiple functional modules through the first pin;
    所述控制电路控制所述切换电路将目标功能模块与所述第一管脚相连,所述目标功能模块为所述多个功能模块中的一个功能模块。The control circuit controls the switching circuit to connect a target function module to the first pin, and the target function module is one of the plurality of function modules.
  11. 根据权利要求10所述的管脚切换方法,其特征在于,所述控制电路控制所述切换电路将目标功能模块与所述第一管脚相连,包括:11. The pin switching method of claim 10, wherein the control circuit controlling the switching circuit to connect the target function module to the first pin comprises:
    所述控制电路根据预设切换数据生成相应的切换信号;The control circuit generates a corresponding switching signal according to preset switching data;
    所述控制电路将所述切换信号发送至所述切换电路,以使所述切换电路根据所述切换信号,将所述目标功能模块与所述第一管脚相连接。The control circuit sends the switching signal to the switching circuit, so that the switching circuit connects the target function module with the first pin according to the switching signal.
  12. 根据权利要求11所述的管脚切换方法,其特征在于,当所述集成电路还包括:处理器,所述多种功能模块包括:调试接口模块,所述预设切换数据包括:调试接口切换序列;所述控制电路控制所述切换电路将目标功能模块与所述第一管脚相连,包括:The pin switching method according to claim 11, wherein when the integrated circuit further includes a processor, the multiple functional modules include: a debugging interface module, and the preset switching data includes: debugging interface switching Sequence; the control circuit controls the switching circuit to connect the target function module with the first pin, including:
    在所述处理器挂死的情况下,所述控制电路根据所述调试接口切换序列生成调试接口切换信号;When the processor hangs up, the control circuit generates a debugging interface switching signal according to the debugging interface switching sequence;
    所述控制电路将所述调试接口切换信号发送至所述切换电路,以使所述切换电路根据所述调试接口切换信号将所述调试接口模块与所述第一管脚相连接。The control circuit sends the debugging interface switching signal to the switching circuit, so that the switching circuit connects the debugging interface module with the first pin according to the debugging interface switching signal.
  13. 根据权利要求12所述的管脚切换方法,其特征在于,The pin switching method according to claim 12, wherein:
    所述控制电路耦合至所述第一管脚,所述方法还包括:The control circuit is coupled to the first pin, and the method further includes:
    所述控制电路监测所述第一管脚上传输的数据;The control circuit monitors the data transmitted on the first pin;
    在所述处理器挂死的情况下,所述第一管脚接收外部设备发送的所述调试接口切换序列;When the processor hangs up, the first pin receives the debugging interface switching sequence sent by the external device;
    所述控制电路控制所述切换电路将目标功能模块与所述第一管脚相连,包括:The control circuit controlling the switching circuit to connect the target function module to the first pin includes:
    所述控制电路在监测到所述第一管脚接收的所述调试接口切换序列后,根据所述调试接口切换序列生成所述调试接口切换信号;The control circuit generates the debugging interface switching signal according to the debugging interface switching sequence after monitoring the debugging interface switching sequence received by the first pin;
    所述控制电路将所述调试接口切换信号发送至所述切换电路,以使所述切换电路根据所述调试接口切换信号将所述调试接口模块与所述第一管脚相连接。The control circuit sends the debugging interface switching signal to the switching circuit, so that the switching circuit connects the debugging interface module with the first pin according to the debugging interface switching signal.
  14. 根据权利要求11至13任一项所述的管脚切换方法,其特征在于,所述控制电路根据预设切换数据生成相应的切换信号,包括:The pin switching method according to any one of claims 11 to 13, wherein the control circuit generates a corresponding switching signal according to preset switching data, comprising:
    所述控制电路中的目标状态机生成与所述预设切换数据对应的所述切换信号,其中,所述控制电路包括不少于所述预设切换数据的种类数的状态机,所述目标状态机为与所述预设切换数据对应的状态机。The target state machine in the control circuit generates the switching signal corresponding to the preset switching data, wherein the control circuit includes state machines no less than the number of types of the preset switching data, and the target The state machine is a state machine corresponding to the preset switching data.
  15. 根据权利要求12至14任一项所述的管脚切换方法,其特征在于,The pin switching method according to any one of claims 12 to 14, wherein:
    所述调试接口模块为联合测试工作组JTAG调试接口或串行线调试SWD接口。The debugging interface module is a JTAG debugging interface of a joint test working group or a serial wire debugging SWD interface.
  16. 根据权利要求10至15任一项所述的管脚切换方法,其特征在于,所述多种功能模块还包括:The pin switching method according to any one of claims 10 to 15, wherein the multiple functional modules further comprise:
    电路互联总线I2C控制器、通用异步收发传输器UART控制器或串行外设SPI接口。Circuit interconnection bus I2C controller, universal asynchronous receiver transmitter UART controller or serial peripheral SPI interface.
PCT/CN2019/087464 2019-05-17 2019-05-17 Integrated circuit having interface multiplexing functionality and pin switching method WO2020232582A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2019/087464 WO2020232582A1 (en) 2019-05-17 2019-05-17 Integrated circuit having interface multiplexing functionality and pin switching method
CN201980089733.8A CN113383326A (en) 2019-05-17 2019-05-17 Integrated circuit with interface multiplexing function and pin switching method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/087464 WO2020232582A1 (en) 2019-05-17 2019-05-17 Integrated circuit having interface multiplexing functionality and pin switching method

Publications (1)

Publication Number Publication Date
WO2020232582A1 true WO2020232582A1 (en) 2020-11-26

Family

ID=73459535

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/087464 WO2020232582A1 (en) 2019-05-17 2019-05-17 Integrated circuit having interface multiplexing functionality and pin switching method

Country Status (2)

Country Link
CN (1) CN113383326A (en)
WO (1) WO2020232582A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116719256A (en) * 2023-05-24 2023-09-08 广东匠芯创科技有限公司 Interface switching system, method, encoder and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009118582A1 (en) * 2008-03-27 2009-10-01 Sony Ericsson Mobile Communications Ab Multiplex mobile high-definition link (mhl) and usb 3.0
CN102750252A (en) * 2012-05-29 2012-10-24 惠州Tcl移动通信有限公司 Circuit capable of reusing universal serial bus (USB)/ universal asynchronous receiver/ transmitter (UART) interfaces and electronic device using same
CN105005541A (en) * 2015-07-13 2015-10-28 山东超越数控电子有限公司 Circuit and method for multiplexing universal serial bus (USB) and PS/2 interfaces on computer
CN106201929A (en) * 2016-07-22 2016-12-07 恒宝股份有限公司 A kind of USB interface multiplex circuit and using method
CN107635069A (en) * 2017-09-27 2018-01-26 广东欧珀移动通信有限公司 UART and USB multiplex circuits and mobile terminal

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5101498A (en) * 1987-12-31 1992-03-31 Texas Instruments Incorporated Pin selectable multi-mode processor
TW327212B (en) * 1994-06-27 1998-02-21 Microchip Tech Inc Memory device with switching of data stream modes
US6509758B2 (en) * 2001-04-18 2003-01-21 Cygnal Integrated Products, Inc. IC with digital and analog circuits and mixed signal I/O pins
US7123729B2 (en) * 2001-10-09 2006-10-17 Thomson Licensing Dual use of an integrated circuit pin and the switching of signals at said pin
CN100346285C (en) * 2006-01-06 2007-10-31 华为技术有限公司 Processor chip, storage control system and method
CN100570591C (en) * 2007-09-29 2009-12-16 中兴通讯股份有限公司 Terminal chip pin multiplexing device
CN108475227B (en) * 2016-03-31 2020-07-21 华为技术有限公司 Test functional assembly and data debugging method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009118582A1 (en) * 2008-03-27 2009-10-01 Sony Ericsson Mobile Communications Ab Multiplex mobile high-definition link (mhl) and usb 3.0
CN102750252A (en) * 2012-05-29 2012-10-24 惠州Tcl移动通信有限公司 Circuit capable of reusing universal serial bus (USB)/ universal asynchronous receiver/ transmitter (UART) interfaces and electronic device using same
CN105005541A (en) * 2015-07-13 2015-10-28 山东超越数控电子有限公司 Circuit and method for multiplexing universal serial bus (USB) and PS/2 interfaces on computer
CN106201929A (en) * 2016-07-22 2016-12-07 恒宝股份有限公司 A kind of USB interface multiplex circuit and using method
CN107635069A (en) * 2017-09-27 2018-01-26 广东欧珀移动通信有限公司 UART and USB multiplex circuits and mobile terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116719256A (en) * 2023-05-24 2023-09-08 广东匠芯创科技有限公司 Interface switching system, method, encoder and storage medium

Also Published As

Publication number Publication date
CN113383326A (en) 2021-09-10

Similar Documents

Publication Publication Date Title
US6826713B1 (en) Diagnostic access to processors in a complex electrical system
US5590124A (en) Link and discovery protocol for a ring interconnect architecture
US6119183A (en) Multi-port switching system and method for a computer bus
US10673693B2 (en) Ring based network interconnect
JPH07262128A (en) Method and apparatus for constitution of functional unit in serial master/ slave apparatus
CN101527715A (en) Server with remote access functions for accessing remote peripheral devices
US7788523B2 (en) Method and apparatus for relating device name to physical location of device on a network
WO2020232582A1 (en) Integrated circuit having interface multiplexing functionality and pin switching method
US7206889B2 (en) Systems and methods for enabling communications among devices in a multi-cache line size environment and disabling communications among devices of incompatible cache line sizes
US6738843B2 (en) Method and system for generating multiple self-ID packets on the 1394 bus using a standard PHY chip
CN108008657B (en) Load balancing redundancy switching system with control panel and switching panel buses directly connected
KR20150008746A (en) Peripheral Component Interconnect Express switch apparatus and method for controlling connection using the same
US20020087749A1 (en) Computer system, CPU and memory installed apparatus, and input/output control apparatus
JP2510221B2 (en) Network node address setting method
CN107659413B (en) Small-sized communication equipment
TWI771109B (en) Network interface compatible with data transmission and communication, and control method thereof
US20030031163A1 (en) Method and apparatus for improving performance of a loop network
CN107643990B (en) Communication device with configurable architecture
CN100456273C (en) PCI-Express communications system
JPH02219151A (en) Computer input/output system and its channel diagnostics
CN115663549B (en) Multi-interface conversion device and vehicle
CN113312293B (en) Link establishment management method for high-speed interface between Dies
US20100250804A1 (en) Method for ic communication system
JP2002198990A (en) Data communication method and data communication ic
JPS6260050A (en) Interbus system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19930135

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19930135

Country of ref document: EP

Kind code of ref document: A1