CN102033713A - Electronic system, controller and data transmission method - Google Patents

Electronic system, controller and data transmission method Download PDF

Info

Publication number
CN102033713A
CN102033713A CN2009101766765A CN200910176676A CN102033713A CN 102033713 A CN102033713 A CN 102033713A CN 2009101766765 A CN2009101766765 A CN 2009101766765A CN 200910176676 A CN200910176676 A CN 200910176676A CN 102033713 A CN102033713 A CN 102033713A
Authority
CN
China
Prior art keywords
mode
controller
data
storage medium
group
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.)
Pending
Application number
CN2009101766765A
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.)
Maishi Electronic Shanghai Ltd
Original Assignee
O2Micro International 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
Application filed by O2Micro International Ltd filed Critical O2Micro International Ltd
Priority to CN2009101766765A priority Critical patent/CN102033713A/en
Publication of CN102033713A publication Critical patent/CN102033713A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Abstract

The invention discloses an electronic system, a controller and a data transmission method. The electronic system contains an input/output interface and the controller which is coupled to the input/output interface and used to select one operating mode from a group of operating modes according to the type of storage medium; the controller operates in the selected operating mode and adopts the data transmission rate of the selected operating mode to transmit data between the input/output interface and the storage medium; and the data transmission rates of at least two operating modes in the group of operating modes are different. Compared with the prior art, the system in the invention has better data transmission performance.

Description

