[go: up one dir, main page]

CN103714030B - Method for detecting connection with interface, electronic device and control circuit - Google Patents

Method for detecting connection with interface, electronic device and control circuit Download PDF

Info

Publication number
CN103714030B
CN103714030B CN201310456563.7A CN201310456563A CN103714030B CN 103714030 B CN103714030 B CN 103714030B CN 201310456563 A CN201310456563 A CN 201310456563A CN 103714030 B CN103714030 B CN 103714030B
Authority
CN
China
Prior art keywords
interface
byte
serial
electronic devices
flash memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310456563.7A
Other languages
Chinese (zh)
Other versions
CN103714030A (en
Inventor
朱原升
王国鸿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
MediaTek Inc
Original Assignee
MediaTek Inc
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 MediaTek Inc filed Critical MediaTek Inc
Publication of CN103714030A publication Critical patent/CN103714030A/en
Application granted granted Critical
Publication of CN103714030B publication Critical patent/CN103714030B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Read Only Memory (AREA)

Abstract

本发明提供一种检测与接口连接的方法、电子装置以及控制电路,该方法包含:透过该接口发出指令,接收多个字节,该多个字节为响应透过该接口的指令而产生;检测该已接收字节的相似性以产生检测结果;以及至少根据该检测结果决定与该接口的连接。电子装置包含第一串行闪存装置,第二串行闪存装置以及控制电路。第一串行闪存装置与该第二串行闪存装置类型不同。控制电路包含该第一串行闪存装置以及该第二串行闪存装置之间共享的接口,该接口用于与该第一和第二串行闪存装置其中之一通信。本发明提供的检测与接口连接的方法、电子装置以及控制电路可支持不同类型串行闪存,以满足成本需求和市场灵活性。

The present invention provides a method for detecting connection with an interface, an electronic device, and a control circuit. The method comprises: issuing an instruction through the interface, receiving a plurality of bytes, the plurality of bytes being generated in response to the instruction through the interface; detecting the similarity of the received bytes to generate a detection result; and determining the connection with the interface at least based on the detection result. The electronic device comprises a first serial flash memory device, a second serial flash memory device, and a control circuit. The first serial flash memory device and the second serial flash memory device are of different types. The control circuit comprises an interface shared between the first serial flash memory device and the second serial flash memory device, the interface being used to communicate with one of the first and second serial flash memory devices. The method for detecting connection with an interface, the electronic device, and the control circuit provided by the present invention can support different types of serial flash memories to meet cost requirements and market flexibility.

Description

检测与接口连接的方法、电子装置以及控制电路Method for detection and interface connection, electronic device and control circuit

技术领域technical field

本发明的实施例有关于接口连接检测(interface connection detection),更具体地,有关于透过检测已接收字节的相似性(similarity)而检测与接口的连接的方法,以及相关电路和电子装置。Embodiments of the present invention relate to interface connection detection, and more particularly, to a method of detecting connection to an interface by detecting similarity of received bytes, and related circuits and electronic devices .

背景技术Background technique

串行闪存(serial flash)广泛用于各种电子产品中,例如个人电脑以及多媒体装置。串行闪存是一种使用串行接口的容量小以及低功耗的闪存,其中,串行接口典型地为串行外围接口(Serial Periphery Interface,SPI),从而用于序列(sequential)数据存取。因为串行闪存使用更少的外部管脚(pin),从而需要更少的引线。当串行闪存应用于嵌入式(embedded)系统时,由于晶粒(die)尺寸更小从而可以降低每一个晶粒的成本和集成成本以及封装成本,以及获得更小占据PCB区域和更少的布线(routing)。因此,串行闪存是嵌入式产品中一种很流行的存储方式,以存储代码和文件系统,尤其对于移动装置而言。Serial flash memory (serial flash) is widely used in various electronic products, such as personal computers and multimedia devices. Serial flash memory is a small-capacity and low-power flash memory using a serial interface, where the serial interface is typically a serial peripheral interface (Serial Periphery Interface, SPI), which is used for sequential data access . Because serial flash uses fewer external pins, fewer wires are required. When serial flash memory is applied to embedded (embedded) systems, due to the smaller die size, the cost of each die, integration cost and packaging cost can be reduced, as well as occupying a smaller PCB area and less Routing. Therefore, serial flash memory is a very popular storage method in embedded products to store code and file system, especially for mobile devices.

为了满足各种存储大小、效能和整体产品成本需求,市场上已经有不同类型串行闪存,例如串行或非闪存(serial NOR flash,下文简称做“串行NOR闪存”)和串行与非闪存(serial NAND flash,下文简称做“串行与非闪存”)。如果单一芯片(chip)内支持不同类型串行闪存,那么可以进一步降低整体产品成本。对于存取而言可能需要不同的驱动用于不同类型的串行闪存上,所以首先识别所使用的串行闪存的类型(例如,在启动(boot-up)时)。以移动电话装置为例,使用的串行闪存类型需要在BootRom中正确识别,以从串行闪存中透过正确的驱动器装载引导(boot)代码,其中,BootRom具有硬编码(hard-coded)在基频芯片中的驱动程序(driver)。一个传统的方法是使用具有不同BootRom的基频芯片。这个方法简单但是成本高。一种更为经济的方法是透过键合(bonding)选项而区分不同类型闪存装置。但是,因为需要决定制造多少种具有特定键合(bonding)选项的芯片,所以这个方法缺乏市场灵活性。In order to meet various storage size, performance and overall product cost requirements, there are already different types of serial flash memory on the market, such as serial or non-flash memory (serial NOR flash, hereinafter referred to as "serial NOR flash memory") and serial and non-flash memory Flash memory (serial NAND flash, hereinafter referred to as "serial and non-flash memory"). If different types of serial flash memory are supported in a single chip (chip), the overall product cost can be further reduced. Different drivers may be required for accessing different types of serial flash, so first identify the type of serial flash being used (eg, at boot-up). Taking a mobile phone device as an example, the type of serial flash memory used needs to be correctly identified in the BootRom to load the boot code from the serial flash memory through the correct driver, where the BootRom has hard-coded (hard-coded) in The driver in the baseband chip. A traditional method is to use a baseband chip with a different BootRom. This method is simple but expensive. A more economical method is to differentiate different types of flash memory devices through bonding options. However, this approach lacks market flexibility because of the need to decide how many chips to manufacture with a particular bonding option.

因此,业界急需一种接口连接方案,以能够支持不同类型串行闪存,从而满足成本需求和市场灵活性。Therefore, the industry urgently needs an interface connection solution to support different types of serial flash memory, so as to meet cost requirements and market flexibility.

发明内容Contents of the invention

有鉴于此,本发明提供一种检测与接口的连接的方法以及相关控制电路和电子装置。In view of this, the present invention provides a method for detecting connection with an interface, a related control circuit and an electronic device.

一种检测与一接口的连接的方法,包含:透过该接口发出一指令;接收多个字节,其中,该多个字节响应透过该接口发出的该指令而产生;检测已接收的该多个字节的相似性以产生检测结果;以及至少根据该检测结果,决定与该接口的该连接。A method of detecting a connection to an interface, comprising: issuing a command through the interface; receiving a plurality of bytes, wherein the plurality of bytes are generated in response to the command issued through the interface; detecting received The similarity of the plurality of bytes is used to generate a detection result; and at least based on the detection result, the connection with the interface is determined.

本发明提供一种控制电路,包含:一接口;以及一处理单元,耦接至该接口,该处理单元用于透过该接口发出一指令,接收多个字节,该多个字节响应透过该接口的该指令而产生;检测该已接收的该多个字节的相似性以产生一检测结果;以及至少根据该检测结果决定与该接口的连接。The present invention provides a control circuit, including: an interface; and a processing unit, coupled to the interface, the processing unit is used to issue an instruction through the interface, receive a plurality of bytes, and the plurality of bytes respond to the transparent generated by the instruction of the interface; detecting the similarity of the received bytes to generate a detection result; and determining the connection to the interface at least according to the detection result.

本发明提供一种电子装置,包含:至少一串行闪存装置;以及控制电路,包含一接口,该接口支持不同类型串行电子装置,该控制电路用于决定至少一串行闪存装置的类型以及透过该接口与该至少一串行闪存装置进行通信。The present invention provides an electronic device, including: at least one serial flash memory device; and a control circuit, including an interface, the interface supports different types of serial electronic devices, and the control circuit is used to determine the type of at least one serial flash memory device and Communicate with the at least one serial flash memory device through the interface.

本发明提供的检测与接口连接的方法、电子装置以及控制电路可支持不同类型串行闪存,以满足成本需求和市场灵活性。The detection and interface connection method, the electronic device and the control circuit provided by the present invention can support different types of serial flash memory, so as to meet cost requirements and market flexibility.

附图说明Description of drawings

图1为根据本发明的一个实施例,电子装置中包含的控制电路的方块示意图;FIG. 1 is a schematic block diagram of a control circuit included in an electronic device according to an embodiment of the present invention;

图2为根据本发明的一个实施例,移动装置的方块示意图;FIG. 2 is a schematic block diagram of a mobile device according to an embodiment of the present invention;

图3为根据本发明的一个实施例,串行NOR闪存装置的前3个字节的闪存装置识别符的的示意图;3 is a schematic diagram of a flash memory device identifier of the first 3 bytes of a serial NOR flash memory device according to an embodiment of the present invention;

图4为串行NOR闪存装置的逻辑时序示意图;FIG. 4 is a schematic diagram of a logic sequence of a serial NOR flash memory device;

图5为串行NAND闪存装置的前2个字节闪存装置识别符的示意图;5 is a schematic diagram of the first 2 bytes of a flash memory device identifier of a serial NAND flash memory device;

图6为串行NAND闪存装置的逻辑时序示意图;6 is a schematic diagram of a logic sequence of a serial NAND flash memory device;

图7为根据本发明的一个实施例,检测与接口的连接的方法流程示意图;FIG. 7 is a schematic flowchart of a method for detecting a connection with an interface according to an embodiment of the present invention;

图8为根据本发明的另一个实施例,检测与接口的连接的方法流程示意图;Fig. 8 is a schematic flowchart of a method for detecting a connection with an interface according to another embodiment of the present invention;

图9为根据本发明的另一个实施例,检测与接口的连接的方法流程示意图;Fig. 9 is a schematic flowchart of a method for detecting a connection with an interface according to another embodiment of the present invention;

图10为根据本发明的一个实施例的电子装置的方块示意图;10 is a schematic block diagram of an electronic device according to an embodiment of the present invention;

图11为根据本发明的一个实施例电子装置的方块示意图;11 is a schematic block diagram of an electronic device according to an embodiment of the present invention;

图12为根据本发明的一个实施例电子装置的方块示意图;12 is a schematic block diagram of an electronic device according to an embodiment of the present invention;

图13为根据本发明的一个实施例的电子装置的方块示意图;13 is a schematic block diagram of an electronic device according to an embodiment of the present invention;

具体实施方式detailed description

为使本发明的目的、技术方案和优点更加清楚明白,下面结合实施方式和附图,对本发明做进一步详细说明。在此,本发明的示意性实施方式及其说明用于解释本发明,但并不作为对本发明的限定。本申请案中所用术语“组件”、“系统”、装置可以是与计算机相关的实体,其既可以是硬件、硬件与软件的组合,也可以是软件。说明书及权利要求当中使用了某些词汇来指称特定组件。所属领域中技术人员应可理解,制造商可能会用不同的名词来称呼同一个组件。本说明书及权利要求并不以名称的差异来作为区分组件的方式,而是以组件在功能上的差异来作为区分的准则。在通篇说明书及权利要求当中所提及的“包括”和“包含”为开放式的用语,故应解释成“包含但不限定于”。此外,“耦接”一词在此包含任何直接及间接的电气连接手段。间接的电气连接手段包括通过其它装置进行连接。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be described in further detail below in conjunction with the embodiments and accompanying drawings. Here, the exemplary embodiments and descriptions of the present invention are used to explain the present invention, but not to limit the present invention. The terms "component", "system", and device used in this application may refer to a computer-related entity, which may be hardware, a combination of hardware and software, or software. Certain terms are used in the description and claims to refer to particular components. Those skilled in the art should understand that manufacturers may use different terms to refer to the same component. The specification and claims do not use the difference in name as a way to distinguish components, but use the difference in function of components as a criterion for distinguishing. "Include" and "comprising" mentioned throughout the specification and claims are open-ended terms, so they should be interpreted as "including but not limited to". In addition, the term "coupled" herein includes any direct and indirect means of electrical connection. Indirect means of electrical connection includes connection through other means.

请参考图1,图1为根据本发明的一个实施例的包含在电子装置100中的控制电路110的方块示意图。电子装置100可以利用单一接口以支持或者连接不同类型电子装置(例如,不同类型串行闪存装置)。在此实施例中,控制电路110可以包含但是不限于处理单元120以及接口130。处理单元120耦接到接口130,以及用于透过接口130发出指令(instruction,简写做IR),接收多个字节B[0]-B[i],该多个字节B[0]-B[i]响应透过接口130的指令IR而产生,检测所接收字节B[0]-B[i]的相似性以产生检测结果,以及至少根据该检测结果决定是否连接到接口130,其中i为正整数。实作中,处理单元120可以透过参考已接收字节B[0]-B[i]以决定与接口130的连接,以决定接口130是否连接到特定电子装置。除了决定是否接口130连接到任何特定电子装置,处理单元120可以透过将已接收字节B[0]-B[i]与预定数据样型(pattern),进一步决定连接到接口130的特定电子装置的类型。此外,处理单元120可以使用纯硬件装置或者执行软件程序的处理器而实现。Please refer to FIG. 1 , which is a schematic block diagram of a control circuit 110 included in an electronic device 100 according to an embodiment of the present invention. The electronic device 100 can use a single interface to support or connect different types of electronic devices (eg, different types of serial flash memory devices). In this embodiment, the control circuit 110 may include but not limited to a processing unit 120 and an interface 130 . The processing unit 120 is coupled to the interface 130, and is used to issue an instruction (instruction, IR for short) through the interface 130, and receive a plurality of bytes B[0]-B[i], the plurality of bytes B[0] - B[i] is generated in response to an instruction IR via the interface 130, detects the similarity of the received bytes B[0]-B[i] to generate a detection result, and decides whether to connect to the interface 130 at least based on the detection result , where i is a positive integer. In practice, the processing unit 120 can determine whether the interface 130 is connected to a specific electronic device by referring to the received bytes B[0]-B[i] to determine the connection with the interface 130 . In addition to determining whether the interface 130 is connected to any specific electronic device, the processing unit 120 can further determine the specific electronic device connected to the interface 130 by comparing the received bytes B[0]-B[i] with a predetermined data pattern (pattern). The type of device. In addition, the processing unit 120 may be realized using a pure hardware device or a processor executing a software program.

简而言之,本发明的基本概念是根据电子装置所接收字节的特性而确定是否连接到电子装置的接口。根据本申请说明书,所属领域技术人员参考串行闪存接口(或者SPI)以及相关连接到串行闪存装置的电子装置。所属领域技术人员可以理解,但是,本申请中记载的概念不限于上述类型,也可以应用到其他类型接口上,只要所述电子装置在透过接口发出指令(例如,读取READ指令)后可以透过接口接收字节,即落入本申请的保护范围。In short, the basic concept of the present invention is to determine whether to connect to the interface of the electronic device according to the characteristics of the bytes received by the electronic device. From the description of this application, those skilled in the art refer to the serial flash interface (or SPI) and related electronic devices connected to the serial flash device. Those skilled in the art can understand that, however, the concepts described in this application are not limited to the above-mentioned types, and can also be applied to other types of interfaces, as long as the electronic device can issue commands (for example, read READ commands) through the interface Receiving bytes through the interface falls within the protection scope of the present application.

请参考图2,图2为根据本发明的一个实施例,移动装置200的方块示意图。举例说明,移动装置200可以为移动电话。在一个实施例中,移动装置200可以包含但是不限于移动装置芯片210以及PCB240和串行闪存装置250。移动装置芯片210可以包含但是不限于处理单元220以及串行闪存接口230。请注意,移动装置200可以为如图1所示的电子装置100的一个实现,移动装置芯片可以为图1所示的控制电路110的一个实现,处理单元220可以为图1所示的处理单元120的一个实现,串行闪存接口230可以为图1所示的接口130的一个实现,以及串行闪存装置250为前述特定电子装置的一个实现。在一个示例设计中,移动装置芯片210也可以实现为移动装置200(例如移动电话)的基频芯片,以及处理单元220可以实现为一个电路或者基频芯片的BootROm驱动器。串行闪存接口230可以实现为SPI或者相关接口,例如双SPI(Dual-SPI),四SPI(Quad-SPI)或者(Quad Peripheral Interface,QPI)。所属领域技术人员可以理解,多个信号线SCK(串行时钟)、CS(片选)、SI(串行输入)、SO(串行输出)、WP(写)以及HOLD(保持)代表什么含义,此处简洁起见不再赘述。Please refer to FIG. 2 , which is a block diagram of a mobile device 200 according to an embodiment of the present invention. For example, the mobile device 200 can be a mobile phone. In one embodiment, the mobile device 200 may include, but is not limited to, a mobile device chip 210 as well as a PCB 240 and a serial flash memory device 250 . The mobile device chip 210 may include, but is not limited to, a processing unit 220 and a serial flash memory interface 230 . Please note that the mobile device 200 may be an implementation of the electronic device 100 shown in FIG. 1 , the mobile device chip may be an implementation of the control circuit 110 shown in FIG. 1 , and the processing unit 220 may be the processing unit shown in FIG. 1 120, serial flash interface 230 may be an implementation of interface 130 shown in FIG. 1, and serial flash device 250 may be an implementation of the aforementioned particular electronic device. In one example design, mobile device chip 210 may also be implemented as a baseband chip of mobile device 200 (eg, a mobile phone), and processing unit 220 may be implemented as a circuit or BootROm driver of the baseband chip. The serial flash memory interface 230 may be implemented as SPI or related interfaces, such as dual-SPI (Dual-SPI), quad-SPI (Quad-SPI) or (Quad Peripheral Interface, QPI). Those skilled in the art can understand the meaning of multiple signal lines SCK (serial clock), CS (chip select), SI (serial input), SO (serial output), WP (write) and HOLD (hold) , which will not be repeated here for the sake of brevity.

相似的,处理单元220可以用于透过接口230发出指令IR。在串行闪存装置250从信号线SI接收到指令IR之后,可以产生多个字节B[0]-B[i]以响应指令IR,以及透过信号线SO发送给串行闪存接口230,其中i为正整数。然后,处理单元220可以透过串行闪存接口230接收字节B[0]-B[i],以及开始检测接收字节B[0]-B[i]的相似性,以决定是否连接到串行接口的电子装置(即,串行闪存装置250)是否为串行闪存装置。当决定电子装置(即,串行闪存装置250)为串行闪存装置,处理单元220可以进一步识别串行闪存装置250的类型,以及根据已识别串行闪存装置250的类型而与串行闪存装置250进行通信。换言之,串行闪存接口230可以配置为支持不同类型串行闪存装置。下面描述接口连接检测的进一步细节。Similarly, the processing unit 220 can be used to issue an instruction IR through the interface 230 . After the serial flash memory device 250 receives the command IR from the signal line SI, a plurality of bytes B[0]-B[i] can be generated in response to the command IR, and sent to the serial flash memory interface 230 through the signal line SO, where i is a positive integer. Then, the processing unit 220 can receive the bytes B[0]-B[i] through the serial flash interface 230, and start to detect the similarity of the received bytes B[0]-B[i] to determine whether to connect to Whether the electronic device of the serial interface (ie, the serial flash memory device 250 ) is a serial flash memory device. When determining that the electronic device (i.e., the serial flash memory device 250) is a serial flash memory device, the processing unit 220 may further identify the type of the serial flash memory device 250, and communicate with the serial flash memory device according to the identified type of the serial flash memory device 250. 250 for communication. In other words, the serial flash interface 230 can be configured to support different types of serial flash devices. Further details of interface connection detection are described below.

请联合图2参考图3以及图4。图3为根据本发明的一个实施例,串行NOR闪存装置的前三字节的闪存装置识别符(闪存装置ID)的示意图,图4为串行闪存装置的逻辑时序示意图。如图3所示,闪存装置ID的前三字节由一字节的厂商识别符(manufacture ID,下文称作厂商ID)以及两字节的装置识别符(装置ID)组成。一字节的装置ID代表串行NOR闪存装置的存储器类型,另一字节装置ID代表串行NOR闪存装置的存储器容量。在此实施例中,厂商ID的16进制值‘20h’仅为示例,不能用以限制本发明的保护范围。相似的,16进制值‘BBh’(对应存储器类型)以及16进制值‘16h’(对应存储器容量)不构成本发明的限制。应当注意到,串行NOR闪存装置的厂商ID以及装置ID可以不为16进制值‘00’或者16进制值‘FF’。Please refer to FIG. 3 and FIG. 4 in conjunction with FIG. 2 . FIG. 3 is a schematic diagram of the first three bytes of a flash device identifier (flash device ID) of a serial NOR flash device according to an embodiment of the present invention, and FIG. 4 is a schematic diagram of a logic sequence of a serial NOR flash device. As shown in FIG. 3 , the first three bytes of the flash memory device ID are composed of a one-byte manufacturer ID (manufacture ID, hereinafter referred to as manufacturer ID) and a two-byte device identifier (device ID). One byte of the device ID represents the memory type of the serial NOR flash device, and another byte of the device ID represents the memory capacity of the serial NOR flash device. In this embodiment, the hexadecimal value '20h' of the vendor ID is just an example and cannot be used to limit the protection scope of the present invention. Similarly, the hexadecimal value 'BBh' (corresponding to the memory type) and the hexadecimal value '16h' (corresponding to the memory capacity) do not constitute a limitation of the present invention. It should be noted that the manufacturer ID and the device ID of the serial NOR flash memory device may not be the hexadecimal value '00' or the hexadecimal value 'FF'.

如图4所示,串行闪存装置250为串行NOR闪存装置情况下,串行闪存装置250可以透过信号线SI接收指令IR(例如,读取READ指令)。在指令IR(例如读取READ指令)移入串行闪存装置250之后,串行闪存装置250的闪存装置ID(例如,此实施例中的串行NOR闪存装置)可以立刻移出(shift out)。更具体地,字节B[0]-B[i]可以在指令IR发送之后立刻被处理单元220接收到,字节B[0]在其他字节B[1]-B[i]之间被接收到,其他字节B[1]-B[i]代表串行闪存装置250的厂商ID,以及字节B[1]以及B[2]代表串行闪存装置250的装置ID。此外,装置ID的值‘15’-‘0’(即,字节B[1]以及B[2])代表具有16个比特,其中,对应值‘15’的比特表示装置ID的最重要比特(Most Significant Bit,MSB)。请注意,串行NOR闪存的闪存装置ID的字节数量不以3个为限。As shown in FIG. 4 , when the serial flash memory device 250 is a serial NOR flash memory device, the serial flash memory device 250 can receive an instruction IR (for example, a READ instruction) through the signal line SI. After the command IR (eg, READ command) is shifted into the serial flash device 250, the flash device ID of the serial flash device 250 (eg, the serial NOR flash device in this embodiment) can be shifted out immediately. More specifically, bytes B[0]-B[i] may be received by processing unit 220 immediately after instruction IR is sent, and byte B[0] is between other bytes B[1]-B[i] Received, the other bytes B[1]-B[i] represent the vendor ID of the serial flash device 250, and bytes B[1] and B[2] represent the device ID of the serial flash device 250. In addition, the values '15'-'0' of the device ID (ie, bytes B[1] and B[2]) represent 16 bits, where the bit corresponding to the value '15' represents the most significant bit of the device ID (Most Significant Bit, MSB). Please note that the number of bytes of the flash device ID of the serial NOR flash memory is not limited to 3.

请结合图2联合参考图5以及图6。图5为根据本发明的一个实施例串行NAND闪存装置的闪存装置ID的前两个字节的示意图,图6为为串行NAND闪存装置的逻辑时序示意图。如图5所示,串行闪存装置的闪存装置ID的前两个字节包含一字节的厂商ID以及一字节的装置ID。在此实施例中,16进制值‘2Ch’(对应厂商ID)以及16进制值‘12h’(对应装置ID)每一者均用以示例说明,不用于限定本发明的保护范围。应当注意到,串行NAND闪存装置的厂商ID以及装置ID的任何类型均可以不是16进制值‘00’或者16进制值‘FF’。Please refer to FIG. 5 and FIG. 6 in conjunction with FIG. 2 . FIG. 5 is a schematic diagram of the first two bytes of a flash memory device ID of a serial NAND flash memory device according to an embodiment of the present invention, and FIG. 6 is a schematic diagram of a logic sequence of a serial NAND flash memory device. As shown in FIG. 5 , the first two bytes of the flash memory device ID of the serial flash memory device include a one-byte manufacturer ID and a one-byte device ID. In this embodiment, each of the hexadecimal value '2Ch' (corresponding to the manufacturer ID) and the hexadecimal value '12h' (corresponding to the device ID) is used for illustration and is not used to limit the protection scope of the present invention. It should be noted that the vendor ID and any type of device ID of the serial NAND flash memory device may not be the hexadecimal value '00' or the hexadecimal value 'FF'.

如图6所示,在串行闪存装置250为串行NAND闪存装置的的情况下,串行闪存装置250可以透过信号线SI接收指令IR(例如,读取READ指令)。在指令IR(例如,读取READ指令)移入串行闪存装置250以及虚拟(dummy)字节由处理单元220(处理单元220实际上可以不作任何动作)发出(sent)之后,串行闪存装置250(例如此实施例中串行闪存装置)的闪存装置ID可以立刻移出,等待发送。更具体地,字节B[0]-B[i]可以被处理单元220立刻接收,在指令IR以及虚拟字节被接收之后,其中,字节B[1]表示串行闪存装置250的厂商ID,字节B[2]表示串行闪存装置250的装置ID,以及字节B[0]对应虚拟字节,其中,字节B[0]在字节B[1]以及B[2]之前接收,以及字节B[0]的数据样型可以包含多个比特,每一个比特具有一个相同二进制值(例如,16进制值‘00’或者‘FF’)。请注意,当虚拟字节发送时,串行闪存装置250可以不输出任何字节,因此,字节B[0]的数据样型可以依赖于默认驱动设定,该默认驱动设定用于串行闪存装置250的输出信号。此外,虚拟字节可以由下拉信号的电平(即,图6所示虚拟字节的比特值‘0’)而产生,或者不做任何动作(即,虚拟字节的比特值‘0’可以变为高阻态)而产生。如装置ID的值‘7’-‘0’(即,字节B[2]))代表具有8个比特,其中,对应值‘7’的比特代表装置ID的MSB。请注意,串行NAND闪存装置的闪存装置的类型的字节数据不以此为限。As shown in FIG. 6 , if the serial flash memory device 250 is a serial NAND flash memory device, the serial flash memory device 250 may receive an instruction IR (for example, a READ instruction) through the signal line SI. After the instruction IR (for example, read READ command) is moved into the serial flash memory device 250 and the dummy bytes are sent by the processing unit 220 (the processing unit 220 can actually do nothing), the serial flash memory device 250 The flash device ID (such as the serial flash device in this embodiment) can be removed immediately, waiting to be sent. More specifically, bytes B[0]-B[i] may be received by processing unit 220 immediately after instruction IR and dummy bytes are received, wherein byte B[1] indicates the manufacturer of serial flash memory device 250 ID, byte B[2] represents the device ID of the serial flash memory device 250, and byte B[0] corresponds to a virtual byte, wherein byte B[0] is between byte B[1] and B[2] The previously received, and data pattern of byte B[0] may contain multiple bits, each bit having the same binary value (eg, hexadecimal value '00' or 'FF'). Note that serial flash device 250 may not output any bytes when dummy bytes are sent, so the data pattern for byte B[0] may depend on the default driver settings for the serial The output signal of row flash memory device 250. In addition, the dummy byte can be generated by pulling down the level of the signal (i.e., the bit value '0' of the dummy byte shown in Fig. becomes high-impedance state) generated. For example, the value '7'-'0' of the device ID (ie, byte B[2])) represents having 8 bits, wherein the bit corresponding to the value '7' represents the MSB of the device ID. Please note that the byte data of the type of flash memory device of the serial NAND flash memory device is not limited thereto.

