Memory card read-write control system and method

By using control modules and selectors in the memory card read and write control system, switching between different communication protocols is solved, the compatibility problem of memory card and card reader is improved, and the use flexibility is reduced and production costs are reduced.

CN112749108BActive Publication Date: 2024-12-06GENESYS LOGIC INC
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202011196458.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-10-31
Filing Date
2020-10-30
Publication Date
2024-12-06
Estimated Expiration
2040-10-30

AI Technical Summary

Technical Problem

Compatibility issues between existing memory cards and card reader make it impossible to use in older version-specific devices, and the control of the new specification increases communication complexity and cost.

Method used

Through the control module and selector, the host system supports reading and writing memory cards with one interface to different communication protocols, and uses the bridge device and selector to switch transmission paths under different protocols to ensure compatibility and data transmission.

Benefits of technology

It improves the flexibility of memory cards and produces cost-effectiveness, solves compatibility problems, and realizes data reading and writing under different protocols.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112749108B_ABST
    Figure CN112749108B_ABST
Patent Text Reader

Abstract

The present invention provides a memory card read-write control system and method thereof, comprising a memory card interface, a host system interface and a control device. When the memory card operates with a first communication protocol, the memory card interface is electrically connected to the host system interface via the second selector, the bridge device and the first selector. When the memory card operates with a second communication protocol, the memory card interface is electrically connected to the host system interface via the second selector, and the memory card interface is also electrically connected to the host system interface via the first selector.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an electronic device and a method thereof, and in particular to a memory card read-write control system and a method thereof. Background Art

[0002] With the rapid development of information technology, the application of electronic products is becoming more and more popular. For example, handheld electronic devices such as laptops, mobile phones, and tablet computers can be seen everywhere. Since these electronic devices are portable and can be used anytime and anywhere, and in order to enable various electronic devices to be connected to each other for large amounts of data transmission, a memory card is usually inserted into a card reader so that the above-mentioned electronic products can erase and write data on the memory card to expand the memory storage capacity of the electronic product.

[0003] However, as the data access speed of memory cards becomes faster and faster, it is impossible to access newer version memory cards with older version control methods, so newer version memory cards cannot be used in older version card readers, causing compatibility issues between memory cards and card reader control chips, and reducing the flexibility of memory card usage. When newer version memory cards are accessed with the same newer version control method, the transmission bandwidth of the control method is much greater than the transmission bandwidth of the older version, making the communication design between the memory card and the card reader control chip more complicated, resulting in an increase in the cost of the control chip. In view of this, there is still a need to develop a new type of electronic device and method to improve the above problems. Summary of the invention

[0004] One of the purposes of the present invention is to provide a memory card read / write control system and method thereof. By means of a control module of a control device and a first selector, a host system can read and write data of a memory card using different communication protocols through only one interface, thereby solving the compatibility problem between the memory card and the read / write control system, improving the flexibility of use of the memory card, and reducing the production cost of the read / write control system.

[0005] To achieve the above-mentioned purpose, a read / write control system in one embodiment of the present invention is used to control the reading and writing of data in a memory card. The read / write control system includes: a memory card interface for connecting the memory card; a host system interface electrically connected to the memory card interface, and the host system is connected to the host system interface; and a control device including a control module and a first selector. The control module is electrically connected to the memory card interface, the host system interface and the first selector. The first selector is electrically connected to the memory card interface and the host system interface. The control module includes: a bridge device, The host system interface, the memory card interface and the first selector are electrically connected; and a second selector is electrically connected to the host system interface, the memory card interface and the bridge device; wherein, when the memory card operates with a first communication protocol, the memory card interface is electrically connected to the host system interface via the second selector, the bridge device and the first selector; wherein, when the memory card operates with a second communication protocol, the memory card interface is electrically connected to the host system interface via the second selector, and the memory card interface is also electrically connected to the host system interface via the first selector.

[0006] In one embodiment, the control device detects that the memory card is electrically connected to the memory card interface, and connects to the memory card using the first communication protocol by default, and activates the memory card using the first communication protocol.

[0007] In one embodiment, the bridge device includes: a first interface electrically connected to the host system interface and the first selector; and a second interface electrically connected to the memory card interface, the first interface and the second selector; wherein, when the memory card operates with the first communication protocol, the memory card interface is electrically connected to the host system interface via the second selector, the second interface and the first interface, and via the first selector of the control device, wherein a transmission path among the memory card interface, the second interface, the first interface and the host system interface is defined as a first transmission path, and a transmission path among the memory card interface, the second selector, the second interface, the first interface, the first selector and the host system interface is defined as a second transmission path, so that the host system can transmit data to the host system through the first transmission path. The invention relates to a memory card interface and a control device for controlling the memory card interface. The control device comprises a control device for controlling the memory card interface and a control device for controlling the memory card interface. The control device comprises a control device for controlling the memory card interface and a control device for controlling the memory card interface. The control device comprises a control device for controlling the memory card interface and a control device for controlling the memory card interface. The control device comprises a control device for controlling the memory card interface and a control device for controlling the memory card interface. The control device comprises a control device for controlling the memory card interface and a control device for controlling the memory card interface. The control device comprises a control device for controlling the memory card interface and a control device for controlling the memory card interface. The control device comprises a control device for controlling the memory card interface and a control device for controlling the memory card interface. The control device comprises a control device for controlling the memory card interface and a control device for controlling the memory card interface. The control device comprises a control device for controlling the memory card interface and a control device for controlling the memory card interface. The control device comprises a control device for controlling the memory card interface and a control device for controlling the memory card interface. The control device comprises a control device for controlling the memory card interface and a control device for controlling the memory card interface. The control device comprises a control device for controlling the memory card interface and a control device for controlling the memory card interface. The control device comprises a control device for controlling the memory card interface and a control device for controlling the memory card interface.