Electronic system, controller and data transmission method
Technical field
The present invention relates to computer system, relate in particular to the computer system of hommization.
Background technology
CF card (flash card, CompactFlash card) is the mass-memory unit that meets the flash memory standard.Flash memory association (CompactFlash Association) has developed the flash memory standard, and has issued the flash memory standard of CF+ (CompactFlash+) and CF4 (CompactFlash Specification Revision 4.0) in succession.Early stage CF card comprises common data storage device.CF+ and CF4 card extend to and comprise I/O (input/output) equipment or data in magnetic disk storage now, and this depends on concrete application scenario.CF+ and CF4 card are than the early stage higher message transmission rate of CF card support.
Early stage CF card may only be operated in PC Card ATA using memory (use storer) pattern.CF4 card and CF+ card can be operated in PCMCIA (Personal Computer Memory Card International Association) pattern, and this pattern comprises PC Card ATA using I/O (using the I/O interface) pattern and PC Card ATA using memory pattern.The CF4 card can also be operated in True IDE pattern, and the CF+ card also may can be operated in True IDE pattern.Under each pattern, according to corresponding read/write sequential periodic transfer data.So the message transmission rate that is operated in CF, the CF+ of different mode and CF4 card may be different.Usually, controller is used for the data transmission between main control system (for example, computing machine) and memory storage, CF+ card and the CF4 card.Usually, the pattern that controller is set to preset is according to default message transmission rate and memory storage communication.Yet,, may reduce the effect of data transmission because CF card, CF+ card and CF4 card are supported different message transmission rates.For example, if controller is set to PC Card ATA using memory pattern, the message transmission rate that is operated in the CF+/CF4 card of PC Card ATA using memory pattern may be lower than the CF+/CF4 card that is operated in True IDE pattern.
Summary of the invention
The data transmission method that the technical problem to be solved in the present invention is a kind of electronic system is provided and is used for the data transmission of main control system and client.Described electronic system and method can under different working stamndards, provide Data Transmission Controlling according to different clients compared to existing technologies, obtain better data transmission performance.
For solving the problems of the technologies described above, the invention provides a kind of electronic system, comprising: input/output interface; And controller, it is coupled to described input/output interface, be used for type according to storage medium, from one group of mode of operation, select a mode of operation, and described controller is operated in selected mode of operation, with the message transmission rate of selected mode of operation, between described input/output interface and described storage medium, transmit data;
The message transmission rate of at least two mode of operations in wherein said one group of mode of operation is different.
Electronic system of the present invention, the data read/write sequential cycle difference of described at least two mode of operations, and described controller transmits data with the corresponding data read/write sequential cycle of selected mode of operation between described input/output interface and described storage medium.
Electronic system of the present invention, selected mode of operation also comprise one group of subpattern, and described controller is selected the work subpattern also according to default working stamndard from described one group of subpattern.
Electronic system of the present invention, described default working stamndard comprises the message transmission rate standard, described controller is selected described work subpattern, obtains the desired data transfer rate for transmission data between described input/output interface and the described storage medium.
Electronic system of the present invention, described default working stamndard comprises priority criteria, described controller is selected described work subpattern according to the priority level of the data transmission requirement of transmission data between described input/output interface and the described storage medium.
Electronic system of the present invention, described one group of mode of operation comprises the PCMCIA pattern.
Electronic system of the present invention, described controller comprises register, and described register is used for the memory module data, and described mode data is represented described one group of mode of operation of described controller.
Electronic system of the present invention, described controller also comprises mode selection module, described mode selection module be used to send recognition instruction to described storage medium with the type of discerning described storage medium and visit described mode data to select described mode of operation.
Electronic system of the present invention, described controller also comprises MUX, described MUX is coupled to described register, be used for selecting a nuclear according to selected mode of operation from one group of nuclear, wherein selected nuclear is according to described message transmission rate and described storage medium communication.
Electronic system of the present invention, described input/output interface comprises the PCIe interface.
Electronic system of the present invention, described storage medium is selected from one group of flash memory CF card, CF+ card and CF4 card.
The present invention also provides a kind of controller, is used for the data transmission of main control system and client, and this controller comprises:
Register is used for the mode data of one group of mode of operation of the described controller of storage representation, and the message transmission rate of at least two mode of operations of described one group of mode of operation is different;
Mode selection module is used to visit described mode data, and selects mode of operation according to the type of described client from described one group of mode of operation; And
One group of nuclear is coupled to described client, and wherein, according to selected mode of operation, a nuclear in described one group of nuclear is selected, to finish the communication of described main frame and described client.
Controller of the present invention, the data read/write sequential cycle difference of described at least two mode of operations, and selected nuclear is finished the communication of described main frame and described client according to the corresponding data read/write sequential cycle of selected mode of operation.
Controller of the present invention, selected mode of operation also comprise one group of subpattern, and described mode selection module is selected the work subpattern also according to default working stamndard from described one group of subpattern.
Controller of the present invention, described default working stamndard comprises the message transmission rate standard, described controller is selected described work subpattern, obtains the desired data transfer rate for transmission data between described main frame and the described client.
Controller of the present invention, described default working stamndard comprises priority criteria, described controller is selected described work subpattern according to the priority level of the data transmission requirement of transmission data between described main frame and the described client.
Controller of the present invention, described one group of mode of operation comprises PCMCIA pattern and True IDE pattern.
Controller of the present invention, described client comprises storage medium.
Controller of the present invention, described mode selection module comprises micro-control unit, described micro-control unit be used to send recognition instruction to described client with the type of discerning described client and select described mode of operation.
Controller of the present invention, described controller sends configuration-direct, and it is selected mode of operation so that described controller to be set that described configuration-direct is used to dispose described register.
The present invention further provides a kind of data transmission method, be used for the data transmission of main control system and client, this data transmission method comprises:
Detect the type of described client;
According to the type of described client, controller is selected a mode of operation from one group of mode of operation, and the message transmission rate of at least two mode of operations in wherein said one group of mode of operation is different;
Enable described controller and be operated in selected mode of operation; And
According to the message transmission rate of selected mode of operation, between described main frame and described client, transmit data.
Data transmission method of the present invention, described data transmission method also comprises: according to default working stamndard, select the work subpattern from one group of subpattern of selected mode of operation.
Data transmission method of the present invention, described default working stamndard comprises the message transmission rate standard, described controller is selected described work subpattern, obtains the desired data transfer rate for transmission data between described main frame and the described client.
Data transmission method of the present invention, described default working stamndard comprises priority criteria, described controller is selected described work subpattern according to the priority level of the data transmission requirement of transmission data between described main frame and the described client.
Data transmission method of the present invention, described data transmission method also comprises: before described client was coupled to described controller, it was default mode of operation that described controller is set.
Compared with prior art, adopt system of the present invention and method under different working stamndards, to provide Data Transmission Controlling, obtain better data transmission performance according to different clients.
Description of drawings
Fig. 1 is the synoptic diagram with data transmission system of different working modes according to an embodiment of the invention;
Fig. 2 is the synoptic diagram of the data transmission system with different working modes according to another embodiment of the invention;
Fig. 3 is the synoptic diagram of the data transmission system with different working modes according to another embodiment of the invention; And
Fig. 4 is the process flow diagram of the method for control data transmission according to an embodiment of the invention.
Embodiment
Below, can further understand purpose of the present invention, specific structural features and advantage by to the description of some embodiments of the present invention in conjunction with its accompanying drawing.
Though the present invention will set forth with the following Examples, being interpreted as this is not to mean the present invention is defined in these embodiment.On the contrary, but the present invention be intended to contain in the spirit and scope of the invention that defines by described claim defined various option modification items and be equal to item.
In addition, in following detailed description of the present invention, understand completely, illustrated a large amount of details in order to provide at of the present invention.Yet it will be understood by those skilled in the art that does not have these details, and the present invention can implement equally.In some other examples, scheme, flow process, element and the circuit known for everybody are not described in detail, so that highlight purport of the present invention.
Fig. 1 is the data transmission system 100 with different working modes according to an embodiment of the invention.In the embodiment in figure 1, data transmission system 100 comprises main frame 102, interface 120, controller 140 and client.In one embodiment, client comprises storage medium 106.Storage medium 106 can include but are not limited to CF+ card or CF4 card.Controller 140 and interface 120 transmit data between main frame 102 and client.Interface 120 can include but are not limited to PCI (peripheral component interconnection, peripheralcomponent interconnect) interface, PCI-X (PCI extended) interface or PCIe (PCI express) interface.Main frame 102 can be electronic equipment or system, for example, and computing machine, PDA (personal digital assistant, personal digital assistance), mobile phone etc.Main frame 102 can write storage medium 106 from storage medium 106 sense datas or with data.
Interface 120 can be as an I/O interface between main frame 102 and controller 140.Information transmitted can comprise data message and control information between main frame 102 and controller 140.In one embodiment, main frame 102 is operated in major state, initiates data transmission.In this case, main frame can send control information to controller 140.Before transmitting data information, control information can make main frame 102 and controller 140 shake hands.Control information can definition of data the feature of transmission, for example, data write storage medium 106 or read from storage medium 106.For example, data message can transfer to controller 140 from main frame 102 in write operation, also can transfer to main frame 102 by slave controller 140 in read operation.Control information can also be represented the state of data transmission, for example, and the beginning of data transmission.In one embodiment, storage medium 106 can be operated in major state to initiate data transmission, and in this case, storage medium 106 can send control information to controller 140.
In one embodiment, can to analyze from the information of main frame 102 be data message or control information with what judge main frame 102 transmission to interface 120.According to main frame 102 transmission be data message or control information, interface 120 can be selected data channel 174 or control channel 176 transmission information.If main frame 102 transmission is data message, data can transfer to controller 140 by data channel 174.If main frame 102 transmission is control information, this control information can transfer to controller 140 by control channel 176.In addition, interface 120 in the future self-controller 140 is packaged into the readable data of main frame 102, and transmits it to main frame 102.
Controller 140 can be between interface 120 and storage medium 106 transmitting data information.Advantageously, the controller 140 that is coupled between interface 120 and the storage medium 106 can be operated in a plurality of mode of operations, with the data transmission of 106 of main control system 102 and storage mediums.In one embodiment, the data read/write sequential cycle of at least two patterns is different in the mode of operation.Tead cycle time is the time that needs between a read operation and the next read operation.Write cycle time is the time that needs between a write operation and the next write operation.So the message transmission rate of at least two patterns is different in the mode of operation.In one embodiment, a plurality of patterns include but are not limited to PCMCIA pattern and True IDE pattern.In the PCMCIA pattern, with the corresponding read/write sequential transmission of PCMCIA standard data.In True IDE pattern, with the corresponding read/write sequential transmission of True IDE standard data.
Advantageously, controller 140 can be selected a mode of operation according to the type of storage medium 106 from a plurality of mode of operations.Because the data-transmission mode difference that dissimilar storage medium 106 may be supported, thus controller 140 can with and the pattern of storage medium 106 compatibilities between main frame 102 and storage medium 106, transmit data.For example, if storage medium 106 is CF+ card or CF4 card, then can to select PCMCIA pattern or True IDE pattern be mode of operation to controller 140.In other words, controller 140 can be general purpose controller, and can be according to the type selecting one of storage medium 106 suitable mode of operation.Controller 140 can be operated in the mode of operation of selection, with according to corresponding data read/write sequential cycle of this mode of operation and corresponding message transmission rate, transmits data between I/O interface 120 and storage medium 106.In one embodiment, if more than a mode of operation and storage medium 106 compatibilities, controller 140 can select to provide the pattern of desired data transmission performance, for example in a plurality of mode of operations, support the pattern of higher data transfer rate, as mode of operation.
In addition, in one embodiment, the mode of operation that controller 140 is selected comprises a plurality of subpatterns.Controller 140 is selected a work subpattern based on the preset working standard from a plurality of subpatterns.For example, the PCMCIA pattern comprises a plurality of subpatterns, for example, and PC cardATA using I/O pattern and PC card ATA using memory pattern.When controller 140 is operated in PC card ATA using I/O pattern or PC card ATA usingmemory pattern, storage medium 106 uses different signal and controller 140 communications.For example, when storage medium 106 is CF+ or CF4 card, and when controller 140 was operated in PCcard ATA using I/O pattern, storage medium 106 used the signal (not shown) and controller 140 communications of its pins 34 and 35.In one embodiment, the IORD signal that controller 140 uses pin 34 uses the IOWR signal of pin 35 will write storage medium 106 from the data of main frame 102 from storage medium 106 read output signals.Yet when controller 140 is operated in PC card ATA using memory pattern, in one embodiment, the signal of pin 34 and 35 is not used in storage medium 106 and controller 140 communications.When storage medium 106 is CF+ or CF4 card, and be operated in PC cardATA using memory pattern when controller 140, storage medium 106 uses the signal and controller 140 communications of its pins 9 and 36.In one embodiment, the OE signal that controller 140 uses pin 9 uses the WE signal of pin 36 will write storage medium 106 from the data of main frame 102 from storage medium 106 read output signals.Yet, when controller 140 is operated in PCcard ATA using I/O pattern, controller 140 uses the configuration register sense data of the OE signal of pin 9 from storage medium 106, uses the WE signal of pin 36 data to be write the configuration register of storage medium 106.
True IDE pattern can comprise a plurality of subpatterns, for example, and PIO (primaryI/O, basic I/O) pattern, MDMA (multiword direct memoryaccess) pattern and UDMA (ultra direct memory access) pattern.Give an example, when storage medium 106 is CF+ or CF4 card, and when controller 140 was operated in the PIO pattern, the data of every transmission 512 bits between main frame 102 and storage medium 106 needed an interruption.When controller 140 is operated in the MDMA pattern, can need not any interruption and once transmitted all data.When controller 140 was operated in the UDMA pattern, storage medium 106 may work as major state, for example, storage medium 106 can initiate a secondary data from storage medium 106 to main frame 102 data transmission.In this embodiment, storage medium 106 can send control information, and for example, DMA asks to controller 140 to initiate data transmission.The PIO pattern can comprise a plurality of PIO patterns.A plurality of PIO patterns have the different read/write sequential cycles.Similar, the MDMA pattern can comprise a plurality of MDMA patterns.A plurality of MDMA patterns have the different read/write sequential cycles.The UDMA pattern can comprise a plurality of UDMA patterns.A plurality of UDMA patterns have the different read/write sequential cycles.Controller 140 can be selected a work subpattern based on default working stamndard from a plurality of subpatterns.In one embodiment, default working stamndard is the message transmission rate standard.Controller 140 selects the work subpattern to obtain the desired data transfer rate of data transmission between I/O interface 120 and the storage medium 106, for example, and high data rate.In another embodiment, default working stamndard is a priority criteria.Controller 140 can the judgment data transmission requirement priority, and, select described work subpattern according to the priority that the data transmission of transmission data between I/O interface 120 and the storage medium 106 requires.For example, in data transmission system 100, between main frame 102 and the storage medium 106 data transmission of transmission data require may with other requirements, for example interrupt request coexistence.If the priority that the data transmission of transmission data requires between main frame 102 and the storage medium 106 is higher, then mode selection module 130 can select to support that the pattern of high data rate is the work subpattern.If the priority that the data transmission of transmission data requires between main frame 102 and the storage medium 106 is lower, mode selection module 130 can select to support that the pattern of low message transmission rate is the work subpattern.In one embodiment, mode selection module 130 object computer executable programs are to select mode of operation and/or work subpattern.
In the embodiment in figure 1, controller 140 comprises data buffer 142, register 144, mode selection module 130, MUX 152 and core module 160.Data buffer 142 can cushion from the data message of interface 120 and provide this data message to core module 160.Data buffer 142 also can cushion from the data message of core module 160 and provide this data message to interface 120.When main frame 102 was operated in major state, register 144 can be stored the control information from interface 120, or when storage medium 106 was operated in major state, register 144 can be stored the control information from storage medium 106.Register 144 all right memory module data, a plurality of patterns and a plurality of subpattern that on behalf of controller 140, this mode data can work.Mode selection module 130 can the access module data, are that controller 140 is selected mode of operations and/or work subpattern.In one embodiment, register 144 also storage representation transmits the data of whether finishing, and main frame 102 can be visited these data.In this case, core module 160 can produce the data whether the expression transmission is finished.In another embodiment, whether main frame 102 can be finished in own judgment data transmission.
Core module 160 is coupled to data buffer 142, can comprise a plurality of nuclears.Each is endorsed to be operated in corresponding pattern and storage medium 106 communications.In one embodiment, each nuclear is a microcontroller, can be according to the read/write timing sequence generating signal (for example, read/write signal) of corresponding modes to enable data transmission procedure.Storage medium 106 is accepted the signal of nuclear generation and is made corresponding reaction.For example, if main frame 102 is initiated a data transfer data are write storage medium 106, endorse accordingly to produce write signal according to control information from main frame 102.Accordingly, storage medium 106 receptions are from the data message of main frame 102.If main frame 102 is initiated a data transfer with from storage medium 106 sense datas, endorse accordingly to produce read signal according to control information from main frame 102.Correspondingly, storage medium 106 transmits/provides data message to main frame 102.In one embodiment, if selected a mode of operation, then can start corresponding nuclear, with storage medium 106 communications according to this mode of operation.Data can be transmitted between main frame 102 and storage medium 106 by the nuclear that starts.
In one embodiment, before mode selection module 130 was selected mode of operation, controller 140 was operated in default mode, and default the endorsing that can be operated in this default mode is used to and storage medium 106 communications.
According to the type of storage medium 106, mode selection module 130 can be selected a mode of operation from a plurality of mode of operations, and according to the preset working standard, mode selection module 130 can be selected a work subpattern from a plurality of subpatterns.More precisely, mode selection module 130 can access register 144 in a plurality of mode of operations that can work of expression controller 140 and the data of subpattern.Mode selection module 130 can detection of stored medium 106 type and the pattern supported of storage medium 106.In one embodiment, mode selection module 130 can send recognition command to require the identifying information of storage medium 106.In this case, there are data can represent that the identifying information of storage medium 106 is required in the register 144.Default nuclear in the core module 160 correspondingly produces the signal that requires storage medium 106 identifying informations.Accordingly, storage medium 106 can send the type of expression storage medium 106 and the data of the pattern that storage medium 106 is supported, these data send register 144 to through default nuclear.Like this, mode selection module 130 just can access register 144 in the identifying information of storage medium 106.Mode selection module 130 is from a mode of operation of a plurality of model selections and storage medium 106 compatibilities.In one embodiment, if in a plurality of patterns more than a pattern and storage medium 106 compatibilities, mode selection module 130 can select to provide the pattern of desired data transmission performance, for example, supports the pattern of higher data transfer rate, as mode of operation.If the mode of operation of selecting comprises a plurality of subpatterns, mode selection module 130 can also further be selected a work subpattern according to the preset working standard from corresponding a plurality of subpatterns.
In case select mode of operation, mode selection module 130 can mode of operation or the subpattern of Configuration Control Unit 140 to be operated in selection.In one embodiment, mode selection module 130 writes register 144 Configuration Control Units 140 by the mode of operation that will represent to select or the data of subpattern.
MUX 152 is coupled to register 144 and core module 160, according to the mode of operation of expression selection in the register 144 or the data of subpattern, enables a nuclear in the core module 160.As a result, the nuclear that is enabled is according to the message transmission rate and storage medium 106 communications of selected mode of operation or subpattern, and for example, transmitting data information is to storage medium 106.
An example that transfers data to storage medium 106 from main frame 102 is here described.In one embodiment, by interface 120 and control channel 176, main frame 102 at first control information transmission to controller 140 to initiate from main frame 102 to storage medium 106 data transmission.When register 144 receives this control information, mode selection module 130 can be activated to select a mode of operation.Mode selection module 130 can be selected mode of operation, and further selects the work subpattern.Like this, mode selection module 130 can be provided with mode of operation and the subpattern that controller 140 is being selected.According to mode of operation and the subpattern that mode selection module 130 is selected, MUX 152 can start in the core module 160 a nuclear with storage medium 106 communications.By interface 120 and data channel 174, main frame 102 transmitting data informations are to data buffer 142.Data buffer 142 can provide the nuclear that is activated of data message to the core module 160.Like this, data message can be transferred into storage medium 106.In one embodiment, main frame 102 can access register 144 to learn whether data transmission is finished.
An example that transfers data to main frame 102 from storage medium 106 is here described.In one embodiment, by interface 120 and control channel 176, main frame 102 at first sends control information to controller 140, with request from storage medium 106 to main frame 102 data transmission.After mode selection module 130 is selected mode of operation and work subpattern, and controller 140 is set after this mode of operation and work subpattern, MUX 152 starts module and storage medium 106 communications in the core modules 160.Like this, data can transfer to core module 160 from storage medium 106.By data buffer 142 and data channel 174, data can be transferred into main frame 102.In one embodiment, main frame 102 can access register 144 to learn whether data transmission is finished.
As mentioned above, main frame 102 is operated in major state and initiates data transmission.In another embodiment, storage medium 106 is operated in major state and initiates data transmission.In another embodiment, mode selection module 130 can be started by main frame 102, selects mode of operation.Give an example, when storage medium 106 is CF+ or CF4 card, it is mode of operation that mode selection module 130 is selected True IDE patterns, and further to select UDMA be the work subpattern.Like this, mode selection module 130 is provided with controller 140 and is the UDMA pattern.MUX 152 start nuclear that in the core modules 160 one can be operated in the UDMA pattern with storage medium 106 communications.In the UDMA pattern, storage medium 106 is operated in major state to initiate the data transmission of 102 in storage medium 106 and main frame.
More particularly, in one embodiment, storage medium 106 sends control information to controller 140 to initiate data transmission.The nuclear analysis that is activated in the core module 160 is from the information of storage medium 106, and what judge storage medium 106 transmissions is data message or control information.If what storage medium 106 sent is control information, then core module 160 analysis and Control information are a read operation (from main frame 102 sense datas) or write operation (data are write main frame 102) with what judge whether storage medium 106 initiations.If what storage medium 106 sent is data message, then controller 140 is through data channel 174 transmission data.If storage medium 106 initiations one number reportedly contribute's data writes main frame 102, the nuclear that then is activated produces read signal according to the control information from storage medium 106.Correspondingly, main frame 102 receives from the data message of storage medium 106 by data channel 174 transmission.If storage medium 106 is initiated a data transmission from main frame 102 sense datas, the nuclear that then is activated produces write signal according to the control information from storage medium 106.Correspondingly, main frame 102 transmits/provides data message to storage medium 106 by data channel 174.
So controller 140 can be according to the type selecting mode of operation of storage medium 106.In addition, controller 140 can be selected the work subpattern according to the preset working standard.Advantageously, controller 140 can under different working stamndards, provide Data Transmission Controlling according to different storage medium 106.
In one embodiment, before storage medium 106 was coupled to controller 140, it was a default mode that controller 140 can be set.In one embodiment, default mode can be the pattern of the high data transmission data of a support.After storage medium 106 is coupled to controller 140, mode selection module 130 can judge default mode whether with storage medium 106 compatibilities.If default mode and storage medium 106 compatibilities, controller 140 just can be operated in default mode and storage medium 106 communications.Like this, can obtain the higher data transfer rate.If default mode discord storage medium 106 compatibilities, then mode selection module 130 can be selected other pattern.
Fig. 2 is the data transmission system 200 with different working modes according to an embodiment of the invention.Functional similarity with Fig. 1 label components identical.In the example of Fig. 2, data transmission system 200 comprises main frame 102, PCIe interface 120, controller 140 and storage medium 106.Storage medium 106 can for but be not limited only to CF+ card or CF4 card.Controller 140 and PCIe interface 120 can transmit data between main frame 102 and storage medium 106.
It is mutual that PCIe interface 120 plays I/O, transmits data between main frame 102 and controller 140.PCIe one has the standard of the computer interactive of higher data transfer rate.For example, the PCIe connection can be supported up to 32 passages and the bandwidth that effective about 2.5Gigabits/second/Lane/direction is provided.Like this, PCIe provides than PCI and the high performance of PCI-X.In addition, PCIe supports hot plug.In the embodiment of Fig. 2, PCIe interface 120 comprises PCIe Physical layer 222 and PCIe core layer 224.If main frame 102 sends serial signal to PCIe interface 120, then PCIe Physical layer 222 can transform serial signal to parallel signal, and provides this parallel signal to PCIe core layer 224.It is data message or control information with what judge main frame 102 transmission that PCIe core layer 224 can be resolved parallel signal.PCIe core layer 224 by data channel 174 transmitting data informations to controller 140, by control channel 176 control information transmissions to controller 140.Like this, can deliver to controller 140 by PCIe interface 120 from the information of main frame 102.
Similar, if controller 140 transmitting data informations are to PCIe interface 120, then PCIe core layer 224 can packing data information and is provided this parallel data message to PCIe Physical layer 222.PCIe Physical layer 222 can transform parallel data to serial information, and transmits this serial information to main frame 102.Like this, PCIe interface 120 can transmitting data information to main frame 102.
Controller 140 can and storage medium 106 communications between PCIe interface 120 and storage medium 106, to transmit data.In the example of Fig. 2, controller 140 comprises data buffer 142, register 144, mode selection module 130, MUX 152 and core module 160.In one embodiment, core module 160 comprises PCMCIA nuclear 246 and True IDE nuclear 248.PCMCIA endorses to be operated in the PCMCIA pattern.True IDE nuclear 248 can be operated in True IDE pattern.
According to the type of storage medium 106, mode selection module 130 can be selected mode of operation from PCMCIA pattern and True IDE pattern.In addition, if the mode of operation of selecting comprises a plurality of subpatterns, then according to the preset working standard, mode selection module 130 can select to select a work subpattern from the corresponding a plurality of subpatterns of selecting of mode of operation.
In the embodiment of Fig. 2, mode selection module 130 comprises microprocessing unit (micro controller unit, MCU) 234 and firmware 236.Firmware 236 can the executable program of storage computation machine.Microprocessing unit 234 can be carried out the computer executable program in the firmware 236, to select mode of operation/subpattern.Microprocessing unit 234 can read the mode of operation that the expression controller 140 in the register 144 can work and/or the mode data of subpattern.Microprocessing unit 234 can send recognition instruction (for example, if storage medium 106 is the CF4 card, then this transmission recognition instruction can be the IdentifyDevice instruction), with type and its pattern that can support of detection of stored medium 106.After selecting mode of operation and/or subpattern, microprocessing unit 234 (for example can send a configuration-direct, if storage medium 106 is the CF4 card, then this configuration-direct can be Set Feature order), register in the configuration store medium 106 is to be provided with mode of operation and/or the subpattern that storage medium 106 is selection, and write register 144 configuration registers 144 by the mode of operation that will represent to select and/or the data of subpattern, so that mode of operation and/or the subpattern that controller 140 is selection to be set.
According to the data of the mode of operation of expression selection in the register 144, MUX 152 starts in PCMCIA nuclear 246 and the True IDE nuclear 248.Like this, according to mode of operation and/or the corresponding message transmission rate of subpattern selected, be activated endorse with storage medium 106 communications.In another embodiment, endorse to be operated in PCMCIA pattern or True IDE pattern and storage medium 106 communications for one.As a result, can realize the data transmission of main frame 102 and storage medium 106.
So controller 140 can be according to different storage medium 106 control data transmission under different working stamndards.In addition, by PCIe interface 120, storage medium 106 can be with higher performance and host computer system communication.Like this, the performance of data transmission can further improve.In addition, because PCIe interface 120 is supported hot plug, so controller 140 is supported hot plug.
In one embodiment, before storage medium 106 was coupled to controller 140, controller 140 was set to default mode.In one embodiment, default mode can be True IDE pattern.After storage medium 106 is coupled to controller 140, mode selection module 130 (for example can send a recognition instruction, if storage medium 106 is the CF4 card, then this recognition instruction can be Identify Device order,) to storage medium 106, with judge default mode whether with storage medium 106 compatibilities.If default mode and storage medium 106 compatibilities, microprocessing unit 234 can send a configuration-direct (for example, if storage medium 106 is the CF4 card, then this configuration-direct can be Set Feature order) so that storage medium 106 to True IDE patterns to be set.
Fig. 3 is the data transmission system with different working modes 300 according to another embodiment of the invention.Functional similarity with Fig. 2 label components identical.
In the embodiments of figure 3, mode selection module 130 can be placed on outside the controller 140.Mode selection module 130 comprises driving 336, for example, is used to select the executable program of computing machine of mode of operation and work subpattern.In one embodiment, the signal processor of main frame 102 (not showing), for example, central processing unit can carry out driving 336 functions with the implementation pattern selection.
Fig. 4 is the process flow diagram 400 of the method for control data transmission according to an embodiment of the invention.Fig. 4 will describe in conjunction with Fig. 1.
In step 402, the type of detection of stored medium 106 and the pattern of its support.In step 404,, from a plurality of mode of operations, select a mode of operation according to the type of storage medium 106.For example, a plurality of patterns that expression controller 140 can be worked in 130 access register 144 of the mode selection module in the controller 140 and the data of subpattern.Mode selection module 130 from a plurality of patterns, select one can with the mode of operation of storage medium 106 compatibilities.
In step 406,, from a plurality of subpatterns, select a work subpattern according to default working stamndard.In one embodiment, the mode of operation of selection may comprise a plurality of subpatterns.In this case, according to the preset working standard, mode selection module 130 can also be selected the work subpattern from corresponding a plurality of subpatterns, for example, and message transmission rate standard or priority criteria.
In step 408, controller 140 can be operated in selected mode of operation and/or subpattern.Mode selection module 130 can configuration register 144 be mode of operation and/or subpattern so that controller 140 to be set.In one embodiment, the mode of operation that mode selection module 130 can be selected expression and/or the data of subpattern write register 144, so that mode of operation and/or the subpattern that controller 140 is selection to be set.
In step 410, according to the transfer rate and the read/write sequential cycle of the mode of operation of selecting, controller 140 can transmit data between storage medium 106 and main frame 102.According to the mode of operation of expression selection in the register 144 and/or the data of subpattern, MUX 152 can start a nuclear in the core module 160.Like this, according to the transfer rate and the read/write sequential cycle of the mode of operation of selecting, be activated endorse with storage medium 106 communications and storage medium 106 swap datas.
Above embodiment and accompanying drawing only are embodiment commonly used of the present invention.Obviously, under the prerequisite of the present invention's spirit that does not break away from described claims and defined and protection domain, can have and variously augment, revise and replace.It should be appreciated by those skilled in the art that the present invention can change aspect form, structure, layout, ratio, material, element, assembly and other to some extent according to concrete environment and job requirement in actual applications under the prerequisite that does not deviate from the invention criterion.Therefore, embodiment disclosed here only is illustrative rather than definitive thereof, and scope of the present invention is defined by aforementioned claim and legal equivalents thereof, and the description before being not limited thereto.

