CN103714030B - Detect the method being connected with interface, electronic installation and control circuit - Google Patents

Detect the method being connected with interface, electronic installation 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
flash memory
electronic devices
memory device
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 method, electronic installation and the control circuit that a kind of detection is connected with interface, and this method is included:Instruction is sent through the interface, multiple bytes are received, the plurality of byte produces for the instruction responded through the interface;Detect that this has received the similitude of byte to produce testing result;And determine the connection with the interface according at least to the testing result.Electronic installation includes the first serial flash memory device, the second serial flash memory device and control circuit.First serial flash memory device is different from the second serial flash memory device type.Circuit is controlled to include the interface shared between first serial flash memory device and second serial flash memory device, the interface is used to communicate with one of first and second serial flash memory device.Method, electronic installation and the control circuit that the detection that the present invention is provided is connected with interface can support different type serial flash, to meet cost needs and market flexibility.

Description

Detect the method being connected with interface, electronic installation and control circuit
Technical field
Embodiments of the invention are related to interface connecting detection(interface connection detection), more Body, it is related to receive the similitude of byte through detection(similarity)And the method being connected with interface is detected, with And interlock circuit and electronic installation.
Background technology
Serial flash(serial flash)It is widely used in various electronic products, such as PC and multimedia dress Put.Serial flash is that a kind of capacity of use serial line interface is small and flash memory of low-power consumption, wherein, serial line interface is typically string Row peripheral interface(Serial Periphery Interface, SPI), so that for sequence(sequential)Data access. Because serial flash uses less external terminal(pin), so as to need less lead.When serial flash is applied to embedded (embedded)During system, due to crystal grain(die)Smaller cost and integrated cost so as to reduce each crystal grain And packaging cost, and obtain and smaller occupy PCB region and less wiring(routing).Therefore, serial flash is embedded A kind of popular storage mode in formula product, with store code and file system, for mobile device.
In order to meet various storage sizes, efficiency and integral product cost needs, in the market has had different type serial Flash memory, such as serial or non-flash(Serial NOR flash, hereinafter referred is done " serial NOR flash memory ")With serial and non-flash (Serial NAND flash, hereinafter referred is done " serially and non-flash ").If one chip(chip)Interior support different type Serial flash, then can further reduce integral product cost.Different drivings may be needed to be used for not for access On the serial flash of same type, so the type of serial flash used in recognizing first(For example, starting(boot-up) When).By taking portable telephone device as an example, the serial flash type that uses needs correctly to recognize in BootRom, with from serial flash It is middle to load guiding through correct driver(boot)Code, wherein, BootRom has hard coded(hard-coded)In fundamental frequency Driver in chip(driver).One traditional method is to use the baseband chip with different BootRom.This side Method is simple but cost is high.A kind of more economic method is through bonding(bonding)Option and distinguish different type flash memory Device.But, since it is desired that determining that manufacture how many kinds of has specific bonding(bonding)The chip of option, institute is in this way Lack market flexibility.
Therefore, industry is badly in need of a kind of interface connection scheme, can support different type serial flash, so as to meet cost Demand and market flexibility.
The content of the invention
In view of this, the present invention provides method and relevant control circuit and the electronics dress that a kind of detection is connected with interface Put.
It is a kind of to 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;Detect received the plurality of byte it is similar Property is to produce testing result;And according at least to the testing result, decision is connected with this of the interface.
The present invention provides a kind of control circuit, comprising:One interface;And a processing unit, the interface is coupled to, the processing Unit is used to send an instruction through the interface, receives multiple bytes, the plurality of byte response pass through the instruction of the interface and Produce;The similitude of the plurality of byte received is detected to produce a testing result;And according at least to the testing result Determine the connection with the interface.
The present invention provides a kind of electronic installation, comprising:At least serial flash device;And control circuit, connect comprising one Mouthful, the interface supports different type electronic serial device, and the control circuit is used for the type for determining at least serial flash device And communicated through the interface with least serial flash device.
Method, electronic installation and the control circuit that the detection that the present invention is provided is connected with interface can support different type string Row flash memory, to meet cost needs and market flexibility.
Brief description of the drawings
Fig. 1 is the block schematic diagram of the control circuit according to one embodiment of the present of invention, included in electronic installation;
Fig. 2 is according to one embodiment of the present of invention, the block schematic diagram of mobile device;
Fig. 3 is that, according to one embodiment of the present of invention, the flash memory device of preceding 3 bytes of serial NOR flash memory device is recognized The schematic diagram of symbol;
Fig. 4 is the logical sequence schematic diagram of serial NOR flash memory device;
Fig. 5 is the schematic diagram of preceding 2 bytes flash memory device identifier of serial nand flash memory device;
Fig. 6 is the logical sequence schematic diagram of serial nand flash memory device;
Fig. 7 is, according to one embodiment of the present of invention, to detect the method flow schematic diagram being connected with interface;
Fig. 8 is, according to an alternative embodiment of the invention, to detect the method flow schematic diagram being connected with interface;
Fig. 9 is, according to an alternative embodiment of the invention, to detect the method flow schematic diagram being connected with interface;
Figure 10 is the block schematic diagram of the electronic installation according to one embodiment of the present of invention;
Figure 11 is the block schematic diagram according to one embodiment of the present of invention electronic installation;
Figure 12 is the block schematic diagram according to one embodiment of the present of invention electronic installation;
Figure 13 is the block schematic diagram of the electronic installation according to one embodiment of the present of invention;
Embodiment
It is right with reference to embodiment and accompanying drawing for the object, technical solutions and advantages of the present invention are more clearly understood The present invention is described in further details.Here, the exemplary embodiment of the present invention and its illustrating to be used to explain the present invention, but simultaneously It is not as a limitation of the invention.Term " component " used, " system ", device can be related to computer in present application Entity, it both can be combination or the software of hardware, hardware and software.Used among specification and claim Some vocabulary censure specific components.Technical staff in art, it is to be appreciated that manufacturer may with different nouns come Call same component.This specification and claims not by the difference of title be used as differentiation component in the way of, but with The difference of component functionally is used as the criterion of differentiation.In " comprising " mentioned in of specification in the whole text and claim and "comprising" is open term, therefore should be construed to " include but be not limited to ".In addition, " coupling " one word is herein comprising any straight Connect and indirect electrical connection.Indirect electrical connection includes being attached by other devices.
Fig. 1 is refer to, Fig. 1 is the control circuit being included in electronic installation 100 according to one embodiment of the present of invention 110 block schematic diagram.Different type electronic installation can be supported or connected to electronic installation 100 using single face(Example Such as, different type serial flash memory device).In this embodiment, control circuit 110 can be including but not limited to processing unit 120 and interface 130.Processing unit 120 is couple to interface 130, and for sending instruction through interface 130 (Instruction, writes a Chinese character in simplified form and is IR), multiple byte B [0]-B [i] are received, the plurality of byte B [0]-B [i] response passes through interface 130 instruction IR and produce, detection receives byte B [0]-B [i] similitude to produce testing result, and according at least to The testing result decides whether to be connected to interface 130, and wherein i is positive integer.In implementation, processing unit 120 can be through reference Byte B [0]-B [i] is received to determine the connection with interface 130, to determine whether interface 130 is connected to specific electronic devices. Except deciding whether that interface 130 is connected to any specific electronic devices, processing unit 120, which can be passed through, will receive byte B [0]-B [i] and tentation data template(pattern), further determine to be connected to the type of the specific electronic devices of interface 130. In addition, processing unit 120 can use pure hardware unit or the processor for performing software program and realize.
In brief, basic conception of the invention is to receive the characteristic of byte according to electronic installation and determine whether connection To the interface of electronic installation.According to present specification, one of ordinary skill in the art refer to serial flash interface(Or SPI)With And relevant connection is to the electronic installation of serial flash memory device.One of ordinary skill in the art are appreciated that still, described in the application Concept be not limited to the above-mentioned type, can also be applied on other types interface, as long as the electronic installation through interface hair Go out instruction(For example, reading READ instruction)After can pass through interface byte, that is, fall into the protection domain of the application.
Fig. 2 is refer to, Fig. 2 is according to one embodiment of the present of invention, the block schematic diagram of mobile device 200.Illustrate Bright, mobile device 200 can be mobile phone.In one embodiment, mobile device 200 can be including but not limited to movement Device chip 210 and PCB240 and serial flash memory device 250.Mobile device chip 210 can be including but not limited to processing Unit 220 and serial flash interface 230.Note that mobile device 200 can be the one of electronic installation 100 as shown in Figure 1 Individual to realize, mobile device chip can realize that processing unit 220 can be Fig. 1 for one of the control circuit 110 shown in Fig. 1 One realization of shown processing unit 120, serial flash interface 230 can be a realization of the interface 130 shown in Fig. 1, And serial flash memory device 250 is a realization of foregoing specific electronic devices.In an example design, mobile device chip 210 can also be embodied as mobile device 200(Such as mobile phone)Baseband chip, and processing unit 220 can be implemented as The BootROm drivers of one circuit or baseband chip.Serial flash interface 230 can be implemented as SPI or relevant interface, Such as double SPI(Dual-SPI), four SPI(Quad-SPI)Or(Quad Peripheral Interface, QPI).Affiliated neck Field technique personnel are appreciated that multiple signal wire SCK(Serial clock)、CS(Piece is selected)、SI(Serial input)、SO(It is serial defeated Go out)、WP(Write)And HOLD(Keep)Any implication is represented, is repeated no more for purpose of brevity herein.
Similar, processing unit 220 can be used for sending instruction IR through interface 230.In serial flash memory device 250 from letter Number line SI is received after instruction IR, can produce multiple byte B [0]-B [i] to respond instruction IR, and through signal wire SO Serial flash interface 230 is sent to, wherein i is positive integer.Then, processing unit 220 can connect through serial flash interface 230 Byte B [0]-B [i] is received, and starts the similitude that detection receives byte B [0]-B [i], to decide whether to be connected to serial interface The electronic installation of mouth(That is, serial flash memory device 250)Whether it is serial flash memory device.When decision electronic installation(That is, serial flash Device 250)For serial flash memory device, processing unit 220 can further recognize the type of serial flash memory device 250, Yi Jigen Communicated according to the type for having recognized serial flash memory device 250 with serial flash memory device 250.In other words, serial flash interface 230 are configurable to support different type serial flash memory device.The further detail below of interface connecting detection is described below.
It please combine Fig. 2 with reference to Fig. 3 and Fig. 4.Fig. 3 be according to one embodiment of the present of invention, serial NOR flash memory device The flash memory device identifier of first three byte(Flash memory device ID)Schematic diagram, Fig. 4 for serial flash memory device logical sequence illustrate Figure.As shown in figure 3, manufacturer identifier of flash memory device ID first three byte by a byte(Manufacture ID, hereinafter referred to as Vendor id)And two byte device identifier(Device ID)Composition.The device ID of one byte represents serial NOR flash memory device Type of memory, another byte device ID represents the memory span of serial NOR flash memory device.In this embodiment, vendor id 16 hex values ' 20h ' it is merely illustrative, it is impossible to limit the scope of the invention.Similar, 16 hex values ' BBh '(It is right Answer type of memory)And 16 hex values ' 16h '(Correspondence memory span)The limitation of the present invention is not constituted.It should be noted that The vendor id and device ID of serial NOR flash memory device can not be 16 hex values ' 00 ' or 16 hex values ' FF '.
As shown in figure 4, in the case of serial flash memory device 250 is serial NOR flash memory device, serial flash memory device 250 can be with Instruction IR is received through signal wire SI(For example, reading READ instruction).In instruction IR(For example read READ instruction)Move into serial After flash memory device 250, the flash memory device ID of serial flash memory device 250(For example, the serial NOR flash memory device in this embodiment) It can remove at once(shift out).More specifically, byte B [0]-B [i] can at once be processed after instruction IR is sent Unit 220 is received, and byte B [0] is received between other bytes B [1]-B [i], and other bytes B [1]-B [i] represents string The vendor id of row flash memory device 250, and byte B [1] and B [2] represent the device ID of serial flash memory device 250.In addition, dress Put ID value ' 15 '-' 0 '(That is, byte B [1] and B [2])Representing has 16 bits, wherein, the bit table of respective value ' 15 ' Showing device ID Most Significant Bit(Most Significant Bit, MSB).It note that the flash memory device ID of serial NOR flash memory Byte quantity be not limited with 3.
Fig. 5 and Fig. 6 is referred to incorporated by reference to Fig. 2 joints.Fig. 5 is to be filled according to the serial nand flash memory of one embodiment of the present of invention The schematic diagram of the flash memory device ID put the first two byte, Fig. 6 is the logical sequence schematic diagram of serial nand flash memory device.Such as Shown in Fig. 5, the dress of the flash memory device ID of serial flash memory device vendor id and a byte of the first two byte packet containing a byte Put ID.In this embodiment, 16 hex values ' 2Ch '(Correspondence vendor id)And 16 hex values ' 12h '(Corresponding intrument ID)It is each Person to illustrate, is not intended to limit the scope of the invention.It should be noted that the manufacturer of serial nand flash memory device ID and device ID any types can not be 16 hex values ' 00 ' or 16 hex values ' FF '.
As shown in fig. 6, in the case where serial flash memory device 250 is serial nand flash memory device, serial flash memory device 250 can receive instruction IR through signal wire SI(For example, reading READ instruction).In instruction IR(For example, reading READ instruction) Move into serial flash memory device 250 and virtual(dummy)Byte is by processing unit 220(Processing unit 220 can not essentially be made Any action)Send(sent)Afterwards, serial flash memory device 250(Such as in this embodiment serial flash memory device)Flash memory device ID can be removed at once, wait to be sent.More specifically, byte B [0]-B [i] can be processed, unit 220 is received at once, is being referred to Make IR and dummy bytes by receive after, wherein, byte B [1] represent serial flash memory device 250 vendor id, byte B [2] The device ID of serial flash memory device 250, and byte B [0] correspondence dummy bytes are represented, wherein, byte B [0] is in byte B [1] And received before B [2], and byte B [0] data template can include multiple bits, each bit has a phase Same binary value(For example, 16 hex values ' 00 ' or ' FF ').It note that when dummy bytes are sent, serial flash memory device 250 Any byte can not be exported, therefore, byte B [0] data template may rely on acquiescence driving setting, and acquiescence driving is set Surely it is used for the output signal of serial flash memory device 250.In addition, dummy bytes can by pulldown signal level(That is, shown in Fig. 6 The bit value ' 0 ' of dummy bytes)And produce, or any action is not done(That is, the bit value ' 0 ' of dummy bytes can be changed into high Resistance state)And produce.Such as device ID value ' 7 '-' 0 '(That is, byte B [2]))Representing has 8 bits, wherein, respective value ' 7 ' Bit represents device ID MSB.Note that the flash memory device of serial nand flash memory device type byte data not as Limit.
As described above, the vendor id of serial NOR/NAND flash memory devices and device ID any byte can be not equal to 16 Hex value ' 00 ' or ' FF ', and before mobile device chip shown in Fig. 2 receives flash memory device ID, serial nand flash memory Device can read dummy bytes.Therefore, the serial flash memory device 250 shown in word Fig. 2 is the situation of serial nand flash memory device Under, preceding 3 bytes received by the processing unit 220 shown in Fig. 2(Correspond to byte, vendor id and Fig. 6 of dummy bytes Shown device ID)It is unequal each other.In addition, vendor id is not equal to device ID in all current serial NOR flash memory devices.Cause This, in the case of serial NOR flash memory device, the serial flash memory device 250 shown in Fig. 2 receives preceding 3 byte(That is, shown in Fig. 4 1 byte vendor id and 2 bytes device ID)It is unequal each other.In brief, the similar of byte has been received through detection Property, processing unit 220 may determine whether that serial flash interface 230 is connected to serial flash memory device.
More specifically, when determining that serial flash interface is connected to serial flash memory device, by received byte Specified byte can be compared with tentation data template, to determine the type of serial flash memory device.Referring again to Fig. 2, Fig. 4 with And Fig. 6.When serial flash memory device 250 is serial nand flash memory device, the byte received before other have received byte (That is, byte B [0])With data template ' 00 ' or ' FF '.When serial flash memory device 250 is serial NOR flash memory device, to the greatest extent Pipe is in this way, the byte received before other bytes(That is, byte B [0])Vendor id is represented, wherein, vendor id is not equal to data sample Type ' 00 ' and ' FF '.Therefore, the type of serial flash memory device 250 can be specific in byte B [0]-B [i] according to having received Byte(That is, byte B [0])And determine.In brief, it is possible to use serial NOR flash memory device and serial nand flash memory device it Between flash memory device ID forms and reading behavior difference, with the connection of detection/recognition and interface.
Fig. 7 is refer to, Fig. 7 is, according to one embodiment of the present of invention, to detect the method flow signal being connected with interface Figure.This method can be implemented by Fig. 1 control circuit 110, and as performed by Fig. 2 mobile device chip 210.This method Simply it may be summarized to be:
Step 700:Start;
Step 710:Instruction is sent through interface;
Step 720:Multiple bytes are received, the plurality of byte response is produced through the instruction of interface;
Step 725:Detection has received the similitude of byte to produce testing result;
Step 730:Decide whether to have received byte mutually the same.If the testing result indicate this received byte that This is identical, then go to step 740.If testing result indicates that to have received byte differing from each other, then go to step 750。
Step 740:Determine that interface is not attached to specific electronic devices;
Step 750:Determine that interface has been coupled to specific electronic devices;
Step 700-750 can be implemented by Fig. 1/Fig. 2 processing unit 120/220, wherein, processing unit 120/220 Pure hardware unit can be used(For example, circuit)Or perform software program(Such as driver)Processor realized, with And specific electronic devices can be serial flash memory device.One of ordinary skill in the art read the above-mentioned description about Fig. 1-Fig. 6 can With the running for the method for understanding Fig. 7, here is omitted for detailed content.
After determining that interface is connected to specific electronic devices, the mobile dress shown in control circuit and Fig. 2 shown in Fig. 1 Putting chip 210 can further determine to have connected the type of specific electronic devices.Fig. 8 is refer to, Fig. 8 is according to the another of the present invention One embodiment, detects the schematic flow sheet of interface connecting method.The step of method shown in Fig. 8 is based on method described by Fig. 7, Difference is, the step of determining specific electronic devices type is further included in Fig. 8.This method simplified summary is as follows:
Step 700:Start.
Step 710:Instruction is sent through interface;
Step 720:Multiple bytes are received, the plurality of byte response is produced through the instruction of the interface.
Step 725:Detection has received the similitude of byte to produce testing result.
Step 830:Decide whether to have received byte mutually the same.If testing result indicates to have received word byte phase each other Together, then go to step 740.If it is differing from each other that testing result instruction has received byte, then goes to step 851.
Step 740:Determine that interface is not attached to specific electronic devices.
Step 851:The specified byte for having received byte is compared with predetermined template to produce comparative result.
Step 852:Decide whether that specified byte is identical with tentation data template.If the comparison indicate that specified byte with Tentation data template is identical, then go to step 854.If the comparison indicate that specified byte and tentation data template not phase Together, then go to step 856.
Step 854:Determine that specific electronic devices have the first kind.
Step 856:Determine that specific electronic devices have Second Type.
Step 700-856 can as performed by the processing unit 120/220 shown in Fig. 1/Fig. 2, wherein, processing unit 120/ 220 can use pure hardware unit(Such as circuit)Or perform software program(Such as driver)Processor realized. In addition, specified byte can be received before the reception of other bytes.Tentation data template can include multiple bits, each bit With an identical binary values, first kind specific electronic devices can be serial nand flash memory device, and Second Type is specific Electronic installation can be serial NOR flash memory device, and the art personnel are read about that can be managed after Fig. 1-Fig. 7 explanation Fig. 8 running is solved, is repeated no more for purpose of brevity herein.
In alternative design, the step of specific electronic devices are connected to interface is determined, and determines to be connected to the spy of interface The step of determining the type of specific electronic devices can be with parallel processing.Fig. 9 is refer to, Fig. 9 is another implementation according to the present invention Example, the method flow diagram of detection interface connection.Method as shown in Figure 9 is based on the step shown in Fig. 7, and difference is that Fig. 9 is included The step of determining specific electronic devices type.This method can be as follows with simplified summary:
Step 700:Start.
Step 710:Instruction is sent through interface;
Step 720:Multiple bytes are received, the plurality of byte response is produced through the instruction of the interface;
Step 960:Detection has received the similitude of byte to produce testing result;
Step 970:The specified byte for having received byte is compared to produce comparative result with tentation data template.
Step 980:Decide whether that interface is connected to specific electronic devices with reference to testing result, and determined with reference to comparative result Surely it is connected to the type of the specific electronic devices of interface.
Step 700-980 can as performed by the processing unit 120/220 shown in Fig. 1/Fig. 2, wherein, processing unit 120/ 220 can use pure hardware(For example, circuit)Or perform software program(For example, driver)Processor realized. During one is realized, when testing result indicates that interface is not connected to specific electronic devices, comparative result can be abandoned.Affiliated neck The explanation that field technique personnel read Fig. 1-Fig. 8 is appreciated that Fig. 9 method is operated, and for purpose of brevity, here is omitted.
Method shown in Fig. 7-Fig. 9 can be implemented to communicate from different specific electronic devices by electronic installation.It refer to Figure 10, Figure 10 are according to one embodiment of the present of invention, the block schematic diagram of electronic installation 1000.Electronic installation 1000 can be wrapped Contain but be not limited to control circuit 1010, PCB1040, the first serial flash memory device 1052 and the second serial flash memory device 1054.For example, not being construed as limiting the invention so, electronic installation 1000 can be implemented as mobile device(For example, moving Mobile phone), control circuit 1010 to can be implemented as a mobile device chip, the first serial flash memory device 1052 can be implemented as Serial NOR flash memory device, the second serial flash memory device 1054 can be implemented as serial nand flash memory device.As shown in Figure 10, control Circuit 1010 processed can include an interface(That is, serial flash interface 1030 in this embodiment), the interface can be in the first string Between the serial flash memory device 1054 of row flash memory device 1052 and second share, and can for the first serial flash memory device 1052 And second one of serial flash memory device 1054 communicated through serial flash interface 1030.In addition, being connected to control Circuit 1010 and circuit board processed(That is, PCB1040)Between 6 signal wires be used for signal wire SCK, CS, SI, SO, WP with And HOLD uploads the number of delivering letters.
In one implementation, electronic installation 1000 can be coupled comprising a selecting unit 1060, the selecting unit 1060 To serial flash interface 1030.As shown in Figure 10, selecting unit 1060 may be embodied in control circuit 1010, and for selecting Selecting property by serial flash interface 1030 be couple to the first serial flash memory device 1052 and the second serial flash memory device 1054 its One of.In doing in fact, selecting unit 1060 can be by multiplexer(multiplexer), moderator or other types selection Unit is realized.It note that only one of which single circuit board(Such as PCB1040)Need while having the first serial flash memory device 1052 and second serial flash memory device 1054.Therefore, consumer need not be used for different types of serial flash memory device Specific PCB.
The quantity for the serial flash memory device placed on Figure 10 PCB1040 is not limited to shown in the embodiment of the present invention.It refer to Figure 11, Figure 11 are according to one embodiment of the present of invention, the block schematic diagram of electronic installation 1100.The framework of electronic installation 1100 Based on the framework of electronic installation 1000, difference is that only one of which serial flash memory device 1150 is placed on PCB1140, wherein, string Row flash memory device 1150 can be one of serial NOR flash memory device and serial nand flash memory device.In one implementation Acquiescence connection can be set up between serial flash interface 1030 and serial flash memory device 1150.It note that selecting unit 1060 It is optional, and can ignores.
In brief, method can be realized with electronic installation shown in Fig. 7-Fig. 9, wherein, electronic installation can be comprising at least Serial flash device and the control circuit with interface, wherein, the interface supports different type serial flash memory device.Control Circuit can be used for determining the type of at least serial flash device, and be carried out through interface with least serial flash device Communication.In addition, at least serial flash device can include different type serial flash memory device, and interface is in different type string Shared between row flash memory device.In one implementation, at least serial flash device can comprising serial NOR flash memory device and Serial nand flash memory device at least one.
The framework of selecting unit 1060 is merely illustrative in electronic installation 1000/1100, the guarantor being not intended to limit the invention Protect scope.Figure 12 is refer to, Figure 12 is according to one embodiment of the present of invention, the block schematic diagram of electronic installation 1200.Electronics The framework of device 1200 is that Figure 12 selecting unit 1260 does not include based on the electronic installation 1000 shown in Figure 10, and difference In control circuit 1210, and it is located in circuit board(That is PCB1240)On, wherein, the first serial sudden strain of a muscle is mounted with circuit board The serial flash memory device 1054 of cryopreservation device 1052 and second.In addition, control circuit 1210 and circuit board(That is PCB1240)Between connect 6 lines connect are used to transmit signal for serial flash memory device.Similarly, the selecting unit 1260 shown in Figure 12 can be not included in Control in circuit 1210.Figure 13 is refer to, Figure 13 is that, according to one embodiment of the present of invention, the square of electronic installation 1300 is illustrated Figure.Framework of the framework of electronic installation 1300 based on the electronic installation 1100 shown in Figure 11 in Figure 13, difference is shown in Figure 13 Selecting unit 1360 be not comprised in control circuit 1310, and be located in circuit board(That is PCB1340)On, wherein, electricity Serial flash memory device 1150 is mounted with the plate of road.
Conclude and, different type serial flash memory device can use the method and device of the embodiment of the present application to be examined Survey/decision, so and does not need different baseband chips, different specific PCB, bonding option or other hard wires(hard-wired) Method.In addition, the method, device proposed by the application is applied to all communication protocols on serial flash memory device.
One of ordinary skill in the art can be retouched and be changed to embodiments of the invention after specification is read, Without departing from the present invention spirit, within the scope of the present invention.Protection scope of the present invention is not limited with embodiment, It is defined by claim content.

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 Detect the method being connected with interface, electronic installation 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 Detect the method being connected with interface, electronic installation 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 kind of chip starting 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
US7603501B2 (en) Communication circuit of serial peripheral interface devices
CN101089837B (en) Apparatus and method for discerning a host interface
US20100233908A1 (en) Integrated circuits
US7721046B2 (en) Memory card authentication system, capacity switching-type memory card host device, capacity switching-type memory card, storage capacity setting method, and storage capacity setting program
CN108227613A (en) Electronic device and its operating method
US20190146944A1 (en) Dynamically adjustable multi-line bus shared by multi-protocol devices
JP2006004079A (en) Storage device
TW201633122A (en) Apparatus, method and system to exchange error information in a unified protocol communication
JP2011166720A (en) Motherboard compatible with multiple versions of usb, and related method
JP2012133783A (en) Multi-interface memory card and its operation method
TW201232276A (en) Main board and method for dynamically configuring PCIE ports thereof
WO2017095593A1 (en) Increased data flow in universal serial bus (usb) cables
CN103714030B (en) Detect the method being connected with interface, electronic installation and control circuit
US7275186B2 (en) Memory bus checking procedure
CN102023955A (en) Method for connecting USB controller and USB controller
CN104123257B (en) Universal serial bus device, communication means and computer-readable recording medium
CN105608033B (en) Semiconductor device and method of operating the same
KR100922812B1 (en) Method and system for controlling of peripherals
TWI394045B (en) Portable electronic device and method of identifying its accessories
EP2216736A1 (en) Data storage device and method for operating the same
CN221175404U (en) Interface circuit and electronic equipment
CN104598187B (en) A kind of information processing method and electronic equipment
CN114585153B (en) Circuit board, electronic equipment and computing system
CN114327287B (en) Method, device, equipment and medium for setting wafer of solid state disk
KR20150064473A (en) Data processing apparatus and method for processing data

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