CN203287889U - Control device of SD/MMC card and IIC slave device - Google Patents

Control device of SD/MMC card and IIC slave device Download PDF

Info

Publication number
CN203287889U
CN203287889U CN2013200910440U CN201320091044U CN203287889U CN 203287889 U CN203287889 U CN 203287889U CN 2013200910440 U CN2013200910440 U CN 2013200910440U CN 201320091044 U CN201320091044 U CN 201320091044U CN 203287889 U CN203287889 U CN 203287889U
Authority
CN
China
Prior art keywords
pin
mmc
iic
mmc card
clk
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
CN2013200910440U
Other languages
Chinese (zh)
Inventor
刘杰
胡向军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Jieli Technology Co Ltd
Original Assignee
Zhuhai Jieli Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Family has litigation
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=49544243&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=CN203287889(U) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.
Application filed by Zhuhai Jieli Technology Co Ltd filed Critical Zhuhai Jieli Technology Co Ltd
Priority to CN2013200910440U priority Critical patent/CN203287889U/en
Application granted granted Critical
Publication of CN203287889U publication Critical patent/CN203287889U/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Abstract

The utility model provides a control device of an SD/MMC card and an IIC slave device. The control device comprises a control unit, the IIC slave device and the SD/MMC card, wherein the control unit is provided with a first interface pin, and the SD/MMC card and the IIC slave device are connected with the control unit when the first interface pin is reused. According to the control device of the SD/MMC card and the IIC slave device, hardware pin resources, occupied by an IIC bus and a connecting bus of the SD/MMC card, of the control unit can be saved, and cost produced when the two types of buses are simultaneously used is reduced.

Description