如上所述,串行NOR/NAND闪存装置的厂商ID以及装置ID的任何字节可以不等于16进制值‘00’或者‘FF’,以及图2所示的移动装置芯片接收到闪存装置ID之前,串行NAND闪存装置可以读取虚拟字节。因此,字图2所示的串行闪存装置250为串行NAND闪存装置的情况下,图2所示的处理单元220所接收到的前3个字节(即对应虚拟字节的字节、厂商ID以及图6所示的装置ID)彼此不相等。此外,在所有当前串行NOR闪存装置中厂商ID不等于装置ID。因此,在串行NOR闪存装置的情况下,图2所示的串行闪存装置250接收到前3字节(即,图4所示的1字节厂商ID以及2字节的装置ID)彼此不相等。简而言之,透过检测已接收字节的相似性,处理单元220可以决定是否串行闪存接口230连接到串行闪存装置。As mentioned above, the vendor ID of a serial NOR/NAND flash device and any byte of the device ID may not be equal to the hexadecimal value '00' or 'FF', and the mobile device chip shown in Figure 2 receives the flash device ID Previously, serial NAND flash devices could read virtual bytes. Therefore, when the serial flash memory device 250 shown in FIG. 2 is a serial NAND flash memory device, the first 3 bytes received by the processing unit 220 shown in FIG. The vendor ID and the device ID shown in FIG. 6 ) are not equal to each other. Furthermore, the vendor ID is not equal to the device ID in all current serial NOR flash devices. Therefore, in the case of a serial NOR flash memory device, the serial flash memory device 250 shown in FIG. not equal. In short, by detecting the similarity of the received bytes, the processing unit 220 can determine whether the serial flash interface 230 is connected to a serial flash device.

