Sd card device, data processing method, system and readable storage medium

CN115390757BActive Publication Date: 2026-09-22ZHUHAI HI-CHIP SEMICON LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211005280.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-22
Publication Date
2026-09-22
Estimated Expiration
2042-08-22

AI Technical Summary

Technical Problem

此外,处理器的数据线和控制线直接与多路SD/MMC卡相连,只通过关闭时钟方式来切换对不同SD卡的访问,此时其他SD/MMC卡仍然会接收到数据线和控制线上的电平变化,对SD/MMC卡稳定性、数据安全性和使用寿命产生影响

Benefits of technology

[0010]通过在SD卡主机和存储设备之间设置隔离开关芯片,可以起到完全隔离作用,从而在保证存储卡读写数据的稳定可靠性同时,避免存储卡因为数据线电平不稳定而损坏的情况,延长存储从设备使用寿命。并且,SD卡主机通过片选输出端可以完成对隔离开关芯片与N个存储从设备之间通讯状态的选择,从而可以基于隔离开关芯片有效的完成存储容量的拓展。此外,SD卡主机只需要一组SD interface接口即可,极大的减少了处理器的管脚数量,使得处理器面积减小,降低了芯片的封装成本。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115390757B_ABST
    Figure CN115390757B_ABST
Patent Text Reader

Abstract

The application discloses an SD card device, a data processing method and system, and a readable storage medium. An isolation switch chip is arranged between an SD card host and a storage device, so that complete isolation is achieved, thereby guaranteeing the stability and reliability of the storage card in reading and writing data, avoiding damage of the storage card due to unstable data line level, and prolonging the service life of the storage slave device. In addition, the SD card host can select the communication state between the isolation switch chip and N storage slave devices through a chip selection output end, so that the storage capacity can be effectively expanded based on the isolation switch chip. Furthermore, the SD card host only needs one set of SD interface, so that the pin number of the processor is greatly reduced, the area of the processor is reduced, and the packaging cost of the chip is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of memory, and more particularly to an SD card device, a data processing method, a system, and a readable storage medium. Background Technology

[0002] With the development of society and science and technology, SD / MMC memory cards are being used more and more widely in electronic devices. Users have increasingly higher demands for storage capacity, requiring support for higher-capacity SD / MMC memory cards. This is especially true for processors with only one SD interface, which can only support one group of SD / MMC storage devices, limiting the capacity increase of memory cards. To solve this problem, the common practice is to connect multiple SD / MMC memory cards to a single processor via data and control lines, providing each SD / MMC memory card with a separate clock line. Therefore, as the number of SD / MMC memory cards increases, the number of pins the processor needs to provide also increases. However, the clock resources and pins of the processor are inherently limited, thus still restricting the storage capacity of the storage devices. Furthermore, the more interfaces the processor provides, the more lines there are, increasing the requirements for circuit board layout. In addition, with the processor's data and control lines directly connected to multiple SD / MMC cards, and access to different SD cards only switched by disabling the clock, other SD / MMC cards still receive voltage changes on the data and control lines, affecting the stability, data security, and lifespan of the SD / MMC cards. Summary of the Invention

[0003] This invention aims to at least solve one of the technical problems existing in the prior art. To this end, this invention proposes an SD card device that can effectively expand the storage capacity of the SD card device while ensuring circuit simplicity and storage device stability.

[0004] The present invention also provides a data processing method, a data processing system for performing the above-described data processing method, and a computer-readable storage medium.

[0005] An SD card device according to a first aspect embodiment of the present invention includes:

[0006] The SD card host has a chip select output terminal, a first command transmission terminal, a first clock transmission terminal, and a first data transmission terminal;

[0007] The isolating switch chip has a second command transmission terminal, a second clock transmission terminal, a second data transmission terminal, a chip select enable terminal, and N sets of data communication ports. The second command transmission terminal is connected to the first command transmission terminal, the second clock transmission terminal is connected to the first clock transmission terminal, and the second data transmission terminal is connected to the first data transmission terminal. The chip select enable terminal is used to receive a chip select enable signal sent by the SD card host through the chip select output terminal, so that the isolating switch chip enables the corresponding data communication port according to the chip select signal.

[0008] N storage slave devices are connected to N sets of data communication ports respectively.

[0009] The SD card device according to embodiments of the present invention has at least the following beneficial effects:

[0010] By placing an isolation switch chip between the SD card host and the storage device, complete isolation can be achieved. This ensures stable and reliable data reading and writing on the memory card while preventing damage due to unstable data line voltages, thus extending the lifespan of the storage slave device. Furthermore, the SD card host can select the communication status between the isolation switch chip and N storage slave devices via the chip select output, enabling effective expansion of storage capacity based on the isolation switch chip. In addition, the SD card host only requires one SD interface, significantly reducing the number of processor pins, resulting in a smaller processor area and lower chip packaging costs.

[0011] According to some embodiments of the present invention, the chip select output terminal includes M GPIO interfaces, and the chip select enable terminal includes M chip select interfaces corresponding to the M GPIO interfaces, wherein 2^M is greater than or equal to N and less than 2*N.

[0012] According to a second aspect of the present invention, a data processing method is applied to the above-described SD card device, the data processing method comprising:

[0013] Obtain the chip select control signal, which represents the storage slave device that the user needs to access;

[0014] A chip select enable signal is generated based on the chip select control signal;

[0015] The chip select enable signal is sent to the chip select enable terminal so that the isolation switch chip enables the corresponding data communication port.

[0016] The data processing method according to embodiments of the present invention has at least the following beneficial effects:

[0017] The SD card host, by acquiring the chip select control signal sent by the user side, can select the communication state between the isolation switch chip and N storage slave devices based on the chip select control signal, thereby effectively expanding the storage capacity based on the isolation switch chip. Furthermore, because this data processing method is applied to the aforementioned SD card device, it also possesses the beneficial effects of the aforementioned SD card device.

[0018] According to some embodiments of the present invention, the chip select control signal is obtained by the following steps:

[0019] In response to a user's operation on a file stored in the file list, the SD drive letter corresponding to the stored file is determined and denoted as the target drive letter; the file list includes N stored files in the storage slave devices, and there are N SD drive letters, which correspond one-to-one with the N storage slave devices;

[0020] The chip select control signal is generated based on the target drive letter.

[0021] According to some embodiments of the present invention, the stored file is saved to the file list by the following steps:

[0022] Initialize the SD card device, scan the storage files in N storage slave devices, and save them to the pre-established file list.

[0023] According to some embodiments of the present invention, sending the chip select enable signal to the chip select enable terminal includes the following steps:

[0024] Determine the current read / write status of the N storage slave devices;

[0025] If all N storage slave devices are in a state of no access, the chip select enable signal is sent to the chip select enable terminal.

[0026] According to some embodiments of the present invention, sending the chip select enable signal to the chip select enable terminal further includes the following steps:

[0027] If the read / write status of the storage slave device is "accessing", the chip select enable signal is paused and sent again after the read / write operation is completed.

[0028] A data processing system according to a third aspect embodiment of the present invention, applied to the above-described SD card device, includes:

[0029] The signal acquisition module is used to acquire the chip select control signal, which represents the storage slave device that the user needs to access;

[0030] The chip select signal generation module generates a chip select enable signal based on the chip select control signal;

[0031] The signal transmission module is used to send the chip select enable signal to the chip select enable terminal so that the isolation switch chip enables the corresponding data communication port.

[0032] The data processing system according to embodiments of the present invention has at least the following beneficial effects:

[0033] The signal acquisition module acquires the chip select control signal sent by the user side. The chip select signal generation module and the signal transmission module can then select the communication state between the isolating switch chip and N storage slave devices based on the chip select control signal, thereby effectively expanding the storage capacity based on the isolating switch chip. Furthermore, because this data processing method is applied to the aforementioned SD card device, it also possesses the beneficial effects of the SD card device.

[0034] According to a fourth aspect embodiment of the present invention, a computer-readable storage medium stores computer-executable instructions for performing the data processing method as described in the second aspect embodiment above. Since the computer-readable storage medium employs all the technical solutions of the data processing method of the above embodiments, it possesses at least all the beneficial effects brought about by the technical solutions of the above embodiments.

[0035] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. Attached Figure Description

[0036] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which:

[0037] Figure 1 This is a system schematic diagram of an SD card device according to an embodiment of the present invention;

[0038] Figure 2 This is a flowchart of a data processing method according to an embodiment of the present invention;

[0039] Figure 3 This is a flowchart of a data processing method according to another embodiment of the present invention.

[0040] Figure label:

[0041] SD card host 100, isolation switch chip 200, storage slave device 300. Detailed Implementation

[0042] Embodiments of the present invention are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention.