The opertaing device of SD/MMC card and IIC slave
Technical field
The utility model relates to the technical field that integrated chip is controlled, and particularly relates to the opertaing device of a kind of SD/MMC card and IIC slave.
Background technology
The technology of SD card (Secure Digital Memory Card) is based on mmc card (MultiMedia Card) form and develops, SD card size dimension and mmc card are similar, length and width are the same with mmc card, just than the thick approximately 0.7mm of mmc card, to hold more jumbo memory cell.SD card and mmc card are keeping upward-compatible, that is to say, mmc card can be by new SD equipment access, but the SD card cannot be by the MMC equipment access.SD card external form has adopted the guide tracked design that is of uniform thickness with mmc card, and the SD card structure is so that SD equipment can be fit to mmc card.
At present, the SD/MMC card has been widely used in MP3 walkman, Digital Video, digital camera etc., also is useful on notebook computer.Size is just as the SD/MMC memory card of a stamp, and weight only has 2 grams, but has high memory capacity, rapid data transmission rate, great mobile dirigibility and well security.
And, along with the development of large scale integrated circuit technology, CPU and the necessary ROM of the system that works independently, RAM, I/O port, the peripheral circuits such as A/D, D/A are integrated in a monolithic and single-chip microcomputer or the microcontroller made are more and more convenient.At present, many companies produce single-chip microcomputer in the world, and kind is a lot.Comprising the CPU of various word lengths, I/O interface circuit of the ROM of various capacity, RAM and Various Functions etc., still, the description of single-chip microcomputer is still limited, so can only select certain single-chip microcomputer to expand.The method of expansion has two kinds: a kind of is parallel bus, and another kind is universal serial bus.Because the line of universal serial bus is few, simple in structure, motherboard that often need not be special is connected and directly with wire, is connected each equipment with socket.Therefore, adopt universal serial bus can greatly simplify the hardware design of system.And the IIC universal serial bus can be realized the functions such as ruling that multi-host system is required and high low speed device synchronization, is a kind of high performance universal serial bus.
IIC (Inter-Integrated Circuit), be that IC bus designs at early eighties, mainly connecting overall circuit (ICS), IIC is a kind of multidirectional control bus, that is to say that a plurality of chips can be connected under the same bus structure by IIC, each chip can be as the control source of implementation data transmission simultaneously, and this mode has been simplified signal transmission bus.
Along with IIC and SD/MMC are widely used in various electronic products, in single-chip microcomputer or other micro controller systems, same control module often occurs by the situation that SD/MMC interface and iic bus connect respectively SD/MMC card and IIC slave,
Yet, although existing IIC and SD/MMC technology are very ripe, but because they are two kinds of separate technology, so when application, the hardware pin resource of the control module that the connection bus requirements of iic bus and SD/MMC card takies separately, this has strengthened this two kinds of costs that bus is used simultaneously.
The utility model content
For the problem that exists in the above-mentioned background technology, the purpose of this utility model is to provide the opertaing device of a kind of SD/MMC card and IIC slave, can save the hardware pin resource occupation of the connection bus of iic bus and SD/MMC card to control module, reduce this two kinds of costs that bus is used simultaneously.
The opertaing device of a kind of SD/MMC card and IIC slave, comprise: control module, IIC slave, and the SD/MMC card, described control module has the first interface pin, and described SD/MMC card and described IIC slave are connected with described control module by multiplexing described first interface pin.
In the opertaing device of SD/MMC card of the present utility model and IIC slave, multiplexing by to described first interface pin, make described SD/MMC card and described IIC slave can share identical hardware pin, therefore can save the hardware pin resource occupation of the connection bus of iic bus and SD/MMC card to control module, reduce this two kinds of costs that bus is used simultaneously.
In one embodiment, the CLK pin of described IIC slave is connected with the DATA pin with two described first interface pins and is connected.
In one embodiment, described first interface pin comprises CLK pin, DATA pin and CMD pin, and the CLK pin of described control module, DATA pin and CMD pin are connected with CLK pin, DATA pin and the CMD pin of described SD/MMC card and are connected; The CLK pin of described IIC slave is connected any two of with CLK pin, DATA pin and the CMD pin of described control module, being connected and is connected with the DATA pin.
In one embodiment, described SD/MMC cartoon is crossed the SD/MMC bus and is connected to described first interface pin; Described SD/MMC bus comprises CLK line, DATA line and CMD line, and the CLK pin of described control module, DATA pin and CMD pin are connected with CLK pin, DATA pin and the CMD pin of described SD/MMC card by CLK line, DATA line and the CMD line of described SD/MMC bus respectively; The CLK pin of described IIC slave is connected any two lines of with CLK line, DATA line and the CMD line of described SD/MMC bus, being connected and is connected with the DATA pin.Mode by bus between described control module, SD/MMC card and IIC slave connects convenient, and the interface pin that can be directly realizes control module by existing SD/MMC bus is multiplexing, lowers and realizes cost.
In one embodiment, described SD/MMC card be connected the IIC slave and connect described first interface pin by time-multiplexed mode.Described SD/MMC card and described IIC slave are preferably time division multiplex to the multiplex mode of described first interface pin.By time division multiplex, the call duration time of described control module and described SD/MMC card and described IIC slave is spaced apart, carry out the communication of two types in the different time, reach better the effect of multiplexing hardware pin.
Description of drawings
Fig. 1 is the structural representation of the opertaing device of the utility model SD/MMC card and IIC slave;
Fig. 2 (a) carries out for the opertaing device of the utility model SD/MMC card and IIC slave the schematic flow sheet that SD/MMC communicates by letter;
Fig. 2 (b) carries out for the opertaing device of the utility model SD/MMC card and IIC slave the schematic flow sheet that IIC communicates by letter;
Fig. 3 (a) carries out the control method process flow diagram that IIC communicates by letter in specific embodiment of opertaing device of the utility model SD/MMC card and IIC slave;
Fig. 3 (b) carries out the control method process flow diagram that SD/MMC communicates by letter in specific embodiment of opertaing device of the utility model SD/MMC card and IIC slave.
Embodiment
See also Fig. 1, Fig. 1 is the structural representation of the opertaing device of the utility model SD/MMC card and IIC slave.
The opertaing device of described SD/MMC card and IIC slave comprises: control module 11, SD/MMC card 12, and IIC slave 13, described control module 11 has first interface pin 110, and described SD/MMC card 12 and described IIC slave 13 are connected with described control module 11 by multiplexing described first interface pin 110.
Wherein, described control module 11 can be MCU(Micro Control Unit micro-control unit), perhaps other process chip that realized by FPGA etc.
Described SD/MMC card 12 is SD card or mmc card, is the storage chip with identical interface pin design.
Described IIC slave 13 fingers and described control module 11 are realized the equipment of interconnected control by the IIC mode, described slave is comparatively speaking, and for other equipment, this equipment can be also slave.
For described IIC slave 13, the pin of realizing data transmission that it is main generally includes CLK pin and DATA pin, therefore, in a preferred embodiment, the CLK pin of described IIC slave 13 is connected with the DATA pin with two described first interface pins 110 and is connected.
And for SD/MMC card 12, it generally includes CLK pin, DATA pin and CMD pin.The first interface pin 110 of described control module 11 is corresponding with the pin of described SD/MMC card, also comprises CLK pin, DATA pin and CMD pin.The CLK pin of described control module 11, DATA pin and CMD pin are connected with CLK pin, DATA pin and the CMD pin of described SD/MMC card 12 and are connected.The data of this three pins transmission determine that it more easily is re-used, and therefore in a preferred embodiment, the CLK pin of described IIC slave 13 is connected any two of with CLK pin, DATA pin and the CMD pin of described control module 11, being connected and is connected with the DATA pin.
That is the CLK pin of described IIC slave 13 is connected CLK pin and the DATA pin that connects respectively described control module 11 with the DATA pin, perhaps DATA pin and CMD pin, or CLK pin and CMD pin.
And while specifically connecting, between described IIC slave 13 and described control module between 11, and can be connected by bus between described SD/MMC card 12 and described control module 11, also can adopt other known modes to connect.
In a preferred embodiment, described SD/MMC card 12 is connected to described first interface pin 110 by the SD/MMC bus; Described SD/MMC bus comprises CLK line, DATA line and CMD line, and the CLK pin of described control module 11, DATA pin and CMD pin are connected with CLK pin, DATA pin and the CMD pin of described SD/MMC card 12 by CLK line, DATA line and the CMD line of described SD/MMC bus respectively.And the CLK pin of described IIC slave 13 is connected any two lines of with CLK line, DATA line and the CMD line of described SD/MMC bus, being connected and is connected with the DATA pin.
That is the CLK pin of described IIC slave 13 and DATA pin can be connected to respectively CLK line and the DATA line of described SD/MMC bus, perhaps DATA line and CMD line, or CLK line and CMD line.Mode by bus between described control module 11, SD/MMC card 12 and IIC slave 13 connects convenient, and the interface pin that can be directly realizes control module by existing SD/MMC bus is multiplexing, lowers and realizes cost.
The multiplex mode of described SD/MMC card 12 and 13 pairs of described first interface pins 110 of described IIC slave is preferably time division multiplex.By time division multiplex, described control module 11 is spaced apart with the call duration time of described SD/MMC card 12 and described IIC slave 13, carry out the communication of two types in the different time, reach better the effect of multiplexing hardware pin.
See also Fig. 2, Fig. 2 is the schematic flow sheet of control method of the opertaing device of SD/MMC card of the present utility model and IIC slave.
The control method of described SD/MMC card and the opertaing device of IIC slave comprises SD/MMC two parts of communicating by letter with IIC of communicating by letter, and specifically comprises the following steps:
When carrying out SD/MMC communication, first judge whether to carry out IIC communication; , if carrying out IIC communication, wait for until the IIC sign off, if do not carry out IIC communication, carries out SD/MMC communication by described first interface pin; As shown in Figure 2 (a) shows;
When carrying out IIC communication, first judge whether to carry out SD/MMC communication; , if carrying out SD/MMC communication, wait for until the SD/MMC sign off, if do not carry out SD/MMC communication, carries out IIC communication by described first interface pin; As shown in Fig. 2 (b).
The judgement of the duty by the first interface pin to control module, using described first interface pin to carry out SD/MMC communication in the different time communicates by letter with IIC, the time division multiplex of realization to described first interface pin, make two kinds of communication modes can both guarantee to carry out smoothly, reach and save the hardware pin resource with this, reach the demand that reduces costs.
Particularly, provide a kind of duty to described first interface pin to carry out mark, to distinguish the method for communicating by letter of described control module and described SD/MMC card and IIC slave.
In one embodiment, when carrying out IIC communication by described first interface pin, further close the SD/MMC functional module that takies described first interface pin, and cancel and closing after the IIC sign off;
The described step that judges whether to carry out IIC communication comprises:
If close the SD/MMC functional module that takies described first interface pin, IIC communication is being carried out in judgement;
If do not close the SD/MMC functional module that takies described first interface pin, IIC communication is not carried out in judgement;
Wherein, described SD/MMC functional module comprises software module and/or corresponding hardware controls module.
And, can simultaneously or carry out separately following steps:
Undertaken by described first interface pin SD/MMC when communication, further described first interface pin is being labeled as busyly, and after the SD/MMC sign off, described first interface pin is being labeled as the free time;
The described step that judges whether to carry out SD/MMC communication comprises:
, if it is busy that described first interface pin is labeled as, be judged as and carry out SD/MMC communication;
, if described first interface pin is labeled as the free time, is judged as and does not carry out SD/MMC communication.
By the way, when carrying out IIC communication, close the SD/MMC functional module that takies described first interface pin; In the process of carrying out IIC communication, can't call the SD/MMC functional module, also can't carry out SD/MMC communication.Until after cancelling after the IIC sign off and closing the SD/MMC functional module, just recover can carry out SD/MMC and communicate by letter the calling of SD/MMC functional module.
Therefore, before needs carry out SD/MMC communication, at first control module judges whether the SD/MMC functional module closes, if do not close, can carry out SD/MMC communication, otherwise, wait for until the cancellation of SD/MMC functional module is closed, after recovery SD/MMC functional module is called, then carry out SD/MMC communication.
And carrying out SD/MMC when communication, and described first interface pin is labeled as busyly, after the SD/MMC sign off, described first interface pin is labeled as the free time.Control module carries out IIC when communication at needs, judges that at first described first interface pin marks whether busy,, if busy wait for, until described first interface pin is labeled as the free time, then carries out IIC communication.Therefore, SD/MMC communication is communicated by letter with IIC and can be realized well time division multiplex by said method, and said method is not fixed the time period that two kinds of communication modes take separately, so the time distribution is comparatively flexible, can improve the utilization ratio of the described first interface pin that is re-used.
Wherein, the SD/MMC communication carried out of described first interface pin comprises: described SD/MMC card is carried out reading and writing or identified operation.
The control method of the opertaing device of SD/MMC card of the present utility model and IIC slave below is described with a specific embodiment:
See also Fig. 3, Fig. 3 is the process flow diagram of control method of a specific embodiment of opertaing device of the utility model SD/MMC card and IIC slave.In the equipment of described SD/MMC card and IIC slave, described SD/MMC cartoon is crossed SD/MMC bus connection control unit (MCU), and described IIC slave is by multiplexing described SD/MMC bus connection control unit (MCU).
The control method of described SD/MMC card and the opertaing device of IIC slave comprises SD/MMC two parts of communicating by letter with IIC of communicating by letter, and specifically comprises the following steps:
The IIC communications portion:
S101, prepare IIC communication;
S102, inquiry SD/MMC bus state,, if the SD/MMC bus is busy, wait for until idle;
S103,, if the SD/MMC bus is idle, close the SD/MMC functional module that may use the SD/MMC bus, and further arrive the IIC mark busy;
S104, carry out IIC communication;
S105, IIC communication is completed, and cancels the shutoff operation to the SD/MMC functional module that may use the SD/MMC bus, and withdraws from.As shown in Fig. 3 (a).
The SD/MMC communications portion:
S201, prepare SD/MMC communication;
S202, whether inquiry SD/MMC functional module is closed, if the SD/MMC functional module is closed, wait for until described SD/MMC functional module close cancellation;
S203,, if the SD/MMC functional module is not closed, be labeled as SD/MMC before will read/write/evaluation SD/MMC card busy;
S204, carry out SD/MMC card read/write/evaluation operation;
S205, SD/MMC card read/write/evaluation is completed, and mark SD/MMC card is in idle condition.As shown in Figure 3 (b).
The above embodiment has only expressed several embodiment of the present utility model, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to the utility model the scope of the claims.Should be pointed out that for the person of ordinary skill of the art, without departing from the concept of the premise utility, can also make some distortion and improvement, these all belong to protection domain of the present utility model.Therefore, the protection domain of the utility model patent should be as the criterion with claims.