更具体地说,当决定串行闪存接口连接到串行闪存装置时,将所接收到字节中的特定字节可以与预定数据样型做比较,以决定串行闪存装置的类型。请再次参考图2,图4以及图6。当串行闪存装置250为串行NAND闪存装置时,在其他已接收字节前接收到的字节(即,字节B[0])具有数据样型‘00’或者‘FF’。当串行闪存装置250为串行NOR闪存装置时,尽管如此,在其他字节前接收的字节(即,字节B[0])代表厂商ID,其中,厂商ID不等于数据样型‘00’以及‘FF’。因此,串行闪存装置250的类型可以根据已接收字节B[0]-B[i]中的特定字节(即,字节B[0])而决定。简而言之,可以利用串行NOR闪存装置和串行NAND闪存装置之间的闪存装置ID格式以及的读取行为的差异,以检测/识别与接口的连接。More specifically, when determining that the serial flash interface is connected to the serial flash device, a specific byte among the received bytes may be compared with a predetermined data pattern to determine the type of the serial flash device. Please refer to Figure 2, Figure 4 and Figure 6 again. When the serial flash memory device 250 is a serial NAND flash memory device, the byte received before other received bytes (ie, byte B[0]) has a data pattern of '00' or 'FF'. When the serial flash device 250 is a serial NOR flash device, however, the byte received before the other bytes (i.e., byte B[0]) represents the vendor ID, where the vendor ID is not equal to the data pattern' 00' and 'FF'. Therefore, the type of the serial flash memory device 250 can be determined according to a specific byte among the received bytes B[0]-B[i] (ie, byte B[0]). In short, the differences in flash device ID format and read behavior between serial NOR flash devices and serial NAND flash devices can be exploited to detect/identify connections to interfaces.