Claims (25)

1. an electronic system is characterized in that, this electronic system comprises:
Input/output interface; And
Controller, it is coupled to described input/output interface, be used for type according to storage medium, from one group of mode of operation, select a mode of operation, and described controller is operated in selected mode of operation, with the message transmission rate of selected mode of operation, between described input/output interface and described storage medium, transmit data;
The message transmission rate of at least two mode of operations in wherein said one group of mode of operation is different.
2. electronic system according to claim 1, it is characterized in that, the data read/write sequential cycle difference of described at least two mode of operations, and described controller transmits data with the corresponding data read/write sequential cycle of selected mode of operation between described input/output interface and described storage medium.
3. electronic system according to claim 1 is characterized in that, selected mode of operation also comprises one group of subpattern, and described controller is selected the work subpattern also according to default working stamndard from described one group of subpattern.
4. electronic system according to claim 3, it is characterized in that, described default working stamndard comprises the message transmission rate standard, and described controller is selected described work subpattern, obtains the desired data transfer rate for transmission data between described input/output interface and the described storage medium.
5. electronic system according to claim 3, it is characterized in that, described default working stamndard comprises priority criteria, and described controller is selected described work subpattern according to the priority level of the data transmission requirement of transmission data between described input/output interface and the described storage medium.
6. electronic system according to claim 1 is characterized in that, described one group of mode of operation comprises the PCMCIA pattern.
7. electronic system according to claim 1 is characterized in that described controller comprises register, and described register is used for the memory module data, and described mode data is represented described one group of mode of operation of described controller.
8. electronic system according to claim 7, it is characterized in that, described controller also comprises mode selection module, described mode selection module be used to send recognition instruction to described storage medium with the type of discerning described storage medium and visit described mode data to select described mode of operation.
9. electronic system according to claim 7, it is characterized in that, described controller also comprises MUX, described MUX is coupled to described register, be used for selecting a nuclear according to selected mode of operation from one group of nuclear, wherein selected nuclear is according to described message transmission rate and described storage medium communication.
10. electronic system according to claim 1 is characterized in that described input/output interface comprises the PCIe interface.
11. electronic system according to claim 1 is characterized in that, described storage medium is selected from one group of flash memory CF card, CF+ card and CF4 card.
12. a controller is used for the data transmission of main control system and client, it is characterized in that this controller comprises:
Register is used for the mode data of one group of mode of operation of the described controller of storage representation, and the message transmission rate of at least two mode of operations of described one group of mode of operation is different;
Mode selection module is used to visit described mode data, and selects mode of operation according to the type of described client from described one group of mode of operation; And
One group of nuclear is coupled to described client, and wherein, according to selected mode of operation, a nuclear in described one group of nuclear is selected, to finish the communication of described main frame and described client.
13. controller according to claim 12, it is characterized in that, the data read/write sequential cycle difference of described at least two mode of operations, and selected nuclear is finished the communication of described main frame and described client according to the corresponding data read/write sequential cycle of selected mode of operation.
14. controller according to claim 12 is characterized in that, selected mode of operation also comprises one group of subpattern, and described mode selection module is selected the work subpattern also according to default working stamndard from described one group of subpattern.
15. controller according to claim 14, it is characterized in that, described default working stamndard comprises the message transmission rate standard, and described controller is selected described work subpattern, obtains the desired data transfer rate for transmission data between described main frame and the described client.
16. controller according to claim 14, it is characterized in that, described default working stamndard comprises priority criteria, and described controller is selected described work subpattern according to the priority level of the data transmission requirement of transmission data between described main frame and the described client.
17. controller according to claim 12 is characterized in that, described one group of mode of operation comprises PCMCIA pattern and True IDE pattern.
18. controller according to claim 12 is characterized in that, described client comprises storage medium.
19. controller according to claim 12 is characterized in that, described mode selection module comprises micro-control unit, described micro-control unit be used to send recognition instruction to described client with the type of discerning described client and select described mode of operation.
20. controller according to claim 19 is characterized in that, described controller sends configuration-direct, and it is selected mode of operation so that described controller to be set that described configuration-direct is used to dispose described register.
21. a data transmission method is used for the data transmission of main control system and client, it is characterized in that this data transmission method comprises:
Detect the type of described client;
According to the type of described client, controller is selected a mode of operation from one group of mode of operation, and the message transmission rate of at least two mode of operations in wherein said one group of mode of operation is different;
Enable described controller and be operated in selected mode of operation; And
According to the message transmission rate of selected mode of operation, between described main frame and described client, transmit data.
22. data transmission method according to claim 21 is characterized in that, described data transmission method also comprises:
According to default working stamndard, from one group of subpattern of selected mode of operation, select the work subpattern.
23. data transmission method according to claim 22, it is characterized in that, described default working stamndard comprises the message transmission rate standard, and described controller is selected described work subpattern, obtains the desired data transfer rate for transmission data between described main frame and the described client.
24. data transmission method according to claim 22, it is characterized in that, described default working stamndard comprises priority criteria, and described controller is selected described work subpattern according to the priority level of the data transmission requirement of transmission data between described main frame and the described client.
25. data transmission method according to claim 22 is characterized in that, described data transmission method also comprises:
Before described client was coupled to described controller, it was default mode of operation that described controller is set.
CN2009101766765A 2009-09-24 2009-09-24 Electronic system, controller and data transmission method Pending CN102033713A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101766765A CN102033713A (en) 2009-09-24 2009-09-24 Electronic system, controller and data transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101766765A CN102033713A (en) 2009-09-24 2009-09-24 Electronic system, controller and data transmission method