[0043] In the description of this invention, the use of terms such as "first," "second," etc., is for the purpose of distinguishing technical features only and should not be construed as indicating or implying relative importance, or implicitly indicating the number of technical features indicated, or implicitly indicating the order of the technical features indicated.

[0044] In the description of this invention, it should be understood that the orientation descriptions, such as up, down, etc., are based on the orientation or positional relationship shown in the drawings and are only for the convenience of describing this invention and simplifying the description, and are not intended to indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this invention.

[0045] In the description of this invention, it should be noted that, unless otherwise explicitly defined, terms such as "setting," "installation," and "connection" should be interpreted broadly, and those skilled in the art can reasonably determine the specific meaning of the above terms in this invention in conjunction with the specific content of the technical solution.

[0046] The technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described below are some embodiments of the present invention, not all embodiments.

[0047] See Figure 1 As shown, Figure 1 This is a system schematic diagram of an SD card device according to an embodiment of the present invention. The SD card device includes an SD card host 100, an isolation switch chip 200, and N storage slave devices 300.

[0048] The SD card host 100 has a chip select output terminal, a first command transmission terminal, a first clock transmission terminal, and a first data transmission terminal;

[0049] The isolating switch chip 200 has a second command transmission terminal, a second clock transmission terminal, a second data transmission terminal, a chip select enable terminal, and N sets of data communication ports. The second command transmission terminal is connected to the first command transmission terminal, the second clock transmission terminal is connected to the first clock transmission terminal, and the second data transmission terminal is connected to the first data transmission terminal. The chip select enable terminal is used to receive the chip select enable signal sent by the SD card host 100 through the chip select output terminal, so that the isolating switch chip 200 enables the corresponding data communication port according to the chip select signal.

[0050] N storage slave devices 300 are connected to N sets of data communication ports respectively.

[0051] refer to Figure 1 The isolating switch chip 200 has a set of second command transmission terminals, a second clock transmission terminal, a second data transmission terminal, and N sets of data communication ports. By inputting different chip select enable signals to the chip select enable terminal of the isolating switch chip 200, the connection status between the second command transmission terminal, the second clock transmission terminal, the second data transmission terminal and different sets of data communication ports can be switched. Based on this, the SD card host 100 is connected to the second command transmission terminal, the second clock transmission terminal and the second data transmission terminal respectively through the first command transmission terminal, the first clock transmission terminal and the first data transmission terminal. After the N storage slave devices 300 are connected to the N sets of data communication ports respectively, communication between the SD card host 100 and different storage slave devices 300 can be realized under the control of different chip select enable signals. This achieves the purpose of increasing storage capacity by connecting multiple storage slave devices 300 using the isolating switch chip 200.

[0052] According to an embodiment of the present invention, the SD card device, by setting an isolation switch chip 200 between the SD card host 100 and the storage device, can achieve complete isolation, thereby ensuring the stability and reliability of data reading and writing on the storage card while preventing damage to the storage card due to unstable data line levels, and extending the service life of the storage slave device 300. Furthermore, the SD card host 100 can select the communication state between the isolation switch chip 200 and N storage slave devices 300 through the chip select output terminal, thus effectively expanding the storage capacity based on the isolation switch chip 200. In addition, the SD card host 100 only needs one set of SD interface interfaces, greatly reducing the number of processor pins, resulting in a smaller processor area and lower chip packaging costs. In some embodiments, the isolation switch chip 200 can be an SGM6516.

[0053] In some embodiments, the chip select output terminal includes M GPIO interfaces, and the chip select enable terminal includes M chip select interfaces corresponding to the M GPIO interfaces, where 2^M is greater than or equal to N and less than 2*N. The isolating switch chip 200 has M chip select interfaces, and all M chip select interfaces can be controlled by high and low levels. Therefore, theoretically, 2^M data channels can be selected through the M chip select interfaces. Thus, as long as the number of storage slave devices 300 that the isolating switch chip 200 needs to connect is less than 2^M, accurate read and write control of all storage slave devices 300 can be achieved. In other words, each additional chip select interface doubles the number of storage slave devices 300 that the isolating switch chip 200 can connect to. Based on the above, the SD card host 100 only needs to control the high and low levels of the M chip select interfaces through the M GPIO interfaces to enable different data channels of the isolating switch chip 200.

[0054] To better illustrate the SD card device in the embodiments of the present invention, a specific embodiment is described here, in which two storage slave devices 300 are provided, respectively referred to as the first SD / MMC slave device and the second SD / MMC slave device.