请参考图7,图7为根据本发明的一个实施例,检测与接口的连接的方法流程示意图。该方法可以由图1的控制电路110所实施,以及由图2的移动装置芯片210所执行。该方法简单地可以概括为:Please refer to FIG. 7 , which is a schematic flowchart of a method for detecting a connection with an interface according to an embodiment of the present invention. The method can be implemented by the control circuit 110 of FIG. 1 and executed by the mobile device chip 210 of FIG. 2 . The method can be summarized simply as:

步骤700:开始;Step 700: start;

步骤710:透过接口发出指令;Step 710: issue an instruction through the interface;

步骤720:接收多个字节,该多个字节响应透过接口的指令而产生;Step 720: Receive a plurality of bytes generated in response to commands through the interface;

步骤725:检测已接收字节的相似性以产生检测结果;Step 725: Detect the similarity of the received bytes to generate a detection result;

步骤730:决定是否已接收字节彼此相同。如果该检测结果指示出该已接收字节彼此相同,那么转到步骤740。如果检测结果指示出已接收字节彼此不相同,那么转到步骤750。Step 730: Determine whether the received bytes are identical to each other. If the detection result indicates that the received bytes are identical to each other, then go to step 740 . If the detection result indicates that the received bytes are different from each other, then go to step 750 .

