CN103714030A - Method capable of detecting connection with interface, electronic device and control circuit - Google Patents

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

Info

Publication number
CN103714030A
CN103714030A CN201310456563.7A CN201310456563A CN103714030A CN 103714030 A CN103714030 A CN 103714030A CN 201310456563 A CN201310456563 A CN 201310456563A CN 103714030 A CN103714030 A CN 103714030A
Authority
CN
China
Prior art keywords
interface
flash memory
memory device
byte
serial
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.)
Granted
Application number
CN201310456563.7A
Other languages
Chinese (zh)
Other versions
CN103714030B (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

Images

Abstract

The invention provides a method capable of detecting a connection with an interface, an electronic device and a control circuit. The method comprises the following steps: the instructions can be sent via the interface, and a plurality of bytes can be received; the plurality of bytes can be generated in order to respond to the instructions sent via the interface; the similarity of the received bytes can be detected to generate the detection results; and the connection with the interface can be determined at least according to the detection results. The electronic device comprises a first serial flash memory device, a second serial flash memory device, and a control circuit. The type of the first serial flash memory device is different from the type of the second serial flash memory device. The control circuit comprises an interface shared by the first serial flash memory device and the second serial flash memory device, and the interface is used for the communication of one of the first serial flash memory device, a second serial flash memory device. The method, the electronic device, and the control circuit provided by the invention is advantageous in that the serial flash memories having different types can be supported, the cost and the market flexibility requirment can be satisfied.

Description

Detect the method, electronic installation and the control circuit that are connected with interface
Technical field
Embodiments of the invention connect and detect (interface connection detection) relevant for interface, more specifically, relevant for see through detecting, having received the similarity (similarity) of byte and detected the method being connected with interface and interlock circuit and electronic installation.
Background technology
Serial flash (serial flash) is widely used in various electronic products, for example PC and multimedia device.Serial flash is the flash memory of the little and low-power consumption of a kind of capacity that uses serial line interface, and wherein, serial line interface typically is serial peripheral interface (Serial Periphery Interface, SPI), thereby for sequence (sequential) data access.Because serial flash is used external terminal (pin) still less, thereby need lead-in wire still less.When serial flash is applied to embedded (embedded) system, due to crystal grain (die) thus less cost and integrated cost and the packaging cost that can reduce each crystal grain of size and obtains less occupy PCB region and wiring still less (routing).Therefore, serial flash is a kind of very popular storage mode in embedded product, with storage code and file system, especially for mobile device.
In order to meet various storage sizes, usefulness and integral product cost demand, on market, there is dissimilar serial flash, serial or non-flash memory (serial NOR flash for example, hereinafter referred is done " serial NOR flash memory ") and serial and non-flash memory (serial NAND flash, hereinafter referred is done " serial and non-flash memory ").If support dissimilar serial flash in one chip (chip), can further reduce integral product cost so.For access, may need different drivings for dissimilar serial flash, for example, so the type of the serial flash that first identification is used (, when starting (boot-up)).Take portable telephone device as example, the serial flash type of using need to correctly be identified in BootRom, to see through correct driver from serial flash, load guiding (boot) code, wherein, BootRom has the driver (driver) of hard coded (hard-coded) in fundamental frequency chip.A traditional method is to use the fundamental frequency chip with different B ootRom.This method is simple but cost is high.A kind of more economic method is to distinguish dissimilar flash memory device through bonding (bonding) option.But, because need to determine to manufacture the chip that how many kinds of has specific bonding (bonding) option, so this method lacks market dirigibility.
Therefore, industry is badly in need of a kind of interface connection scheme, can support dissimilar serial flash, thereby meets cost demand and market dirigibility.
Summary of the invention
In view of this, the invention provides a kind of method being connected and relevant control circuit and electronic installation detecting with interface.
Detect the method being connected with an interface, comprise: through this interface, send an instruction; Receive a plurality of bytes, wherein, the plurality of byte response sees through this instruction that this interface sends and produces; Detect the similarity of the plurality of byte having received to produce testing result; And at least according to this testing result, determine to be connected with this of this interface.
The invention provides a kind of control circuit, comprise: an interface; And a processing unit, being coupled to this interface, this processing unit sends an instruction for seeing through this interface, receives a plurality of bytes, and the plurality of byte response sees through this instruction of this interface and produces; Detect the similarity of this plurality of byte having received to produce a testing result; And at least according to this testing result, determine and being connected of this interface.
The invention provides a kind of electronic installation, comprise: at least one serial flash memory device; And control circuit, comprising an interface, this interface is supported dissimilar serial electronic installation, this control circuit is for determining the type of at least one serial flash memory device and communicating through this interface and this at least one serial flash memory device.
The method that detection provided by the invention is connected with interface, electronic installation and control circuit can be supported dissimilar serial flash, to meet cost demand and market dirigibility.
Accompanying drawing explanation
Fig. 1 is for according to one embodiment of present invention, the block schematic diagram of the control circuit comprising in electronic installation;
Fig. 2 is for according to one embodiment of present invention, the block schematic diagram of mobile device;
Fig. 3 is for according to one embodiment of present invention, the flash memory device identifier of front 3 bytes of serial NOR flash memory device schematic diagram;
Fig. 4 is the logical sequence schematic diagram of serial NOR flash memory device;
Fig. 5 is the schematic diagram of front 2 byte flash memory device identifiers of serial nand flash memory device;
Fig. 6 is the logical sequence schematic diagram of serial nand flash memory device;
Fig. 7, for according to one embodiment of present invention, detects the method flow schematic diagram being connected with interface;
Fig. 8, for according to another embodiment of the invention, detects the method flow schematic diagram being connected with interface;
Fig. 9, for according to another embodiment of the invention, detects the method flow schematic diagram being connected with interface;
Figure 10 is the block schematic diagram of electronic installation according to an embodiment of the invention;
Figure 11 is the block schematic diagram of electronic installation according to one embodiment of present invention;
Figure 12 is the block schematic diagram of electronic installation according to one embodiment of present invention;
Figure 13 is the block schematic diagram of electronic installation according to an embodiment of the invention;
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with embodiment and accompanying drawing, the present invention is described in further details.At this, exemplary embodiment of the present invention and explanation thereof are used for explaining the present invention, but not as a limitation of the invention.In the application's case, term used " assembly ", " system ", device can be the entities relevant to computing machine, and it can be both the combination of hardware, hardware and software, can be also software.In the middle of instructions and claim, used some vocabulary to censure specific components.In affiliated field, technician should understand, and same assembly may be called with different nouns by manufacturer.This specification and claims are not used as distinguishing the mode of assembly with the difference of title, but the difference in function is used as the criterion of distinguishing with assembly.In the whole text, in the middle of instructions and claim, be open term mentioned " comprising " and " comprising ", therefore should be construed to " comprise but be not limited to ".In addition, " coupling " word comprises directly any and is indirectly electrically connected means at this.Indirectly electrical connection means comprise by other device and connecting.
Please refer to Fig. 1, Fig. 1 is the block schematic diagram that is included in the control circuit 110 in electronic installation 100 according to an embodiment of the invention.Electronic installation 100 can utilize single face with support or connect dissimilar electronic installation (for example, dissimilar 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 send instruction (instruction for seeing through interface 130, write a Chinese character in simplified form and be IR), receive a plurality of byte B[0]-B[i], the plurality of byte B[0]-B[i] response sees through the instruction IR of interface 130 and produces, detect the byte B[0 that receives]-B[i] similarity with generation testing result, and at least according to this testing result decision, whether be connected to interface 130, wherein i is positive integer.In implementation, processing unit 120 can see through with reference to having received byte B[0]-B[i] to determine and being connected of interface 130, to determine whether interface 130 is connected to specific electronic devices.Except determining whether interface 130 is connected to any specific electronic devices, processing unit 120 can see through and will receive byte B[0]-B[i] and tentation data template (pattern), further decision is connected to the type of the specific electronic devices of interface 130.In addition, processing unit 120 can be used the processor of pure hardware unit or software program for execution and realize.
In brief, key concept of the present invention is according to the characteristic of byte that electronic installation receives, to determine whether to be connected to the interface of electronic installation.According to present specification, one of ordinary skill in the art arrive the electronic installation of serial flash memory device with reference to serial flash interface (or SPI) and relevant connection.One of ordinary skill in the art are appreciated that; but; the concept of recording in the application is not limited to the above-mentioned type; also can be applied on other types interface; for example, as long as described electronic installation (is sending instruction through interface; read READ instruction) after can see through interface and receive byte, fall into the application's protection domain.
Please refer to Fig. 2, Fig. 2 is for according to one embodiment of present invention, the block schematic diagram of mobile device 200.Illustrate, mobile device 200 can be mobile phone.In one embodiment, mobile device 200 can be including but not limited to mobile 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.Please note, mobile device 200 can be a realization of electronic installation 100 as shown in Figure 1, mobile device chip can be a realization of the control circuit 110 shown in Fig. 1, processing unit 220 can be a realization of the processing unit 120 shown in Fig. 1, serial flash interface 230 can be a realization of the interface 130 shown in Fig. 1, and serial flash memory device 250 realization that is aforementioned specific electronic devices.In an example design, mobile device chip 210 also can be implemented as for example mobile phone of mobile device 200() fundamental frequency chip, and processing unit 220 can be implemented as the BootROm driver of a circuit or fundamental frequency chip.Serial flash interface 230 can be implemented as SPI or relevant interface, for example two SPI(Dual-SPI), four SPI(Quad-SPI) or (Quad Peripheral Interface, QPI).One of ordinary skill in the art are appreciated that a plurality of signal wire SCK(serial clocks), CS(sheet choosing), SI(serial input), SO(serial output), WP(writes) and HOLD(keep) represent what implication, repeat no more for purpose of brevity herein.
Similar, processing unit 220 can send instruction IR for seeing through interface 230.At serial flash memory device 250, after signal wire SI receives instruction IR, can produce a plurality of byte B[0]-B[i] with response instruction IR, and send to serial flash interface 230 through signal wire SO, wherein i is positive integer.Then, processing unit 220 can see through serial flash interface 230 and receive byte B[0]-B[i], and start detect to receive byte B[0]-B[i] similarity, with the electronic installation (that is, serial flash memory device 250) that determines whether to be connected to serial line interface whether for serial flash memory device.When determining electronic installation (, serial flash memory device 250) be serial flash memory device, processing unit 220 can further be identified the type of serial flash memory device 250, and communicates with serial flash memory device 250 according to identifying the type of serial flash memory device 250.In other words, serial flash interface 230 can be configured to support dissimilar serial flash memory device.Interface is described below and connects the further details detecting.
Please combine Fig. 2 with reference to figure 3 and Fig. 4.Fig. 3 is for according to one embodiment of present invention, the schematic diagram of the flash memory device identifier of first three byte of serial NOR flash memory device (flash memory device ID), the logical sequence schematic diagram that Fig. 4 is serial flash memory device.As shown in Figure 3, first three byte of flash memory device ID is comprised of the vendor identification symbol (manufacture ID is below called vendor id) of a byte and the device identifier of two bytes (device ID).The device ID of one byte represents the type of memory of serial NOR flash memory device, and another byte device ID represents the memory span of serial NOR flash memory device.In this embodiment, 16 hex value ' 20h ' of vendor id are only example, can not be in order to limit the scope of the invention.Similar, 16 hex value ' BBh ' (corresponding stored device type) and 16 hex value ' 16h ' (corresponding stored device capacity) do not form restriction of the present invention.The vendor id and the device ID that it should be noted that serial NOR flash memory device can not be 16 hex value ' 00 ' or 16 hex value ' FF '.
As shown in Figure 4, serial flash memory device 250 is in serial NOR flash memory device situation, and serial flash memory device 250 can see through signal wire SI and for example receive instruction IR(, reads READ instruction).At instruction IR(, for example read READ instruction) move into serial flash memory device 250 after, the flash memory device ID(of serial flash memory device 250 for example, the serial NOR flash memory device in this embodiment) can shift out at once (shift out).More specifically, byte B[0]-B[i] can be after instruction IR sends at once processed unit 220 receive, byte B[0] at other bytes B[1]-B[i] and between be received, other bytes B[1]-B[i] represent the vendor id of serial flash memory device 250 and byte B[1] and B[2] represent the device ID of serial flash memory device 250.In addition, the value ' 15 '-' 0 ' of device ID (that is, byte B[1] and B[2]) represent to there are 16 bits, wherein, the Most Significant Bit of the table of bits showing device ID of respective value ' 15 ' (Most Significant Bit, MSB).The byte quantity that note that the flash memory device ID of serial NOR flash memory is not limited with 3.
Incorporated by reference to Fig. 2, combine with reference to figure 5 and Fig. 6.Fig. 5 is the schematic diagram of the first two byte of the flash memory device ID of serial nand flash memory device according to one embodiment of present invention, and Fig. 6 is for being the logical sequence schematic diagram of serial nand flash memory device.As shown in Figure 5, the first two byte packet of the flash memory device ID of serial flash memory device is containing the vendor id of a byte and the device ID of a byte.In this embodiment, each all illustrates 16 hex value ' 2Ch ' (corresponding vendor id) and 16 hex value ' 12h ' (corresponding intrument ID) in order to example, is not intended to limit the scope of the invention.It should be noted that the vendor id of serial nand flash memory device and any type of device ID can not be all 16 hex value ' 00 ' or 16 hex value ' FF '.
As shown in Figure 6, in the situation that serial flash memory device 250 is serial nand flash memory device, serial flash memory device 250 can see through signal wire SI and for example receive instruction IR(, read READ instruction).At instruction IR(for example, read READ instruction) move into serial flash memory device 250 and in fact virtual (dummy) byte can not do any action by processing unit 220(processing unit 220) send (sent) afterwards, serial flash memory device 250(is serial flash memory device in this embodiment for example) flash memory device ID can shift out at once, wait to be sent.More specifically, byte B[0]-B[i] can receive at once processed unit 220, after instruction IR and dummy bytes are received, wherein, byte B[1] represent the vendor id of serial flash memory device 250, byte B[2] represent the device ID of serial flash memory device 250, and byte B[0] corresponding dummy bytes, wherein, byte B[0] at byte B[1] and B[2] receive before, and byte B[0] data template can comprise a plurality of bits, each bit has an identical binary values (for example, 16 hex value ' 00 ' or ' FF ').Note that when dummy bytes sends, serial flash memory device 250 can not exported any byte, therefore, byte B[0] data template can depend on acquiescence and drive and set, this acquiescence drives the output signal of setting for serial flash memory device 250.In addition, dummy bytes can be produced by the level (that is, the bit value ' 0 ' of dummy bytes shown in Fig. 6) of pulldown signal, or does not do any action (that is, the bit value ' 0 ' of dummy bytes can become high-impedance state) and produce.As the value ' 7 '-' 0 ' (that is, byte B[2]) of installing ID) representative has 8 bits, and wherein, the bit of respective value ' 7 ' represents the MSB of device ID.Note that the byte data of type of flash memory device of serial nand flash memory device is not as limit.
As mentioned above, any byte of the vendor id of serial NOR/NAND flash memory device and device ID can be not equal to 16 hex value ' 00 ' or ' FF ', and before the mobile device chip shown in Fig. 2 receives flash memory device ID, serial nand flash memory device can read dummy bytes.Therefore, in the situation that serial flash memory device shown in word Fig. 2 250 is serial nand flash memory device, received front 3 bytes of the processing unit 220 shown in Fig. 2 (being the device ID shown in byte, vendor id and Fig. 6 of corresponding dummy bytes) are unequal each other.In addition, in all current serial NOR flash memory devices, vendor id is not equal to device ID.Therefore,, the in the situation that of serial NOR flash memory device, it is unequal each other that the serial flash memory device 250 shown in Fig. 2 receives front 3 bytes (that is, 1 byte vendor id shown in Fig. 4 and the device ID of 2 bytes).In brief, see through and detect the similarity that has received byte, processing unit 220 can determine whether serial flash interface 230 is connected to serial flash memory device.
More particularly, when determining that serial flash interface is connected to serial flash memory device, the specified byte in received byte can be compared with tentation data template, to determine the type of serial flash memory device.Please refer again to Fig. 2, Fig. 4 and Fig. 6.When serial flash memory device 250 is during for serial nand flash memory device, the byte receiving before other receive byte (that is, byte B[0]) has data template ' 00 ' or ' FF '.When serial flash memory device 250 is serial NOR flash memory device, however, the byte receiving before other bytes (that is, byte B[0]) represent vendor id, wherein, vendor id is not equal to data template ' 00 ' and ' FF '.Therefore, the type of serial flash memory device 250 can be according to receiving byte B[0]-B[i] in specified byte (that is, byte B[0]) and determine.In brief, can utilize flash memory device ID form between serial NOR flash memory device and serial nand flash memory device and the difference of the behavior of reading, with being connected of detection/recognition and interface.
Please refer to Fig. 7, Fig. 7, for according to one embodiment of present invention, detects the method flow schematic diagram being connected with interface.The method can be implemented by the control circuit 110 of Fig. 1, and performed by the mobile device chip 210 of Fig. 2.The method may be summarized to be simply:
Step 700: start;
Step 710: see through interface and send instruction;
Step 720: receive a plurality of bytes, the plurality of byte response sees through the instruction of interface and produces;
Step 725: detection has received the similarity of byte to produce testing result;
Step 730: determine whether received byte mutually the same.If this testing result indicates this, to have received byte mutually the same, forwards so step 740 to.If testing result indicates, to receive byte differing from each other, forwards so step 750 to.
Step 740: determine that interface is not connected to specific electronic devices;
Step 750: determine that interface has been connected to specific electronic devices;
Step 700-750 can be implemented by the processing unit 120/220 of Fig. 1/Fig. 2, wherein, processing unit 120/220 (for example can be used pure hardware unit, circuit) or the processor of software program for execution (for example driver) realize, and specific electronic devices can be serial flash memory device.One of ordinary skill in the art read the running that the above-mentioned description about Fig. 1-Fig. 6 is appreciated that the method for Fig. 7, and detailed content repeats no more herein.
After determining that interface is connected to specific electronic devices, the mobile device chip 210 shown in the control circuit shown in Fig. 1 and Fig. 2 can further determine to connect the type of specific electronic devices.Please refer to Fig. 8, Fig. 8, for according to another embodiment of the invention, detects the schematic flow sheet of interface connecting method.The step of method shown in Fig. 8 based on the described method of Fig. 7, difference is, further comprises the step that determines specific electronic devices type in Fig. 8.The method simplified summary is as follows:
Step 700: start.
Step 710: see through interface and send instruction;
Step 720: receive a plurality of bytes, the plurality of byte response sees through the instruction of this interface and produces.
Step 725: detection has received the similarity of byte to produce testing result.
Step 830: determine whether received byte mutually the same.If it is mutually the same that testing result indication has received word byte, forward so step 740 to.If it is differing from each other that testing result indication has received byte, forward so step 851 to.
Step 740: determine that interface is not connected to specific electronic devices.
Step 851: the specified byte and the predetermined template that receive byte are compared to produce comparative result.
Step 852: determine whether specified byte is identical with tentation data template.If comparative result indication specified byte is identical with tentation data template, forward so step 854 to.If comparative result indication specified byte is not identical with tentation data template, forward so step 856 to.
Step 854: determine that specific electronic devices has the first kind.
Step 856: determine that specific electronic devices has Second Type.
Step 700-856 can be performed by the processing unit 120/220 shown in Fig. 1/Fig. 2, and wherein, processing unit 120/220 can be used the processor of pure hardware unit (for example circuit) or software program for execution (for example driver) to realize.In addition, specified byte can receive before other bytes receive.Tentation data template can comprise a plurality of bits, each bit has an identical binary values, first kind specific electronic devices can be serial nand flash memory device, Second Type specific electronic devices can be serial NOR flash memory device, described those skilled in the art read the running that is appreciated that Fig. 8 after the explanation of relevant Fig. 1-Fig. 7, repeat no more for purpose of brevity herein.
In replacing design, determine that specific electronic devices is connected to the step of interface, and determine to be connected to the step of type of the specific specific electronic devices of interface can parallel processing.Please refer to Fig. 9, Fig. 9, for according to another embodiment of the invention, detects the method flow diagram that interface connects.The step of method as shown in Figure 9 based on shown in Fig. 7, difference is that Fig. 9 comprises the step that determines specific electronic devices type.The method is can simplified summary as follows:
Step 700: start.
Step 710: see through interface and send instruction;
Step 720: receive a plurality of bytes, the plurality of byte response sees through the instruction of this interface and produces;
Step 960: detection has received the similarity of byte to produce testing result;
Step 970: the specified byte and the tentation data template that receive byte are compared to produce comparative result.
Step 980: with reference to testing result, determine whether interface is connected to specific electronic devices, and the type that is connected to the specific electronic devices of interface with reference to comparative result decision.
Step 700-980 can be performed by the processing unit 120/220 shown in Fig. 1/Fig. 2, and wherein, processing unit 120/220 can be used the processor of pure hardware (for example, circuit) or software program for execution (for example, driver) to realize.In one implementation, when testing result indication interface is not connected to specific electronic devices, comparative result can abandon.The explanation that one of ordinary skill in the art read Fig. 1-Fig. 8 is appreciated that the method for Fig. 9 operates, and for purpose of brevity, repeats no more herein.
Method shown in Fig. 7-Fig. 9 can be by electronic installation enforcement to communicate by letter from different specific electronic devices.Please refer to Figure 10, Figure 10 is for according to one embodiment of present invention, the block schematic diagram of electronic installation 1000.Electronic installation 1000 can be including but not limited to control circuit 1010, PCB1040, the first serial flash memory device 1052 and the second serial flash memory device 1054.Illustrate, so be not construed as limiting the invention, electronic installation 1000 (for example can be implemented as mobile device, mobile phone), control circuit 1010 can be implemented as a mobile device chip, the first serial flash memory device 1052 can be implemented as serial NOR flash memory device, and the second serial flash memory device 1054 can be implemented as serial nand flash memory device.As shown in figure 10, (control circuit 1010 can comprise an interface, serial flash interface 1030 in this embodiment), this interface can be shared 1054 of the first serial flash memory device 1052 and the second serial flash memory devices, and can be used for seeing through serial flash interface 1030 with one of them of the first serial flash memory device 1052 and the second serial flash memory device 1054 and communicate.In addition (that is, 6 signal wires between PCB1040) are for uploading at signal wire SCK, CS, SI, SO, WP and HOLD the number of delivering letters, to be connected to control circuit 1010 and circuit board.
In one implementation, electronic installation 1000 can comprise a selected cell 1060, and this selected cell 1060 is couple to serial flash interface 1030.As shown in figure 10, selected cell 1060 can be included in control circuit 1010, and for optionally serial flash interface 1030 is couple to the first serial flash memory device 1052 and the second serial flash memory device 1054 one of them.In doing in fact, selected cell 1060 can be realized by multiplexer (multiplexer), moderator or other types selected cell.Note that and only have a single circuit board (for example PCB1040) need to there is the first serial flash memory device 1052 and the second serial flash memory device 1054 simultaneously.Therefore, consumer does not need to use the specific PCB for dissimilar serial flash memory device.
The quantity of the upper serial flash memory device of placing of PCB1040 of Figure 10 is not limited to shown in the embodiment of the present invention.Please refer to Figure 11, Figure 11 is for according to one embodiment of present invention, the block schematic diagram of electronic installation 1100.The framework of the framework of electronic installation 1100 based on electronic installation 1000, difference is upper for only having a serial flash memory device 1150 to be placed on PCB1140, wherein, serial flash memory device 1150 can for serial NOR flash memory device and serial nand flash memory device one of them.Acquiescence connects and can between serial flash interface 1030 and serial flash memory device 1150, set up in one implementation.Note that selected cell 1060 is optional, and can ignore.
In brief, method shown in Fig. 7-Fig. 9 can realize with electronic installation, wherein, the control circuit that electronic installation can comprise at least one serial flash memory device and have interface, wherein, this interface is supported dissimilar serial flash memory device.Control circuit can be for determining the type of at least one serial flash memory device, and see through interface and at least one serial flash memory device communicates.In addition, at least one serial flash memory device can comprise dissimilar serial flash memory device, and interface is shared between dissimilar serial flash memory device.In one implementation, at least one serial flash memory device can comprise serial NOR flash memory device and serial nand flash memory device at least one of them.
In electronic installation 1000/1100, the framework of selected cell 1060 is only example, is not limited to protection scope of the present invention.Please refer to Figure 12, Figure 12 is for according to one embodiment of present invention, the block schematic diagram of electronic installation 1200.The electronic installation 1000 of the framework of electronic installation 1200 based on shown in Figure 10, and difference is that the selected cell 1260 of Figure 12 is not included in control circuit 1210, but be placed on circuit board (being PCB1240), wherein, the first serial flash memory device 1052 and the second serial flash memory device 1054 have been installed on circuit board.In addition 6 lines that connect between control circuit 1210 and circuit board (being PCB1240), are used to serial flash memory device to transmit signal.Similarly, the selected cell shown in Figure 12 1260 can not be included in control circuit 1210.Please refer to Figure 13, Figure 13 is for according to one embodiment of present invention, the block schematic diagram of electronic installation 1300.The framework of the electronic installation 1100 of the framework of electronic installation 1300 based on shown in Figure 11 in Figure 13, difference is that the selected cell 1360 shown in Figure 13 is not comprised in control circuit 1310, but be placed on circuit board (being PCB1340), wherein, serial flash memory device 1150 has been installed on circuit board.
Sum up in fact, dissimilar serial flash memory device can be used the method for the embodiment of the present application and device to detect/determine, does not so need different fundamental frequency chips, different specific PCB, bonding option or other hard wires (hard-wired) method.In addition the method, device that, the application advises is applicable to all communication protocols on serial flash memory device.
One of ordinary skill in the art can retouch and change embodiments of the invention after reading instructions, otherwise depart from spirit of the present invention, all in protection scope of the present invention.Protection scope of the present invention is not limited with embodiment, with claim content, is as the criterion.

Claims (28)

1. the method being connected of detection and an interface, comprises:
See through this interface and send an instruction;
Receive a plurality of bytes, wherein, the plurality of byte response sees through this instruction that this interface sends and produces;
Detect the similarity of the plurality of byte having received to produce testing result; And
At least according to this testing result, determine to be connected with this of this interface.
2. the method for claim 1, is characterized in that, at least according to this testing result, determines to comprise with the step being connected of this interface:
With reference to this testing result, determine whether this interface is connected to specific electronic devices.
3. method as claimed in claim 2, is characterized in that, this specific electronic devices is serial flash memory device.
4. method as claimed in claim 2, is characterized in that, with reference to this testing result, determines that the step that this specific electronic devices whether is connected to this interface comprises:
When this testing result indicates the plurality of byte having received mutually the same, determine that this interface is not connected to this specific electronic devices; And
When this testing result indicates the plurality of byte having received differing from each other, determine that this interface is connected to this specific electronic devices.
5. the method for claim 1, is characterized in that further comprising:
The specified byte of the plurality of byte having received and tentation data template byte compare to produce comparative result;
Wherein, at least according to this testing result, determine to comprise with this step being connected of this interface:
According to this testing result and this comparative result, determine to be connected with this of this interface.
6. method as claimed in claim 5, is characterized in that, this specified byte was received before other receive byte.
7. method as claimed in claim 5, is characterized in that, this tentation data template comprises a plurality of bits, and each of the plurality of bit has identical binary values.
8. method as claimed in claim 5, is characterized in that, according to this testing result and this comparative result, determines to comprise with this step being connected of this interface:
With reference to this testing result, with decision, whether this interface is connected to specific electronic devices; And
With reference to this comparative result, with decision, be connected to the type of this specific electronic devices of this interface.
9. method as claimed in claim 8, is characterized in that, this specific electronic devices is a serial flash memory device.
10. method as claimed in claim 8, is characterized in that, with reference to this comparative result, to determine to be connected to the step of type of this specific electronic devices of this interface, comprises:
When this comparative result indicates this specified byte identical with this tentation data template, determine that this specific electronic devices has the first kind; And
When this comparative result indicates this specified byte not identical with this tentation data template, determine that this specific electronic devices has Second Type.
11. methods as claimed in claim 10, is characterized in that, the specific electronic devices of this first kind is a serial and non-flash memory device, and the specific electronic devices of this Second Type is serial or non-flash memory device.
12. 1 kinds of control circuits, comprise:
Interface; And
Processing unit, is coupled to this interface, and this processing unit sends an instruction for seeing through this interface, receives a plurality of bytes, and the plurality of byte response sees through this instruction of this interface and produces; Detect the similarity of this plurality of byte having received to produce testing result; And at least according to this testing result, determine and being connected of this interface.
13. control circuits as claimed in claim 12, is characterized in that, this processing unit determines the connection of this interface with reference to the plurality of byte having received, to determine whether this interface is connected to specific electronic devices.
14. control circuits as claimed in claim 13, is characterized in that, this specific electronic devices is serial flash memory device.
15. control circuits as claimed in claim 13, it is characterized in that, when this testing result indicates the plurality of byte having received mutually the same, this processing unit determines that this interface is not connected to this specific electronic devices, and when this testing result indicates the plurality of byte having received differing from each other, this processing unit determines that this interface is connected to this specific electronic devices.
16. control circuits as claimed in claim 12, it is characterized in that, this processing unit further compares to produce comparative result by the specified byte of the plurality of byte having received and tentation data template, and this processing unit determines and being connected of this interface according to this testing result and this comparative result.
17. control circuits as claimed in claim 16, is characterized in that, this specified byte is received before other receive byte.
18. control circuits as claimed in claim 16, is characterized in that, this tentation data template comprises a plurality of bits, and each of the plurality of bit has identical binary values.
19. control circuits as claimed in claim 16, it is characterized in that, this processing unit is the type to determine whether this interface is connected to specific electronic devices and has been connected to this specific electronic devices of this interface with reference to this comparative result decision that is connected with this interface with reference to this testing result decision.
20. control circuits as claimed in claim 19, is characterized in that this specific electronic devices is serial flash memory device.
21. control circuits as claimed in claim 19, it is characterized in that, when this testing result indicates this specified byte when identical with this tentation data template, this processing unit determines that this specific electronic devices has the first kind, and when this comparative result indicates this specified byte not identical with this tentation data template, this processing unit determines that this specific electronic devices has Second Type.
22. control circuits as claimed in claim 21, is characterized in that, this first kind specific electronic devices is a serial and non-flash memory device, and this Second Type specific electronic devices is serial or non-flash memory device.
23. 1 kinds of electronic installations, comprise:
At least one serial flash memory device; And
Control circuit, comprises an interface, and this interface is supported dissimilar serial electronic installation, and this control circuit is for determining the type of at least one serial flash memory device and communicating through this interface and this at least one serial flash memory device.
24. electronic installations as claimed in claim 23, is characterized in that, further comprise:
Selected cell, is couple to this interface, for optionally this interface is couple to this at least one serial flash memory device one of them.
25. electronic installations as claimed in claim 24, is characterized in that, this selected cell is included in this control circuit.
26. electronic installations as claimed in claim 24, is characterized in that, this at least one serial flash memory device and this selected cell are placed in same circuit board.
27. electronic installations as claimed in claim 23, is characterized in that, this at least one serial flash memory device comprises dissimilar serial flash memory device, and this interface is shared between this dissimilar serial flash memory device and this interface.
28. electronic installations as claimed in claim 23, is characterized in that, this at least one serial flash memory device comprise serial or non-flash memory device and serial and non-flash memory device at least one of them.
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 true CN103714030A (en) 2014-04-09
CN103714030B 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)