[0008] In one embodiment, the host system interface includes a first sub-interface and a second sub-interface, and the first selector includes a first transmitting and receiving end and a second transmitting and receiving end. When the memory card operates with the first communication protocol, the host system triggers the first transmitting and receiving end of the first selector with a first trigger signal through the host system interface to allow the memory card interface to be electrically connected to the second sub-interface of the host system interface through the bridge device and the first transmitting and receiving end. The memory card interface is also electrically connected to the first sub-interface of the host system interface through the second selector and the bridge device.

[0009] In one embodiment, when the memory card operates with the second communication protocol, the second interface triggers the second selector with a second trigger signal so that the memory card interface is electrically connected to the first sub-interface of the host system interface through the second selector, and the host system triggers the second transmitting and receiving end of the first selector with the first trigger signal through the host system interface so that the memory card interface is electrically connected to the second sub-interface of the host system interface through the second transmitting and receiving end.

[0010] In one embodiment, when the memory card operates with the second communication protocol, the host system interface disconnects the first transmitting and receiving end of the first selector.

[0011] In one embodiment, the host system communicates with the memory card through the host system interface, the second transmitting and receiving end of the first selector and the second selector to determine whether the memory card supports the protocol version of the host system, which protocol version includes PCIe1.0, PCIe2.0 and PCIe3.0 protocol versions.

[0012] In one embodiment, when the host system confirms through the host system interface that the first communication protocol of the memory card supports the PCIe1.0 protocol version or the PCIe2.0 protocol version of the host system, the host system reads and writes the data of the memory card through the host system interface and the first transmitting and receiving end of the first selector; when the host system confirms through the host system interface that the second communication protocol of the memory card supports the PCIe3.0 protocol version of the host system, the host system reads and writes the data of the memory card through the host system interface and the second transmitting and receiving end of the first selector.

[0013] In one embodiment, the bridge device further includes a non-volatile memory express protocol controller, which is electrically connected to the first selector through the first interface and electrically connected to the second sub-interface of the host system interface. When the memory card does not support the operation of the second communication protocol, the host system accesses the data of the memory card through the host system interface and the non-volatile memory express protocol controller. When the memory card supports the operation of the second communication protocol, a non-volatile memory express (NVMe) protocol driver of the host system accesses the data of the memory card through the host system interface and the second transmitting and receiving end of the first selector.

[0014] In one embodiment, the first communication protocol of the memory card is defined as a secure digital (SD) mode, and the second communication protocol of the memory card is defined as a secure digital express (SD Express) mode.

[0015] In one embodiment, the data transmission rate of the first communication protocol of the memory card is lower than the data transmission rate of the second communication protocol.

[0016] A read / write control system in another embodiment of the present invention is used to control the reading and writing of data in a memory card. The read / write control system includes: a first transmission path connected between a memory card interface, a bridge device, and a host system interface, wherein the memory card interface is used to connect the memory card; a second transmission path connected between the memory card interface, a second selector, the bridge device, a first selector, and the host system interface; a third transmission path connected between the memory card interface, the second selector, and the host system interface; and a fourth transmission path connected between the memory card interface, the second selector, and the host system interface. connected between the memory card interface, the first selector and the host system interface; wherein, when the memory card operates with the first communication protocol, the host system communicates with the memory card interface through the first transmission path via the host system interface and reads and writes the data of the memory card through the second transmission path with the first communication protocol; wherein, when the memory card operates with the second communication protocol, the host system communicates with the memory card interface through the third transmission path via the host system interface and reads and writes the data of the memory card through the fourth transmission path with the second communication protocol.

[0017] In one embodiment, the host system interface includes a first sub-interface and a second sub-interface, the bridge device includes a first interface and a second interface, and the first selector includes a first transmitting and receiving end and a second transmitting and receiving end. When the memory card operates with the first communication protocol, the host system triggers the first transmitting and receiving end of the first selector with a first trigger signal through the host system interface to allow the memory card interface to be electrically connected to the second sub-interface of the host system interface through the bridge device and the first transmitting and receiving end, and the memory card interface is also electrically connected to the first sub-interface of the host system interface through the second selector and the bridge device.

[0018] In one embodiment, when the memory card operates with the second communication protocol, the second interface triggers the second selector with a second trigger signal so that the memory card interface is electrically connected to the first sub-interface of the host system interface through the second selector, and the host system interface triggers the second transmitting and receiving end of the first selector with the first trigger signal so that the memory card interface is electrically connected to the second sub-interface of the host system interface through the second transmitting and receiving end.

[0019] In one embodiment, when the memory card operates with the second communication protocol, the host system interface disconnects the first transmitting and receiving end of the first selector.

[0020] A read / write control method in another embodiment of the present invention is used for a host system to read / write a memory card through the read / write control system. The read / write control system includes a memory card interface, a host system interface, and a control device. The control device includes a control module and a first selector. The control module includes a bridge device and a second selector. The bridge device includes the first interface and the second interface. The host system interface includes a first sub-interface and a second sub-interface. The first selector includes a first transmitting end and a second transmitting end. The read / write control method includes the following steps:

[0021] The host system triggers the first transceiver end of the first selector with a first trigger signal via the host system interface, and the host system is electrically connected to the memory card interface via the host system interface, the first transceiver end of the first selector and the control module;

[0022] Detecting that the memory card is connected to the memory card interface, and connecting to the memory card using a first communication protocol;

[0023] Determining whether the memory card supports operation of a second communication protocol;

[0024] When it is determined that the memory card does not support the operation of the second communication protocol, the memory card interface is electrically connected to the host system interface via the second selector, the bridge device and the first selector, so that the host system reads and writes the data of the memory card using the first communication protocol through the host system interface;

[0025] When it is determined that the memory card supports the second communication protocol operation, the memory card interface is electrically connected to the host system interface via the second selector, and the memory card interface is also electrically connected to the host system interface via the first selector, and the host system reads and writes the data of the memory card using the second communication protocol through the host system interface and the second transmitting and receiving end of the first selector of the control device.

[0026] In one embodiment, after the host system interface detects that the memory card is connected to the memory card interface, the second interface further generates a second trigger signal to trigger the second selector.