步骤740:决定接口未连接到特定电子装置;Step 740: Determine that the interface is not connected to a specific electronic device;

步骤750:决定接口已经连接到特定电子装置;Step 750: Determine that the interface has been connected to the specific electronic device;

步骤700-750可以由图1/图2的处理单元120/220所实施,其中,处理单元120/220可以使用纯硬件装置(例如,电路)或者执行软件程序(例如驱动程序)的处理器所实现,以及特定电子装置可以为串行闪存装置。所属领域技术人员阅读上述有关图1-图6的描述可以理解图7的方法的运作,详细内容此处不再赘述。Steps 700-750 can be implemented by the processing unit 120/220 in FIG. 1/FIG. 2, wherein the processing unit 120/220 can use a pure hardware device (for example, a circuit) or a processor that executes a software program (for example, a driver) Implementations, and specific electronic devices may be serial flash memory devices. Those skilled in the art can understand the operation of the method in FIG. 7 after reading the above descriptions about FIG. 1-FIG. 6 , and the details will not be repeated here.

在决定接口连接到特定电子装置之后,图1所示的控制电路以及图2所示的移动装置芯片210可以进一步决定已连接特定电子装置的类型。请参考图8,图8为根据本发明的另一个实施例,检测接口连接方法的流程示意图。图8所示方法基于图7所描述的方法的步骤,差别在于,图8中进一步包含决定特定电子装置类型的步骤。该方法简单总结如下:After determining that the interface is connected to a specific electronic device, the control circuit shown in FIG. 1 and the mobile device chip 210 shown in FIG. 2 can further determine the type of the connected specific electronic device. Please refer to FIG. 8 , which is a schematic flowchart of a method for detecting interface connections according to another embodiment of the present invention. The method shown in FIG. 8 is based on the steps of the method described in FIG. 7 , the difference is that FIG. 8 further includes a step of determining a specific electronic device type. The method is briefly summarized as follows:

步骤700:开始。Step 700: start.