[0055] When two storage slave devices 300 need to be selected, the SD card host 100 requires at least one GPIO interface for switching control, and the isolation switch chip 200 will also have at least one corresponding enable pin, which will be connected to the GPIO interface. When the SD card host 100 outputs a low level through the GPIO interface, the isolation switch chip 200 enables the data channel connected to the first SD / MMC slave device. At this time, the SD card host 100 can access the first SD / MMC slave device. Meanwhile, the data channel connected to the second SD / MMC slave device is not enabled and is prohibited from access. Therefore, the second SD / MMC slave device will not be affected by the level interference.

[0056] When access to the second SD / MMC slave device is required, the SD card host 100 needs to wait for the instruction to access the first SD / MMC slave device to be completed before outputting a high level through the GPIO interface. The isolation switch chip 200 will enable the data channel connected to the second SD / MMC slave device. At this time, the SD card host 100 can access the second SD / MMC slave device. At this time, the data channel connected to the first SD / MMC slave device is not enabled and cannot be accessed. Therefore, the first SD / MMC slave device will not be affected by the level interference.

[0057] It should be noted that when more SD / MMC slave devices are mounted through the isolation switch chip 200, the SD card host 100 needs to add GPIO interfaces accordingly. For example, 2 SD / MMC slave devices require 1 GPIO interface, 3-4 SD / MMC slave devices require 2 GPIO interfaces, and 5-8 SD / MMC slave devices require 3 GPIO interfaces.

[0058] See Figure 2 As shown, Figure 2 This is a flowchart of a data processing method provided in an embodiment of the present invention, applied to the aforementioned SD card device. The data processing method includes, but is not limited to, the following steps:

[0059] Obtain the chip select control signal, which indicates the storage slave device 300 that the user needs to access;

[0060] Generate a chip select enable signal based on the chip select control signal;

[0061] Send the chip select enable signal to the chip select enable terminal so that the isolation switch chip 200 enables the corresponding data communication port.

[0062] In this embodiment of the invention, all files in the storage slave devices 300 are displayed on the user side in the form of a file list. After the user selects a file or a specific storage slave device 300 on the user side, a chip select control signal is generated, and this signal is acquired by the SD card host 100. After acquiring the chip select control signal, the SD card host 100 determines the chip select enable signal according to the storage slave device 300 that needs to be accessed, and sends the chip select enable signal to the chip select enable terminal of the isolation switch chip 200. After being controlled by the chip select enable signal, the isolation switch chip 200 selects the storage slave device 300 corresponding to the chip select enable signal from N groups of data communication ports to perform data transmission with the SD card host 100.

[0063] According to the data processing method of this embodiment of the invention, the SD card host 100 obtains the chip select control signal sent by the user side, and can then select the communication state between the isolation switch chip 200 and N storage slave devices 300 based on the chip select control signal, thereby effectively expanding the storage capacity based on the isolation switch chip 200. Furthermore, since this data processing method is applied to the aforementioned SD card device, it also possesses the beneficial effects of the aforementioned SD card device.

[0064] See Figure 3 As shown, in some embodiments, the chip select control signal is obtained by the following steps:

[0065] In response to the user's operation on the files stored in the file list, the SD drive letter corresponding to the stored file is determined and recorded as the target drive letter; the file list includes the stored files in N storage slave devices 300, and there are N SD drive letters, which correspond one-to-one with the N storage slave devices 300;

[0066] Generate chip select control signals based on the target drive letter.

[0067] Storage devices are not used alone; they are typically used in conjunction with a storage management system. Through the interactive interface of the storage management system or other management platforms with a built-in storage management system, users can identify the corresponding storage file by manipulating the file list. This file list then determines the corresponding SD drive letter, and the SD drive letter is used to generate a chip select control signal. This signal is sent to the SD card host 100, which recognizes the drive letter information and quickly determines the final chip select enable signal using a pre-established correspondence between the storage slave device 300 and the chip select enable signal. Furthermore, when accessing a specific storage slave device 300 is required, the user can directly select the desired device through the interactive interface, or the SD card host 100 can automatically allocate file storage space based on the remaining capacity of the storage slave device 300 to determine the target drive letter.

[0068] See Figure 3 As shown, in some embodiments, the storage file is saved to the file list by the following steps:

[0069] Initialize the SD card device, scan the storage files in N storage slave devices 300, and save them to a pre-established file list.

