WO2017201829A1 - 数据存储器访问方法、装置和系统 - Google Patents

数据存储器访问方法、装置和系统 Download PDF

Info

Publication number
WO2017201829A1
WO2017201829A1 PCT/CN2016/089736 CN2016089736W WO2017201829A1 WO 2017201829 A1 WO2017201829 A1 WO 2017201829A1 CN 2016089736 W CN2016089736 W CN 2016089736W WO 2017201829 A1 WO2017201829 A1 WO 2017201829A1
Authority
WO
WIPO (PCT)
Prior art keywords
mode
interface
control device
bus
control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2016/089736
Other languages
English (en)
French (fr)
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.)
TCL China Star Optoelectronics Technology Co Ltd
Original Assignee
Shenzhen China Star Optoelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen China Star Optoelectronics Technology Co Ltd filed Critical Shenzhen China Star Optoelectronics Technology Co Ltd
Priority to US15/128,972 priority Critical patent/US10268606B2/en
Publication of WO2017201829A1 publication Critical patent/WO2017201829A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • G06F13/1668Details of memory controller
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • G06F13/1668Details of memory controller
    • G06F13/1684Details of memory controller using multiple buses
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • G06F13/1668Details of memory controller
    • G06F13/1689Synchronisation and timing concerns
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4022Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0634Configuration or reconfiguration of storage systems by changing the state or mode of one or more devices
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0016Inter-integrated circuit (I2C)