步骤710:透过接口发出指令;Step 710: issue an instruction through the interface;

步骤720:接收多个字节,该多个字节响应透过该接口的指令而产生。Step 720: Receive bytes generated in response to commands via the interface.

步骤725:检测已接收字节的相似性以产生检测结果。Step 725: Detect the similarity of the received bytes to generate a detection result.

步骤830:决定是否已接收字节彼此相同。如果检测结果指示已接收字字节彼此相同,那么转到步骤740。如果检测结果指示已接收字节彼此不相同,那么转到步骤851。Step 830: Determine if the received bytes are identical to each other. If the detection result indicates that the received word bytes are identical to each other, then go to step 740 . If the detection result indicates that the received bytes are different from each other, then go to step 851 .

步骤740:决定接口未连接到特定电子装置。Step 740: Determine that the interface is not connected to the specific electronic device.

步骤851:将已接收字节的特定字节与预定样型比较以产生比较结果。Step 851: Compare a specific byte of the received bytes with a predetermined pattern to generate a comparison result.

步骤852:决定是否特定字节与预定数据样型相同。如果比较结果指示特定字节与预定数据样型相同,那么转到步骤854。如果比较结果指示特定字节与预定数据样型不相同,那么转到步骤856。Step 852: Determine if the specific byte is the same as a predetermined data pattern. If the comparison indicates that the particular byte is the same as the predetermined data pattern, then go to step 854 . If the result of the comparison indicates that the particular byte is not the same as the predetermined data pattern, then go to step 856 .

步骤854:决定特定电子装置具有第一类型。Step 854: Determine that the specific electronic device has the first type.

步骤856:决定特定电子装置具有第二类型。Step 856: Determine that the specific electronic device has the second type.

步骤700-856可以由图1/图2所示的处理单元120/220所执行,其中,处理单元120/220可以使用纯硬件装置(例如电路)或者执行软件程序(例如驱动程序)的处理器所实现。此外,特定字节可以在其他字节接收之前接收。预定数据样型可以包含多个比特,每个比特具有一个相同二进制值,第一类型特定电子装置可以为串行NAND闪存装置,第二类型特定电子装置可以为串行NOR闪存装置,所述领域技术人员阅读有关图1-图7的说明之后可以理解图8的运作,此处简洁起见不再赘述。Steps 700-856 can be performed by the processing unit 120/220 shown in FIG. 1/FIG. 2, wherein the processing unit 120/220 can use a pure hardware device (such as a circuit) or a processor that executes a software program (such as a driver) realized. Also, certain bytes can be received before other bytes are received. The predetermined data pattern may include a plurality of bits, and each bit has the same binary value. The first type of specific electronic device may be a serial NAND flash memory device, and the second type of specific electronic device may be a serial NOR flash memory device. The field A skilled person can understand the operation of FIG. 8 after reading the descriptions of FIG. 1-FIG.

在替换设计中,决定特定电子装置连接到接口的步骤,以及决定连接到接口的特定特定电子装置的类型的步骤可以并行处理。请参考图9,图9为根据本发明的另一个实施例,检测接口连接的方法流程图。如图9所示的方法基于图7所示的步骤,差别在于图9包含决定特定电子装置类型的步骤。该方法可以简单总结如下:In an alternative design, the steps of determining a particular electronic device to connect to the interface and the steps of determining the particular type of electronic device connected to the interface may be performed in parallel. Please refer to FIG. 9 , which is a flowchart of a method for detecting interface connections according to another embodiment of the present invention. The method shown in FIG. 9 is based on the steps shown in FIG. 7 , the difference is that FIG. 9 includes a step of determining a specific electronic device type. The method can be briefly summarized as follows:

步骤700:开始。Step 700: start.

步骤710:透过接口发出指令;Step 710: issue an instruction through the interface;

步骤720:接收多个字节,该多个字节响应透过该接口的指令而产生;Step 720: Receive a plurality of bytes generated in response to commands through the interface;

步骤960:检测已接收字节的相似性以产生检测结果;Step 960: Detect the similarity of the received bytes to generate a detection result;

步骤970:将已接收字节的特定字节与预定数据样型做比较以产生比较结果。Step 970: Compare a specific byte of the received bytes with a predetermined data pattern to generate a comparison result.

步骤980:参考检测结果决定是否接口连接到特定电子装置,以及参考比较结果决定连接到接口的特定电子装置的类型。Step 980: Refer to the detection result to determine whether the interface is connected to the specific electronic device, and refer to the comparison result to determine the type of the specific electronic device connected to the interface.

步骤700-980可以由图1/图2所示的处理单元120/220所执行,其中,处理单元120/220可以使用纯硬件(例如,电路)或者执行软件程序(例如,驱动程序)的处理器所实现。在一个实现中,当检测结果指示接口没有连接到特定电子装置时,比较结果可以丢弃。所属领域技术人员阅读图1-图8的说明可以理解图9的方法运作,简洁起见,此处不再赘述。Steps 700-980 can be performed by the processing unit 120/220 shown in FIG. 1/FIG. 2, wherein the processing unit 120/220 can use pure hardware (for example, a circuit) or execute a software program (for example, a driver) for processing implemented by the device. In one implementation, the comparison result may be discarded when the detection result indicates that the interface is not connected to the particular electronic device. Those skilled in the art can understand the operation of the method shown in FIG. 9 by reading the descriptions of FIGS.

图7-图9所示的方法可以由电子装置所实施以与不同特定电子装置通信。请参考图10,图10为根据本发明的一个实施例,电子装置1000的方块示意图。电子装置1000可以包含但是不限于控制电路1010、PCB1040,第一串行闪存装置1052以及第二串行闪存装置1054。举例说明,然并不构成对本发明的限制,电子装置1000可以实现为移动装置(例如,移动电话),控制电路1010可以实现为一个移动装置芯片,第一串行闪存装置1052可以实现为串行NOR闪存装置,第二串行闪存装置1054可以实现为串行NAND闪存装置。如图10所示,控制电路1010可以包含一个接口(即,此实施例中串行闪存接口1030),该接口可以在第一串行闪存装置1052和第二串行闪存装置1054间共享,以及可以用来与第一串行闪存装置1052以及第二串行闪存装置1054的其中之一透过串行闪存接口1030进行通信。此外,连接在控制电路1010以及电路板(即,PCB1040)之间的6个信号线用于在信号线SCK、CS、SI、SO、WP以及HOLD上传送信号。The methods shown in FIGS. 7-9 can be implemented by electronic devices to communicate with different specific electronic devices. Please refer to FIG. 10 , which is a schematic block diagram of an electronic device 1000 according to an embodiment of the present invention. The electronic device 1000 may include but not limited to a control circuit 1010 , a PCB 1040 , a first serial flash memory device 1052 and a second serial flash memory device 1054 . To illustrate, but not to limit the present invention, the electronic device 1000 can be implemented as a mobile device (for example, a mobile phone), the control circuit 1010 can be implemented as a mobile device chip, and the first serial flash memory device 1052 can be implemented as a serial The NOR flash memory device, the second serial flash memory device 1054 may be implemented as a serial NAND flash memory device. As shown in FIG. 10, the control circuit 1010 may include an interface (i.e., serial flash interface 1030 in this embodiment) that may be shared between the first serial flash device 1052 and the second serial flash device 1054, and It can be used to communicate with one of the first serial flash memory device 1052 and the second serial flash memory device 1054 through the serial flash memory interface 1030 . In addition, 6 signal lines connected between the control circuit 1010 and the circuit board (ie, PCB 1040 ) are used to transmit signals on the signal lines SCK, CS, SI, SO, WP, and HOLD.