[0070] When mounting the storage slave device 300, its file system is also mounted. Each storage slave device 300 is mounted as a different SD drive letter, and the files within it are scanned and saved to a file list, which is then displayed on the interactive interface. Simultaneously, the correspondence between each SD drive letter and the chip select enable signal is recorded during power-on. When accessing a specific file, the SD drive letter is used to determine the chip select enable signal, thus switching the data channel. It should be noted that the chip select enable signal is essentially a set of high and low level signals composed of M GPIO interfaces.

[0071] In some embodiments, sending a chip select enable signal to the chip select enable terminal includes the following steps:

[0072] Determine the current read / write status of the N storage slave devices 300;

[0073] If all N storage slave devices 300 are in a state of no access, send the chip select enable signal to the chip select enable terminal.

[0074] When accessing the storage slave device 300, it is necessary to ensure that no storage slave device 300 is currently in use. Only when no storage slave device 300 is being accessed can the data channel of the isolation switch chip 200 be switched directly using the chip select enable signal to complete the data reading and writing.

[0075] In some embodiments, sending the chip select enable signal to the chip select enable terminal further includes the following steps:

[0076] If the storage slave device 300 is in the read / write state, the chip select enable signal is paused and sent again after the read / write operation is completed.

[0077] When accessing the storage slave device 300, there will inevitably be a situation where a memory is being accessed. At this time, the enable signal cannot be sent directly to switch the data channel of the isolation switch chip 200. The data channel can only be switched after the current data read / write is completed.

[0078] To better illustrate the SD card device in this embodiment of the invention, a specific embodiment is described here. In this embodiment, there are two storage slave devices 300, referred to as a first SD / MMC slave device and a second SD / MMC slave device, respectively. When it is necessary to select two storage slave devices 300, the SD card host 100 needs at least one GPIO interface for switching control, and the isolation switch chip 200 will also have at least one corresponding enable pin, which will be connected to the GPIO interface.

[0079] After the storage device is started, when mounting the SD / MMC device, the file system of the SD / MMC device will be mounted. Each SD / MMC device will be mounted as a different SD drive letter (the first SD / MMC slave device corresponds to the first drive letter, and the second SD / MMC slave device corresponds to the second drive letter). At the same time, the SD card host 100 will scan the files in the SD / MMC device, save them to the file list, and display the file list on the interactive interface for the user to view directly. Furthermore, during the initialization phase, the high and low level signals of the enable pins of the isolation switch chip 200 sent by the SD card host 100 to the first and second drive letters via the GPIO interface will also be determined and recorded. For example, the GPIO interface corresponding to the first drive letter will output a low level, and the GPIO interface corresponding to the second drive letter will output a high level.

[0080] When a user needs to access a file, they can select the corresponding storage file from the file list displayed on the interactive interface. The SD card will determine that the storage file is stored on the first SD / MMC slave device or the second SD / MMC slave device and obtain the corresponding drive letter information. Then, it will use the first or second drive letter to determine the corresponding control level and send the control level to the enable pin of the isolation switch chip 200 to switch the GPIO of the SD / MMC device, and then read and write can be performed.

[0081] Furthermore, this embodiment of the invention employs a mutex lock mechanism. When reading or writing to an SD / MMC device, the mutex lock is only released after the access to the SD / MMC device is completed. This ensures that only one SD / MMC device can be accessed at any given time, thus avoiding data transmission errors.

[0082] A data processing system according to a third aspect of the present invention includes:

[0083] The signal acquisition module is used to acquire the chip select control signal, which indicates the storage slave device 300 that the user needs to access;

[0084] The chip select signal generation module generates a chip select enable signal based on the chip select control signal.

[0085] The signal transmission module is used to send the chip select enable signal to the chip select enable terminal so that the isolation switch chip 200 enables the corresponding data communication port.

[0086] In this embodiment of the invention, all files in the storage slave devices 300 are displayed on the user side in the form of a file list. After the user selects a file or a specific storage slave device 300 on the user side, a chip select control signal is generated, and this signal is acquired by the signal acquisition module. After the signal acquisition module acquires the chip select control signal, the chip select signal generation module determines the chip select enable signal according to the storage slave device 300 that needs to be accessed corresponding to the chip select control signal. The signal sending module sends the chip select enable signal to the chip select enable terminal of the isolation switch chip 200. After being controlled by the chip select enable signal, the isolation switch chip 200 selects the storage slave device 300 corresponding to the chip select enable signal from the N groups of data communication ports to perform data transmission with the SD card host 100.