Claims (5)

1. the opertaing device of a SD/MMC card and IIC slave, comprise: control module, IIC slave, and SD/MMC card, described control module has the first interface pin, and it is levied and is: described SD/MMC card and described IIC slave are connected with described control module by multiplexing described first interface pin.
2. the opertaing device of SD/MMC card as claimed in claim 1 and IIC slave, is characterized in that, the CLK pin of described IIC slave is connected with the DATA pin with two described first interface pins and is connected.
3. the opertaing device of SD/MMC card as claimed in claim 2 and IIC slave, it is characterized in that, described first interface pin comprises CLK pin, DATA pin and CMD pin, and the CLK pin of described control module, DATA pin and CMD pin are connected with CLK pin, DATA pin and the CMD pin of described SD/MMC card and are connected; The CLK pin of described IIC slave is connected any two of with CLK pin, DATA pin and the CMD pin of described control module, being connected and is connected with the DATA pin.
4. the opertaing device of SD/MMC card as claimed in claim 3 and IIC slave, is characterized in that, described SD/MMC cartoon is crossed the SD/MMC bus and is connected to described first interface pin; Described SD/MMC bus comprises CLK line, DATA line and CMD line, and the CLK pin of described control module, DATA pin and CMD pin are connected with CLK pin, DATA pin and the CMD pin of described SD/MMC card by CLK line, DATA line and the CMD line of described SD/MMC bus respectively; The CLK pin of described IIC slave is connected any two lines of with CLK line, DATA line and the CMD line of described SD/MMC bus, being connected and is connected with the DATA pin.
5. the opertaing device of SD/MMC card as described in claim 1 to 4 any one and IIC slave, is characterized in that, described SD/MMC card be connected the IIC slave and connect described first interface pin by time-multiplexed mode.
CN2013200910440U 2013-02-27 2013-02-27 Control device of SD/MMC card and IIC slave device Ceased CN203287889U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013200910440U CN203287889U (en) 2013-02-27 2013-02-27 Control device of SD/MMC card and IIC slave device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013200910440U CN203287889U (en) 2013-02-27 2013-02-27 Control device of SD/MMC card and IIC slave device