[0027] In one embodiment, after detecting that the memory card is connected to the memory card interface, the host system activates the memory card with the first communication protocol through the host system interface and the first interface and the second interface of the bridge device. After determining that the memory card supports the second communication protocol operation, the memory card is activated with the second communication protocol.

[0028] In one embodiment, when the memory card operates with the second communication protocol, the second interface triggers the second selector with a second trigger signal, so that the memory card interface is electrically connected to the first sub-interface of the host system interface through the second selector.

[0029] In one embodiment, when the memory card operates with the second communication protocol, the host system triggers the second transceiver end of the first selector with a first trigger signal through the host system interface, so that the memory card interface is electrically connected to the second sub-interface of the host system interface through the second transceiver end.

[0030] In one embodiment, when the memory card operates with the second communication protocol, the host system interface disconnects the first transmitting and receiving end of the first selector.

[0031] In one embodiment, the host system communicates with the memory card through the host system interface, the second transmitting and receiving end of the first selector and the second selector to determine whether the memory card supports the protocol version of the host system, which protocol version includes PCIe1.0, PCIe2.0 and PCIe3.0 protocol versions.

[0032] In one embodiment, when it is confirmed that the first communication protocol of the memory card supports the PCIe1.0 protocol version or the PCIe2.0 protocol version of the host system interface, the host system reads and writes the data of the memory card through the host system interface and the first transmitting and receiving end of the first selector; when it is confirmed that the second communication protocol of the memory card supports the PCIe3.0 protocol version of the host system, the host system reads and writes the data of the memory card through the host system interface and the second transmitting and receiving end of the first selector.

[0033] In one embodiment, the first communication protocol of the memory card is defined as a secure digital (SD) mode, and the second communication protocol of the memory card is defined as a secure digital express (SD Express) mode.

[0034] In one embodiment, the data transmission rate of the first communication protocol of the memory card is lower than the data transmission rate of the second communication protocol.

[0035] In one embodiment, the bridge device further includes a non-volatile memory express protocol controller, which is electrically connected to the first selector through the first interface and electrically connected to the first sub-interface of the host system interface. When the memory card does not support the operation of the second communication protocol, the host system accesses the data of the memory card through the host system interface and the non-volatile memory express protocol controller. When the memory card supports the operation of the second communication protocol, a non-volatile memory express (NVMe) protocol driver of the host system accesses the data of the memory card through the host system interface and the second receiving end of the first selector.

[0036] The read-write control system and method of the present invention, through the control module of the control device and the first selector, enable the host system to read and write data of the memory card using different communication protocols through only one interface, thereby solving the compatibility problem between the memory card and the read-write control system, and improving the flexibility of using the memory card, while reducing the production cost of the read-write control system. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those with ordinary knowledge in the technical field to which the present invention belongs, other drawings can also be obtained based on these drawings.

[0038] Figure 1 A block diagram of a read-write control system according to a first embodiment of the present invention is shown;

[0039] Figure 2 A block diagram of a read-write control system according to a second embodiment of the present invention is shown;

[0040] Figure 3 A flowchart illustrating a read / write control method according to a first embodiment of the present invention; and

[0041] Figures 4-5 are flow charts illustrating the read-write control method according to the second embodiment of the present invention. DETAILED DESCRIPTION

[0042] Please refer to the drawings, in which the same component symbols represent the same components or similar components. The principle of the present invention is illustrated by implementing it in an appropriate computing environment. The following description is based on the illustrated specific embodiments of the present invention, which should not be considered as limiting other specific embodiments of the present invention that are not described in detail herein.

[0043] Referring to FIG. 1 , it is a block diagram of a read / write control system according to a first embodiment of the present invention. The read / write control system is used for a host system 103 to read / write data from a memory card 100. The read / write control system includes a memory card interface 101, a host system interface 102, and a control device 104.

[0044] As shown in FIG. 1 , the memory card interface 101 is used to connect the memory card 100. The host system interface 102 is electrically connected to the memory card interface 101, and the host system 103 is connected to the host system interface 102. The control device 104 is connected between the memory card interface 101 and the host system interface 102. The control device 104 includes a control module 106 and a first selector 108. The control module 106 is electrically connected to the memory card interface 101, the host system interface 102 and the first selector 108. The first selector 108 is electrically connected to the memory card interface 101 and the host system interface 102. The control module 106 includes a bridge device 109 and a second selector 114. The bridge device 109 is electrically connected to the host system interface 102, the memory card interface 101 and the first selector 108. The second selector 114 is electrically connected to the host system interface 102, the memory card interface 101 and the bridge device 109. When the memory card 100 operates in a first communication protocol, the memory card interface 101 is electrically connected to the host system interface 102 via the second selector 114, the bridge device 109 and the first selector 108. When the memory card 100 operates in a second communication protocol, the memory card interface 101 is electrically connected to the host system interface 102 via the second selector 114, and the memory card interface 101 is also electrically connected to the host system interface 102 via the first selector 108.

[0045] As shown in FIG. 1 , in one embodiment, the host system 103 detects through the control device 104 that the memory card interface 101 is electrically connected to the host system interface 102, and connects to the memory card 100 using the first communication protocol, and initializes or starts the memory card 100 using the first communication protocol. The initialization process is, for example, that the host system interface 102 provides the memory card 100 with power required for operation, the host system interface 102 transmits operation and access instructions to the memory card 100, and establishes a two-way communication between the host system interface 102 and the memory card 100 through the memory card interface 101. As shown in FIG. 1 , in one embodiment, the bridge device 109 includes a first interface 110 and a second interface 112. The first interface 110 is electrically connected to the host system interface 102 and the first selector 108, and the second interface 112 is electrically connected to the memory card interface 101, the first interface 110, and the second selector 114.