Definitions

  • the invention belongs to the technical field of data memory access control, and more particularly to a method and a control device for accessing a data memory by a control device in the presence of a bus conflict, a data of a burning fixture and a burning fixture.
  • a memory access method, and a data memory access method and system are particularly to a method and a control device for accessing a data memory by a control device in the presence of a bus conflict, a data of a burning fixture and a burning fixture.
  • TCON the mid- to high-end screen driver board
  • I2C and SPI interfaces When reading and writing data memory such as Flash, after power-on, TCON's SPI Master controller first downloads the configuration parameters from Flash. After downloading, it is always in Master mode. At this time, the SPI controller of the fixture is burned because The TCON SPI Master controller occupies the bus and cannot directly read and write to the Flash. Since TCON's I2C interface is in Slave mode, it can send instructions or data to TCON's I2C Slave through the programming fixture I2C Master. Then TCON receives the instruction or data from the I2C interface, and then reads the Flash through the SPI Master controller. Write operation.
  • the peripheral circuit is required to increase the bus switching control circuit (hereinafter referred to as Switch IC), which causes complicated circuit system design and affects the cost of the system; accessing the data memory through the current Master device as a transit is inefficient Is not conducive to the reading and writing of large-capacity data.
  • Switch IC bus switching control circuit
  • exemplary embodiments of the present invention provide a method and a device and system for implementing the method that are capable of simultaneously accessing data memory through two different buses without canceling the peripheral Switch IC.
  • a method of accessing a data storage by a control device comprising: receiving, by a first bus, a mode switching control command via a first interface of the control device, wherein The mode switching control command is for controlling to switch a second interface of the control device to a predetermined mode; switching the second interface of the control device to a predetermined mode according to the received mode switching control command, wherein the predetermined mode includes a mode and a second mode; wherein, in the case of switching the second interface to the first mode according to the mode switching control command, the other device connected to the second bus corresponding to the second interface is controlled by the control device via The second interface accesses the data memory through the second bus; in the case of switching the second interface to the second mode according to the mode switching control command, the other device directly accesses the data memory through the second bus without passing through the control device control.
  • the method may further include: generating state data corresponding to a current mode of the second interface according to a mode confirmation instruction received by the control device, so that the other device is based on the state data Confirm if the second interface has been switched to the predetermined mode.
  • the step of switching the second interface of the control device to the predetermined mode may include: starting the first control module corresponding to the first mode or corresponding to the second mode according to the mode switching control command a second control module, wherein when the first control module is activated, the second interface is in the first mode, and when the second control module is activated, the second interface is in the second mode, wherein, in the first mode,
  • the other device is capable of accessing the data memory through the second bus via the second interface under the control of the first control module, and in the second mode, the other device can access the data memory directly through the second bus without undergoing the control Control of the device.
  • the step of accessing the data memory through the second bus via the second interface may include receiving a write command and a data to be written about the data memory via the first interface of the control device via the first bus, Or a read command with respect to the data memory, and buffering the received command and data, wherein the step of accessing the data memory through the second bus via the second interface may further include: receiving the received write command and the data to be written or reading The command is converted to a cell that can be transmitted over the second bus And transmitting the converted command and data to the data memory through the second bus via the second interface.
  • the first interface may be an I2C interface and the first bus may be an I2C bus.
  • the second interface may be an SPI interface
  • the second bus may be an SPI bus
  • the first mode may be a Master mode
  • the second mode may be a Slave mode
  • control device may be TCON
  • other device may be a burning fixture
  • data storage may be Flash.
  • a control apparatus comprising: a receiving module configured to receive a mode switching control command via a first interface of a control device via a first bus, wherein the mode switching Controlling a command for controlling switching of the second interface of the control device to a predetermined mode, wherein the predetermined mode includes a first mode and a second mode; and the second interface control module is configured to switch the control command according to the mode
  • the second interface of the control device switches to a predetermined mode;
  • the second interface is configured to access a data storage connected to the control device via a second bus corresponding to the second interface, wherein the second interface is switched to the second interface
  • other devices connected to the second bus corresponding to the second interface can access the data memory through the second bus via the second interface, in the case where the second interface is switched to the second mode, Other devices are able to access the data memory directly through the second bus without having to be controlled by the control device.
  • the receiving module may be further configured to receive the mode confirmation instruction
  • the control device may further include: a mode confirmation module configured to generate the second interface according to the received mode confirmation instruction The current mode corresponds to state data so that the other device confirms whether the second interface has been switched to the predetermined mode based on the status data.
  • the second interface control module may include a first control module corresponding to the first mode and a second control module corresponding to the second mode, wherein the control device is activated according to the mode switching control command a first control module or a second control module, wherein when the first control module is activated, the second interface is in the first mode, and when the second control module is activated, the second interface is in the second mode, wherein In one mode, the other device can access the data memory through the second bus via the second interface under the control of the first control module, and in the second mode, the other device can access the data memory directly through the second bus without Controlled by the control device.
  • the receiving module may be further configured to pass the control via the first bus
  • the first interface of the device receives a write command and a data to be written about the data store, or a read command with respect to the data store
  • the control device further includes: a buffer configured to buffer the received Command and data; a format conversion module configured to convert the received write command and data or read command into a format transmittable over the second bus, wherein the second interface is further configurable to be converted by the second bus
  • the commands and data are sent to the data store.
  • the first interface may be an I2C interface and the first bus may be an I2C bus.
  • the second interface may be an SPI interface
  • the second bus may be an SPI bus
  • the first mode may be a Master mode
  • the second mode may be a Slave mode
  • control device may be a TCON
  • other device may be a burning fixture
  • data storage may be a Flash.
  • a programming jig comprising: a transmitting module configured to transmit a mode switching control command to a control via a first interface of a control device via a first bus
  • the apparatus wherein the mode switching control command is for switching a second interface of the control device to a predetermined mode, wherein the predetermined mode includes a first mode and a second mode
  • a data memory access module configured to switch control according to a mode
  • the data memory is accessed through the second bus via the second interface under the control of the control device; in the case of switching the second interface to the second mode according to the mode switching control command The data memory is accessed directly through the second bus without going through the control of the control device.
  • a method of accessing a data storage device comprising: transmitting a mode switching control command to a control device via a first interface of a control device via a first bus, wherein The mode switching control command is for switching a second interface of the control device to the predetermined mode, wherein the predetermined mode includes the first mode and the second mode; and when the second interface is switched to the first mode according to the mode switching control command And accessing the data memory through the second bus via the second interface under the control of the control device; in the case of switching the second interface to the second mode according to the mode switching control command, accessing the data memory directly through the second bus without going through Control of the control device.
  • a data storage access system comprising: a first bus and a second bus configured to perform inter-device communication; and other devices connected to the second bus And configured to transmit a mode switching control command to the control device via the first interface via the first interface of the control device, wherein the mode switching control command is for switching the second interface of the control device to the predetermined mode; the control device is configured Switching a second interface of the control device to a predetermined mode in accordance with the received mode switching control command, wherein the predetermined mode includes a first mode and a second mode; a data store configured to be enabled by the control device and the other Device access; wherein, in a case where the control device switches the second interface to the first mode according to the mode switching control command, the other device accesses the data memory through the second bus via the second interface under the control of the control device, and controls In the case where the device switches the second interface to the second mode according to the mode switching control command, the other device directly accesses the data memory through the second
  • a data memory access method comprising: transmitting, by a first bus, a mode switching control command to a control device via a first interface of a control device, wherein the mode switching control command is Switching the second interface of the control device to the predetermined mode; switching the second interface of the control device to the predetermined mode according to the mode switching control command, wherein the predetermined mode includes the first mode and the second mode; wherein, When the mode switching control command switches the second interface to the first mode, the other device connected to the second bus corresponding to the second interface accesses the data memory through the second bus via the second interface under the control of the control device; In the case of switching the second interface to the second mode according to the mode switching control command, the other device directly accesses the data memory through the second bus without going through the control of the control device.
  • FIG. 1 is a flowchart illustrating a method of accessing a data storage by a control device, according to an exemplary embodiment of the present invention
  • FIG. 2 is a schematic diagram showing a method of accessing a data storage by a control device according to an exemplary embodiment of the present invention
  • FIG. 3 is a block diagram showing a control device according to an exemplary embodiment of the present invention.
  • FIG. 4 is a flow chart showing a method of burning a jig access data memory according to an exemplary embodiment of the present invention
  • FIG. 5 is a block diagram showing a burning jig according to an exemplary embodiment of the present invention.
  • FIG. 6 is a schematic diagram showing a data storage access system and a data storage access method thereof according to an exemplary embodiment of the present invention.
  • FIG. 1 is a flowchart illustrating a method of accessing a data storage by a control device, according to an exemplary embodiment of the present invention.
  • the control device receives a mode switching control command from another device.
  • the other device may be any device capable of accessing the data memory connected to the control device to the same bus (for example, SPI bus or the like), for example, when the control device is TCON in the liquid crystal panel driving system, the other device
  • the device may be a burn-in jig, but it will be apparent to those skilled in the art that the control device and the other devices are not limited to the examples set forth herein, but may vary depending on the application scenario.
  • the mode switching control command may be any command for switching the second interface of the control device to the predetermined mode, and the mode switching control command may be preset by the user.
  • the user can set a corresponding mode switching control command to switch the second interface of the control device to the predetermined mode according to a predetermined transmission protocol between the control device and the other device.
  • the control device and the other device may be connected to a second bus corresponding to the second interface, wherein the second interface may be any bus interface, which may be a parallel bus interface or a serial bus interface.
  • the second interface may be an SPI interface, an I2C interface, etc.
  • the second bus is an SPI bus.
  • the predetermined mode refers to a mode of a second interface of the control device, and the predetermined mode may include a first mode and a second mode, wherein the first mode may be a Master mode, and the second mode may It is the Slave mode.
  • the second interface is an SPI interface
  • the first mode is the Master mode
  • the second mode is the Slave mode.
  • the corresponding predetermined mode may be set according to a specific application scenario, and the predetermined mode is not limited to the above two modes.
  • first and second are used only to distinguish one from the other, and not for the purpose of limitation, for example, “first mode” may be referred to as “second mode”, “first The second mode can also be referred to as the "first mode.”
  • the control device can receive a mode switching control command from the other device in various manners, for example, the control device can receive the mode switching control command via its first interface via the first bus.
  • the first interface may be any other interface of the control device that is capable of data communication other than the second interface, and the first bus may be a bus corresponding to the first interface.
  • the first interface may be an I2C interface, and the first bus may be an I2C bus, but exemplary embodiments of the present invention are not limited thereto.
  • the control device may switch the second interface of the control device to the predetermined mode according to the received mode switching control command in step S102.
  • the other device connected to the second bus corresponding to the second interface may be second under the control of the control device
  • the interface accesses the data memory through the second bus, and in the case of switching the second interface to the second mode according to the mode switching control command, in step S104, the other device can access the data memory directly through the second bus without going through the Control of the control device.
  • the data storage may be any type of data storage device such as Flash, EPROM, or the like.
  • the control device may respectively activate a first control module corresponding to the first mode or a second control module corresponding to the second mode in the control device according to the received mode switching control command. , thereby controlling the second interface to be in the corresponding mode.
  • the second interface when the first control module in the control device is activated, the second interface may be in the first mode, and when the second control module in the control device is activated, the second interface may be in the second mode, wherein, in the In one mode, the other device can access the data memory through the second bus via the second interface under the control of the first control module, and in the second mode, the other device can access the data memory directly through the second bus. There is no need to go through the control of the control device.
  • the step of accessing the data memory through the second bus via the second interface of the control device may include receiving a read command or a write command and data to be written with respect to the data memory and buffering the received command and data, for example, the control device may pass The first bus receives a read command or a write command and data to be written via a first interface of the control device, and can store the received command and data in a buffer of the control device.
  • the method of accessing the data memory may also convert the received write command and the data to be written or the read command into Transmitting the converted command and data to the data memory through the second bus via the second interface, thereby writing the data to be written to the data memory according to the write command or reading from the data memory according to the read command data.
  • data read from the data store can be buffered in the buffer of the control device so that other devices can read the data through other interfaces of the control device (eg, the first interface, etc.).
  • the other device needs to further confirm whether the second interface of the control device has been switched to the predetermined mode, thereby ensuring that the second interface of the control device operates in the desired operating mode for subsequent Data storage access.
  • the method of accessing the data storage by the control device may further comprise the step of generating state data corresponding to the current mode of the second interface.
  • state data corresponding to a current mode of the second interface may be generated according to a mode confirmation command received by the control device, so that the other device confirms, according to the state data, whether the second interface has been switched to a predetermined mode.
  • the mode confirmation command may be an instruction sent by the other device according to a predetermined protocol with the control device, and the status data may also be preset according to a predetermined protocol between the device and the control device. Determining data corresponding to the mode of the second interface, thereby facilitating the slave control of the other device When the device receives the status data, the mode of the second interface indicated by the status data is determined according to a predetermined protocol with the control device.
  • the control device may be TCON
  • the other device may be a burning fixture
  • the data storage may be Flash
  • An interface may be an I2C bus
  • a first bus may be an I2C bus
  • a second interface may be an SPI interface
  • a second bus may be an SPI bus
  • a first mode may be a Master mode
  • a second mode may be a Slave mode.
  • FIG. 2 is a schematic diagram showing a method of accessing a data storage by a control device, according to an exemplary embodiment of the present invention.
  • the programming jig can send the mode switching command to the TCON via the I2C interface through the I2C bus, where The mode switch command is used to switch the TCON SPI interface to Master mode or Slave mode.
  • the programming jig can send different mode switching commands to the TCON according to a predetermined transmission protocol with the TCON to control the TCON to switch between the Master mode and the Slave mode.
  • the Master module included in the SPI controller can be started, thereby switching the SPI interface to Master mode, when TCON receives an instruction from the programming fixture.
  • the Slave module included in the SPI controller can be started to switch the SPI interface to the Slave mode.
  • the programming fixture can confirm whether the SPI interface of the TCON has been switched to the Master mode and the Slave mode by sending an acknowledgement instruction, for example, The programming fixture can send the instruction 0xC2 to the TCON through the I2C interface through the I2C bus, and then read the status data corresponding to the mode of the current SPI interface generated by the TCON. If the read status data is 0xA1, the SPI control can be determined. The device has been switched to Master mode, and if the read status data is not 0xA1, the SPI controller is still in Slave mode. The above confirmation operation ensures that the SPI interface can be in the desired operating mode for the next step. It should be understood that the above-described mode switching control instruction and mode confirmation instruction are merely examples, and exemplary embodiments of the present invention are not limited thereto.
  • TCON can pass I2C via the I2C bus.
  • the interface receives the write command and the data to be written or the read command from the programming fixture, and caches the received command and data in the buffer.
  • the TCON can convert the received commands and data into an SPI bus format and send it to the Flash, thereby based on the received write command.
  • TCON can cache the data read from the Flash in the buffer, after which the programming fixture can read data from the TCON buffer through the I2C interface.
  • this method of reading Flash through the I2C bus to the SPI bus is inefficient, and can generally be used when the amount of data read and written is small.
  • the programming fixture can switch the SPI interface of the control device to the slave mode by sending a mode switching control command to directly access the data memory through the SPI bus, thereby greatly improving the data access speed.
  • the I2C bus only needs to receive the mode switching control command sent by the programming fixture to switch the TCON SPI interface to the Slave mode, and no longer performs the read and write data operation.
  • FIG. 1 A method of accessing a data storage by a control device according to an exemplary embodiment of the present invention has been described in detail above with reference to FIGS. 1 and 2.
  • FIG. 1 A configuration of a control device according to an exemplary embodiment of the present invention will be described below with reference to FIG.
  • the control device 100 can include a receiving module 110, a second interface control module 130, and a second interface 140.
  • the control device 100 may further include a buffer 120, a first interface 150, a mode confirmation module 160, and a format conversion module 170.
  • the control device 100 may further include other modules, such as a clock control module, other interfaces, and an interface control module, in addition to the above modules.
  • the interface module 110 is configured to receive a mode switching control command for controlling switching of the second interface 140 of the control device 100 to a predetermined mode through the first bus.
  • the receiving module 110 may receive a mode switching control command via the first interface 150 of the control device 100 through the first bus.
  • the predetermined mode may include a first mode and a second mode.
  • the first mode may be the Master mode and the second mode may be the Slave mode.
  • the receiving module 110 can also be configured to receive a write command and a data to be written about the data memory or a read command with respect to the data memory via the first interface 150 of the control device 100 through the first bus.
  • the first interface may be I2C.
  • the interface, the first bus may be an I2C bus corresponding to the first interface.
  • the buffer 120 included in the control device 100 can be used to buffer the received commands and data
  • the format conversion module according to an exemplary embodiment of the present invention. 170 can be used to convert the received write command and data or read command into a format that can be transmitted over the second bus corresponding to the second interface 140.
  • the second interface 140 can also be used to send the converted commands and data to the data storage through the second bus.
  • the second interface control module 130 is configured to switch the second interface of the control device to a predetermined mode according to the mode switching control command.
  • the second interface control module 130 may include a first control module 131 and a second control module 132.
  • the first control module 131 when the first control module 131 is activated, the second interface 140 may be in the first mode, and when the second control module 132 is activated, the second interface 140 may be in the second mode.
  • the other device in the first mode, is capable of accessing the data storage via the second bus via the second interface 140 under the control of the first control module 131, in the second mode, Other devices can access the data memory directly through the second bus without being controlled by the control device 100.
  • the first control module 131 when the second interface 140 is an SPI interface, the first control module 131 may be a Master module corresponding to the Master mode, and the second control module 132 may be a Slave module corresponding to the Slave mode.
  • the second interface 140 is for accessing a data storage connected to the control device via a second bus corresponding to the second interface 140.
  • a second bus corresponding to the second interface 140 According to an exemplary embodiment of the present invention, in a case where the second interface 140 is switched to the first mode, other devices connected to the second bus corresponding to the second interface 140 can be accessed through the second bus via the second interface 140.
  • the data memory in the case where the second interface 140 is switched to the second mode, the other device can access the data memory directly through the second bus without being controlled by the control device 100.
  • control device 100 may further include a mode confirmation module 160.
  • the mode confirmation module 160 may generate state data corresponding to the current mode of the second interface 140 according to the mode confirmation instruction received from the other device, and return the state data, so that other devices may confirm the second interface according to the state data. Whether 140 has been switched to the predetermined mode.
  • other devices connected to the same bus as the control device 100 may be burn-in jigs.
  • the other device and the data memory access method of the other device will be described below by taking a burning fixture as an example.
  • FIG. 4 is a diagram showing a method of burning a jig access data memory according to an exemplary embodiment of the present invention. flow chart.
  • step S401 the programming fixture can be passed through the first interface via the first interface of the control device.
  • the mode switching control command is sent to the control device to switch the second interface of the control device to the predetermined mode.
  • the predetermined mode includes the first mode and the second mode.
  • the programming jig can access the data memory via the second interface of the control device under the control of the control device, and In the case where the second interface of the control device is switched to the second mode according to the mode switching control command, in step S403, the programming jig can directly access the data memory through the second bus without being controlled by the control device.
  • the programming fixture can also send a mode confirmation command to the control device, and receive, from the control device, state data corresponding to the current mode of the second interface generated by the control device according to the mode confirmation command, thereby, according to the received state data. It is confirmed whether the second interface of the control device has been switched to the predetermined mode.
  • FIG. 5 is a block diagram showing a burning jig according to an exemplary embodiment of the present invention.
  • the burning jig 200 may include a transmitting module 210 and a data storage access module 220.
  • the programming fixture 200 can also include other modules, such as various interfaces (eg, an I2C interface, an SPI interface, etc.) and corresponding interface control modules.
  • the sending module 210 may send a mode switching control command to the control device via the first interface of the control device via the first bus.
  • the mode switching control command may be used to switch the second interface of the control device to a predetermined mode, which may include the first mode and the second mode.
  • the data memory accessing module 220 can access the data memory through the second bus via the second interface under the control of the control device in the case of switching the second interface to the first mode according to the mode switching control command, and can be controlled according to the mode switching In the case of a command to switch the second interface to the second mode, the data memory is accessed directly through the second bus without going through the control of the control device.
  • FIG. 6 is a schematic diagram showing a data storage access system and a data storage access method thereof according to an exemplary embodiment of the present invention.
  • a data storage access system 400 may include a first bus and a second bus, a control device 100 and other devices 200 connected to the second bus, and a data storage 300.
  • other devices 200 can pass The mode switching control command is transmitted to the control device 100 via the first interface of the control device to switch the second interface of the control device 100 to the predetermined mode.
  • the control device 100 can switch the second interface of the control device 100 to the predetermined mode according to the received mode switching control command.
  • the predetermined mode may include a first mode and a second mode.
  • the data store 300 can be accessed by the control device and the other devices.
  • the other device 200 may access the data through the second bus via the second interface under the control of the control device 100.
  • the memory 300 while the control device 100 switches its second interface to the second mode according to the mode switching control command, the other device 200 can directly access the data memory through the second bus without going through the control of the control device.
  • the method, apparatus, and system for accessing a data storage can effectively solve a situation in which access data memory collides due to more than one bus master on the same bus, and can provide simultaneous compatibility with two.
  • the data memory access mode of the bus provides convenience for fast reading and writing of large-capacity data.
  • the peripheral Switch IC is saved on the hardware, which simplifies the circuit design and reduces the cost.
  • the method according to the present invention can be recorded in a computer readable medium comprising program instructions for performing various operations implemented by a computer.
  • Examples of computer readable media include magnetic media (such as hard disks, floppy disks, and magnetic tapes); optical media (such as CD-ROMs and DVDs); magneto-optical media (e.g., optical disks); and hardware specially configured for storing and executing program instructions A device (eg, read only memory (ROM), random access memory (RAM), flash memory, etc.).
  • Examples of program instructions include, for example, machine code produced by a compiler and files containing higher level code that can be executed by a computer using an interpreter.
  • each of the modules in the control device may be implemented as a hardware component or a software component, and may be combined as needed.
  • those skilled in the art can implement the various modules using, for example, a field programmable gate array (FPGA) or an application specific integrated circuit (ASIC), depending on the processing performed by the various modules defined.
  • FPGA field programmable gate array
  • ASIC application specific integrated circuit

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Mathematical Physics (AREA)
  • Computer Hardware Design (AREA)
  • Information Transfer Systems (AREA)
  • Programmable Controllers (AREA)
  • Bus Control (AREA)