在一个实现中,电子装置1000可以包含一个选择单元1060,该选择单元1060耦接到串行闪存接口1030。如图10所示,选择单元1060可以包含在控制电路1010中,以及用于选择性地将串行闪存接口1030耦接到第一串行闪存装置1052以及第二串行闪存装置1054其中之一。实做中,选择单元1060可以由多任务器(multiplexer)、仲裁器或者其他类型选择单元所实现。请注意,只有一个单一电路板(例如PCB1040)需要同时具有第一串行闪存装置1052以及第二串行闪存装置1054。因此,消费者不需要使用用于不同类型的串行闪存装置的特定PCB。In one implementation, the electronic device 1000 may include a selection unit 1060 coupled to the serial flash memory interface 1030 . As shown in FIG. 10, the selection unit 1060 may be included in the control circuit 1010, and is used to selectively couple the serial flash interface 1030 to one of the first serial flash memory device 1052 and the second serial flash memory device 1054. . In practice, the selection unit 1060 may be implemented by a multiplexer, an arbiter or other types of selection units. Please note that only a single circuit board (eg PCB 1040 ) needs to have both the first serial flash device 1052 and the second serial flash device 1054 . Therefore, consumers do not need to use specific PCBs for different types of serial flash memory devices.

图10的PCB1040上放置的串行闪存装置的数量不限于本发明实施例所示。请参考图11,图11为根据本发明的一个实施例,电子装置1100的方块示意图。电子装置1100的架构基于电子装置1000的架构,差别为只有一个串行闪存装置1150放置在PCB1140上,其中,串行闪存装置1150可以为串行NOR闪存装置以及串行NAND闪存装置其中之一。在一个实现中默认连接可以在串行闪存接口1030和串行闪存装置1150之间建立。请注意,选择单元1060是可选的,以及可以忽略。The number of serial flash memory devices placed on the PCB 1040 in FIG. 10 is not limited to that shown in the embodiment of the present invention. Please refer to FIG. 11 , which is a block diagram of an electronic device 1100 according to an embodiment of the present invention. The architecture of the electronic device 1100 is based on the architecture of the electronic device 1000, except that only one serial flash memory device 1150 is placed on the PCB 1140, wherein the serial flash memory device 1150 can be one of a serial NOR flash memory device and a serial NAND flash memory device. A default connection may be established between serial flash interface 1030 and serial flash device 1150 in one implementation. Note that selection unit 1060 is optional and can be omitted.

简而言之,图7-图9所示方法可以用电子装置实现,其中,电子装置可以包含至少一串行闪存装置以及具有接口的控制电路,其中,该接口支持不同类型串行闪存装置。控制电路可以用于决定至少一串行闪存装置的类型,以及透过接口与至少一串行闪存装置进行通信。此外,至少一串行闪存装置可以包含不同类型串行闪存装置,以及接口在不同类型串行闪存装置之间共享。在一个实现中,至少一串行闪存装置可以包含串行NOR闪存装置以及串行NAND闪存装置至少其中之一。In short, the methods shown in FIGS. 7-9 can be implemented by an electronic device, wherein the electronic device can include at least one serial flash memory device and a control circuit with an interface, wherein the interface supports different types of serial flash memory devices. The control circuit can be used to determine the type of the at least one serial flash memory device, and communicate with the at least one serial flash memory device through the interface. In addition, the at least one serial flash device may include different types of serial flash devices, and the interface is shared between different types of serial flash devices. In one implementation, the at least one serial flash device may include at least one of a serial NOR flash device and a serial NAND flash device.

电子装置1000/1100中选择单元1060的架构仅为示例,并不用于限制本发明的保护范围。请参考图12,图12为根据本发明的一个实施例,电子装置1200的方块示意图。电子装置1200的架构基于图10所示的电子装置1000,以及差别在于图12的选择单元1260不包含在控制电路1210中,而是放置在电路板(即PCB1240)上,其中,电路板上安装了第一串行闪存装置1052以及第二串行闪存装置1054。此外,控制电路1210和电路板(即PCB1240)之间连接的6个线用于为串行闪存装置传送信号。相似地,图12所示的选择单元1260可以不包含在控制电路1210中。请参考图13,图13为根据本发明的一个实施例,电子装置1300的方块示意图。图13中电子装置1300的架构基于图11所示的电子装置1100的架构,不同在于图13所示的选择单元1360并不包含在控制电路1310中,而是放置在电路板(即PCB1340)上,其中,电路板上安装了串行闪存装置1150。The structure of the selection unit 1060 in the electronic device 1000/1100 is just an example, and is not intended to limit the protection scope of the present invention. Please refer to FIG. 12 , which is a block diagram of an electronic device 1200 according to an embodiment of the present invention. The structure of the electronic device 1200 is based on the electronic device 1000 shown in FIG. 10, and the difference is that the selection unit 1260 of FIG. A first serial flash memory device 1052 and a second serial flash memory device 1054 are provided. In addition, 6 wires connected between the control circuit 1210 and the circuit board (ie, PCB 1240 ) are used to transmit signals for the serial flash memory device. Similarly, the selection unit 1260 shown in FIG. 12 may not be included in the control circuit 1210 . Please refer to FIG. 13 , which is a schematic block diagram of an electronic device 1300 according to an embodiment of the present invention. The architecture of the electronic device 1300 in FIG. 13 is based on the architecture of the electronic device 1100 shown in FIG. 11 , the difference is that the selection unit 1360 shown in FIG. 13 is not included in the control circuit 1310, but placed on the circuit board (ie, PCB1340). , wherein a serial flash memory device 1150 is installed on the circuit board.

总结说来,不同类型串行闪存装置可以使用本申请实施例的方法以及装置进行检测/决定,然并不需要不同基频芯片、不同特定PCB、键合选项或者其他硬布线(hard-wired)方法。此外,本申请所建议的方法/装置适用于串行闪存装置上的所有通信协议。In summary, different types of serial flash memory devices can be detected/determined using the method and device of the embodiment of the present application, but there is no need for different baseband chips, different specific PCBs, bonding options or other hard-wired method. Furthermore, the method/apparatus proposed in this application is applicable to all communication protocols on serial flash memory devices.

所属领域技术人员在阅读说明书之后可以对本发明的实施例进行润饰以及更动,只要不脱离本发明的精神,均在本发明的保护范围内。本发明的保护范围不以实施例为限,以权利要求内容为准。Those skilled in the art can modify and alter the embodiments of the present invention after reading the description, as long as they do not deviate from the spirit of the present invention, all are within the protection scope of the present invention. The protection scope of the present invention is not limited by the embodiments, but shall be determined by the content of the claims.

Claims (12)