Publications (1)

Publication Number Publication Date
CN102033713A true CN102033713A (en) 2011-04-27

Family

ID=43886665

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101766765A Pending CN102033713A (en) 2009-09-24 2009-09-24 Electronic system, controller and data transmission method

Country Status (1)

Country Link
CN (1) CN102033713A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105472464A (en) * 2015-12-08 2016-04-06 深圳Tcl数字技术有限公司 Television terminal and data playing method thereof
CN105739917A (en) * 2014-12-31 2016-07-06 三星电子株式会社 Electronic system with learning mechanism and method of operation thereof
CN108027710A (en) * 2015-12-03 2018-05-11 株式会社日立制作所 The method and apparatus being cached in the storage system of software definition
CN111078602A (en) * 2019-12-27 2020-04-28 深圳大普微电子科技有限公司 Flash memory master control chip, control method and test method thereof, and storage device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105739917A (en) * 2014-12-31 2016-07-06 三星电子株式会社 Electronic system with learning mechanism and method of operation thereof
CN105739917B (en) * 2014-12-31 2020-09-22 三星电子株式会社 Electronic system with learning mechanism and method of operation thereof
CN108027710A (en) * 2015-12-03 2018-05-11 株式会社日立制作所 The method and apparatus being cached in the storage system of software definition
CN105472464A (en) * 2015-12-08 2016-04-06 深圳Tcl数字技术有限公司 Television terminal and data playing method thereof
CN105472464B (en) * 2015-12-08 2019-01-01 深圳Tcl数字技术有限公司 Television terminal and its data playing method
CN111078602A (en) * 2019-12-27 2020-04-28 深圳大普微电子科技有限公司 Flash memory master control chip, control method and test method thereof, and storage device