Abstract

一种数据存储器访问方法、装置和系统。所述方法包括:通过第一总线经由控制装置的第一接口接收模式切换控制命令(S101),其中,所述模式切换控制命令用于控制将控制装置的第二接口切换到预定模式;根据接收到的模式切换控制命令,将控制装置的第二接口切换到预定模式(S102),其中,所述预定模式包括第一模式和第二模式;其中,在根据模式切换控制命令将第二接口切换到第一模式的情况下,连接到与第二接口相应的第二总线上的其他装置在控制装置的控制下经由第二接口通过第二总线访问数据存储器(S103);在根据模式切换控制命令将第二接口切换到第二模式的情况下,所述其他装置直接通过第二总线访问数据存储器而无需经过所述控制装置的控制(S104)。

Description

数据存储器访问方法、装置和系统 技术领域
本发明属于数据存储器访问控制技术领域,更具体地说,涉及一种在存在总线冲突的情况下通过控制装置访问数据存储器的方法和控制装置、一种烧录治具和烧录治具的数据存储器访问方法、以及一种数据存储器访问方法和系统。
背景技术
近年来,随着人们对数据存储器访问速度的追求,当同一总线(诸如,SPI总线等)上连接有多个设备时,如果已经有设备作为Master设备占用该总线访问数据存储器,则其他设备若想访问该数据存储器,多经由对外围总线切换控制电路的控制,通过切断总线上当前的Master设备与数据存储器之间的通信来作为该总线上新的Master设备实现对数据存储器的访问,或者通过其他类型的总线控制当前的Master设备从而经由总线上当前的Master设备作为中转来访问数据存储器。
例如,中高端屏驱动板(TCON)都同时带有I2C和SPI接口。在对Flash等数据存储器进行读写操作时,由于在上电后,TCON的SPI Master控制器首先从Flash下载配置参数,下载完后一直处于Master模式,此时烧录治具的SPI控制器因为TCON SPI Master控制器占用总线的原因而无法直接对Flash进行读写操作。由于TCON的I2C接口为Slave模式,因此可通过烧录治具I2C Master对TCON的I2C Slave发送指令或数据,然后TCON从I2C接口接收到指令或数据后,再通过SPI Master控制器对Flash执行读写操作。
然而上述方式存在以下问题:由于需要外围电路增加总线切换控制电路(以下,称为Switch IC)而造成电路系统设计复杂,影响系统的成本;通过当前的Master设备作为中转来访问数据存储器效率较低,不利于大容量数据的读写。
发明内容
为克服现有技术的不足,本发明的示例性实施例提供一种能够在取消外围Switch IC的情况下同时兼容通过两种不同的总线访问数据存储器的方法以及实现该方法的装置和系统。
根据本发明的示例性实施例的一方面,提供了一种通过控制装置来访问数据存储器的方法,所述方法包括:通过第一总线经由控制装置的第一接口接收模式切换控制命令,其中,所述模式切换控制命令用于控制将控制装置的第二接口切换到预定模式;根据接收到的模式切换控制命令,将控制装置的第二接口切换到预定模式,其中,所述预定模式包括第一模式和第二模式;其中,在根据模式切换控制命令将第二接口切换到第一模式的情况下,连接到与第二接口相应的第二总线上的其他装置在控制装置的控制下经由第二接口通过第二总线访问数据存储器;在根据模式切换控制命令将第二接口切换到第二模式的情况下,所述其他装置直接通过第二总线访问数据存储器而无需经过所述控制装置的控制。
根据本发明的一方面,所述方法还可包括:根据由控制装置接收到的模式确认指令来产生与第二接口的当前模式相应的状态数据,以便于所述其他装置根据所述状态数据来确认第二接口是否已被切换到预定模式。
根据本发明的一方面,将控制装置的第二接口切换到预定模式的步骤可包括:根据模式切换控制命令,启动控制装置中的与第一模式相应的第一控制模块或与第二模式相应的第二控制模块,其中,当第一控制模块被启动时,第二接口处于第一模式,当第二控制模块被启动时,第二接口处于第二模式,其中,在第一模式下,所述其他装置能够在第一控制模块的控制下经由第二接口通过第二总线访问数据存储器,在第二模式下,所述其他装置能够直接通过第二总线访问数据存储器而无需经过所述控制装置的控制。
根据本发明的一方面,经由第二接口通过第二总线访问数据存储器的步骤可包括:通过第一总线经由所述控制装置的第一接口接收关于所述数据存储器的写命令和待写数据、或者关于所述数据存储器的读命令,并缓存接收到的命令和数据,其中,经由第二接口通过第二总线访问数据存储器的步骤还可包括:将接收到的写命令和待写数据或者读命令转换为能够通过第二总线传输的格 式,并经由第二接口通过第二总线将转换后的命令和数据发送到数据存储器。
根据本发明的一方面,第一接口可以是I2C接口,第一总线可以是I2C总线。
根据本发明的一方面,第二接口可以是SPI接口,第二总线可以是SPI总线,第一模式可以是Master模式,第二模式可以是Slave模式。
根据本发明的一方面,所述控制装置可以是TCON,所述其他装置可以是烧录治具,所述数据存储器可以是Flash。
根据本发明的另一方面,提供了一种控制装置,所述控制装置包括:接收模块,被配置为通过第一总线经由控制装置的第一接口接收模式切换控制命令,其中,所述模式切换控制命令用于控制将所述控制装置的第二接口切换到预定模式,其中,所述预定模式包括第一模式和第二模式;第二接口控制模块,被配置为根据模式切换控制命令将所述控制装置的第二接口切换到预定模式;第二接口,被配置为通过与第二接口相应的第二总线访问与所述控制装置连接的数据存储器,其中,在第二接口被切换到第一模式的情况下,连接到与第二接口相应的第二总线上的其他装置能够经由第二接口通过第二总线访问数据存储器,在第二接口被切换到第二模式的情况下,所述其他装置能够直接通过第二总线访问数据存储器而无需经过所述控制装置的控制。
根据本发明的另一方面,接收模块还可被配置为接收模式确认指令,其中,所述控制装置还可包括:模式确认模块,被配置为根据接收到的模式确认指令来产生与第二接口的当前模式相应的状态数据,以便于所述其他装置根据所述状态数据来确认第二接口是否已被切换到预定模式。
根据本发明的另一方面,第二接口控制模块可包括与第一模式相应的第一控制模块以及与第二模式相应的第二控制模块,其中,所述控制装置根据模式切换控制命令来启动第一控制模块或第二控制模块,其中,当第一控制模块被启动时,第二接口处于第一模式,当第二控制模块被启动时,第二接口处于第二模式,其中,在第一模式下,所述其他装置能够在第一控制模块的控制下经由第二接口通过第二总线访问数据存储器,在第二模式下,所述其他装置能够直接通过第二总线访问数据存储器而无需经过所述控制装置的控制。
根据本发明的另一方面,接收模块还可被配置为通过第一总线经由所述控 制装置的第一接口接收关于所述数据存储器的写命令和待写数据、或者关于所述数据存储器的读命令,其中,所述控制装置还可包括:缓存器,被配置为缓存接收到的命令和数据;格式转换模块,被配置为将接收到的写命令和数据或者读命令转换为能够通过第二总线传输的格式,其中,第二接口还可被配置为通过第二总线将转换后的命令和数据发送到数据存储器。
根据本发明的另一方面,第一接口可以是I2C接口,第一总线可以是I2C总线。
根据本发明的另一方面,第二接口可以是SPI接口,第二总线可以是SPI总线,第一模式可以是Master模式,第二模式可以是Slave模式。
根据本发明的另一方面,所述控制装置可以是TCON,所述其他装置可以是烧录治具,所述数据存储器可以是Flash。
根据本发明的另一方面,提供了一种烧录治具,所述烧录治具包括:发送模块,被配置为通过第一总线经由控制装置的第一接口将模式切换控制命令发送到控制装置,其中,模式切换控制命令用于将控制装置的第二接口切换到预定模式,其中,所述预定模式包括第一模式和第二模式;数据存储器访问模块,被配置为在根据模式切换控制命令将第二接口切换到第一模式的情况下,在控制装置的控制下经由第二接口通过第二总线访问数据存储器;在根据模式切换控制命令将第二接口切换到第二模式的情况下,直接通过第二总线访问数据存储器而无需经过所述控制装置的控制。
根据本发明的另一方面,提供了一种烧录治具访问数据存储器的方法,所述方法包括:通过第一总线经由控制装置的第一接口将模式切换控制命令发送到控制装置,其中,模式切换控制命令用于将控制装置的第二接口切换到预定模式,其中,所述预定模式包括第一模式和第二模式;在根据模式切换控制命令将第二接口切换到第一模式的情况下,在控制装置的控制下经由第二接口通过第二总线访问数据存储器;在根据模式切换控制命令将第二接口切换到第二模式的情况下,直接通过第二总线访问数据存储器而无需经过所述控制装置的控制。
根据本发明的另一方面,提供了一种数据存储器访问系统,所述系统包括:第一总线和第二总线,被配置为进行装置间通信;其他装置,连接到第二总线 并且被配置为通过第一总线经由控制装置的第一接口将模式切换控制命令发送到控制装置,其中,模式切换控制命令用于将控制装置的第二接口切换到预定模式;控制装置,被配置为根据接收到的模式切换控制命令将控制装置的第二接口切换到预定模式,其中,所述预定模式包括第一模式和第二模式;数据存储器,被配置为能够由控制装置和所述其他装置访问;其中,在控制装置根据模式切换控制命令将第二接口切换到第一模式的情况下,所述其他装置在控制装置的控制下经由第二接口通过第二总线访问数据存储器,在控制装置根据模式切换控制命令将第二接口切换到第二模式的情况下,所述其他装置直接通过第二总线访问数据存储器而无需经过所述控制装置的控制。
根据本发明的另一方面,提供了一种数据存储器访问方法,所述方法包括:通过第一总线经由控制装置的第一接口将模式切换控制命令发送到控制装置,其中,模式切换控制命令用于将控制装置的第二接口切换到预定模式;根据模式切换控制命令,将控制装置的第二接口切换到预定模式,其中,所述预定模式包括第一模式和第二模式;其中,在根据模式切换控制命令将第二接口切换到第一模式的情况下,连接到与第二接口相应的第二总线上的其他装置在控制装置的控制下经由第二接口通过第二总线访问数据存储器;在根据模式切换控制命令将第二接口切换到第二模式的情况下,所述其他装置直接通过第二总线访问数据存储器而无需经过所述控制装置的控制。
将在接下来的描述中部分阐述本发明另外的方面和/或优点,还有一部分通过描述将是清楚的,或者可以经过本发明的实施而得知。
附图说明
通过下面结合附图进行的对实施例的描述,本发明的上述和/或其它目的和优点将会变得更加清楚,其中:
图1是示出根据本发明示例性实施例的通过控制装置访问数据存储器的方法的流程图;
图2是示出根据本发明示例性实施例的通过控制装置访问数据存储器的方法的示意图;
图3是示出根据本发明示例性实施例的控制装置的框图;
图4是示出根据本发明示例性实施例的烧录治具访问数据存储器的方法的流程图;
图5是示出根据本发明示例性实施例的烧录治具的框图;
图6是示出根据本发明示例性实施例的数据存储器访问系统及其数据存储器访问方法的示意图。
具体实施方式
现将详细描述本发明的示例性实施例,所述实施例的示例在附图中示出,其中,相同的标号指示相同的部分。以下将通过参照附图来说明所述实施例,以便解释本发明。
应理解,在本发明中,控制装置可包括具有至少两种总线接口且能够访问数据存储器的任何控制装置,例如,屏驱动板(TCON)以及各种类型的单片机控制器(诸如,ARM等)等。以下将结合图1和图2来说明根据本发明示例性实施例的通过控制装置访问数据存储器的方法。
图1是示出根据本发明示例性实施例的通过控制装置访问数据存储器的方法的流程图。
如图1所示,首先,在步骤S101,控制装置从其他装置接收模式切换控制命令。这里,所述其他装置可以是与控制装置连接到同一总线(例如,SPI总线等)上的能够访问数据存储器的任何装置,例如,当控制装置是液晶屏驱动系统中的TCON时,所述其他装置可以是烧录治具,但是本领域技术人员应清楚的是,所述控制装置和所述其他装置均不限于这里所阐述的示例,而是可根据应用场景的不同而改变。
在示例性实施例中,模式切换控制命令可以是用于将控制装置的第二接口切换到预定模式的任何命令,并且所述模式切换控制命令可由用户预先设定。例如,用户可根据在控制装置与所述其他装置之间预定的传输协议来设置相应的模式切换控制命令以将控制装置的第二接口切换到预定模式。这里,控制装置和所述其他装置可连接到与第二接口相应的第二总线上,其中,第二接口可以是任何总线接口,既可以是并行总线接口也可以是串行总线接口。作为示例, 第二接口可以是SPI接口、I2C接口等,当第二接口是SPI接口时,第二总线是SPI总线。
根据示例性实施例的所述预定模式是指控制装置的第二接口的模式,并且所述预定模式可包括第一模式和第二模式,其中,第一模式可以是Master模式,第二模式可以是Slave模式。例如,当第二接口是SPI接口时,第一模式是Master模式,第二模式是Slave模式。然而,应理解的是,可根据具体的应用场景来设置相应的预定模式,所述预定模式不限于上述两种模式。在下文中,术语“第一”和“第二”仅用于区分一者与另一者,而不是为了限制的目的,例如,“第一模式”可被称为“第二模式”,“第二模式”也可被称为“第一模式”。
另外,控制装置可通过各种方式从所述其他装置接收模式切换控制命令,例如,控制装置可通过第一总线经由它的第一接口接收模式切换控制命令。这里,第一接口可以是控制装置的除了第二接口之外的可进行数据通信的任何其他接口,第一总线可以是与第一接口相应的总线。作为示例,第一接口可以是I2C接口,第一总线可以是I2C总线,但本发明的示例性实施例不限于此。
当在步骤101控制装置接收到模式切换控制命令时,在步骤S102,控制装置可根据接收到的模式切换控制命令,将控制装置的第二接口切换到所述预定模式。这里,在根据模式切换控制命令将第二接口切换到第一模式的情况下,在步骤S103,连接到与第二接口相应的第二总线上的其他装置可在控制装置的控制下经由第二接口通过第二总线访问数据存储器,而在根据模式切换控制命令将第二接口切换到第二模式的情况下,在步骤S104,所述其他装置可直接通过第二总线访问数据存储器而无需经过所述控制装置的控制。这里,所述数据存储器可以是任何类型的数据存储装置,例如,Flash、EPROM等。
具体而言,在步骤S102,所述控制装置可根据接收到的模式切换控制命令来相应地启动控制装置中的与第一模式相应的第一控制模块或与第二模式相应的第二控制模块,从而控制第二接口处于相应的模式。这里,当控制装置中的第一控制模块被启动时,第二接口可处于第一模式,当控制装置中的第二控制模块被启动时,第二接口可处于第二模式,其中,在第一模式下,所述其他装置能够在第一控制模块的控制下经由第二接口通过第二总线访问数据存储器,而在第二模式下,所述其他装置能够直接通过第二总线访问数据存储器而 无需经过所述控制装置的控制。
由此可见,根据本发明示例性实施例的访问数据存储器的方法解决了总线上多于一个Master设备而导致访问数据存储器出现冲突的状况,并且可通过模式切换控制来提供同时兼容两种不同总线的数据存储器访问方式,一种方式是通过将控制装置的第二接口切换到第一模式而通过第二总线转第一总线的方式来访问数据存储器,另一方式则是通过将控制装置的第二接口切换到第二模式而直接通过第一总线访问数据存储器的方式。实际中,可根据读写的数据量大小以及具体的应用场景来选择上述两种方式之一,特别的,第二种方式为快速读写数据存储器提供了便利。
具体地,经由控制装置的第二接口通过第二总线访问数据存储器的步骤可包括接收关于数据存储器的读命令或者写命令和待写数据并缓存接收到的命令和数据,例如,控制装置可通过第一总线经由控制装置的第一接口接收读命令或者写命令和待写数据,并可将接收到的命令和数据存储在控制装置的缓存器中。在此情况下,由于不同总线所支持的数据格式不同,因此,根据本发明示例性实施例的访问数据存储器的方法还可根据需要将接收到的写命令和待写数据或者读命令转换为能够通过第二总线传输的格式,并经由第二接口通过第二总线将转换后的命令和数据发送到数据存储器,从而根据写命令将待写数据写入数据存储器或者根据读命令从数据存储器读取数据。此外,可将从数据存储器读取的数据缓存在控制装置的缓存器中,以便于其他装置通过控制装置的其他接口(例如,第一接口等)读取该数据。
此外,为了确保模式切换的有效性,所述其他装置需要进一步确认控制装置的第二接口是否已被切换到预定模式,从而确保控制装置的第二接口工作在期望的工作模式下,以便进行后续的数据存储器访问。为此,优选地,根据本发明示例性实施例的通过控制装置访问数据存储器的方法还可包括产生与第二接口的当前模式相应的状态数据的步骤。具体地,可根据由控制装置接收到的模式确认指令来产生与第二接口的当前模式相应的状态数据,以便于所述其他装置根据该状态数据来确认第二接口是否已被切换到预定模式。这里,所述模式确认指令可以是由所述其他装置根据与控制装置之间的预定协议发送的指令,所述状态数据也可以是根据所述其他装置根据与控制装置之间的预定协议预先设定的与第二接口的模式相应的数据,从而便于所述其他装置在从控制 装置接收到状态数据时,根据与控制装置之间的预定协议来判断该状态数据所指示的第二接口的模式。
在根据本发明示例性实施例的通过控制装置访问数据存储器的方法中,作为示例,所述控制装置可以是TCON,所述其他装置可以是烧录治具,所述数据存储器可以是Flash,第一接口可以是I2C总线,第一总线可以是I2C总线,第二接口可以是SPI接口,第二总线可以是SPI总线,第一模式可以是Master模式,第二模式可以是Slave模式。以下,将以此作为示例来参照图2详细描述根据本发明示例性实施例的通过控制装置访问数据存储器的方法。
图2是示出根据本发明示例性实施例的通过控制装置访问数据存储器的方法的示意图。
参照图2,当烧录治具由于TCON的SPI控制器占用SPI总线而无法直接对Flash进行读写操作时,烧录治具可通过I2C总线经由I2C接口将模式切换命令发送到TCON,其中,模式切换命令用于将TCON的SPI接口切换到Master模式或Slave模式。具体地,烧录治具可根据与TCON之间的预定传输协议将不同的模式切换命令发送到TCON以控制TCON在Master模式和Slave模式之间切换。例如,作为示例,当TCON从烧录治具接收到指令0xC1、0xA1时,可启动SPI控制器中包括的Master模块,从而使SPI接口切换到Master模式,当TCON从烧录治具接收到指令0xC1、0xA0时,可启动SPI控制器中包括的Slave模块,从而将SPI接口切换到Slave模式。
优选地,为了确保模式切换的有效性,烧录治具在通过发送上述指令切换SPI接口的模式之后,可通过发送确认指令来确认TCON的SPI接口是否已被切换到Master模式和Slave模式,例如,烧录治具可通过I2C总线经由I2C接口发送指令0xC2给TCON,然后读取TCON产生的与当前SPI接口的模式相应的状态数据,如果读取到的状态数据为0xA1,则可判定SPI控制器已经切换为Master模式,而如果读取到的状态数据不是0xA1,则说明SPI控制器仍处于Slave模式。上述确认操作可确保SPI接口能够处于期望的工作模式下,以便进行下一步的工作。应理解的是,上述模式切换控制指令以及模式确认指令仅是示例,本发明示例性实施例不限于此。
在SPI接口被切换到Master模式的情况下,TCON可通过I2C总线经由I2C 接口从烧录治具接收写命令和待写数据或者读命令,并将接收到的命令和数据缓存在缓存器中。此外,为了使得通过I2C总线接收的命令和数据可通过SPI总线被传输到数据存储器,TCON可将接收到的命令和数据转换为SPI总线格式并将其发送至Flash,从而根据接收到的写命令将待写数据写入Flash或者根据接收到的读命令来从Flash读取数据。随后,TCON可将从Flash读取的数据缓存在缓存器中,之后烧录治具可通过I2C接口从TCON的缓存器读取数据。然而,这种通过I2C总线转SPI总线的方式来读取Flash的方法效率较低,一般可在读写的数据量较小时使用。当所需读写的数据量较大时,烧录治具可通过发送模式切换控制命令将控制装置的SPI接口切换到Slave模式,来直接通过SPI总线访问数据存储器,从而可大大提高数据访问速度。在这种情况下,I2C总线只需要接收烧录治具发送的用于将TCON的SPI接口切换到Slave模式的模式切换控制命令,而不再执行读写数据操作。
以上已经参照图1和图2详细描述了根据本发明示例性实施例的通过控制装置访问数据存储器的方法。下面将参照图3描述根据本发明示例性实施例的控制装置的配置。
如图3所示,控制装置100可包括接收模块110、第二接口控制模块130和第二接口140。另外,控制装置100还可包括缓存器120、第一接口150、模式确认模块160以及格式转换模块170。应理解,除上述模块之外,根据本发明示例性实施例的控制装置100还可包括其他模块,诸如,时钟控制模块、其他接口以及接口控制模块等。
接口模块110用于通过第一总线接收模式切换控制命令,所述模式切换控制命令用于控制将控制装置100的第二接口140切换到预定模式。作为示例,接收模块110可通过第一总线经由控制装置100的第一接口150接收模式切换控制命令。如上参照图1所述,所述预定模式可包括第一模式和第二模式。作为示例,当第二接口140是SPI接口时,第一模式可以是Master模式,第二模式可以是Slave模式。此外,接收模块110还可用于通过第一总线经由控制装置100的第一接口150接收关于数据存储器的写命令和待写数据、或者关于数据存储器的读命令,作为示例,第一接口可以是I2C接口,第一总线可以是与第一接口相应的I2C总线。在这种情况下,控制装置100中包括的缓存器120可用于缓存接收到的命令和数据,根据本发明示例性实施例的格式转换模块 170可用于将接收到的写命令和数据或者读命令转换为能够通过与第二接口140相应的第二总线传输的格式。此时,第二接口140还可用于通过第二总线将转换后的命令和数据发送到数据存储器。
第二接口控制模块130用于根据模式切换控制命令将所述控制装置的第二接口切换到预定模式。根据本发明的示例性实施例,第二接口控制模块130可包括第一控制模块131和第二控制模块132。具体而言,当第一控制模块131被启动时,第二接口140可处于第一模式,当第二控制模块132被启动时,第二接口140可处于第二模式。根据本发明的示例性实施例,在第一模式下,所述其他装置能够在第一控制模块131的控制下经由第二接口140通过第二总线访问数据存储器,在第二模式下,所述其他装置能够直接通过第二总线访问数据存储器而无需经过控制装置100的控制。作为示例,当第二接口140是SPI接口时,第一控制模块131可以是与Master模式相应的Master模块,第二控制模块132可以是与Slave模式相应的Slave模块。
第二接口140用于通过与第二接口140相应的第二总线访问与所述控制装置连接的数据存储器。根据本发明示例性实施例,在第二接口140被切换到第一模式的情况下,连接到与第二接口140相应的第二总线上的其他装置能够经由第二接口140通过第二总线访问数据存储器,在第二接口140被切换到第二模式的情况下,所述其他装置能够直接通过第二总线访问数据存储器而无需经过控制装置100的控制。
另外,为了便于后续工作,其他装置可能需要进一步确认控制装置100的第二接口140是否已被切换到预定模式。因而,根据本发明示例性实施例的控制装置100还可包括模式确认模块160。模式确认模块160可根据从其他装置接收到的模式确认指令来产生与第二接口140的当前模式相应的状态数据,并返回该状态数据,从而其他装置可根据所述状态数据来确认第二接口140是否已被切换到预定模式。
根据本发明的示例性实施例,与控制装置100连接到同一总线上的其他装置可以是烧录治具。下面以烧录治具为例说明所述其他装置以及所述其他装置的数据存储器访问方法。
图4是示出根据本发明示例性实施例的烧录治具访问数据存储器的方法的 流程图。
参照图4,在烧录治具期望访问数据存储器而此时访问数据存储器的总线被控制装置占用的情况下,在步骤S401,烧录治具可通过第一总线经由控制装置的第一接口将模式切换控制命令发送到控制装置以将控制装置的第二接口切换到预定模式。如上所述,预定模式包括第一模式和第二模式。在控制装置的第二接口根据模式切换控制命令被切换到第一模式的情况下,在步骤S402,烧录治具可在控制装置的控制下经由控制装置的第二接口访问数据存储器,而在控制装置的第二接口根据模式切换控制命令被切换到第二模式的情况下,在步骤S403,烧录治具可直接通过第二总线访问数据存储器而无需经过控制装置的控制。可选地,烧录治具还可向控制装置发送模式确认指令,并从控制装置接收控制装置根据模式确认指令产生的与第二接口当前的模式相应的状态数据,从而根据接收到的状态数据确认控制装置的第二接口是否已被切换到预定模式。
图5是示出根据本发明示例性实施例的烧录治具的框图。
参照图5,烧录治具200可包括发送模块210和数据存储器访问模块220。此外,烧录治具200还可包括其他模块,诸如,各种接口(例如,I2C接口、SPI接口等)以及相应的接口控制模块。具体地,发送模块210可通过第一总线经由控制装置的第一接口将模式切换控制命令发送到控制装置。这里,模式切换控制命令可用于将控制装置的第二接口切换到预定模式,所述预定模式可包括第一模式和第二模式。数据存储器访问模块220可在根据模式切换控制命令将第二接口切换到第一模式的情况下,在控制装置的控制下经由第二接口通过第二总线访问数据存储器,并且可在根据模式切换控制命令将第二接口切换到第二模式的情况下,直接通过第二总线访问数据存储器而无需经过所述控制装置的控制。
图6是示出根据本发明示例性实施例的数据存储器访问系统及其数据存储器访问方法的示意图。
参照图6,根据本发明示例性实施例的数据存储器访问系统400可包括第一总线和第二总线、连接到第二总线的控制装置100和其他装置200以及数据存储器300。当其他装置200期望访问数据存储器300时,其他装置200可通 过第一总线经由控制装置的第一接口将模式切换控制命令发送到控制装置100以将控制装置100的第二接口切换到预定模式。随后,控制装置100可根据接收到的模式切换控制命令将控制装置100的第二接口切换到预定模式。根据示例性实施例,所述预定模式可包括第一模式和第二模式。数据存储器300能够由控制装置和所述其他装置访问。根据示例性实施例,在控制装置100根据模式切换控制命令将其第二接口切换到第一模式的情况下,其他装置200可在控制装置100的控制下经由第二接口通过第二总线访问数据存储器300,而在控制装置100根据模式切换控制命令将其第二接口切换到第二模式的情况下,其他装置200可直接通过第二总线访问数据存储器而无需经过所述控制装置的控制。
如上所述,根据本发明示例性实施例的访问数据存储器的方法、装置和系统可有效地解决同一总线上多于一个总线Master而导致的访问数据存储器出现冲突的状况,并且能够提供同时兼容两种总线的数据存储器访问方式,为快速读写大容量数据提供了方便。此外,在硬件上节省了外围Switch IC,简化了电路设计,降低了成本。
根据本发明的方法可被记录在包括执行由计算机实现的各种操作的程序指令的计算机可读介质中。计算机可读介质的示例包括磁介质(例如硬盘、软盘和磁带);光学介质(例如CD-ROM和DVD);磁光介质(例如,光盘);以及特别配制用于存储并执行程序指令的硬件装置(例如,只读存储器(ROM)、随机存取存储器(RAM)、闪存等)。程序指令的示例包括例如由编译器产生的机器码和包含可使用解释器由计算机执行的高级代码的文件。
此外,根据本发明的示例性实施例的控制装置中的各个模块可被实现为硬件组件或软件组件,并且可根据需要进行组合。另外,本领域技术人员可根据限定的各个模块所执行的处理,使用例如现场可编程门阵列(FPGA)或专用集成电路(ASIC)来实现各个模块。
尽管已经参照本发明的示例性实施例具体显示和描述了本发明,但是本领域的技术人员应该理解,在不脱离由权利要求限定的本发明的精神和范围的情况下,可以对其进行形式和细节上的各种改变。