[0046] As shown in FIG. 1 , in one embodiment, when the memory card 100 operates in the first communication protocol, for example, when the first communication protocol of the memory card 100 is a secure digital (SD) mode, the memory card interface 101 can be electrically connected to the host system interface 102 via the second selector 114, the first interface 110, and the second interface 112, and via the first selector 108 of the control device 104, wherein the memory card interface 101, the second interface 112, the first interface 110 are electrically connected to the host system interface 102. The transmission path between the host system interface 102 is defined as a first transmission path P1, and the transmission path between the memory card interface 101, the second selector 114, the second interface 112, the first interface 110, the first selector 108, and the host system interface 102 is defined as a second transmission path P2, so that the host system interface 102 communicates with the memory card interface 101 through the first transmission path P1 and reads and writes the data of the memory card 100 through the second transmission path P2 using the first communication protocol. In one embodiment, the host system interface 102 detects that the memory card interface 101 is electrically connected to the host system interface 102 through the first transmission path P1. The host system interface 102 initializes the memory card 100 using the first communication protocol through the first transmission path P1. In a preferred embodiment, when detecting the connection of the memory card 100 , the host system 103 initializes or starts the memory card 100 with the first communication protocol, for example through the host system interface 102 and the first interface 110 and the second interface 112 of the bridge device 109 .

[0047] As shown in FIG. 1 , in one embodiment, when the memory card 100 operates in the second communication protocol, for example, when the second communication protocol of the memory card 100 is the SD Express mode, the memory card interface 101 is electrically connected to the host system interface 102 via the second selector 114, and the memory card interface 101 is electrically connected to the host system interface 102 via the first selector 108 of the control device 104, wherein a transmission path among the memory card interface 101, the second selector 114 and the host system interface 102 is defined as a third transmission path P3, and a transmission path among the memory card interface 101, the first selector 108 and the host system interface 102 is defined as a fourth transmission path P4, so that the host system interface 102 communicates with the memory card interface 101 through the third transmission path P3 and reads and writes the data of the memory card 100 through the fourth transmission path P4 in the second communication protocol. After determining that the memory card 100 supports the second communication protocol operation, the present embodiment, for example, will first initialize or start (Initialization process) the memory card 100 with the second communication protocol to perform subsequent communication or read / write operations.

[0048] As shown in FIG. 1 , in one embodiment, the memory card interface 101 is, for example, a secure digital memory card protocol, such as SD-UHS I, SD-UHS II, SD-UHS III, SD 7.0, and other protocol versions, but not limited thereto. In one embodiment, the first communication protocol of the memory card 100 is defined as a secure digital (SD) mode, such as SD-UHS I, SD-UHS II, and SD-UHS III protocol versions. The second communication protocol of the memory card 100 is defined as an SD Express mode. The secure digital mode is a protocol version before the express secure digital mode, and the express secure digital mode is a secure digital (SD) 7.0 protocol version, such as a protocol version that supports the secure digital (SD) 7.0 protocol version or a later update. The data transmission rate of the first communication protocol of the memory card 100 is less than the data transmission rate of the second communication protocol. The host system interface 102 is, for example, a peripheral component interconnect express (PCIe) root complex component, which is used to connect the processor and the memory to a PCIe switch architecture composed of one or more switch devices, and can be set in a laptop, a mobile phone, a tablet computer, or other electronic devices connected to the processor and the memory. The control device 104 is, for example, a control chip or a control circuit of a card reader, but is not limited thereto.