Similar Documents

Publication Publication Date Title
JP4799417B2 (en) Host controller
KR101988260B1 (en) EMBEDDED MULTIMEDIA CARD(eMMC), AND METHOD FOR OPERATING THE eMMC
US9910806B2 (en) Universal serial bus (USB) hub for switching downstream ports between host mode and slave mode
KR102111741B1 (en) EMBEDDED MULTIMEDIA CARD(eMMC), AND METHODS FOR OPERATING THE eMMC
US9389804B2 (en) Host, system, and methods for transmitting commands to non-volatile memory card
KR20110069271A (en) Imaging device and method for sharing memory among chips
CN105786403A (en) Storage device including buffer and main memories, and user device including the same
CN103838687A (en) Storage device, computing system including same and data transferring method thereof
CN108304334B (en) Application processor and integrated circuit including interrupt controller
US10162778B2 (en) Universal serial bus emulation layer
CN104239097B (en) A kind of method, system and mobile terminal by updating mobile terminal accessory
US20140244904A1 (en) Memory device and computer system
JP4739349B2 (en) Multimedia card interface method, computer program, and apparatus
US20180048753A1 (en) Operating method for universal serial bus hub supporting role-switch function
CN102033713A (en) Electronic system, controller and data transmission method
US7802047B2 (en) Universal serial bus device and universal serial bus system including the same
US20120102251A1 (en) Serial attached small computer system interface (sas) domain access through a universal serial bus interface of a data processing device
TW201112130A (en) Controllers and methods for controlling data transfer, and electronic systems
CN110795373B (en) I2C bus-to-parallel bus conversion method, terminal and storage medium
US20140075063A1 (en) Smart device with no AP
CN102222054A (en) Data transmission device, method and controller
CN104077080A (en) Memory access method, memory access control method, SPI flash memory device and controller thereof
US8214569B2 (en) Method for reading and writing non-standard register of serial advanced technology attachment (SATA) device
CN107358110A (en) Mobile terminal USB flash disk based on the close safety chip of state and its communication means with Android device
CN110164394B (en) Time sequence controller and time sequence control board

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: MAISHI ELECTRONICS (SHANGHAI) CO., LTD.

Free format text: FORMER OWNER: O2MICRO (WUHAN) CO., LTD.

Effective date: 20121031

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 430074 WUHAN, HUBEI PROVINCE TO: 201203 PUDONG NEW AREA, SHANGHAI

TA01 Transfer of patent application right

Effective date of registration: 20121031

Address after: 201203 Shanghai Zhangjiang hi tech Park Chunxiao Road No. 289 room 1402

Applicant after: Maishi Electronic (Shanghai) Co., Ltd.

Address before: Wuhan City, Hubei province 430074 Luoyu Road No. 716 Hua Le Business Center Room 806

Applicant before: O2Micro International Ltd.

C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110427