Claims (14)

  1. 一种通过控制装置来访问数据存储器的方法,所述方法包括:
    通过第一总线经由控制装置的第一接口接收模式切换控制命令,其中,所述模式切换控制命令用于控制将控制装置的第二接口切换到预定模式;
    根据接收到的模式切换控制命令,将控制装置的第二接口切换到预定模式,其中,所述预定模式包括第一模式和第二模式;
    其中,在根据模式切换控制命令将第二接口切换到第一模式的情况下,连接到与第二接口相应的第二总线上的其他装置在控制装置的控制下经由第二接口通过第二总线访问数据存储器;在根据模式切换控制命令将第二接口切换到第二模式的情况下,所述其他装置直接通过第二总线访问数据存储器而无需经过所述控制装置的控制。
  2. 如权利要求1所述的方法,其中,所述方法还包括:根据由控制装置接收到的模式确认指令来产生与第二接口的当前模式相应的状态数据,以便于所述其他装置根据所述状态数据来确认第二接口是否已被切换到预定模式。
  3. 如权利要求1所述的方法,其中,将控制装置的第二接口切换到预定模式的步骤包括:根据模式切换控制命令,启动控制装置中的与第一模式相应的第一控制模块或与第二模式相应的第二控制模块,其中,当第一控制模块被启动时,第二接口处于第一模式,当第二控制模块被启动时,第二接口处于第二模式,其中,在第一模式下,所述其他装置能够在第一控制模块的控制下经由第二接口通过第二总线访问数据存储器,在第二模式下,所述其他装置能够直接通过第二总线访问数据存储器而无需经过所述控制装置的控制。
  4. 如权利要求1所述的方法,其中,经由第二接口通过第二总线访问数据存储器的步骤包括:通过第一总线经由所述控制装置的第一接口接收关于所述数据存储器的写命令和待写数据、或者关于所述数据存储器的读命令,并缓存接收到的命令和数据,
    其中,经由第二接口通过第二总线访问数据存储器的步骤还包括:将接收 到的写命令和待写数据或者读命令转换为能够通过第二总线传输的格式,并经由第二接口通过第二总线将转换后的命令和数据发送到数据存储器。
  5. 如权利要求1所述的方法,其中,第一接口是I2C接口,第一总线是I2C总线;第二接口是SPI接口,第二总线是SPI总线,第一模式是Master模式,第二模式是Slave模式;所述控制装置是屏驱动板,所述其他装置是烧录治具,所述数据存储器是Flash。
  6. 一种控制装置,所述控制装置包括:
    接收模块,被配置为通过第一总线经由所述控制装置的第一接口接收模式切换控制命令,其中,所述模式切换控制命令用于控制将所述控制装置的第二接口切换到预定模式,其中,所述预定模式包括第一模式和第二模式;
    第二接口控制模块,被配置为根据模式切换控制命令将所述控制装置的第二接口切换到预定模式;
    第二接口,被配置为通过与第二接口相应的第二总线访问与所述控制装置连接的数据存储器,
    其中,在第二接口被切换到第一模式的情况下,连接到与第二接口相应的第二总线上的其他装置能够经由第二接口通过第二总线访问数据存储器,在第二接口被切换到第二模式的情况下,所述其他装置能够直接通过第二总线访问数据存储器而无需经过所述控制装置的控制。
  7. 如权利要求6所述的控制装置,其中,接收模块还被配置为接收模式确认指令,其中,所述控制装置还包括:模式确认模块,被配置为根据接收到的模式确认指令来产生与第二接口的当前模式相应的状态数据,以便于所述其他装置根据所述状态数据来确认第二接口是否已被切换到预定模式。
  8. 如权利要求6所述的控制装置,其中,第二接口控制模块包括与第一模式相应的第一控制模块以及与第二模式相应的第二控制模块,其中,所述控制装置根据模式切换控制命令来启动第一控制模块或第二控制模块,其中,当第一控制模块被启动时,第二接口处于第一模式,当第二控制模块被启动时,第二接口处于第二模式,其中,在第一模式下,所述其他装置能够在第一控制 模块的控制下经由第二接口通过第二总线访问数据存储器,在第二模式下,所述其他装置能够直接通过第二总线访问数据存储器而无需经过所述控制装置的控制。
  9. 如权利要求6所述的控制装置,其中,接收模块还被配置为通过第一总线经由所述控制装置的第一接口接收关于所述数据存储器的写命令和待写数据、或者关于所述数据存储器的读命令,其中,所述控制装置还包括:缓存器,被配置为缓存接收到的命令和数据;格式转换模块,被配置为将接收到的写命令和数据或者读命令转换为能够通过第二总线传输的格式,其中,第二接口还被配置为通过第二总线将转换后的命令和数据发送到数据存储器。
  10. 如权利要求6所述的控制装置,其中,第一接口是I2C接口,第一总线是I2C总线;第二接口是SPI接口,第二总线是SPI总线,第一模式是Master模式,第二模式是Slave模式;所述控制装置是屏驱动板,所述其他装置是烧录治具,所述数据存储器是Flash。
  11. 一种烧录治具,包括:
    发送模块,被配置为通过第一总线经由控制装置的第一接口将模式切换控制命令发送到控制装置,其中,模式切换控制命令用于将控制装置的第二接口切换到预定模式,其中,所述预定模式包括第一模式和第二模式;
    数据存储器访问模块,被配置为在根据模式切换控制命令将第二接口切换到第一模式的情况下,在控制装置的控制下经由第二接口通过第二总线访问数据存储器;在根据模式切换控制命令将第二接口切换到第二模式的情况下,直接通过第二总线访问数据存储器而无需经过所述控制装置的控制。
  12. 一种烧录治具访问数据存储器的方法,所述方法包括:
    通过第一总线经由控制装置的第一接口将模式切换控制命令发送到控制装置,其中,模式切换控制命令用于将控制装置的第二接口切换到预定模式,其中,所述预定模式包括第一模式和第二模式;
    在根据模式切换控制命令将第二接口切换到第一模式的情况下,在控制装置的控制下经由第二接口通过第二总线访问数据存储器;
    在根据模式切换控制命令将第二接口切换到第二模式的情况下,直接通过第二总线访问数据存储器而无需经过所述控制装置的控制。
  13. 一种数据存储器访问系统,所述系统包括:
    第一总线和第二总线,被配置为进行装置间通信;
    其他装置,连接到第二总线并且被配置为通过第一总线经由控制装置的第一接口将模式切换控制命令发送到控制装置,其中,模式切换控制命令用于将控制装置的第二接口切换到预定模式;
    控制装置,被配置为根据接收到的模式切换控制命令将控制装置的第二接口切换到预定模式,其中,所述预定模式包括第一模式和第二模式;
    数据存储器,被配置为能够由控制装置和所述其他装置访问;
    其中,在控制装置根据模式切换控制命令将第二接口切换到第一模式的情况下,所述其他装置在控制装置的控制下经由第二接口通过第二总线访问数据存储器,在控制装置根据模式切换控制命令将第二接口切换到第二模式的情况下,所述其他装置直接通过第二总线访问数据存储器而无需经过所述控制装置的控制。
  14. 一种数据存储器访问方法,所述方法包括:
    通过第一总线经由控制装置的第一接口将模式切换控制命令发送到控制装置,其中,模式切换控制命令用于将控制装置的第二接口切换到预定模式;
    根据模式切换控制命令,将控制装置的第二接口切换到预定模式,其中,所述预定模式包括第一模式和第二模式;
    其中,在根据模式切换控制命令将第二接口切换到第一模式的情况下,连接到与第二接口相应的第二总线上的其他装置在控制装置的控制下经由第二接口通过第二总线访问数据存储器;在根据模式切换控制命令将第二接口切换到第二模式的情况下,所述其他装置直接通过第二总线访问数据存储器而无需经过所述控制装置的控制。
