[go: up one dir, main page]

CN108664423B - Electronic device and memory card access method - Google Patents

Electronic device and memory card access method Download PDF

Info

Publication number
CN108664423B
CN108664423B CN201710188056.8A CN201710188056A CN108664423B CN 108664423 B CN108664423 B CN 108664423B CN 201710188056 A CN201710188056 A CN 201710188056A CN 108664423 B CN108664423 B CN 108664423B
Authority
CN
China
Prior art keywords
memory card
interface
unit
data transmission
transmission path
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
CN201710188056.8A
Other languages
Chinese (zh)
Other versions
CN108664423A (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.)
Realtek Semiconductor Corp
Original Assignee
Realtek Semiconductor Corp
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 Realtek Semiconductor Corp filed Critical Realtek Semiconductor Corp
Priority to CN201710188056.8A priority Critical patent/CN108664423B/en
Publication of CN108664423A publication Critical patent/CN108664423A/en
Application granted granted Critical
Publication of CN108664423B publication Critical patent/CN108664423B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)

Abstract

本发明公开了一种电子装置及存储卡存取方法。存储卡存取方法应用于一电子装置。该电子装置的一处理单元可通过一存储卡插槽存取一存储卡,该方法包含:检测该存储卡是否支持一快速周边组件互连界面接口;当该存储卡不支持该快速周边组件互连界面接口时,使该处理单元通过一第一数据传输路径存取该存储卡,并利用位于该第一数据传输路径上的一存储卡存取单元进行一传输界面接口及该快速周边组件互连界面接口之间的数据格式转换;以及当该存储卡支持该快速周边组件互连界面接口时,使该处理单元通过一第二数据传输路径存取该存储卡,其中该第二数据传输路径是允许该处理单元及该存储卡通过该快速周边组件互连界面接口传输数据。

Figure 201710188056

The invention discloses an electronic device and a memory card access method. The memory card access method is applied to an electronic device. A processing unit of the electronic device can access a memory card through a memory card slot, and the method includes: detecting whether the memory card supports a fast peripheral component interconnection interface; when the memory card does not support the fast peripheral component interconnection interface When the interface interface is connected, the processing unit is made to access the memory card through a first data transmission path, and a memory card access unit located on the first data transmission path is used to carry out a transmission interface interface and the fast peripheral components to communicate with each other. data format conversion between interface interfaces; and when the memory card supports the fast peripheral component interconnect interface interface, enabling the processing unit to access the memory card through a second data transmission path, wherein the second data transmission path It allows the processing unit and the memory card to transmit data through the fast peripheral component interconnection interface interface.

Figure 201710188056

Description