[0049] As shown in FIG. 1 , in one embodiment, the host system interface 102 includes a first sub-interface 102a and a second sub-interface 102b, and the first selector 108 includes a first transceiver terminal FT and a second transceiver terminal ST. For example, the first sub-interface 102a includes a PCI Express Reset (PERST#) signal, a clock request operation signal (CLKREQ#), and a reference clock differential pair signal (reference clock, REFCLK+, REFCLK-), wherein the PCI Express Reset (PERST#) signal is used to manage the reset operation of the second sub-interface 102b; the clock request operation signal

[0050] (clock request, CLKREQ#) is used to request reference frequency operation; the reference frequency differential pair signal (reference clock, REFCLK+, REFCLK-) is used to provide reference frequency. The first sub-interface 102a is electrically connected to the first interface 110 of the bridge device 109 and the second selector 114 to transmit the above 4 signals, including PERST#, CLKREQ#, REFCLK+, and REFCLK-4 signals. The second sub-interface 102b is used to perform data transmission / receiving (transmit / receive, TX / RX) between the interface device 102 and the memory card interface 101. The second sub-interface 102b supports PCIe1.0, PCIe2.0 and PCIe3.0 protocol versions. For example, the transmission bandwidth of PCIe1.0 is 2.5GHz, the transmission bandwidth of PCIe2.0 is 5.0GHz, and the transmission bandwidth of PCIe3.0 is 8.0GHz. The first transceiver terminal FT is, for example, a low-speed transceiver terminal, and the second transceiver terminal ST is, for example, a high-speed transceiver terminal, but the present invention is not limited thereto. For example, the first transceiver terminal FT and the second transceiver terminal ST have different transmission bandwidths.

[0051] As shown in FIG. 1 , in one embodiment, when the memory card 100 operates with the first communication protocol, the host system interface 102 triggers the first transceiver terminal FT of the first selector 108 with the first trigger signal TS1, so that the memory card interface 101 is electrically connected to the second sub-interface 102b of the host system interface 102 through the bridge device 109 and the first transceiver terminal FT, and the memory card interface 101 is also electrically connected to the first sub-interface 102a of the host system interface 102 through the second selector 114 and the bridge device 109. The first transceiver terminal FT is, for example, a low-speed transceiver terminal, but is not limited thereto, and for example, the first transceiver terminal FT and the second transceiver terminal ST have different transmission bandwidths.

[0052] As shown in FIG. 1 , in one embodiment, when the memory card 100 operates in the second communication protocol, the second interface 112 of the bridge device 109 triggers the second selector 114 with the second trigger signal TS2, so that the memory card interface 101 is electrically connected to the first sub-interface 102a of the host system interface 102 through the second selector 114, and the host system interface 102 triggers the second transmission and receiving terminal ST of the first selector 108 with the first trigger signal TS1, so that the memory card interface 101 is electrically connected to the second sub-interface 102b of the host system interface 102 through the second transmission and receiving terminal ST. In one embodiment, when the memory card 100 operates in the second communication protocol, the host system interface 102 disconnects the first transmission and receiving terminal FT of the first selector 108.

[0053] As shown in FIG. 1 , the host system 103 scans the memory card 100 through the host system interface 102 through the second transmission and receiving end ST of the first selector 108 and the second selector 114 to determine whether the memory card 100 supports the protocol version of the host system interface 102, which includes PCIe1.0, PCIe2.0 and PCIe3.0 protocol versions. When it is confirmed that the first communication protocol of the memory card 100 supports the PCIe1.0 protocol version or the PCIe2.0 protocol version of the host system interface 102, the host system 103 reads and writes the data of the memory card 100 through the first transmission and receiving end FT of the second selector 114 through the host system interface 102. When it is confirmed that the second communication protocol of the memory card 100 supports the PCIe 3.0 protocol version of the host system interface 102 , the host system 103 , for example, reads and writes the data of the memory card 100 through the second transmission / reception terminal ST of the first selector 108 via the host system interface 102 .

[0054] As shown in FIG. 1 , in one embodiment, the second interface 112 of the bridge device 109 includes a control interface 112a and a transceiver interface 112b, wherein the control interface 112a is connected to the memory card interface 101, and the transceiver interface 112b is connected to the second selector 114. The control interface 112a includes signals such as secure digital command (SD CMD) and secure digital clock (SD CLK) for establishing a communication link between the second interface 112 and the memory card interface 101. The transceiver interface 112b includes secure digital data (SD DAT), such as SD DAT 0-3, which includes 4 bits for transmitting and receiving data between the second interface 112 and the memory card interface 101. The control interface 112a and the transceiver interface 112b of the second interface 112 are used to convert the communication and data transmission formats between the first sub-interface 102a and the second sub-interface 102b of the host system interface 102 and the first communication protocol, respectively. In one embodiment, the second selector 114 is, for example, a multiplexer, but is not limited thereto, and can be, for example, a selector formed by combining circuit components or logic components. In one embodiment, the second interface 112 is, for example, a host controller of SD-UHS I.

[0055] like Figure 1 As shown, in one embodiment, the read-write control system is used to control the reading and writing of data of a memory card 100, and the read-write control system includes a first transmission path P1, a second transmission path P2, a third transmission path P3 and a fourth transmission path P4. The first transmission path P1 is connected between a memory card interface 101, a bridge device 109 and a host system interface 102, wherein the memory card interface 101 is used to connect the memory card 100. The second transmission path P2 is connected between the memory card interface 101, a second selector 114, the bridge device 109, a first selector 108 and the host system interface 102. The third transmission path P3 is connected between the memory card interface 101, the second selector 114 and the host system interface 102. The fourth transmission path P4 is connected between the memory card interface 101, the first selector 108 and the host system interface 102. When the memory card 100 operates with the first communication protocol, the host system 103 communicates with the memory card interface 101 through the first transmission path P1 and reads and writes the data of the memory card 100 with the first communication protocol through the second transmission path P2. When the memory card 100 operates with the second communication protocol, the host system 103 communicates with the memory card interface 101 through the third transmission path P3 and reads and writes the data of the memory card 100 with the second communication protocol through the fourth transmission path P4.

[0056] FIG. 2 is a block diagram of a read / write control system according to a second embodiment of the present invention. The read / write control system of FIG. 2 is similar to the read / write control system of FIG. 1, except that a non-volatile memory express (NVMe) protocol controller 200 is further provided between the second interface 112 and the first interface 110. When the host system 103 confirms that the memory card 100 supports the first communication protocol, such as the PCIe 1.0 protocol version or the PCIe 2.0 protocol version of the host system interface 102, the host system 103 reads and writes the data of the memory card 100 through the first transmission / receiving end FT of the first selector 108 via the host system interface 102, the first interface 110, the NVMe controller 200 and the second interface 112. When the host system interface 102 confirms that the memory card 100 supports the second communication protocol, for example, supports the PCIe3.0 protocol version of the host system interface 102, a non-volatile memory express (NVMe) protocol driver in the host system 103 can read and write the data of the memory card 100 through the second transmission and receiving end ST of the first selector 108.

[0057] According to the above, the read-write control system of the present invention, through the control module 106 of the control device 104 and the first selector 108, enables the host system 103 to support different communication protocols to read and write data of the memory card 100 through only one interface, thereby solving the compatibility problem between the memory card 100 and the read-write control system, and improving the flexibility of use of the memory card 100, while reducing the production cost of the read-write control system.

[0058] Referring to FIG. 1 and FIG. 3, FIG. 3 is a flow chart of a read-write control method according to a first embodiment of the present invention. The read-write control method is used in a read-write control system, so that a host system 103 reads and writes a memory card 100 through the read-write control system. The read-write control system includes a memory card interface 101, a host system interface 102, and a control device 104. The control device 104 includes a control module 106 and a first selector 108. The control module 106 includes a first interface 110, a second interface 112, and a second selector 114. The host system interface 102 includes a first sub-interface 102a and a second sub-interface 102b. The first selector 108 includes a first transmission terminal FT and a second transmission terminal ST. The read-write control method includes the following steps:

[0059] In step S300 , the host system 103 triggers the first transceiver terminal FT of the first selector 108 with the first trigger signal TS1 via the host system interface 102 . The host system 103 is electrically connected to the memory card interface 101 via the host system interface 102 , the first transceiver terminal FT of the first selector 108 , and the control module 106 .

[0060] In step S302, it is detected that the memory card 100 is connected to the host system interface 102 and the control device 104. In one embodiment, the host system 103 is connected to the memory card 100 using a first communication protocol.

[0061] In step S304, it is determined whether the memory card 100 supports operation of a second communication protocol.

[0062] In step S306, when it is determined that the memory card 100 does not support the operation of the second communication protocol (i.e., the memory card 100 operates with the first communication protocol), the memory card interface 101 is electrically connected to the host system interface 102 via the second selector 114, the bridge device 109 and the first selector 108, so that the host system 103 reads and writes the data of the memory card 100 through the host system interface 102 with the first communication protocol.

[0063] In step S308, when it is determined that the memory card 100 supports the second communication protocol operation, the memory card interface 101 is electrically connected to the host system interface 102 via the second selector 114, and the memory card interface 101 is also electrically connected to the host system interface 102 via the first selector 108, and the host system 103 reads and writes the data of the memory card 100 using the second communication protocol through the host system interface 102 and the second transmitting and receiving end ST of the first selector 108 of the control device 104.

[0064] Referring to FIG. 1 and FIG. 4, FIG. 4 is a flow chart of a read-write control method according to a second embodiment of the present invention. For a read-write control system, the read-write control system includes a memory card interface 101, a host system interface 102, and a control device 104, the control device 104 includes a control module 106 and a first selector 108, the control module 106 includes a first interface 110, a second interface 112, and a second selector 114, the host system interface 102 includes a first sub-interface 102a and a second sub-interface 102b, the first selector 108 includes a first transmission terminal FT and a second transmission terminal ST, the read-write control method includes the following steps:

[0065] In step S400 , the host system 103 triggers the first transceiver terminal FT of the first selector 108 with the first trigger signal TS1 through the host system interface 102 . The host system interface 102 is electrically connected to the memory card interface 101 via the first transceiver terminal FT of the first selector 108 and the control module 106 .

[0066] In step S402, it is detected that the memory card 100 is electrically connected to the memory card interface 101. In this embodiment, for example, the memory card 100 is connected using the first communication protocol. In a preferred embodiment, the control device 104 detects that the memory card 100 is electrically connected to the memory card interface 101. The control device 104 can, for example, transmit a detection message to the host system 103. All actions that detect that the memory card 100 is electrically connected to the memory card interface 101 are within the spirit and scope of the present disclosure, and no limitation is imposed herein.

[0067] In step S404 , the second interface 112 generates a second trigger signal TS2 to trigger the second selector 114 .

[0068] In step S406, the memory card 100 is initialized or started (Initialization process) with the first communication protocol. In one embodiment, the host system 103 can initialize or start the memory card 100 with the first communication protocol, for example, through the first interface 110 and the second interface 112 of the bridge device 109 of the control module 106. In other embodiments, the control module 106 can also initialize or start the memory card 100 with the first communication protocol through the first interface 110 and the second interface 112 of the bridge device 109. All actions of initializing or starting the memory card 100 with the first communication protocol are within the spirit and scope of the present disclosure, and no limitation is made herein.

[0069] In step S408, determine whether the memory card 100 supports the operation of the second communication protocol. In one embodiment, the host system 103 can determine whether the memory card 100 supports the operation of the second communication protocol through the first transmission and receiving terminal FT of the first selector 108 via the host system interface 102. In other embodiments, for example, the control module 106 can determine whether the memory card 100 supports the operation of the second communication protocol. All technologies for determining whether the memory card 100 supports the operation of the second communication protocol belong to the spirit and scope of the present disclosure, and no limitation is imposed herein. It is worth mentioning that after determining that the memory card 100 supports the operation of the second communication protocol, the memory card will be initialized or started (Initialization process) with the second communication protocol, for example.

[0070] In step S410, when it is determined that the memory card 100 supports the second communication protocol operation, the second interface 112 triggers the second selector 114 with the second trigger signal TS2, so that the memory card interface 101 is electrically connected to the first sub-interface 102a of the host system interface 102 through the second selector 114. In one embodiment, the first sub-interface 102a supports the PCIe3.0 protocol version, for example.

[0071] In step S412, when the memory card 100 operates with the second communication protocol, the host system interface 102 triggers the second transmission terminal ST of the first selector 108 with the first trigger signal TS1, so that the memory card interface 101 is electrically connected to the second sub-interface 102b of the host system interface 102 through the second transmission terminal ST. In one embodiment, the second sub-interface 102b supports the PCIe3.0 protocol version, for example.

[0072] In step S414 , when the memory card 100 operates with the second communication protocol, the host system interface 102 disconnects the first transceiver terminal FT of the first selector 108 . The first transceiver terminal FT supports PCIe 1.0 and PCIe 2.0 protocol versions, for example.

[0073] In step S416, the host system interface 102 communicates with the memory card 100 through the second transmission and receiving terminal ST of the first selector 108 and the control interface 112a of the second selector 114 to determine whether the memory card 100 supports the protocol version of the host system 103, which includes PCIe1.0, PCIe2.0 and PCIe3.0 protocol versions.

[0074] After step S408, if it is determined that the memory card 100 does not support the operation of the second communication protocol, step S418 is performed. That is, in step S418, the host system 103 confirms through the host system interface 102 that the first communication protocol of the memory card 100 supports the PCIe 1.0 protocol version or the PCIe 2.0 protocol version of the host system interface 102, and the host system interface 102 reads and writes the data of the memory card 100 through the first transmission and receiving terminal FT of the first selector 108.

[0075] Continuing from the above, in step S416, if it is determined that the memory card 100 supports PCIe1.0 and PCIe2.0 protocol versions, step S418 is performed. In contrast, if it is determined that the memory card 100 supports PCIe3.0 protocol version, step S420 is performed. In step S420, when the host system interface 102 confirms that the second communication protocol of the memory card 100 supports the PCIe3.0 protocol version of the host system interface 102, the host system 103 reads and writes the data of the memory card 100 through the second transmission and receiving terminal ST of the first selector 108 via the host system interface 102.

[0076] In a preferred embodiment, after executing step 414 , step S420 may be directly executed to allow the host system interface 102 to read and write the data of the memory card 100 through the second receiving terminal ST of the first selector 108 .

[0077] In summary, the read-write control system and method of the present invention, through the control module of the control device and the first selector, enable the host system to read and write data of the memory card using different communication protocols through only one interface, thereby solving the compatibility problem between the memory card and the read-write control system, and improving the flexibility of using the memory card, while reducing the production cost of the read-write control system.

[0078] Although the present application has been disclosed as above with preferred embodiments, the above preferred embodiments are not intended to limit the present application. A person skilled in the art may make various changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined in the claims.

Claims

1. A read-write control system, It is characterized in that The read-write control system is used for a host system to read and write data of a memory card, and includes: A memory card interface for connecting the memory card; a host system interface electrically connected to the memory card interface, and the host system is connected to the host system interface; and A control device includes a control module and a first selector, wherein the control module is electrically connected to the memory card interface, the host system interface and the first selector, and the first selector is electrically connected to the memory card interface and the host system interface, wherein the control module includes: a bridge device electrically connecting the host system interface, the memory card interface and the first selector; and a second selector electrically connected to the host system interface, the memory card interface and the bridge device; When the memory card operates with a first communication protocol, the memory card interface is electrically connected to the host system interface via the second selector, the bridge device and the first selector; When the memory card operates with a second communication protocol, the memory card interface is electrically connected to the host system interface via the second selector, and the memory card interface is also electrically connected to the host system interface via the first selector.

2. The read-write control system as claimed in claim 1, It is characterized in that The control device detects that the memory card is electrically connected to the memory card interface, connects to the memory card using the first communication protocol by default, and activates the memory card using the first communication protocol.

3. The read-write control system as claimed in claim 1, It is characterized in that The bridging device comprises: a first interface electrically connected to the host system interface and the first selector; and a second interface electrically connected to the memory card interface, the first interface and the second selector; wherein, when the memory card operates with the first communication protocol, the memory card interface is electrically connected to the host system interface via the second selector, the second interface and the first interface, and via the first selector of the control device, wherein a transmission path among the memory card interface, the second interface, the first interface and the host system interface is defined as a first transmission path, and a transmission path among the memory card interface, the second selector, the second interface, the first interface, the first selector and the host system interface is defined as a second transmission path, so that the host system communicates with the memory card interface via the first transmission path and reads and writes the data of the memory card via the second transmission path with the first communication protocol; When the memory card operates with the second communication protocol, the memory card interface is electrically connected to the host system interface via the second selector, and the memory card interface is electrically connected to the host system interface via the first selector of the control device, wherein the transmission path between the memory card interface, the second selector and the host system interface is defined as a third transmission path, and the transmission path between the memory card interface, the first selector and the host system interface is defined as a fourth transmission path, so that the host system communicates with the memory card interface through the third transmission path and reads and writes the data of the memory card through the fourth transmission path using the second communication protocol.

4. The read-write control system as claimed in claim 3, It is characterized in that The host system interface includes a first sub-interface and a second sub-interface, and the first selector includes a first transceiver end and a second transceiver end. When the memory card operates with the first communication protocol, the host system triggers the first transceiver end of the first selector with a first trigger signal through the host system interface, so that the memory card interface is electrically connected to the second sub-interface of the host system interface through the bridge device and the first transceiver end, and the memory card interface is also electrically connected to the first sub-interface of the host system interface through the second selector and the bridge device.

5. The read-write control system as claimed in claim 4, It is characterized in that When the memory card operates with the second communication protocol, the second interface triggers the second selector with a second trigger signal so that the memory card interface is electrically connected to the first sub-interface of the host system interface through the second selector, and the host system triggers the second transmitting and receiving end of the first selector with the first trigger signal through the host system interface so that the memory card interface is electrically connected to the second sub-interface of the host system interface through the second transmitting and receiving end.

6. The read-write control system as claimed in claim 4, It is characterized in that When the memory card operates in accordance with the second communication protocol, the host system interface disconnects the first transmitting and receiving end of the first selector.

7. The read-write control system as claimed in claim 4, It is characterized in that The host system communicates with the memory card through the host system interface, the second transmitting and receiving end of the first selector and the second selector to determine whether the memory card supports the protocol version of the host system, which includes PCIe1.0, PCIe2.0 and PCIe3.0 protocol versions.

8. The read-write control system as claimed in claim 7, It is characterized in that When the host system confirms through the host system interface that the first communication protocol of the memory card supports the PCIe1.0 protocol version or the PCIe2.0 protocol version of the host system, the host system reads and writes the data of the memory card through the host system interface and the first transmitting and receiving end of the first selector. When the host system confirms through the host system interface that the second communication protocol of the memory card supports the PCIe3.0 protocol version of the host system, the host system reads and writes the data of the memory card through the host system interface and the second transmitting and receiving end of the first selector.

9. The read-write control system as claimed in claim 4, It is characterized in that The bridge device further includes a non-volatile memory express protocol controller, which is electrically connected to the first selector through the first interface and electrically connected to the second sub-interface of the host system interface. When the memory card does not support the operation of the second communication protocol, the host system accesses the data of the memory card through the host system interface and the non-volatile memory express protocol controller. When the memory card supports the operation of the second communication protocol, a non-volatile memory express (NVMe) protocol driver of the host system accesses the data of the memory card through the host system interface and the second transmitting and receiving end of the first selector.

10. The read-write control system as claimed in claim 1, It is characterized in that The first communication protocol of the memory card is defined as a secure digital (SD) mode, and the second communication protocol of the memory card is defined as a secure digital express (SD Express) mode.

11. The read-write control system as claimed in claim 1, It is characterized in that The data transmission rate of the first communication protocol of the memory card is lower than the data transmission rate of the second communication protocol.

12. A read-write control system, It is characterized in that The read-write control system is used for a host system to read and write data of a memory card, and includes: a first transmission path connected between a memory card interface, a bridge device and a host system interface, wherein the memory card interface is used to connect the memory card; a second transmission path connected between the memory card interface, a second selector, the bridge device, a first selector and the host system interface; a third transmission path connected between the memory card interface, the second selector and the host system interface; and a fourth transmission path connected between the memory card interface, the first selector and the host system interface; When the memory card operates with the first communication protocol, the host system communicates with the memory card interface through the host system interface via the first transmission path and reads and writes the data of the memory card with the first communication protocol through the second transmission path; When the memory card operates with the second communication protocol, the host system communicates with the memory card interface via the host system interface through the third transmission path and reads and writes the data of the memory card with the second communication protocol through the fourth transmission path.

13. The read-write control system as claimed in claim 12, It is characterized in that The host system interface includes a first sub-interface and a second sub-interface, the bridge device includes a first interface and a second interface, and the first selector includes a first transmitting and receiving end and a second transmitting and receiving end. When the memory card operates with the first communication protocol, the host system triggers the first transmitting and receiving end of the first selector via the host system interface with a first trigger signal, so that the memory card interface is electrically connected to the second sub-interface of the host system interface through the bridge device and the first transmitting and receiving end, and the memory card interface is also electrically connected to the first sub-interface of the host system interface through the second selector and the bridge device.

14. The read-write control system as claimed in claim 13, It is characterized in that When the memory card operates with the second communication protocol, the second interface triggers the second selector with a second trigger signal so that the memory card interface is electrically connected to the first sub-interface of the host system interface through the second selector, and the host system interface triggers the second transmitting and receiving end of the first selector with the first trigger signal so that the memory card interface is electrically connected to the second sub-interface of the host system interface through the second transmitting and receiving end.

15. The read-write control system as claimed in claim 14, It is characterized in that When the memory card operates in accordance with the second communication protocol, the host system interface disconnects the first transmitting and receiving end of the first selector.

16. A read-write control method, It is characterized in that A read-write control system is used for a host system to read and write a memory card through the read-write control system. The read-write control system includes a memory card interface, a host system interface and a control device. The control device includes a control module and a first selector. The control module includes a bridge device and a second selector. The bridge device includes a first interface and a second interface. The host system interface includes a first sub-interface and a second sub-interface. The first selector includes a first transmitting and receiving end and a second transmitting and receiving end. The read-write control method includes the following steps: The host system triggers the first transceiver end of the first selector with a first trigger signal via the host system interface, and the host system is electrically connected to the memory card interface via the host system interface, the first transceiver end of the first selector and the control module; Detecting that the memory card is connected to the memory card interface, and connecting to the memory card using a first communication protocol; Determining whether the memory card supports operation of a second communication protocol; When it is determined that the memory card does not support the operation of the second communication protocol, the memory card interface is electrically connected to the host system interface via the second selector, the bridge device and the first selector, so that the host system reads and writes data of the memory card using the first communication protocol through the host system interface; When it is determined that the memory card supports the second communication protocol operation, the memory card interface is electrically connected to the host system interface via the second selector, and the memory card interface is also electrically connected to the host system interface via the first selector, and the host system reads and writes data in the memory card using the second communication protocol through the host system interface and the second transmitting and receiving end of the first selector of the control device.

17. The read-write control method as claimed in claim 16, It is characterized in that After the step of detecting that the memory card is connected to the memory card interface, the second interface also generates a second trigger signal to trigger the second selector.

18. The read-write control method as claimed in claim 17, It is characterized in that After the step of detecting that the memory card is connected to the memory card interface, the host system activates the memory card with the first communication protocol through the host system interface and the first interface and the second interface of the bridge device. After determining that the memory card supports the second communication protocol operation, the memory card is activated with the second communication protocol.

19. The read-write control method according to claim 16, It is characterized in that When the memory card operates with the second communication protocol, the second interface triggers the second selector with a second trigger signal, so that the memory card interface is electrically connected to the first sub-interface of the host system interface through the second selector.

20. The read-write control method according to claim 16, It is characterized in that When the memory card operates with the second communication protocol, the host system triggers the second receiving end of the first selector with a first trigger signal through the host system interface, so that the memory card interface is electrically connected to the second sub-interface of the host system interface through the second receiving end.

21. The read-write control method according to claim 16, It is characterized in that When the memory card operates in accordance with the second communication protocol, the host system interface disconnects the first transmitting and receiving end of the first selector.

22. The read / write control method as claimed in claim 16, It is characterized in that The host system communicates with the memory card through the host system interface, the second transmitting and receiving end of the first selector and the second selector to determine whether the memory card supports the protocol version of the host system, which includes PCIe1.0, PCIe2.0 and PCIe3.0 protocol versions.

23. The read / write control method as claimed in claim 22, It is characterized in that When it is confirmed that the first communication protocol of the memory card supports the PCIe1.0 protocol version or the PCIe2.0 protocol version of the host system interface, the host system reads and writes the data of the memory card through the host system interface and the first transmitting and receiving end of the first selector. When it is confirmed that the second communication protocol of the memory card supports the PCIe3.0 protocol version of the host system, the host system reads and writes the data of the memory card through the host system interface and the second transmitting and receiving end of the first selector.

24. The read-write control method as claimed in claim 16, It is characterized in that The first communication protocol of the memory card is defined as a secure digital (SD) mode, and the second communication protocol of the memory card is defined as a secure digital express (SD Express) mode.

25. The read-write control method as claimed in claim 16, It is characterized in that The data transmission rate of the first communication protocol of the memory card is lower than the data transmission rate of the second communication protocol.

26. The read-write control method as claimed in claim 16, It is characterized in that The bridge device further includes a non-volatile memory express protocol controller, which is electrically connected to the first selector through the first interface and is electrically connected to the first sub-interface of the host system interface. When the memory card does not support the operation of the second communication protocol, the host system accesses the data of the memory card through the host system interface and the non-volatile memory express protocol controller. When the memory card supports the operation of the second communication protocol, a non-volatile memory express (NVMe) protocol driver of the host system accesses the data of the memory card through the host system interface and the second transmitting and receiving end of the first selector.

Citation Information

Patent Citations

  • Accessing device

    CN103135939A

  • Memory card access device, control method thereof, and memory card access system

    CN104461977A

  • Read-write control system of memory card

    CN213182727U

  • Accessing device

    US20130138837A1