Content of the invention
It is an object of the invention to provide a kind of interface access method, system and storage card, to improve interface visit
Ask efficiency.
For achieving the above object, the invention provides following technical scheme:
A kind of interface access method, including:
Processor on storage card, after the first kind interface on storage card is to access request, determines
When needing Equations of The Second Kind interface is conducted interviews, described processor accesses described Equations of The Second Kind by interface controller
Interface, to realize transmitting interactive information by described Equations of The Second Kind interface;Wherein,
Described interactive information includes:Control instruction, and/or, data;
Described storage card directly carries out data interaction with described Equations of The Second Kind interface;
Described first kind interface supports different communication protocols with described Equations of The Second Kind interface.
Said method is it is preferred that processor accesses described Equations of The Second Kind interface by interface controller, with reality
Now transmit control instruction by described Equations of The Second Kind interface to include:
Described processor is sent out to second interface controller by the first interface controller on described storage card
Send control instruction, so that described second interface controller transmits control instruction by described Equations of The Second Kind interface;
Wherein, described first interface controller is directly connected by bus with described second interface controller
Connect, described second interface controller is connected with described Equations of The Second Kind interface.
Said method is it is preferred that described processor passes through first interface controller on storage card to second
Interface controller sends control instruction and includes:
Described processor passes through first interface controller on described storage card to the on described storage card
Two interface controllers send control instruction;
Wherein, described first interface controller and described second interface controller directly pass through described storage card
Internal bus be connected, the described Equations of The Second Kind interface on described second interface controller and described storage card
It is connected.
Said method is it is preferred that described processor passes through first interface controller on storage card to second
Interface controller sends control instruction and includes:
The first interface controller that described processor passes through on described storage card connects to second on expansion card
Mouth controller sends control instruction;
Wherein, described first interface controller and described second interface controller directly pass through described storage card
The bus of the first electronic equipment of being located is connected with the second interface controller on described expansion card, and described
Two interface controllers are connected with the described Equations of The Second Kind interface on described expansion card.
Said method is it is preferred that processor accesses described Equations of The Second Kind interface by interface controller, with reality
Now transmit control instruction by described Equations of The Second Kind interface to include:
Described processor by described first kind interface to described storage card be located the first electronic equipment master
Machine central processing unit sends the request accessing described Equations of The Second Kind interface;
From described host cpu by the bus of described first electronic equipment to second interface control
Device sends control instruction, so that described second interface controller transmits control by described Equations of The Second Kind interface referring to
Order;
Wherein, described second interface controller is connected with described Equations of The Second Kind interface.
Said method is it is preferred that described pass through described first electronic equipment by described host cpu
Bus to second interface controller send control instruction include:
From described host cpu by the bus of described first electronic equipment on described storage card
Second interface controller send control instruction;
Wherein, described second interface controller is connected with the described Equations of The Second Kind interface on described storage card.
Said method is it is preferred that described pass through described first electronic equipment by described host cpu
Bus to second interface controller send control instruction include:
From described host cpu by the bus of described first electronic equipment on expansion card
Two interface controllers send control instruction;
Wherein, described second interface controller is connected with the described Equations of The Second Kind interface on described expansion card.
Said method is it is preferred that processor accesses described Equations of The Second Kind interface by interface controller, with reality
Now included by described Equations of The Second Kind interface transmission data:
Described processor by described first kind interface to storage card be located the first electronic equipment host CPU
Processor sends data transfer request;
Described processor and described second is based on by described host cpu instruction second interface controller
The shared drive of interface controller accesses described Equations of The Second Kind interface;
Wherein, described processor accesses described Equations of The Second Kind interface needs the data storage of transmission in described process
In the shared drive of device and described second interface controller, described second interface controller and described Equations of The Second Kind
Interface is connected.
Said method is it is preferred that described indicate second interface controller base by described host cpu
The shared drive described Equations of The Second Kind interface of access in described processor and described second interface controller includes:
Indicate that by described host cpu the second interface controller on expansion card is based on described processor
Access described Equations of The Second Kind interface with the shared drive of described second interface controller.
Said method is it is preferred that described indicate second interface controller base by described host cpu
The shared drive described Equations of The Second Kind interface of access in described processor and described second interface controller includes:
Indicate that by described host cpu the second interface controller on described storage card is based on described
Reason device accesses described Equations of The Second Kind interface with the shared drive of described second interface controller.
Said method is it is preferred that processor accesses described Equations of The Second Kind interface by interface controller, with reality
Now included by described Equations of The Second Kind interface transmission data:
Described processor by the first interface controller access second interface controller on described storage card,
So that the shared drive based on described processor and described second interface controller for the described second interface controller
Access described Equations of The Second Kind interface;
Wherein, described processor accesses described Equations of The Second Kind interface needs the data storage of transmission in described process
In the shared drive of device and described second interface controller.
Said method is it is preferred that the first interface controller that described processor passes through on described storage card is visited
Ask that second interface controller includes:
Described processor is connect by second on the first interface controller access expansion card on described storage card
Mouth controller, so that the second interface controller on described expansion card is based on described processor and described second
The shared drive of interface controller accesses described Equations of The Second Kind interface;
Wherein, described first interface controller and described second interface controller directly pass through described storage card
The bus of the first electronic equipment of being located is connected, the on described second interface controller and described expansion card
Two class interfaces are connected.
Said method is it is preferred that the first interface controller that described processor passes through on described storage card is visited
Ask that second interface controller includes:
Described processor is by the storage card described in first interface controller access on described storage card
Two interface controllers so that the second interface controller on described storage card be based on described processor with described
The shared drive of second interface controller accesses described Equations of The Second Kind interface;
Wherein, described first interface controller and described second interface controller directly pass through described storage card
Internal bus be connected, described second interface controller is connected with the Equations of The Second Kind interface on described storage card
Connect.
Said method is it is preferred that processor accesses described Equations of The Second Kind interface by interface controller, with reality
Now included by described Equations of The Second Kind interface transmission data:
Described processor is by the first interface controller on described storage card directly and second interface controller
Carry out data interaction;
Wherein, the data that described first interface controller sends to described second interface controller is from described
Read in first internal memory of reason device;Described second interface controller sends to described first interface controller
Data reads from the second internal memory corresponding with described Equations of The Second Kind interface;
Separate internal memory is saved as in described first internal memory and described second.
Said method is it is preferred that described processor is straight by the first interface controller on described storage card
Connect and carry out data interaction with second interface controller and include:
Described processor is by the first interface controller on described storage card directly and on described storage card
Second interface controller carries out data interaction;
Second interface controller on described storage card is connected with the described Equations of The Second Kind interface on described storage card
Connect;
First interface controller on described storage card is direct with the second interface controller on described storage card
It is connected by the internal bus of described storage card;
Described first internal memory and described second internal memory belong to described storage card.
Said method is it is preferred that described processor is straight by the first interface controller on described storage card
Connect and carry out data interaction with second interface controller and include:
Described processor passes through first interface controller on described storage card directly and on expansion card second
Interface controller carries out data interaction;The first internal memory on storage card is connected with described processor;
Second interface controller on described expansion card respectively with described expansion card on described Equations of The Second Kind interface
It is connected with the second internal memory on described expansion card;
First interface controller on described storage card is direct with the second interface controller on described expansion card
It is connected by the bus of the first electronic equipment that described storage card is located.
It is preferred that described Equations of The Second Kind interface is USB OTG interface, methods described also includes said method:
The master dormant of the first electronic equipment if described storage card is located, when described Equations of The Second Kind interface external the
Two electronic equipments, and described second electronic equipment is main equipment, described first electronic equipment is when equipment,
Described second electronic equipment can supply electricity to the bus of described first electronic equipment, and passes through described Equations of The Second Kind
Storage card described in interface accessing.
A kind of storage card, including:
Processor, first kind interface, the 3rd interface controller, Equations of The Second Kind interface and second interface controller;
Wherein,
Described processor is connected with described first kind interface by described 3rd interface controller;
Described second interface controller is connected with described Equations of The Second Kind interface;
Described processor is used for, and after by described first kind interface to access request, determines and needs
When described Equations of The Second Kind interface is conducted interviews, by described first kind interface to described storage card place first
The host cpu of electronic equipment sends the request accessing described Equations of The Second Kind interface;By in described main frame
Central processor sends control by the bus of described first electronic equipment to described second interface controller and refers to
Order, so that Equations of The Second Kind interface described in described second interface controller access, to realize passing through described Equations of The Second Kind
Interface transmits interactive information;Described interactive information includes:Control instruction, and/or, data;
Described processor accesses described Equations of The Second Kind interface needs the data storage of transmission in described processor and institute
State in the shared drive of second interface controller.
A kind of storage card, including:
Processor, first kind interface, the 3rd interface controller, first interface controller, second interface control
Device processed and Equations of The Second Kind interface;Wherein,
Described processor is connected with described first kind interface by described 3rd interface controller;
Described first interface controller is connected with described processor;
Described second interface controller is connected with described first interface controller and described Equations of The Second Kind interface respectively
Connect;Described first interface controller passes through the internal bus of described storage card with described second interface controller
It is connected;
Described processor is used for, and after by described first kind interface to access request, determines and needs
When described Equations of The Second Kind interface is conducted interviews, by described first interface controller to second interface controller
Send control instruction, Equations of The Second Kind interface described in described second interface controller access, to realize passing through institute
State Equations of The Second Kind interface transmission interactive information;Described interactive information includes:Control instruction, and/or, data;
Described processor accesses described Equations of The Second Kind interface needs the interactive information of transmission to pass through described first interface
Controller and the transmission of described second interface controller.
A kind of interface accessing system, including:Storage card and expansion card;Wherein,
Described storage card includes:Processor, the 3rd interface controller and first kind interface;
Described expansion card includes:Equations of The Second Kind interface and second interface controller;
Described processor is connected with described first kind interface by described 3rd interface controller;
Described processor is used for, and after by described first kind interface to access request, determines and needs
When described Equations of The Second Kind interface is conducted interviews, by described first kind interface to described storage card place first
The host cpu of electronic equipment sends the request accessing described Equations of The Second Kind interface;By in described main frame
Central processor sends control by the bus of described first electronic equipment to described second interface controller and refers to
Order, so that Equations of The Second Kind interface described in described second interface controller access, to realize passing through described Equations of The Second Kind
Interface transmits interactive information;Described interactive information includes:Control instruction, and/or, data;
Described processor accesses described Equations of The Second Kind interface needs the data storage of transmission in described processor and institute
State in the shared drive of second interface controller.
A kind of interface accessing system, including:Storage card and expansion card;Wherein,
Described storage card includes:Processor, the 3rd interface controller, first kind interface and first interface control
Device processed;
Described expansion card includes:Equations of The Second Kind interface and second interface controller;
Described processor is connected with described first kind interface by described 3rd interface controller;
Described first interface controller and described second interface controller pass through the first electricity that described storage card is located
The bus of sub- equipment is connected;
Described processor is used for, and after by described first kind interface to access request, determines and needs
When described Equations of The Second Kind interface is conducted interviews, by described first interface controller to second interface controller
Send control instruction, Equations of The Second Kind interface described in described second interface controller access, to realize passing through institute
State Equations of The Second Kind interface transmission interactive information;Described interactive information includes:Control instruction, and/or, data.
Said system is it is preferred that described processor and described second interface controller shared drive;
Described processor accesses described Equations of The Second Kind interface needs the data storage of transmission in described processor and institute
State in the shared drive of second interface controller;
Described processor accesses described Equations of The Second Kind interface needs the control instruction of transmission to pass through described first interface
Controller sends to described second interface controller, is connect from described second interface controller to described Equations of The Second Kind
Mouth sends control instruction.
Said system needs the interaction letter of transmission it is preferred that described processor accesses described Equations of The Second Kind interface
Breath is by described first interface controller and the transmission of described second interface controller;
Wherein, the data that described first interface controller sends to described second interface controller is from described
Read in first internal memory of reason device;Described second interface controller sends to described first interface controller
Data reads from the second internal memory corresponding with described Equations of The Second Kind interface;
Separate internal memory is saved as in described first internal memory and described second.
By above scheme, a kind of interface access method, system and storage card that the application provides,
Other interfaces can integrated on a memory card it is also possible to be integrated on the expansion card of storage card, and, depositing
When the other interfaces of card storage access need transmission data, institute's transmission data needs not move through host memory, thus
Make storage card when accessing other interface it is no longer necessary to by data-moving in host memory, that is, store
Card directly carries out data interaction, thus improving interface accessing efficiency with other interfaces.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out
Clearly and completely describe it is clear that described embodiment is only a part of embodiment of the present invention, and
It is not all, of embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are not paying
The every other embodiment being obtained under the premise of going out creative work, broadly falls into the scope of protection of the invention.
The present invention provides a kind of method that storage card accesses other interface different types of with memory card interface.
This storage card can be PCIE (PCI-Express) storage card.Interface on PCIE storage card is usually
PCIE interface.Other interfaces can be USB (universal serial bus) (Universal Serial Bus, USB) interface,
Can also be HDMI (High Definition Multimedia Interface, HDMI)
Interface.
Interface access method provided in an embodiment of the present invention can include:
Processor (Micro Control Unit, MCU) on storage card passes through the first kind on storage card
To after access request, when determination needs Equations of The Second Kind interface is conducted interviews, processor passes through to connect interface
Mouth controller access Equations of The Second Kind interface, to realize transmitting interactive information by Equations of The Second Kind interface;Wherein,
Interactive information includes:Control instruction, and/or, data;Control instruction can be reading instruction, write finger
Make, delete instruction etc..
Storage card is directly and Equations of The Second Kind interface carries out data interaction;
First kind interface supports different communication protocols with Equations of The Second Kind interface.
In the embodiment of the present invention, need the interface controller of at least one and Equations of The Second Kind Interface Matching, second
Class interface one of at least one interface controller with Equations of The Second Kind Interface Matching interface controller phase with this
Connect.For example, if Equations of The Second Kind interface is USB interface, the interface controller with Equations of The Second Kind Interface Matching
Refer to USB controller, or, USB HUB controller.If Equations of The Second Kind interface is HDMI,
Then refer to HDMI controller with the interface controller of Equations of The Second Kind Interface Matching.
Equations of The Second Kind interface can be directly integrated on a memory card it is also possible to be integrated in the extension as storage card
On the card of card.
For sake of convenience, storage card place electronic equipment is designated as the first electronic equipment, the first electronic equipment
Host cpu (Central Processing Unit, CPU) (below by host cpu
Referred to as host CPU) it is connected with storage card and other components and parts by bus.
The access request that processor on storage card receives can be that the access being sent by host CPU please
Ask, this access request can be access request or the request access second that request accesses storage card
The access request of class interface is it is of course possible to be not only to have accessed storage card but also the access request of access Equations of The Second Kind interface.
When access request is the access request that request accesses storage card, if the data being accessed is not in storage
On card, and on the equipment that Equations of The Second Kind interface is connected, then can determine and need to access Equations of The Second Kind interface.
In the embodiment of the present invention, storage card is directly and Equations of The Second Kind interface carries out data interaction that is to say, that storing
When processor on card needs by Equations of The Second Kind interface transmission data, the data of required transmission is without depositing
The host CPU of card storage place electronic equipment.
And the control instruction that processor is transmitted by Equations of The Second Kind interface then can set through storage card place electronics
Standby host CPU is it is also possible to host CPU without storage card place electronic equipment.
Interface access method provided in an embodiment of the present invention, accessing other interfaces in storage card needs to transmit number
According to when, institute's transmission data needs not move through host memory so that storage card is when accessing other interface,
It is no longer necessary to by data-moving in host memory, that is, storage card and other interfaces directly carry out data interaction,
Thus improving interface accessing efficiency.
Even if control instruction is transmitted by host CPU, because the bit quantity that control instruction is used is much little
Bit quantity shared by data, therefore, for the method compared to access interface in prior art, connects
Mouth access efficiency also greatly improves.
Optionally, processor (MCU) accesses Equations of The Second Kind interface by interface controller, to realize passing through
Equations of The Second Kind interface transmit control instruction a kind of implementation can be:
The first interface controller that processor (MCU) passes through on storage card sends to second interface controller
Control instruction, so that second interface controller transmits control instruction by Equations of The Second Kind interface;Wherein, first
Interface controller is directly connected by bus with second interface controller, second interface controller and second
Class interface is connected.
In the embodiment of the present invention, processor passes through two interface controllers with Equations of The Second Kind Interface Matching and accesses
Equations of The Second Kind interface.It is integrated with first interface controller on a memory card.And second interface controller can collect
Become on a memory card it is also possible to be integrated on the expansion card separate with storage card.Wherein, expansion card
Separate with storage card refer to that expansion card can be physically detached from each other with storage card.
Optionally, processor (MCU) pass through storage card on first interface controller to second interface control
A kind of implementation that device processed sends control instruction can be:
Processor (MCU) is by the first interface controller on storage card to the second interface on storage card
Controller sends control instruction.Wherein, first interface controller and second interface controller directly pass through to deposit
The internal bus of card storage is connected.
In the embodiment of the present invention, second interface controller also integrated on a memory card, accordingly, Equations of The Second Kind
Interface also integrated on a memory card.
Optionally, processor (MCU) pass through storage card on first interface controller to second interface control
Another kind of implementation that device processed sends control instruction can be:
Processor (MCU) is by the first interface controller on storage card to the second interface on expansion card
Controller sends control instruction.Wherein, first interface controller and second interface controller directly pass through to deposit
The bus of the first electronic equipment that card storage is located is connected with the second interface controller on expansion card.
In the embodiment of the present invention, second interface controller is integrated on the expansion card separate with storage card.
Accordingly, Equations of The Second Kind interface is also integrated on expansion card.
Optionally, processor (MCU) accesses Equations of The Second Kind interface by interface controller, to realize passing through
Equations of The Second Kind interface transmit control instruction another kind of implementation can be:
Processor (MCU) passes through first kind interface to the host CPU of storage card place the first electronic equipment
Send the request accessing Equations of The Second Kind interface;
The bus passing through the first electronic equipment from host CPU sends control instruction to second interface controller,
So that second interface controller transmits control instruction by Equations of The Second Kind interface.
In the embodiment of the present invention, control instruction is produced based on the request accessing Equations of The Second Kind interface by host CPU.
Processor (MCU) passes through an interface controller with Equations of The Second Kind Interface Matching and accesses Equations of The Second Kind interface.
Optionally, the bus passing through the first electronic equipment from host CPU sends control to second interface controller
Making a kind of implementation instructing can be:
The bus passing through the first electronic equipment from host CPU sends to the second interface controller on storage card
Control instruction;
In the embodiment of the present invention, second interface controller is integrated on a memory card, and accordingly, Equations of The Second Kind connects
Mouth also integrated on a memory card, second interface controller is connected with the Equations of The Second Kind interface on storage card.
Optionally, the bus passing through the first electronic equipment from host CPU sends control to second interface controller
Making another kind of implementation instructing can be:
The bus passing through the first electronic equipment from host CPU sends to the second interface controller on expansion card
Control instruction;
In the embodiment of the present invention, second interface controller is integrated on expansion card, and accordingly, Equations of The Second Kind connects
Mouth is also integrated on expansion card, and second interface controller is connected with the Equations of The Second Kind interface on expansion card.
In above-described embodiment, first interface controller and second interface controller are all and Equations of The Second Kind interface phase
The interface controller of coupling.
When above Equations of The Second Kind interface being accessed to the processor (MCU) on storage card, the transmission of control instruction
Mode illustrates, when below Equations of The Second Kind interface being accessed to the processor (MCU) on storage card, data
Transmission means illustrate.
Optionally, processor (MCU) accesses Equations of The Second Kind interface by interface controller, to realize passing through
A kind of implementation of Equations of The Second Kind interface transmission data can be:
Processor (MCU) passes through first kind interface to the host CPU of storage card place the first electronic equipment
Send data transfer request;
Processor (MCU) and second interface controller are based on by host CPU instruction second interface controller
Shared drive access Equations of The Second Kind interface;
Wherein, processor (MCU) accesses described Equations of The Second Kind interface needs the data storage of transmission in process
In the shared drive of device (MCU) and second interface controller, second interface controller and Equations of The Second Kind interface
It is connected.
For example, when processor (MCU) needs to Equations of The Second Kind interface transmission data, store data in place
In the shared drive of reason device (MCU) and second interface controller, send to host CPU and connect to Equations of The Second Kind
The request of data is sent in oral instructions, after host CPU instruction second interface controller reads data from shared drive
To the transmission of Equations of The Second Kind interface.In the same manner, processor (MCU) needs when Equations of The Second Kind interface reads data,
Send the request reading data from Equations of The Second Kind interface to host CPU, host CPU instruction second can control
Device reads data from Equations of The Second Kind interface, and second interface controller, after Equations of The Second Kind interface reads data, will be read
In shared drive, second interface controller sends response, host CPU to host CPU to the data storage taking
Data is read in instruction processor (MCU) from shared drive.
Optionally, connect with second based on processor (MCU) by host CPU instruction second interface controller
A kind of implementation that the shared drive of mouthful controller accesses Equations of The Second Kind interface can be:
Indicate that by host CPU the second interface controller on expansion card is based on processor (MCU) and second
The shared drive of interface controller accesses Equations of The Second Kind interface.
Optionally, connect with second based on processor (MCU) by host CPU instruction second interface controller
Another kind of implementation that the shared drive of mouthful controller accesses Equations of The Second Kind interface can be:
Indicate that by host CPU the second interface controller on storage card is based on processor (MCU) and second
The shared drive of interface controller accesses Equations of The Second Kind interface.
In the embodiment of the present invention, second interface controller can integrated on a memory card, accordingly, second
Class interface also integrated on a memory card;Second interface controller can also be integrated on expansion card, accordingly,
Equations of The Second Kind interface is also integrated on expansion card.
Optionally, processor (MCU) accesses Equations of The Second Kind interface by interface controller, to realize passing through
Another kind of implementation of Equations of The Second Kind interface transmission data can be:
Processor (MCU) passes through the first interface controller access second interface controller on storage card,
So that second interface controller is based on processor (MCU) and is accessed with the shared drive of second interface controller
Equations of The Second Kind interface.Wherein, processor (MCU) access Equations of The Second Kind interface need transmission data storage in
In the shared drive of processor (MCU) and second interface controller.
In the embodiment of the present invention, processor (MCU) accesses Equations of The Second Kind interface needs the control instruction of transmission
Data all passes through first interface controller and the transmission of second interface controller.
For example, when processor (MCU) needs to Equations of The Second Kind interface transmission data, by data storage to place
In the shared drive of reason device (MCU) and second interface controller, then, by first interface controller
Send the first instruction to second interface controller, indicate second interface controller receive data from shared drive
Send to Equations of The Second Kind interface according to rear;In the same manner, processor (MCU) needs to read data from Equations of The Second Kind interface
When, the second instruction is sent to second interface controller by first interface controller, indicates second interface control
Device processed reads from Equations of The Second Kind interface and stores to shared drive after data, and second interface controller will be from Equations of The Second Kind
The data storage that interface reads, to shared drive, sends response, first interface to first interface controller
Controller reads data from shared drive.
Optionally, processor (MCU) passes through the first interface controller access second interface on storage card
A kind of implementation of controller can be:
Processor (MCU) is connect by second on the first interface controller access expansion card on storage card
Mouth controller, so that the second interface controller on expansion card is based on processor (MCU) and second interface
The shared drive of controller accesses Equations of The Second Kind interface.
Wherein, first interface controller and second interface controller are directly by the first electronics that storage card is located
The bus of equipment is connected, and second interface controller is connected with the Equations of The Second Kind interface on expansion card.
Optionally, processor (MCU) passes through the first interface controller access second interface on storage card
Another kind of implementation of controller can be:
Processor (MCU) is connect by second on the first interface controller access storage card on storage card
Mouth controller, so that the second interface controller on storage card is based on processor (MCU) and second interface
The shared drive of controller accesses Equations of The Second Kind interface.
Wherein, first interface controller and second interface controller directly pass through the internal bus phase of storage card
Connect, second interface controller is connected with the Equations of The Second Kind interface on storage card.
In the embodiment of the present invention, second interface controller can integrated on a memory card, accordingly, second
Class interface also integrated on a memory card;Second interface controller can also be integrated on expansion card, accordingly,
Equations of The Second Kind interface is also integrated on expansion card.
Optionally, processor (MCU) accesses Equations of The Second Kind interface by interface controller, to realize passing through
Another implementation of Equations of The Second Kind interface transmission data can be:
Processor (MCU) passes through first interface controller on storage card directly and second interface controller
Carry out data interaction;
Wherein, the data that first interface controller sends to second interface controller is from processor (MCU)
The first internal memory in read;The data that second interface controller sends to first interface controller is from second
Read in corresponding second internal memory of class interface;
Separate internal memory is saved as in first internal memory and second.
In the embodiment of the present invention, processor (MCU) and second interface controller not shared drive, but
Using separate internal memory.
That is, when needing to Equations of The Second Kind interface transmission data, from exclusively enjoying of processor (MCU)
Read data in internal memory, then Equations of The Second Kind is sent to by first interface controller and second interface controller
Interface;When needing to read data from Equations of The Second Kind interface, second interface controller reads from Equations of The Second Kind interface
After data, store and exclusively enjoy in internal memory to second interface controller, then only from second interface controller
Enjoy reading data in internal memory, processor is sent to by second interface controller and first interface controller
(MCU).
For example, when processor (MCU) needs to Equations of The Second Kind interface transmission data, processor (MCU)
Read data from the first internal memory, data be sent to second interface controller by first interface controller,
By second interface controller by data storage to the second internal memory, from the second internal memory, then read data and pass
Deliver to Equations of The Second Kind interface;In the same manner, when processor (MCU) needs to read data from Equations of The Second Kind interface,
Processor (MCU) passes through first interface controller and sends control instruction, instruction to second interface controller
Second interface reads data from Equations of The Second Kind interface, and Equations of The Second Kind interface controller will read from Equations of The Second Kind interface
Data storage, to the second internal memory, after then reading data from the second internal memory, data is passed through second interface
Controller is transferred to first interface controller, and first interface controller is by the data storage receiving to first
Internal memory.
Optionally, the first interface controller that processor (MCU) passes through on storage card directly connects with second
A kind of implementation that mouthful controller carries out data interaction can be:
Processor (MCU) passes through first interface controller on storage card directly and on storage card second
Interface controller carries out data interaction;
Second interface controller on storage card is connected with the described Equations of The Second Kind interface on storage card;
First interface controller on storage card directly passes through storage with the second interface controller on storage card
The internal bus of card is connected;
First internal memory and the second internal memory belong to storage card.
Optionally, the first interface controller that processor (MCU) passes through on storage card directly connects with second
Another kind of implementation that mouthful controller carries out data interaction can be:
By the first interface controller on storage card, the second interface directly and on expansion card controls processor
Device carries out data interaction;The first internal memory on storage card is connected with described processor;
Second interface controller on expansion card respectively with expansion card on Equations of The Second Kind interface and expansion card on
Second internal memory is connected;
First interface controller on storage card directly passes through storage with the second interface controller on expansion card
The bus of the first electronic equipment that card is located is connected.
In the embodiment of the present invention, second interface controller can integrated on a memory card, accordingly, second
Class interface also integrated on a memory card;Second interface controller can also be integrated on expansion card, accordingly,
Equations of The Second Kind interface is also integrated on expansion card.
Optionally, Equations of The Second Kind interface can be USB OTG interface, and interface provided in an embodiment of the present invention is visited
The method of asking can also include:
The master dormant of the first electronic equipment if storage card is located, when external second electronics of Equations of The Second Kind interface sets
Standby, and the second electronic equipment is main equipment, the first electronic equipment is when equipment, and the second electronic equipment can
To supply electricity to the bus of the first electronic equipment, and pass through storage card described in Equations of The Second Kind interface accessing.
In the embodiment of the present invention, when the master dormant of the first electronic equipment that storage card is located, Equations of The Second Kind interface
External second electronic equipment, and the second electronic equipment is main equipment, the first electronic equipment is when equipment,
Storage card can use as the external USB flash disk of the second electronic equipment.
Corresponding with embodiment of the method, the embodiment of the present invention also provides a kind of storage card.Refer to Fig. 1, figure
1 is a kind of structural representation of storage card provided in an embodiment of the present invention, can include:
Processor 11, first kind interface 12, the 3rd interface controller 13, Equations of The Second Kind interface 14 and second
Interface controller 15;Wherein,
Processor 11 is connected with first kind interface 12 by the 3rd interface controller 13;3rd interface control
Device 13 processed is the interface controller matching with first kind interface 12.
Second interface controller 15 is connected with Equations of The Second Kind interface 14;
First kind interface 12 supports the first communication protocol, and Equations of The Second Kind interface 14 supports the second communication protocol.
Processor 11 is used for, and after receiving access request by first kind interface 12, determines that needs are right
When Equations of The Second Kind interface 14 conducts interviews, by first kind interface 12 to the first electronic equipment that storage card is located
Host CPU send access Equations of The Second Kind interface 14 request;First electronic equipment is passed through by host CPU
Bus send control instruction to second interface controller 15, so that second interface controller 15 accesses the
Two class interfaces 14, realize transmitting interactive information by Equations of The Second Kind interface 14, interactive information includes:Control refers to
Order, and/or, data;Processor 11 accesses Equations of The Second Kind interface needs the data storage of transmission in processor
11 with the shared drive of second interface controller 15 in.
In the embodiment of the present invention, in the embodiment of the present invention, processor 11 needs to pass to Equations of The Second Kind interface 14
When sending data, store data in processor 11 and the shared drive of second interface controller 15, to
Host CPU sends the request transmitting data to Equations of The Second Kind interface, and host CPU indicates second interface controller
15 transmit to Equations of The Second Kind interface 14 after reading data from shared drive.In the same manner, processor 11 need from
When Equations of The Second Kind interface 14 reads data, send to host CPU and read asking of data from Equations of The Second Kind interface 14
Ask, host CPU instruction second interface controller 15 reads data, second interface from Equations of The Second Kind interface 14
Controller 15 from Equations of The Second Kind interface 14 read data after, by read data storage in shared drive,
Second interface controller 15 sends response to host CPU, and host CPU instruction processor 11 is in shared
Deposit middle reading data.
In the embodiment of the present invention, control instruction is generated by CPU, and data is led to processor 11 and connect with second
The shared drive transmission of mouth controller 15.
Host CPU, can be with base except can directly access first kind interface 12 based on the first communication protocol
Directly access Equations of The Second Kind interface 14 in the second communication protocol.
It should be noted that when Equations of The Second Kind interface 14 is HDMI, providing in the embodiment of the present invention
Storage card can also include:Audio/video decoding device, is connected with processor 11, for passing through to needs
The decoding data of HDMI transmission.
Because HDM interface is used for transmitting audio or video, therefore, number is being exported by HDMI
According to front, need the decoder first needing main frame to carry decoding data, traditional interface accessing process
Decoding, in the embodiment of the present invention, integrated audio/video decoding device in storage card, improves data further and passes
Defeated efficiency.
Another kind of structural representation of storage card provided in an embodiment of the present invention is as shown in Fig. 2 can include:
Processor 21, first kind interface 22, the 3rd interface controller 23, first interface controller 24,
Second interface controller 25 and Equations of The Second Kind interface 26;Wherein,
Processor 21 is connected with first kind interface 22 by the 3rd interface controller 23;
First interface controller 24 is connected with processor 21;
Second interface controller 25 is connected with first interface controller 24 and Equations of The Second Kind interface 26 respectively;
First interface controller 24 is connected by the internal bus of storage card with second interface controller 25;
Processor 21 is used for, and after receiving access request by first kind interface 22, determines that needs are right
When Equations of The Second Kind interface 26 conducts interviews, by first interface controller 24 to second interface controller 25
Send control instruction, Equations of The Second Kind interface 26 is accessed by second interface controller 25, to realize connecing by Equations of The Second Kind
Mouth 26 transmission interactive information, interactive information includes:Control instruction, and/or, data;Processor 21 is visited
Ask that the interactive information that Equations of The Second Kind interface 26 needs transmission passes through first interface controller 24 and second interface control
Device 25 processed transmits.
In the embodiment of the present invention, control instruction data can be all by first interface controller 24 and second
Interface controller 25 transmits.
In the embodiment of the present invention, processor 21 and second interface controller 25 can also shared drive,
Can not shared drive.The not shown internal memory of in figure.
When processor 21 and second interface controller 25 shared drive, data can not be passed through first and connect
Mouth controller 24 and second interface controller 25 transmit, but are transmitted by shared drive.
It should be noted that when Equations of The Second Kind interface 26 is HDMI, providing in the embodiment of the present invention
Storage card can also include:Audio/video decoding device, is connected with processor 21, for passing through to needs
The decoding data of HDMI transmission.
Because HDM interface is used for transmitting audio or video, therefore, number is being exported by HDMI
According to front, need the decoder first needing main frame to carry decoding data, traditional interface accessing process
Decoding, in the embodiment of the present invention, integrated audio/video decoding device in storage card, improves data further and passes
Defeated efficiency.
Corresponding with embodiment of the method, the embodiment of the present invention also provides a kind of interface accessing system, the present invention
A kind of structural representation of the interface accessing system that embodiment provides is as shown in figure 3, can include:
Storage card 31 and expansion card 32;Wherein,
Storage card 31 includes:Processor 311, the 3rd interface controller 312 and first kind interface 313;
Expansion card 32 includes:Equations of The Second Kind interface 321 and second interface controller 322;
Processor 311 is connected with first kind interface 313 by the 3rd interface controller 312;
Processor 311 is used for, and after receiving access request by first kind interface 313, determines and needs
When Equations of The Second Kind interface 321 is conducted interviews, by first kind interface 313 to the first electricity that storage card 31 is located
The host CPU of sub- equipment sends the request accessing Equations of The Second Kind interface 321, passes through the first electricity by host CPU
The bus of sub- equipment sends control instruction to Equations of The Second Kind interface controller 322, so that second interface controller
322 access Equations of The Second Kind interfaces 321, to realize transmitting interactive information, interaction letter by Equations of The Second Kind interface 321
Breath includes:Control instruction, and/or, data;Processor 311 accesses Equations of The Second Kind interface 321 to be needed to transmit
Data storage in shared drive with second interface controller 322 of processor 311.
In the embodiment of the present invention, processor 311 accesses Equations of The Second Kind interface 321 needs the control instruction of transmission
Generated by host CPU, and processor 311 accesses Equations of The Second Kind interface 321 and needs the data of transmission to pass through altogether
Enjoy internal memory transmission.
It should be noted that when Equations of The Second Kind interface 321 is HDMI, carrying in the embodiment of the present invention
For storage card 31 in can also include:Audio/video decoding device, is connected with processor 311, for need
The decoding data that HDMI to be passed through is transmitted.
Because HDM interface is used for transmitting audio or video, therefore, number is being exported by HDMI
According to front, need the decoder first needing main frame to carry decoding data, traditional interface accessing process
Decoding, in the embodiment of the present invention, integrated audio/video decoding device in storage card, improves data further and passes
Defeated efficiency.
Another kind of structural representation of interface accessing system provided in an embodiment of the present invention is as shown in figure 4, can
To include:
Storage card 41 and expansion card 42;Wherein,
Storage card 41 includes:Processor 411, the 3rd interface controller 412, first kind interface 413 He
First interface controller 414;
Expansion card 42 includes:Equations of The Second Kind interface 421 and second interface controller 422;
Processor 411 is connected with first kind interface 413 by the 3rd interface controller 412;
First interface controller 414 and second interface controller 422 are by the first electronics that storage card 41 is located
The bus of equipment is connected;
Processor 411 is used for, and after receiving access request by first kind interface 413, determines and needs
When Equations of The Second Kind interface 421 is conducted interviews, by first interface controller 414 to second interface controller
422 transmission control instructions, access Equations of The Second Kind interface 421 by second interface controller 422, to realize passing through
Equations of The Second Kind interface 421 transmits interactive information, and interactive information includes:Control instruction, and/or data.
Optionally, processor 411 and second interface controller 422 can be with shared drives, processor 411
Accessing Equations of The Second Kind interface 421 needs the data storage of transmission in processor 411 and second interface controller 422
Shared drive in;
Processor 411 accesses Equations of The Second Kind interface 421 needs the control instruction of transmission to control by first interface
Device 414 sends to second interface controller 422, from second interface controller 422 to Equations of The Second Kind interface 421
Send control instruction.I.e. control instruction passes through first interface controller 414 and second interface controller 422
It is sent to Equations of The Second Kind interface 421.
Optionally, processor 411 and second interface controller 422 can not also shared drive, that is, process
Device 411 and second interface controller 422 have each independent internal memory using.Processor accesses Equations of The Second Kind
Interface needs the interactive information of transmission to pass by described first interface controller and described second interface controller
Defeated;Wherein, the data that first interface controller 414 sends to second interface controller 422 is from processor
Read in 411 the first internal memory;The number that second interface controller 422 sends to first interface controller 414
Read according to from the second internal memory corresponding with Equations of The Second Kind interface 421;First internal memory and the second internal memory are mutually only
Vertical.
It should be noted that when Equations of The Second Kind interface 421 is HDMI, carrying in the embodiment of the present invention
For storage card 41 in can also include:Audio/video decoding device, is connected with processor 411, for need
The decoding data that HDMI to be passed through is transmitted.
Because HDM interface is used for transmitting audio or video, therefore, number is being exported by HDMI
According to front, need the decoder first needing main frame to carry decoding data, traditional interface accessing process
Decoding, in the embodiment of the present invention, integrated audio/video decoding device in storage card, improves data further and passes
Defeated efficiency.
Those skilled in the art can be understood that, for convenience and simplicity of description, above-mentioned retouches
The storage card stated, the specific work process of system, may be referred to the corresponding process in preceding method embodiment,
Will not be described here.
Described above to the disclosed embodiments, makes professional and technical personnel in the field be capable of or uses
The present invention.Multiple modifications to these embodiments will be aobvious and easy for those skilled in the art
See, generic principles defined herein can without departing from the spirit or scope of the present invention,
Realize in other embodiments.Therefore, the present invention is not intended to be limited to the embodiments shown herein,
And it is to fit to the wide scope consistent with principles disclosed herein and features of novelty.