PCT/CN2016/089736 2016-05-23 2016-07-12 数据存储器访问方法、装置和系统 Ceased WO2017201829A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/128,972 US10268606B2 (en) 2016-05-23 2016-07-12 Method, device and system for switching access modes for data storage device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610346269.4 2016-05-23
CN201610346269.4A CN105955897B (zh) 2016-05-23 2016-05-23 数据存储器访问方法、装置和系统

Publications (1)

Publication Number Publication Date
WO2017201829A1 true WO2017201829A1 (zh) 2017-11-30

Family

ID=56909487

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/089736 Ceased WO2017201829A1 (zh) 2016-05-23 2016-07-12 数据存储器访问方法、装置和系统

Country Status (3)

Country Link
US (1) US10268606B2 (zh)
CN (1) CN105955897B (zh)
WO (1) WO2017201829A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108132760B (zh) * 2018-01-19 2021-03-12 湖南国科微电子股份有限公司 一种提升ssd读性能的方法及系统
CN110767188B (zh) * 2019-10-12 2022-05-31 Tcl华星光电技术有限公司 显示面板驱动系统
CN112650448B (zh) * 2020-12-21 2024-04-05 中国航天科工集团八五一一研究所 一种基于fpga的大数据量存储文件管理方法
US12147697B2 (en) * 2022-01-18 2024-11-19 Texas Instruments Incorporated Methods and apparatus to characterize memory
TWI812194B (zh) * 2022-04-27 2023-08-11 凌通科技股份有限公司 序列周邊介面相容性擴展切換方法與使用其之嵌入式系統
US12283332B2 (en) 2022-11-22 2025-04-22 Texas Instruments Incorporated Memory BIST circuit and method
TWI885730B (zh) * 2024-02-02 2025-06-01 和碩聯合科技股份有限公司 電子系統以及用於電子系統的操作方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101770442A (zh) * 2008-12-30 2010-07-07 易视芯科技(北京)有限公司 具有多个外设接口的数据交互系统和方法
CN101814058A (zh) * 2010-03-17 2010-08-25 苏州国芯科技有限公司 通用存储装置
US20130159593A1 (en) * 2011-12-20 2013-06-20 Acer Incorporated Apparatus, system, and method for analyzing and managing data flow of interface apapratuses
CN105224488A (zh) * 2015-10-20 2016-01-06 中国航天科技集团公司第九研究院第七七一研究所 一种pci总线控制器及其控制方法

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4266655B2 (ja) * 2003-02-12 2009-05-20 キヤノン株式会社 記憶装置および制御方法
JP2005339323A (ja) * 2004-05-28 2005-12-08 Hitachi Ltd ストレージシステム、計算機システムおよびインタフェースモジュール
JP4424392B2 (ja) * 2007-08-30 2010-03-03 ブラザー工業株式会社 デバイス、およびファイル伝送システム
US20140163716A1 (en) * 2012-12-10 2014-06-12 Skymedi Corporation Bridge device, automated production system and method thereof for storage device
US9665298B2 (en) * 2015-04-21 2017-05-30 Sandisk Technologies Llc Method and system to reduce power usage on an I/O interface

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101770442A (zh) * 2008-12-30 2010-07-07 易视芯科技(北京)有限公司 具有多个外设接口的数据交互系统和方法
CN101814058A (zh) * 2010-03-17 2010-08-25 苏州国芯科技有限公司 通用存储装置
US20130159593A1 (en) * 2011-12-20 2013-06-20 Acer Incorporated Apparatus, system, and method for analyzing and managing data flow of interface apapratuses
CN105224488A (zh) * 2015-10-20 2016-01-06 中国航天科技集团公司第九研究院第七七一研究所 一种pci总线控制器及其控制方法