Electronic device and memory card access method
Technical Field
The present invention relates to a Peripheral Component Interconnect Express (PCI-Express, hereinafter referred to as PCIe) interface, and more particularly, to a PCIe memory card.
Background
Fig. 1 is a schematic diagram of a conventional electronic device connected to a memory card. The electronic device 10 (e.g., a desktop computer, a notebook computer, a tablet computer, a mobile phone, etc.) includes a processing unit 110, a memory card access unit 130 and a memory card slot 150. The processing unit 110 accesses the memory card 15 inserted in the memory card slot 150 through the memory card access unit 130. The transmission interface 120 between the processing unit 110 and the memory card access unit 130 is, for example, a common PCIe interface; the transmission interface 140 between the memory card access unit 130 and the memory card 15 is, for example, a common Secure Digital (SD) interface. The main function of the memory card access unit 130 is to provide data format conversion between the PCIe interface and the SD interface.
Since the PCIe interface is becoming mainstream, the memory card 15 may use the PCIe interface to communicate with the processing unit 110 directly (i.e. without going through the memory card accessing unit 130). However, during the transition period between the conversion of a new memory card (PCIe memory card) to an old memory card (SD memory card), it is highly likely that the manufacturer of the electronic device 10 will design the electronic device 10 to have the capability of reading the new and old memory cards. However, since the processing unit 110 only provides a limited number of PCIe channels (lanes), if the manufacturer of the electronic device 10 allocates the PCIe channels of the processing unit 110 to the SD memory card (accessed through the memory card access unit 130) and the PCIe memory card (directly accessed) for the card reading function, the support of the electronic device 10 to other peripheral devices, such as a display card, a wireless communication module (e.g., WIFI, Long Term Evolution (LTE), Bluetooth (Bluetooth), etc.), a wired communication module (e.g., ethernet, etc.), a storage device (e.g., a solid state disk, etc.), and a Universal Serial Bus (USB) control module, etc., will be sacrificed.
In addition, when the electronic device 10 supports both old and new memory cards, the user must distinguish the kind of the memory card before inserting the memory card, which causes inconvenience in use. Furthermore, when the processing unit 110 directly accesses the memory card 15, the performance of data transmission may be reduced or even access errors may occur due to poor contact between the memory card 15 and the memory card slot 150.
Disclosure of Invention
In view of the disadvantages of the prior art, an object of the present invention is to provide a memory card access module and a memory card access method.
The invention discloses an electronic device, which is coupled between a processing unit and a memory card slot and used for accessing a memory card. The device comprises a detection unit, a selection unit, a memory card access unit and a control unit. The detecting unit is used for detecting whether the memory card supports a PCI express interface. The selection unit is used for selecting a first data transmission path or a second data transmission path, wherein the second data transmission path allows the processing unit and the memory card to transmit data through the PCI express interface. The memory card access unit is used for accessing the memory card and providing data format conversion between a transmission interface and the PCI express interface. The control unit is used for controlling the selection unit to select the second data transmission path when the detection unit indicates that the memory card supports the PCI express interface, and controlling the selection unit to select the first data transmission path when the detection unit indicates that the memory card does not support the PCI express interface.
The invention also discloses a memory card access method, which is applied to an electronic device, a processing unit of the electronic device can access a memory card through a memory card slot, and the method comprises the following steps: detecting whether the memory card supports a PCI express interface; when the memory card does not support the PCI express interface, the processing unit accesses the memory card through a first data transmission path, and performs data format conversion between a transmission interface and the PCI express interface by using a memory card access unit located on the first data transmission path; and enabling the processing unit to access the memory card through a second data transmission path when the memory card supports the PCI express interface, wherein the second data transmission path allows the processing unit and the memory card to transmit data through the PCI express interface.
The present invention further discloses an electronic device, coupled between a processing unit and a socket, for selectively accessing a PCI express device directly. The device comprises a detection unit, a selection unit, a memory card access unit and a control unit. The detection unit is used for detecting whether a device connected with the slot is the PCI express device or not. The selection unit is used for selecting a first data transmission path or a second data transmission path, wherein the second data transmission path allows the processing unit and the PCI express device to transmit data through a PCI express interface. The storage card access unit is used for accessing a storage card and providing data format conversion between a transmission interface and the PCI express interface. The control unit is used for controlling the selection unit to select the second data transmission path when the detection unit indicates that the equipment is the PCI express equipment, and controlling the selection unit to select the first data transmission path when the detection unit indicates that the equipment is not the PCI express equipment.
The electronic device and the memory card access method can enable the electronic device to directly access PCIe equipment or indirectly access non-PCIe equipment by using the same PCIe interface, achieve the technical effect of sharing the PCIe interface, and reduce the usage amount of PCIe channels. When the interface is applied to the access of the PCIe memory card, the invention provides a user-friendly interface; in addition, the invention can also add the related circuit of the enhanced transmission signal to improve the efficiency when accessing the memory card and reduce the probability of access error. Compared with the complex circuit of the existing PCIe switch, the invention can achieve the purpose of sharing the PCIe interface by using a simple circuit, thereby not only saving the cost, but also reducing the difficulty of circuit design.
The features, implementations, and technical effects of the present invention are described in detail below with reference to the accompanying drawings.
Drawings
FIG. 1 is a diagram illustrating a conventional electronic device connected to a memory card;
FIG. 2 is a functional block diagram of an embodiment of a memory card access module according to the present invention;
FIGS. 3A-3D are flow charts illustrating an embodiment of a memory card accessing method according to the present invention;
FIG. 4 is a schematic diagram of the connection between the processing unit and the memory card access unit;
FIG. 5 is a functional block diagram of another embodiment of a memory card access module of the present invention;
FIGS. 6A-6C are detailed steps of a memory card access method corresponding to the memory card access module of FIG. 5; and
FIG. 7 is a diagram illustrating the sharing of coupling capacitors for the PCIe interface.
Description of reference numerals:
10. 20, 50 electronic device
15. 25 memory card
110. 210, 710 processing unit
120. 140, 220, 232, 234, 236, 536, 538 transfer interface
130. 233 memory card access unit
150 memory card slot
230. 530, 720, 770 memory card access module
250 slot
231 selection unit
235. 535 control unit
237 detection unit
410 coupling capacitor
420a, 420b switch
430a, 430b resistors
539 Signal optimization Unit
730 PCIe devices
740. 750, 780 capacitor group
S310 to S640
Detailed Description
The technical terms in the following description refer to the conventional terms in the technical field, and some terms are explained or defined in the specification, and the explanation of the some terms is based on the explanation or the definition in the specification.
The disclosure of the invention includes a memory card access module and a memory card access method. Since some of the components included in the memory card access module of the present invention may be known components alone, the following description will omit details of the known components without affecting the full disclosure and the feasibility of the invention of the device. In addition, the memory card access method of the present invention can be performed by the memory card access module of the present invention or its equivalent device, and the following description of the method invention will focus on the contents of steps rather than hardware without affecting the full disclosure and feasibility of the method invention.
FIG. 2 is a functional block diagram of an embodiment of a memory card access module according to the invention. The memory card access module 230 is implemented in the electronic device 20 and is coupled between the processing unit 210 of the electronic device 20 and the slot 250. The processing unit 210 is a System on Chip (SoC) or a Chip set (chipset) of the electronic device 20, such as a central processing unit, a microprocessor, and the like. Slot 250 may be for insertion of a memory card 25 or other device. The memory card access module 230 includes a selection unit 231, a memory card access unit 233, a control unit 235, and a detection unit 237. Transport interface 220, transport interface 232, and transport interface 236 are PCIe interfaces, and transport interface 234 is an SD interface. One of the main functions of the memory card access unit 233 is to provide data format transfer between the PCIe interface and the SD interface. The control unit 235 may be implemented, for example, in logic circuits or a microcontroller.
FIGS. 3A-3D are flow charts of an embodiment of a memory card accessing method of the present invention. The detecting unit 237 detects whether a memory card is inserted into the slot 250 (e.g., detecting a pin position by a card of a memory card slot) (step S310). When the control unit 235 knows that no memory card is inserted according to the control signal of the detecting unit 237, the control unit 235 controls the electronic device 20 to be in the preset state (step S320). In detail, the default state may be (1) the transmission interface 220 is in use, that is, the processing unit 210 and the memory card access unit 233 are connected through the transmission interface 220 and the transmission interface 232; or (2) transport interface 220 is not in use, i.e., processing unit 210 is not connected to any device via transport interface 220.
In the state (1), the control unit 235 controls the selection unit 231 to select the first data transmission path (including the transmission interface 232, the memory card access unit 233, and the transmission interface 234) (step S321 in fig. 3B), and controls the memory card access unit 233 to mount (load) the terminal resistor (termination resistor) (step S323 in fig. 3B). In the state (2), the control unit 235 may (a) control the selection unit 231 to select the first data transmission path (step S325 of fig. 3C) and control the memory card access unit 233 to unload (unload) the end resistor (step S327 of fig. 3C); or (B) the control selection unit 231 selects the second data transmission path (including the transmission interface 236) (step S329 in fig. 3D).
The details of the mount and unload terminal resistors are described below. Fig. 4 is a schematic diagram of the connection between the processing unit 210 and the memory card access unit 233, and exemplarily shows one channel of the PCIe interface. As shown, one channel includes a differential transmit pair Tx and a differential receive pair Rx (here, transmit and receive are for the memory card access unit 233). The differential transmit pair Tx and the differential receive pair Rx each comprise two transmission lines (transmission lines), each having a coupling capacitor 410. The memory card access unit 233 includes switches 420a, 420b and resistors 430a, 430 b. The mounted resistance means that the memory card access unit 233 controls the switches 420a and 420b to be turned on according to the control signal of the control unit 235, so that the resistors 430a and 430b are connected to the differential receiving pair Rx of the PCIe channel, and the unloaded resistance means that the memory card access unit 233 controls the switches 420a and 420b to be turned off according to the control signal of the control unit 235. Note that if the switches 420a and 420b are originally in the on state, the "on-resistance" operation means that the memory card access unit 233 does not perform any action (i.e., the step of "on-resistance" can be skipped), and the "off-resistance" operation is the same.
Returning to fig. 3A, after determining that the memory card is inserted into the slot 250 (yes in step S310), the detecting unit 237 further detects the type of the inserted memory card, that is, detects that the inserted memory card is a PCIe memory card (a memory card supporting a PCIe interface) or another memory card, for example, an SD memory card (a memory card supporting an SD interface) (step S330). The detection unit 237 can perform detection by the following two detection methods, but is not limited thereto. The first method is a detection method defined by the PCIe standard, that is, the detection unit 237 uses a periodic pulse to measure the charging time of the capacitor for determination. In particular, when the PCIe memory card is inserted into the slot 250, the parasitic capacitance on the slot 250 increases, which lengthens the charging time. The second method is to determine whether the voltage of the clock pin requirement (CLKRREQ #) of the PCIe interface is changed. Since the PCIe memory card is initialized when inserted into the slot 250, the PCIe memory card requires an external clock time during initialization. When the PCIe memory card requests a clock from the host (host) (i.e., the electronic device 20), the potential on the clock pin changes.
The control unit 235 determines that the memory card access module 230 is to operate in the non-PCIe device access mode or the PCIe device access mode according to the detection result of the detection unit 237. When the detecting unit 237 indicates that the memory card is a non-PCIe memory card (no in step S330), the control unit 235 controls the memory card access module 230 to operate in the non-PCIe device access mode (step S340), otherwise, controls the memory card access module 230 to operate in the PCIe device access mode (step S350). In the non-PCIe device access mode, the control unit 235 controls the selection unit 231 to switch to the memory card access unit 233 (step S342), and controls the memory card access unit 233 mount terminal resistance (step S344); that is, in this mode, the control unit 235 connects the processing unit 210 and the memory card access unit 233 and is capable of transferring data. In the PCIe device access mode, the control unit 235 controls the selection unit 231 to switch to the PCIe device (step S352); that is, in this mode, the control unit 235 enables the processing unit 210 to directly access the PCIe memory card through the transport interface 236.
FIG. 5 is a functional block diagram of another embodiment of a memory card access module according to the invention. The memory card access module 530 is implemented in the electronic device 50 and is coupled between the processing unit 210 of the electronic device 50 and the slot 250. The processing unit 210 is a system-on-chip or a chip set of the electronic device 50. The memory card access module 530 includes a selection unit 231, a memory card access unit 233, a control unit 535, a detection unit 237, and a signal optimization unit 539. Transport interface 536 and transport interface 538 are PCIe interface interfaces. Elements with the same number in fig. 2 and 5 have the same function and are not described again. The control unit 535 may be implemented, for example, in a logic circuit or a microcontroller.
Since the memory card 25 and the socket 250 may have poor contact or oxidized terminals to reduce the performance of data transmission or even cause access errors, the embodiment provides the signal optimization unit 539 to perform enhancement (e.g., driver) and/or retiming (timer) on the transmission signal between the memory card 25 and the processing unit 210, or add protocol analysis processes such as protocol aware (protocol aware) to adjust the protocol content. In response to this embodiment, steps S320 and S350 of fig. 3A are slightly adjusted.
For step S320, in state (1) (i.e. the transmission interface 220 is in use), the control unit 535 may (a) (corresponding to fig. 3B) control the selection unit 231 to select the first data transmission path (including the transmission interface 232, the memory card access unit 233, and the transmission interface 234) and control the mounting terminal resistance of the memory card access unit 233; or (B) (corresponding to fig. 6A), the selection unit 231 is controlled to select the second data transmission path (including the transmission interface 536, the signal optimization unit 539, and the transmission interface 538) (step S610), and the signal optimization unit 539 is controlled to mount the resistor (step S620). In state (2) (i.e., the transmission interface 220 is not in use), the control unit 535 may (a) (corresponding to fig. 3C) control the selection unit 231 to select the first data transmission path and control the memory card access unit 233 to unload the terminal resistor; or (B) (corresponding to fig. 6B), the selection unit 231 is controlled to select the second data transmission path (step S630), and the signal optimization unit 539 is controlled to unload the termination resistance (step S640).
For step S350 (corresponding to fig. 6C), after step S352, the control unit 535 further controls the signal optimization unit 539 to mount the resistor (step S534), so as to establish a connection with the processing unit 210 and the memory card 25. Note that the end of the signal optimization unit 539 connected to the processing unit 210 and the end connected to the memory card 25 each include a termination resistor (both on the receiving end for the signal optimization unit 539). Like the memory card access unit 233, the signal optimization unit 539 uses a switch mount/dismount terminal resistor. How the signal optimization unit 539 is, for example, a redrive (redriver) circuit and/or a retimer (retimer) circuit.
In summary, the memory card access module of the present invention integrates the transmission interface interfaces of the PCIe memory card and the non-PCIe memory card, so as to provide greater flexibility for manufacturers of electronic devices to plan PCIe channels of the processing unit (i.e., without sacrificing other PCIe devices or using many discrete components to integrate other interface interfaces in order to support two types of memory cards at the same time), and also provide more user-friendly operations for users (i.e., the two types of memory cards are inserted into the same memory card slot). In addition, the invention can further help manufacturers of electronic devices to save the number of coupling capacitors on the circuit, thereby reducing the cost and simplifying the design. In detail, as shown in fig. 7, before the PCIe interface is not shared (fig. 7A), the memory card access module 720 (providing the function of reading the non-PCIe memory card) and the PCIe device 730 each occupy one PCIe interface (which may include one or more channels) of the processing unit 710, and each interface includes one capacitor group 740 or 750. When the PCIe interface is shared (fig. 7B), that is, the memory card access module 770 supports both PCIe devices (including PCIe memory cards) and non-PCIe memory cards (such as the memory card access module 230 in fig. 3 or the memory card access module 530 in fig. 5), only one capacitor group 780 is needed, that is, the number of capacitors needed can be reduced by half.
The shared PCIe interface of the present invention is not limited to the PCIe memory card, and any other PCIe devices that can be connected to the electronic apparatus through the slot of the electronic apparatus belong to the embodiments of the present invention.
Because the details and variations of the disclosed method and invention can be understood by those skilled in the art from the disclosure of the disclosed apparatus and invention, the repetitive description is omitted herein for the avoidance of redundant details without affecting the disclosed requirements and the feasibility of the method and invention. It should be noted that the shapes, sizes, proportions, and sequence of steps of the elements and steps shown in the drawings are illustrative only and not intended to limit the invention, which is understood by those skilled in the art.
Although the embodiments of the present invention have been described above, the embodiments are not intended to limit the present invention, and those skilled in the art can make variations on the technical features of the present invention according to the explicit or implicit contents of the present invention, and all such variations may fall into the embodiments of patent protection sought by the present invention, in other words, the scope of patent protection of the present invention should be determined by the claims of the present specification.

Claims (9)

1.一种装置,耦接于一处理单元及一存储卡插槽之间,用来存取一存储卡,包含:1. A device coupled between a processing unit and a memory card slot for accessing a memory card, comprising: 一检测单元,用来检测该存储卡是否支持一快速周边组件互连界面接口;a detection unit for detecting whether the memory card supports a fast peripheral component interconnection interface; 一选择单元,用来选择一第一数据传输路径或一第二数据传输路径,其中该第二数据传输路径是允许该处理单元及该存储卡通过该快速周边组件互连界面接口传输数据;a selection unit for selecting a first data transmission path or a second data transmission path, wherein the second data transmission path allows the processing unit and the memory card to transmit data through the fast peripheral component interconnect interface interface; 一存储卡存取单元,耦接该选择单元并位于该第一数据传输路径上,用来存取该存储卡并提供一传输界面接口及该快速周边组件互连界面接口之间的数据格式转换;以及a memory card access unit, coupled to the selection unit and located on the first data transmission path, used for accessing the memory card and providing data format conversion between a transmission interface interface and the fast peripheral component interconnection interface interface ;as well as 一控制单元,耦接该检测单元、该存储卡存取单元及该选择单元,用来当该检测单元指示该存储卡支持该快速周边组件互连界面接口时,控制该选择单元选择该第二数据传输路径,以及当该检测单元指示该存储卡不支持该快速周边组件互连界面接口时,控制该选择单元选择该第一数据传输路径;a control unit, coupled to the detection unit, the memory card access unit and the selection unit, for controlling the selection unit to select the second peripheral when the detection unit instructs the memory card to support the fast peripheral component interconnect interface interface a data transmission path, and when the detection unit indicates that the memory card does not support the fast peripheral component interconnection interface interface, controlling the selection unit to select the first data transmission path; 其中该存储卡存取单元包含一端电阻,且当该检测单元指示该存储卡不支持该快速周边组件互连界面接口时,该控制单元还控制该存储卡存取单元挂载该端电阻。The memory card access unit includes a terminal resistor, and when the detection unit indicates that the memory card does not support the fast peripheral component interconnection interface, the control unit also controls the memory card access unit to mount the terminal resistor. 2.如权利要求1所述的装置,其中该检测单元还检测该存储卡插槽是否插入任何存储卡,且当该检测单元指示该存储卡插槽未插入任何存储卡时,该控制单元控制该选择单元选择该第二数据传输路径。2. The apparatus of claim 1, wherein the detection unit further detects whether any memory card is inserted into the memory card slot, and when the detection unit indicates that no memory card is inserted into the memory card slot, the control unit controls The selection unit selects the second data transmission path. 3.如权利要求1所述的装置,其中该检测单元还检测该存储卡插槽是否插入任何存储卡,且当该检测单元指示该存储卡插槽未插入任何存储卡时,该控制单元控制该选择单元选择该第一数据传输路径。3. The apparatus of claim 1, wherein the detection unit further detects whether any memory card is inserted into the memory card slot, and when the detection unit indicates that no memory card is inserted into the memory card slot, the control unit controls The selection unit selects the first data transmission path. 4.如权利要求3所述的装置,其中该存储卡存取单元包含一端电阻,且当该检测单元指示该存储卡插槽未插入任何存储卡时,该控制单元还控制该存储卡存取单元卸载该端电阻。4. The apparatus of claim 3, wherein the memory card access unit comprises a resistor at one end, and when the detection unit indicates that no memory card is inserted into the memory card slot, the control unit further controls the memory card access The unit unloads this terminal resistor. 5.一种存储卡存取方法,应用于一电子装置,该电子装置的一处理单元可通过一存储卡插槽存取一存储卡,该方法包含:5. A memory card access method, applied to an electronic device, wherein a processing unit of the electronic device can access a memory card through a memory card slot, the method comprising: 检测该存储卡是否支持一快速周边组件互连界面接口;Detecting whether the memory card supports a fast peripheral component interconnection interface interface; 当该存储卡不支持该快速周边组件互连界面接口时,使该处理单元通过一第一数据传输路径存取该存储卡,并利用位于该第一数据传输路径上的一存储卡存取单元进行一传输界面接口及该快速周边组件互连界面接口之间的数据格式转换;以及When the memory card does not support the fast peripheral component interconnection interface interface, make the processing unit access the memory card through a first data transmission path, and use a memory card access unit located on the first data transmission path performing data format conversion between a transmission interface interface and the fast peripheral component interconnection interface interface; and 当该存储卡支持该快速周边组件互连界面接口时,使该处理单元通过一第二数据传输路径存取该存储卡,其中该第二数据传输路径是允许该处理单元及该存储卡通过该快速周边组件互连界面接口传输数据;When the memory card supports the fast peripheral component interconnect interface interface, enable the processing unit to access the memory card through a second data transmission path, wherein the second data transmission path allows the processing unit and the memory card to pass through the memory card Fast peripheral component interconnection interface interface to transmit data; 其中该存储卡存取单元包含一端电阻,且当检测到该存储卡不支持该快速周边组件互连界面接口时,还控制该存储卡存取单元挂载该端电阻。The memory card access unit includes a terminal resistor, and when it is detected that the memory card does not support the fast peripheral component interconnection interface interface, the memory card access unit is also controlled to mount the terminal resistor. 6.如权利要求5所述的方法,还包含:6. The method of claim 5, further comprising: 检测该存储卡插槽是否插入任何存储卡;以及detect whether any memory card is inserted into the memory card slot; and 当该存储卡插槽未插入任何存储卡时,选择该第二数据传输路径。The second data transmission path is selected when no memory card is inserted into the memory card slot. 7.如权利要求5所述的方法,还包含:7. The method of claim 5, further comprising: 检测该存储卡插槽是否插入任何存储卡;以及detect whether any memory card is inserted into the memory card slot; and 当该存储卡插槽未插入任何存储卡时,选择该第一数据传输路径。When no memory card is inserted into the memory card slot, the first data transmission path is selected. 8.一种装置,耦接于一处理单元及一插槽之间,用来选择性地直接存取一快速周边组件互连设备,该装置包含:8. A device coupled between a processing unit and a slot for selectively direct access to a fast peripheral component interconnect device, the device comprising: 一检测单元,用来检测连接该插槽的一设备是为否该快速周边组件互连设备;a detection unit for detecting whether a device connected to the slot is the fast peripheral component interconnection device; 一选择单元,用来选择一第一数据传输路径或一第二数据传输路径,其中该第二数据传输路径是允许该处理单元及该快速周边组件互连设备通过一快速周边组件互连界面接口传输数据;a selection unit for selecting a first data transmission path or a second data transmission path, wherein the second data transmission path allows the processing unit and the fast peripheral component interconnection device to pass through a fast peripheral component interconnection interface interface transfer data; 一存储卡存取单元,耦接该选择单元并位于该第一数据传输路径上,用来存取一存储卡并提供一传输界面接口及该快速周边组件互连界面接口之间的数据格式转换;以及a memory card access unit, coupled to the selection unit and located on the first data transmission path, used for accessing a memory card and providing data format conversion between a transmission interface interface and the fast peripheral component interconnection interface interface ;as well as 一控制单元,耦接该检测单元、该存储卡存取单元及该选择单元,用来当该检测单元指示该设备为该快速周边组件互连设备时,控制该选择单元选择该第二数据传输路径,以及当该检测单元指示该设备非为该快速周边组件互连设备时,控制该选择单元选择该第一数据传输路径;a control unit, coupled to the detection unit, the memory card access unit and the selection unit, for controlling the selection unit to select the second data transmission when the detection unit indicates that the device is the fast peripheral component interconnection device a path, and when the detection unit indicates that the device is not the fast peripheral component interconnection device, the selection unit is controlled to select the first data transmission path; 其中该存储卡存取单元包含一端电阻,且当该检测单元指示连接该插槽的一设备为该快速周边组件互连设备时,该控制单元还控制该存储卡存取单元挂载该端电阻。The memory card access unit includes a terminal resistor, and when the detection unit indicates that a device connected to the slot is the fast peripheral component interconnection device, the control unit also controls the memory card access unit to mount the terminal resistor . 9.如权利要求8所述的装置,其中该检测单元还检测该插槽是否插入任何设备,且当该检测单元指示该插槽未插入任何设备时,该控制单元控制该选择单元选择该第二数据传输路径。9. The apparatus of claim 8, wherein the detection unit further detects whether any device is inserted into the slot, and when the detection unit indicates that no device is inserted into the slot, the control unit controls the selection unit to select the first Two data transmission paths.
CN201710188056.8A 2017-03-27 2017-03-27 Electronic device and memory card access method Active CN108664423B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710188056.8A CN108664423B (en) 2017-03-27 2017-03-27 Electronic device and memory card access method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710188056.8A CN108664423B (en) 2017-03-27 2017-03-27 Electronic device and memory card access method

Publications (2)

Publication Number Publication Date
CN108664423A CN108664423A (en) 2018-10-16
CN108664423B true CN108664423B (en) 2021-08-20

Family

ID=63785402

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710188056.8A Active CN108664423B (en) 2017-03-27 2017-03-27 Electronic device and memory card access method

Country Status (1)

Country Link
CN (1) CN108664423B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112084073B (en) * 2019-06-14 2023-02-28 瑞昱半导体股份有限公司 Method for executing detection and control of write protection instruction, control chip and electronic device
CN112486865A (en) * 2019-09-11 2021-03-12 瑞昱半导体股份有限公司 Method and control chip for performing access control of memory device
CN115600630A (en) * 2021-07-09 2023-01-13 瑞昱半导体股份有限公司(Tw) Electronic devices that can access memory cards
WO2025102230A1 (en) * 2023-11-14 2025-05-22 威刚科技股份有限公司 Data access apparatus supporting various memory cards

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101765833A (en) * 2007-06-29 2010-06-30 桑迪士克公司 Dual bus express card peripheral
CN105068952A (en) * 2015-08-03 2015-11-18 浪潮(北京)电子信息产业有限公司 SD interface multiplexing apparatus and method and electronic device
CN105186232A (en) * 2014-06-12 2015-12-23 三星电子株式会社 Interface For Connecting Hardware Components
CN105893298A (en) * 2016-06-29 2016-08-24 联想(北京)有限公司 Interface connecting method and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012023149A2 (en) * 2010-08-19 2012-02-23 Ineda Systems Pvt. Ltd Multi-root input output virtualization aware switch
US20140280960A1 (en) * 2013-03-15 2014-09-18 Apple, Inc. Methods and apparatus for dynamically allocating devices between multiple controllers

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101765833A (en) * 2007-06-29 2010-06-30 桑迪士克公司 Dual bus express card peripheral
CN105186232A (en) * 2014-06-12 2015-12-23 三星电子株式会社 Interface For Connecting Hardware Components
CN105068952A (en) * 2015-08-03 2015-11-18 浪潮(北京)电子信息产业有限公司 SD interface multiplexing apparatus and method and electronic device
CN105893298A (en) * 2016-06-29 2016-08-24 联想(北京)有限公司 Interface connecting method and electronic equipment

Also Published As

Publication number Publication date
CN108664423A (en) 2018-10-16

Similar Documents

Publication Publication Date Title
TWI638266B (en) Memory card access module and memory card access method
US11379396B2 (en) Memory card access module and memory card access method
US20210334617A1 (en) Memory card with multiple modes, and host device corresponding to the memory card
CN108664423B (en) Electronic device and memory card access method
JP6181329B1 (en) Removable memory card type detection system and method
TWI614608B (en) Apparatus, system and method for communication of touch sensor information
US10311000B2 (en) Integrated universal serial bus (USB) type-C switching
US9747237B2 (en) Methods and apparatus for reliable detection and enumeration of devices
US7285023B1 (en) Expresscard device
EP3108323B1 (en) Apparatus, system and method to provide platform support for multiple memory technologies
CN112639753B (en) Aggregated inband interruption
US20140089553A1 (en) Interface between a host and a peripheral device
CN112041827B (en) Automatic USB host detection and port configuration method and device
CN112988637B (en) I3C hub to facilitate backward compatibility with I2C
US10198387B2 (en) Electronic device and method for controlling signal strength according to mode
EP3275156B1 (en) Apparatus, system and method for sharing physical layer logic across multiple protocols
US6519670B1 (en) Method and system for optimizing a host bus that directly interfaces to a 16-bit PCMCIA host bus adapter
US20100268897A1 (en) Memory device and memory device controller
US20090083486A1 (en) Testing device of card reading interface and testing method thereof
US9965430B2 (en) Integrated circuit and operation method of serializer/deserializer physical layer circuit thereof
US20110087902A1 (en) Multi-function integrated device and operating method thereof
US20060095626A1 (en) Multifunction adapter
KR20140092547A (en) USB OTG auto change device
US11429549B2 (en) Input/output port configurations using multiplexers
CN201066375Y (en) Test fixture for card reading interface

Legal Events

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