Cited By (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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030145141A1 (en) * 2002-01-31 2003-07-31 Chien-An Chen Universal serial bus flash memory integrated circuit device
US20060277337A1 (en) * 2005-06-02 2006-12-07 Rdc Semiconductor Co., Ltd. Conversion interface for memory device
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030145141A1 (en) * 2002-01-31 2003-07-31 Chien-An Chen Universal serial bus flash memory integrated circuit device
US20060277337A1 (en) * 2005-06-02 2006-12-07 Rdc Semiconductor Co., Ltd. Conversion interface for memory device
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

Cited By (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

Also Published As

Publication number Publication date
CN103714030B (en) 2017-09-15

Similar Documents

Publication Publication Date Title
JP6022766B2 (en) Multi-interface memory card and its operation method
CN101089837B (en) Apparatus and method for discerning a host interface
EP2589206B1 (en) Detection of cable connections for electronic devices
US6745267B2 (en) Multi-functional mini-memory card suitable for SFMI and USB interfaces
US9141141B2 (en) Portable device and peripheral extension dock
US20130013836A1 (en) Host for use with dual interface card with backward and forward compatibility
US20050038956A1 (en) Method and an apparatus of flash cards access
US9268728B2 (en) Portable electronic device and accessory device thereof, and operating method for the portable electronic device
US20070145154A1 (en) Interface for a removable electrical card
CN108227613A (en) Electronic device and its operating method
JP2006518897A (en) Multi-protocol memory card
TWI760615B (en) Method for performing detect control of write protection command of memory device, associated control chip and associated electronic device
CN1853149A (en) Multi-function portable device for electronic processors
US7275186B2 (en) Memory bus checking procedure
CN103714030A (en) Method capable of detecting connection with interface, electronic device and control circuit
US7996697B2 (en) Matching system of electronic device and peripheral device and matching method thereof
US20020095437A1 (en) Information processing apparatus, method for utilizing the same and program for information processing apparatus
CN108780429B (en) Error handling techniques for high speed I/O data transfers
CN114385527A (en) Hard disk compatible platform, mainboard and control method
US7159104B2 (en) Simplified memory detection
CN112349238A (en) Vehicle-mounted device, display driving method, and control circuit
US20040031854A1 (en) Communication protocol for multi-functional mini-memory card suitable for SFMI and USB interfaces
CN113052288B (en) SD card automatically adapting to upper computer for reading and writing and automatic adapting method thereof
US20070113065A1 (en) System and method for recording BIOS programs
US9674958B2 (en) Printed circuit boards and semiconductor packages

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