[0087] According to the data processing system of this embodiment, the signal acquisition module acquires the chip select control signal sent by the user side. The chip select signal generation module and the signal transmission module can then select the communication state between the isolation switch chip 200 and the N storage slave devices 300 based on the chip select control signal, thereby effectively expanding the storage capacity based on the isolation switch chip 200. Furthermore, since this data processing method is applied to the aforementioned SD card device, it also possesses the beneficial effects of the aforementioned SD card device.

[0088] Furthermore, one embodiment of the present invention provides a computer-readable storage medium storing computer-executable instructions that are executed by a processor or controller, causing the processor to perform the data processing method described above, for example, performing the above-described... Figure 2 The methods in Figure 3 The method in the middle.

[0089] It will be understood by those skilled in the art that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which may include computer storage media or non-transitory media and communication media or transient media. As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information such as computer-readable instructions, data structures, program modules, or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc DVD or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0090] The embodiments of the present invention have been described in detail above with reference to the accompanying drawings. However, the present invention is not limited to the above embodiments. Within the scope of knowledge possessed by those skilled in the art, various changes can be made without departing from the spirit of the present invention.

Claims

1. An SD card device, characterized in that, include: The SD card host has a chip select output terminal, a first command transmission terminal, a first clock transmission terminal, and a first data transmission terminal; The isolating switch chip has a second command transmission terminal, a second clock transmission terminal, a second data transmission terminal, a chip select enable terminal, and N sets of data communication ports. The second command transmission terminal is connected to the first command transmission terminal, the second clock transmission terminal is connected to the first clock transmission terminal, and the second data transmission terminal is connected to the first data transmission terminal, where N is an integer greater than or equal to 2. The chip select enable terminal is used to receive a chip select enable signal sent by the SD card host through the chip select output terminal, so that the isolating switch chip enables the corresponding data communication port according to the chip select enable signal, and disables the remaining data communication ports in the N sets of data communication ports. N storage slave devices are connected to N sets of data communication ports respectively.

2. The SD card device according to claim 1, characterized in that, The chip select output terminal includes M GPIO interfaces, and the chip select enable terminal includes M chip select interfaces corresponding to the M GPIO interfaces, wherein 2^M is greater than or equal to N and less than 2*N.

3. A data processing method, characterized in that, Applied to the SD card device as described in claim 1 or 2, the method includes the following steps: Obtain the chip select control signal, which represents the storage slave device that the user needs to access; A chip select enable signal is generated based on the chip select control signal; The chip select enable signal is sent to the chip select enable terminal so that the isolation switch chip enables the corresponding data communication port.

4. The data processing method according to claim 3, characterized in that, The chip select control signal is obtained through the following steps: In response to a user's operation on a file stored in the file list, the SD drive letter corresponding to the stored file is determined and denoted as the target drive letter; the file list includes N stored files in the storage slave devices, and there are N SD drive letters, which correspond one-to-one with the N storage slave devices; The chip select control signal is generated based on the target drive letter.

5. The data processing method according to claim 4, characterized in that, The stored file is saved to the file list by the following steps: Initialize the SD card device, scan the storage files in N storage slave devices, and save them to the pre-established file list.

6. The data processing method according to claim 3, characterized in that, Sending the chip select enable signal to the chip select enable terminal includes the following steps: Determine the current read / write status of the N storage slave devices; If all N storage slave devices are in a state of no access, the chip select enable signal is sent to the chip select enable terminal.

7. The data processing method according to claim 6, characterized in that, Sending the chip select enable signal to the chip select enable terminal further includes the following steps: If the read / write status of the storage slave device is "accessing", the chip select enable signal is paused and sent again after the read / write operation is completed.

8. A data processing system, characterized in that, Applied to the SD card device as described in claim 1 or 2, comprising: The signal acquisition module is used to acquire the chip select control signal, which represents the storage slave device that the user needs to access; The chip select signal generation module generates a chip select enable signal based on the chip select control signal; The signal transmission module is used to send the chip select enable signal to the chip select enable terminal so that the isolation switch chip enables the corresponding data communication port.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions for causing a computer to perform the data processing method as described in any one of claims 3 to 7.

Citation Information

Patent Citations

  • Method for reading and writing T card through GPIO port, system and mobile phone

    CN101521956A

  • Storage card array architecture based hard disk implementation method

    CN104991737A

  • Memory module and memory system having the same

    US20070008763A1