Also Published As

Publication number Publication date
US10268606B2 (en) 2019-04-23
CN105955897A (zh) 2016-09-21
CN105955897B (zh) 2018-01-16
US20180173651A1 (en) 2018-06-21

Similar Documents

Publication Publication Date Title
WO2017201829A1 (zh) 数据存储器访问方法、装置和系统
US9652177B2 (en) Memory controller including host command queue and method of operating the same
JP4841559B2 (ja) マルチチップシステム及びそれのデータ伝送方法
US9696942B2 (en) Accessing remote storage devices using a local bus protocol
JP2018523205A (ja) ソフトプロセッサベースの画像信号ソースおよび画像信号処理方法
US20120324147A1 (en) Read While Write Method for Serial Peripheral Interface Flash Memory
JP2014059876A (ja) 不揮発性メモリカードを制御するホスト、それを含むシステム及びその動作方法
JP2013510373A (ja) インターフェースクロックマネージメント
CN106168934A (zh) 一种数据传输方法及装置
WO2014202003A1 (zh) 数据存储系统的数据传输方法、装置及系统
KR101113188B1 (ko) 동작 속도가 가변되는 비휘발성 메모리 장치 및 이를 위한 상보신호 제어 방법
CN114996184A (zh) 兼容实现spi或i2c从机的接口模块及数据传输方法
CN116661825A (zh) 一种实现在线升级的系统
JP2013235464A (ja) 計算機及び計算機における入出力制御方法
CN114691013A (zh) Ddr中寄存器配置参数的处理装置、方法及设备
TWI393010B (zh) 控制存儲系統的方法及其存儲系統
CN116204121A (zh) 一种闪存控制系统及其闪存设备
CN102693199A (zh) Idma接口及其控制方法
WO2011043007A1 (ja) データ処理システム
CN101290564B (zh) 数据传输方法、系统及cpu接口控制器
CN110399322A (zh) 一种数据传输方法及乒乓dma架构
JP2008015876A (ja) データアクセスシステム、データアクセス装置、データアクセス集積回路及びデータアクセス方法
CN207133818U (zh) 扩展主机控制器
CN118567568B (zh) 一种显示设备中闪存连续读模式配置系统及配置方法
CN103164369A (zh) 数据传输的控制方法及装置

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 15128972

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16902817

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16902817

Country of ref document: EP

Kind code of ref document: A1