Publications (1)

Publication Number Publication Date
CN203287889U true CN203287889U (en) 2013-11-13

Family

ID=49544243

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013200910440U Ceased CN203287889U (en) 2013-02-27 2013-02-27 Control device of SD/MMC card and IIC slave device

Country Status (1)

Country Link
CN (1) CN203287889U (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103218336A (en) * 2013-02-27 2013-07-24 珠海市杰理科技有限公司 SD/MMC (Secure Digital Memory Card/Multimedia Card) and IIC (Inter-Integrated Circuit) slave control equipment, and control method and control system thereof
CN105573947A (en) * 2014-10-13 2016-05-11 北京自动化控制设备研究所 APB (Advanced Peripheral Bus) based SD/MMC (Secure Digital/ MultiMedia Card) control method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103218336A (en) * 2013-02-27 2013-07-24 珠海市杰理科技有限公司 SD/MMC (Secure Digital Memory Card/Multimedia Card) and IIC (Inter-Integrated Circuit) slave control equipment, and control method and control system thereof
CN103218336B (en) * 2013-02-27 2016-04-06 珠海市杰理科技有限公司 SD/MMC card and IIC from the opertaing device of machine, its control method and control system
CN105573947A (en) * 2014-10-13 2016-05-11 北京自动化控制设备研究所 APB (Advanced Peripheral Bus) based SD/MMC (Secure Digital/ MultiMedia Card) control method
CN105573947B (en) * 2014-10-13 2018-10-26 北京自动化控制设备研究所 A kind of SD/MMC card control methods based on APB buses

Similar Documents

Publication Publication Date Title
CN101416137B (en) Power-optimized frame synchronization for multiple USB controllers with non-uniform frame rates
CN102141971B (en) 1553B hardware timed communication module with high-capacity storage function
CN102768648B (en) Gatherer, the system with this gatherer and correlation technique are interrupted in low delay
CN104714907B (en) A kind of pci bus is converted to ISA and APB bus design methods
CN101498963B (en) Method for reducing CPU power consumption, CPU and digital chip
CN103218336B (en) SD/MMC card and IIC from the opertaing device of machine, its control method and control system
CN103150190A (en) Automatic detecting and driving loading method of user mode network card in Linux system
CN203287889U (en) Control device of SD/MMC card and IIC slave device
CN201402901Y (en) Multifunctional signal transfer board
CN218273390U (en) SOC prototype verification device based on FPGA
CN103607286B (en) Multi-functional communication interface machine device based on PowerPC embedded systems
CN201828970U (en) Train operation data recorder based on CAN (Controller Area Network) interface
CN204189089U (en) A kind of server
CN205318134U (en) A nuclear core plate for ticket checking machine
CN108111380A (en) N roads CAN communication device, implementation method and charging equipment based on A5 platforms
CN204480237U (en) A kind of connector, universal serial bus device and intelligent terminal
CN102855210B (en) Method for realizing intercommunication and data sharing between two single-chip microcomputers
WO2012009996A1 (en) Memory device and smart-phone system
CN202145308U (en) Multi-master module management interface module of severe-environment-resistant computer
CN201185009Y (en) Multi-serial port equipment with six serial ports
CN206610211U (en) A kind of four grooves position PCIe expanding units
CN202889378U (en) Industrial-grade communication-information processing platform
CN212649484U (en) 250W high-power-consumption ten-gigabit network card
CN102890618B (en) A kind of Memory Extension equipment with partition management
CN202083979U (en) Laptop capable of realizing universalization of internal modules

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee
CP03 Change of name, title or address

Address after: 519085 Guangdong city of Zhuhai province Jida West Road No. 107 Building 9 Building (1-4)

Patentee after: Zhuhai jelee Polytron Technologies Inc

Address before: 518000 Guangdong Province, Zhuhai city Xiangzhou District Jida Jiuzhou Road No. 2069, building 2

Patentee before: Zhuhai Jieli Technology Co., Ltd.

IW01 Full invalidation of patent right
IW01 Full invalidation of patent right

Decision date of declaring invalidation: 20170905

Decision number of declaring invalidation: 33223

Granted publication date: 20131113