1. a kind of detect the method being connected with an interface, comprising:
An instruction is sent through the interface;
Multiple bytes are received, wherein, the plurality of byte response is produced through the instruction that the interface is sent;
The similitude of the plurality of byte received is detected to produce testing result;
The specified byte of the plurality of byte received and tentation data template are compared to produce comparative result;And
According to the testing result and the comparative result, decision is connected with this of the interface, wherein, decision is connected with this of the interface The step of include:With reference to the testing result to decide whether that the interface is connected to specific electronic devices;And compare knot with reference to this Really with the type for the specific electronic devices for determining to be connected to the interface, wherein, if the testing result indicates what is received The plurality of byte is mutually the same, then determines that the interface is not attached to the specific electronic devices;Else if the testing result is indicated Go out the plurality of byte received differing from each other, then determine that the interface is connected to the specific electronic devices.
2. the method as described in claim 1, it is characterised in that the specific electronic devices are serial flash memory device.
3. the method as described in claim 1, it is characterised in that the specified byte is received before other have received byte Arrive.
4. the method as described in claim 1, it is characterised in that the tentation data template includes multiple bits, the plurality of bit Each there are identical binary values.
5. the method as described in claim 1, it is characterised in that with reference to the comparative result to determine to be connected to the spy of the interface The step of type for determining electronic installation, includes:
When the comparative result indicates that the specified byte is identical with the tentation data template, determine that the specific electronic devices have the One type;And
When the comparative result indicates that the specified byte is differed with the tentation data template, determine that the specific electronic devices have Second Type.
6. method as claimed in claim 5, it is characterised in that the specific electronic devices of the first kind are serially dodged for one with non- Cryopreservation device, and the specific electronic devices of the Second Type are serial or non-flash device.
7. one kind control circuit, comprising:
Interface;And
Processing unit, is coupled to the interface, and the processing unit is used to send an instruction through the interface, receives multiple bytes, should Multiple byte responses are produced through the instruction of the interface;The similitude of the plurality of byte received is detected to produce inspection Survey result;The specified byte of the plurality of byte received and tentation data template are compared to produce comparative result;With And the connection with the interface is determined according to the testing result and the comparative result, wherein, determine the step being connected with the interface Suddenly include:With reference to the testing result to decide whether that the interface is connected to specific electronic devices;And with reference to the comparative result with Determine to be connected to the type of the specific electronic devices of the interface, wherein, if to indicate this that received more for the testing result Individual byte is mutually the same, then determines that the interface is not attached to the specific electronic devices;Else if the testing result is indicated The plurality of byte received is differing from each other, then determines that the interface is connected to the specific electronic devices.
8. circuit is controlled as claimed in claim 7, it is characterised in that the specific electronic devices are serial flash memory device.
9. circuit is controlled as claimed in claim 7, it is characterised in that the specified byte is connect before other have received byte Receive.
10. circuit is controlled as claimed in claim 7, it is characterised in that the tentation data template includes multiple bits, the plurality of The each of bit has identical binary values.
11. circuit is controlled as claimed in claim 7, it is characterised in that when the comparative result indicates the specified byte with being somebody's turn to do When tentation data template is identical, the processing unit determines that the specific electronic devices have the first kind, and when the comparative result When indicating that the specified byte is differed with the tentation data template, the processing unit determines that the specific electronic devices have Equations of The Second Kind Type.
12. as claimed in claim 11 control circuit, it is characterised in that the first kind specific electronic devices be one serially with Non-flash device, and the Second Type specific electronic devices are serial or non-flash device.
CN201310456563.7A 2012-10-04 2013-09-29 Method for detecting connection with interface, electronic device and control circuit Active CN103714030B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
IN4154CH2012 2012-10-04
IN4154/CHE/2012 2012-10-04

Publications (2)

Publication Number Publication Date
CN103714030A CN103714030A (en) 2014-04-09
CN103714030B true CN103714030B (en) 2017-09-15

Family

ID=50407024

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310456563.7A Active CN103714030B (en) 2012-10-04 2013-09-29 Method for detecting connection with interface, electronic device and control circuit

Country Status (1)

Country Link
CN (1) CN103714030B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109725939A (en) * 2017-10-27 2019-05-07 深圳市中兴微电子技术有限公司 A chip booting method, chip and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101082892A (en) * 2006-05-30 2007-12-05 三星电子株式会社 Electronic device having usb interface capable of supporting multiple usb interface standards and methods of operating same
CN101540203A (en) * 2008-03-21 2009-09-23 深圳市朗科科技股份有限公司 Method for changing operation program in real time
CN102279820A (en) * 2011-08-24 2011-12-14 四川和芯微电子股份有限公司 Data storage device and control method based on SPI interface

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6792501B2 (en) * 2002-01-31 2004-09-14 Phision Electronic Corp Universal serial bus flash memory integrated circuit device
TW200643781A (en) * 2005-06-02 2006-12-16 Rdc Semiconductor Co Ltd Conversion interface of memory device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101082892A (en) * 2006-05-30 2007-12-05 三星电子株式会社 Electronic device having usb interface capable of supporting multiple usb interface standards and methods of operating same
CN101540203A (en) * 2008-03-21 2009-09-23 深圳市朗科科技股份有限公司 Method for changing operation program in real time
CN102279820A (en) * 2011-08-24 2011-12-14 四川和芯微电子股份有限公司 Data storage device and control method based on SPI interface

Also Published As

Publication number Publication date
CN103714030A (en) 2014-04-09

Similar Documents

Publication Publication Date Title
CN107423169B (en) Method and system for testing high speed peripheral device interconnection equipment
TWI607308B (en) Apparatus, system and method for determining comparison information based on memory data
US7496742B2 (en) Method and system of supporting multi-plugging in X8 and X16 PCI express slots
TWI614608B (en) Apparatus, system and method for communication of touch sensor information
JP2011166720A (en) Motherboard compatible with multiple versions of usb, and related method
TWI760615B (en) Method for performing detect control of write protection command of memory device, associated control chip and associated electronic device
US11693802B2 (en) NAND switch
US10140231B2 (en) Flexible port configuration based on interface coupling
US20170109248A1 (en) Sharing bus port by multiple bus hosts
US7778090B2 (en) Buffer circuit for a memory module
CN103034611B (en) A system for sequence peripheral interface to enhance reading performance
TWI416418B (en) Controllers, apparatuses, and methods for transferring data
CN101826068A (en) Method for hot-plugging PCI-E device and application thereof
US20110125934A1 (en) Apparatuses and methods for transferring data
US7610456B2 (en) Automatically detecting types of external data flash devices
KR20090007412A (en) Multi media card with high storage capacity
CN103714030B (en) Method for detecting connection with interface, electronic device and control circuit
CN100437489C (en) Method for saving system resource
US20060187726A1 (en) Memory bus checking procedure
JP2009252109A (en) Memory card control device
US7159104B2 (en) Simplified memory detection
US10120828B2 (en) Bridge for bus-powered peripheral device power management
CN101901801A (en) Semiconductor chip and semiconductor device including the semiconductor chip
CN105608033A (en) Semiconductor apparatus and operating method thereof
TWI607317B (en) Computer system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant