CN105808492B - A kind of information processing method and Serial Peripheral Interface master controller - Google Patents

A kind of information processing method and Serial Peripheral Interface master controller Download PDF

Info

Publication number
CN105808492B
CN105808492B CN201410838461.6A CN201410838461A CN105808492B CN 105808492 B CN105808492 B CN 105808492B CN 201410838461 A CN201410838461 A CN 201410838461A CN 105808492 B CN105808492 B CN 105808492B
Authority
CN
China
Prior art keywords
serial peripheral
master controller
control information
peripheral interface
slave device
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.)
Active
Application number
CN201410838461.6A
Other languages
Chinese (zh)
Other versions
CN105808492A (en
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201410838461.6A priority Critical patent/CN105808492B/en
Publication of CN105808492A publication Critical patent/CN105808492A/en
Application granted granted Critical
Publication of CN105808492B publication Critical patent/CN105808492B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Selective Calling Equipment (AREA)

Abstract

The present invention provides a kind of information processing method and SPI master controller, and wherein information processing method includes: to obtain the first control information;Based on the first control information, the first command information in the first register is obtained;First command information is sent to SPI from equipment;Based on the first control information and the first command information, SPI master controller and SPI are controlled from equipment and carries out data interaction.Therefore the SPI being connected with SPI master controller for any one is from equipment, SPI master controller can control information from equipment corresponding first based on coupled SPI, obtain the first command information, and data interaction is carried out from equipment based on the first control information and the first command information control SPI master controller and SPI, one SPI master controller is shared by multiple SPI from equipment, the versatility of SPI master controller is improved.

Description

Information processing method and serial peripheral interface main controller
Technical Field
The present invention relates to the technical field of an SPI (Serial Peripheral interface) device, and in particular, to an information processing method and an SPI master controller.
Background
The SPI is a serial interface commonly used, and because it is simple and convenient to use and takes up hardware resources less, many equipment all support the SPI, through SPI bus transmission. The most typical application of the SPI interface is that an SPI main controller is connected between a microcontroller and SPI slave equipment so as to complete bidirectional transmission of data between the microcontroller and the SPI slave equipment, one SPI main controller can be connected with a plurality of SPI slave equipment through the SPI interface, and one SPI slave equipment is enabled through an SPI selection signal (ss).
Currently, there are many SPI slave devices supporting an SPI interface, such as an SPI flash and various sensors, but since SPI is an open protocol, the timing of the SPI interfaces supported by different SPI slave devices is different. Taking fingerprint sensors as an example, command formats and lengths supported by each fingerprint sensor are different, so that the number of SPI clock cycles required by each fingerprint sensor for transmitting data is different, and requirements for receiving data and transmitting data are different, so that the SPI master controller is difficult to use universally.
When the SPI master controller supports a plurality of SPI slave devices, then a plurality of SPI master controllers need to be designed, which not only increases the difficulty of design, but also causes waste of hardware resources. Therefore, a universal SPI master controller is needed, so that different SPI slave devices share one SPI master controller.
Disclosure of Invention
In view of this, the present invention provides an information processing method and an SPI master controller, which are used to enable a plurality of SPI slave devices to share one SPI master controller, thereby improving the versatility of the SPI master controller. The technical scheme is as follows:
the invention provides an information processing method, which is applied to a main controller of a serial peripheral device interface and comprises the following steps:
acquiring first control information, wherein the first control information corresponds to a serial peripheral interface slave device and is used for controlling communication between a serial peripheral interface master controller and the serial peripheral interface slave device, and the serial peripheral interface slave device is connected with the serial peripheral interface master controller;
acquiring first instruction information in a first register based on the first control information;
sending the first instruction information to the serial peripheral device interface slave device;
and controlling the serial peripheral equipment interface master controller to perform data interaction with the serial peripheral equipment interface slave equipment based on the first control information and the first instruction information.
Preferably, before the obtaining the first instruction information in the first register based on the first control information, the method further comprises:
generating a clock signal corresponding to the serial peripheral interface slave device based on the first control information;
sending the clock signal to the serial peripheral interface slave device.
Preferably, the controlling the serial peripheral device interface master controller to perform data interaction with the serial peripheral device interface slave device based on the first control information and the first instruction information includes:
and selecting a transition edge of the clock signal based on the first control information and the first instruction information, and controlling the serial peripheral device interface master controller to perform data interaction with the serial peripheral device interface slave device under the selected transition edge, wherein the transition edge is a rising edge or a falling edge of the clock signal.
Preferably, the controlling the serial peripheral device interface master controller to perform data interaction with the serial peripheral device interface slave device based on the first control information and the first instruction information includes:
determining whether there is feedback information for the first instruction information based on the first control information;
when the feedback information is determined to exist, detecting whether the feedback information of the serial peripheral device interface slave device is received or not, and obtaining a first detection result;
when the first detection result shows that the feedback information of the serial peripheral interface slave equipment is received, controlling the serial peripheral interface main controller to perform data interaction with the serial peripheral interface slave equipment based on the first control information;
and when the feedback information is determined not to exist, controlling the serial peripheral interface master controller to perform data interaction with the serial peripheral interface slave device based on the first control information.
Preferably, the controlling the serial peripheral device interface master controller to perform data interaction with the serial peripheral device interface slave device based on the first control information and the first instruction information includes:
according to the first control information, judging whether the serial peripheral interface master controller needs to transmit data to the serial peripheral interface slave equipment and/or read data from the serial peripheral interface slave equipment, and obtaining a first judgment result;
and controlling the serial peripheral device interface master controller to perform data interaction with the serial peripheral device interface slave device based on the first judgment result, the first control information and the first instruction information.
Preferably, when the first determination result indicates that the serial peripheral interface master controller does not need to transmit data to the serial peripheral interface slave device and read data from the serial peripheral interface slave device, the serial peripheral interface master controller is controlled to enter a first state;
detecting whether the first control information or the first register is updated or not in the first state;
when the first control information is detected to be updated, acquiring the updated first control information, and controlling the serial peripheral interface master controller to perform data interaction with the serial peripheral interface slave device based on the acquired updated first control information;
when the first register is detected to be updated, second instruction information in the first register is obtained based on the first control information, the second instruction information is sent to the serial peripheral interface slave device as the first instruction information, and the step of controlling the serial peripheral interface master controller to perform data interaction with the serial peripheral interface slave device based on the first control information and the first instruction information is executed.
Preferably, after the controlling the serial peripheral device interface master controller to perform data interaction with the serial peripheral device interface slave device based on the first control information and the first instruction information, the method further includes:
based on the first control information, judging whether the data volume of the serial peripheral interface master controller and the serial peripheral interface slave device for data interaction meets a preset condition or not, and obtaining a second judgment result;
and when the second judgment result shows that the data size meets the preset condition, controlling the serial peripheral interface main controller to enter a first state.
The present invention also provides a serial peripheral interface host controller, comprising:
a first obtaining unit, configured to obtain first control information, where the first control information corresponds to a serial peripheral interface slave device, and is used to control communication between the serial peripheral interface master controller and the serial peripheral interface slave device, and the serial peripheral interface slave device is connected to the serial peripheral interface master controller;
the second acquisition unit is used for acquiring the first instruction information in the first register based on the first control information;
a sending unit, configured to send the first instruction information to the serial peripheral device interface slave device;
and the control unit is used for controlling the serial peripheral interface master controller to perform data interaction with the serial peripheral interface slave equipment based on the first control information and the first instruction information.
Preferably, the serial peripheral interface host controller further comprises:
a signal generating unit configured to generate a clock signal corresponding to the serial peripheral interface slave device based on the first control information;
the sending unit is further configured to send the clock signal to the serial peripheral interface slave device.
Preferably, the controlling unit controls the serial peripheral device interface master controller to perform data interaction with the serial peripheral device interface slave device based on the first control information and the first instruction information, and includes:
and selecting a transition edge of the clock signal based on the first control information and the first instruction information, and controlling the serial peripheral device interface master controller to perform data interaction with the serial peripheral device interface slave device under the selected transition edge, wherein the transition edge is a rising edge or a falling edge of the clock signal.
Preferably, the control unit includes: the device comprises a determining subunit, a detecting subunit, a first control subunit and a second control subunit; wherein,
the determining subunit is configured to determine, based on the first control information, whether there is feedback information for the first instruction information;
the detecting subunit is configured to detect, when it is determined that the feedback information exists, whether the feedback information of the serial peripheral device interface slave device is received, and obtain a first detection result;
the first control subunit is configured to, when the first detection result indicates that the feedback information of the serial peripheral device interface slave device is received, control the serial peripheral device interface master controller to perform data interaction with the serial peripheral device interface slave device based on the first control information;
and the second control subunit is configured to control the serial peripheral interface master controller to perform data interaction with the serial peripheral interface slave device based on the first control information when it is determined that the feedback information is absent.
Preferably, the control unit comprises: a judgment subunit and a control subunit; wherein,
the judging subunit is configured to judge, according to the first control information, whether the serial peripheral interface master controller needs to transmit data to the serial peripheral interface slave device and/or read data from the serial peripheral interface slave device, to obtain a first judgment result;
and the control subunit is configured to control the serial peripheral device interface master controller to perform data interaction with the serial peripheral device interface slave device based on the first determination result, the first control information, and the first instruction information.
Preferably, the control subunit comprises:
a state control subunit, configured to control the serial peripheral interface master controller to enter a first state when the first determination result indicates that the serial peripheral interface master controller does not need to transmit data to the serial peripheral interface slave device and read data from the serial peripheral interface slave device;
a detecting subunit, configured to detect whether the first control information or the first register is updated in the first state, and trigger the second obtaining unit to obtain, based on the first control information, second instruction information in the first register when the first register is detected to be updated, where the second instruction information is used as the first instruction information;
and the acquisition subunit is configured to, when it is detected that the first control information is updated, acquire the updated first control information, and trigger the control subunit to control the serial peripheral interface master controller to perform data interaction with the serial peripheral interface slave device based on the acquired updated first control information.
Preferably, the serial peripheral interface host controller further comprises:
the data judgment unit is used for judging whether the data volume of the data interaction between the serial peripheral interface master controller and the serial peripheral interface slave equipment meets a preset condition or not based on the first control information to obtain a second judgment result;
and the state control unit is used for controlling the serial peripheral device interface main controller to enter a first state when the second judgment result shows that the data size meets a preset condition.
In the invention, the SPI main controller can acquire first control information corresponding to the SPI slave equipment through the information processing method, acquires first instruction information in a first register based on the first control information, and controls the SPI main controller to perform data interaction with the SPI slave equipment based on the first control information and the first instruction information after the first instruction information is sent to the serial peripheral equipment interface slave equipment. Therefore, for any SPI slave device connected with the SPI master controller, the SPI master controller can acquire first command information based on first control information corresponding to the SPI slave device connected with the SPI master controller, and control the SPI master controller to perform data interaction with the SPI slave device based on the first control information and the first command information, so that the SPI master controller can be shared by a plurality of SPI slave devices, and the universality of the SPI master controller is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a first flowchart of an information processing method according to an embodiment of the present invention;
FIG. 2 is a second flowchart of an information processing method according to an embodiment of the present invention;
FIG. 3 is a flow chart of data interaction in an information processing method according to an embodiment of the present invention;
FIG. 4 is another flow chart of data interaction in the information processing method according to the embodiment of the present invention;
FIG. 5 is a flowchart illustrating data interaction in an information processing method according to an embodiment of the present invention;
FIG. 6 is a third flowchart of an information processing method according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating a first structure of an information processing apparatus according to an embodiment of the present invention;
FIG. 8 is a diagram illustrating a second structure of an information processing apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a control unit in an information processing apparatus according to an embodiment of the present invention;
fig. 10 is a schematic diagram of another structure of a control unit in the information processing apparatus according to the embodiment of the present invention;
FIG. 11 is a schematic structural diagram of a control subunit in the information processing apparatus according to the embodiment of the present invention;
fig. 12 is a schematic diagram of a third structure of an information processing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a first flowchart of an improved information processing method according to an embodiment of the present invention is shown, which is applied to an SPI master controller and is used to describe a control process of the SPI master controller on any one SPI slave device to improve the universality of the SPI master controller. The information processing method shown in fig. 1 may include the steps of:
101: and acquiring first control information, wherein the first control information corresponds to the SPI slave equipment and is used for controlling the communication between the SPI master controller and the SPI slave equipment, and the SPI slave equipment is connected with the SPI master controller.
In the embodiment of the present invention, the first control information includes various fields used when the SPI master controller communicates with the SPI slave device, for example, fields including a command format, the number of commands, the number of transmission data, and the SPI clock, and may be recorded in the control register, as shown in table 1.
TABLE 1 field Table in first control information
data_cnt cmd_cnt start response write read cpha cpol
Wherein, data _ cnt: indicating the number of spi data transmission bits.
cmd _ cnt: indicating the number of spi command bits.
And (3) start: enabling spi transfer, skipping spi command writes directly into data transfer in the case of idle state.
response: indicating that a response is received from the slave device.
write: and instructing the main controller to write data to the slave device.
reading: and instructing the main controller to read data from the slave.
The alpha: indicating the spi clock phase.
cpol: indicating the spi clock polarity.
The value of above-mentioned these fields can be according to SPI slave unit's parameter requirement write in control register in advance, and SPI master controller can obtain the first control information of SPI slave unit that current and SPI master controller communicate of writing in advance from control register when communicating with a certain SPI slave unit like this. When the first control information is acquired, the first control information of the SPI slave device currently communicating with the SPI master controller needs to be found from the plurality of first control information, so the control register, in addition to recording the first control information, also allocates a unique identifier to each control information, so as to find the first control information of the SPI slave device currently communicating with the SPI master controller from the plurality of first control information through the unique identifier.
Of course, the values of the fields can also be written into the control register in real time when the SPI master controller communicates with a certain SPI slave device, and the control register only records the first control information of one SPI slave device each time, so that when the SPI master controller communicates with a certain SPI slave device, the first control information acquired from the control register is the first control information of the SPI slave device currently communicating with the SPI master controller.
102: based on the first control information, first instruction information in a first register is acquired. At present, communication between the SPI master controller and the SPI slave device includes a command cycle and a data transmission cycle, where the command cycle is mainly used to transmit a command between the SPI master controller and the SPI slave device, and determines whether to enter the data transmission cycle according to the transmitted command and the first control information, and the data transmission cycle is used to transmit data between the SPI master controller and the SPI slave device.
In the embodiment of the present invention, the first instruction information obtained from the first register carries command content transmitted between the SPI master controller and the SPI slave device.
103: and sending the first instruction information to the SPI slave equipment.
104: and controlling the SPI main controller to perform data interaction with the SPI slave equipment based on the first control information and the first instruction information. After the first command message is sent to the SPI slave device, whether feedback information of the SPI slave device is received or not is further determined, and whether a data transmission cycle is entered or not is determined according to the determination result.
According to the technical scheme, the first control information corresponds to the SPI slave device, the first command information acquired based on the first control information also corresponds to the SPI slave device, and the SPI master controller and the SPI slave device are controlled to perform data interaction through the first control information and the first command information corresponding to the SPI slave device, so that the data interaction can meet the requirements of the SPI slave device.
Referring to fig. 2, a second flowchart of an information processing method according to an embodiment of the present invention is shown, which can also be applied to an SPI master controller, and includes the following steps:
201: and acquiring first control information, wherein the first control information corresponds to the SPI slave equipment and is used for controlling the communication between the SPI master controller and the SPI slave equipment, and the SPI slave equipment is connected with the SPI master controller. For the description and the obtaining process of the first control information, reference may be made to step 101, and a description of this embodiment of the present invention is not provided.
202: based on the first control information, a clock signal corresponding to the SPI slave device is generated. The clock signal is used for controlling the time when the SPI master controller and the SPI slave device perform data interaction, for example, when the rising edge of the clock signal arrives, the SPI master controller and the SPI slave device start data interaction.
203: the clock signal is sent to the SPI slave.
204: based on the first control information, first instruction information in a first register is acquired. At present, communication between the SPI master controller and the SPI slave device includes a command cycle and a data transmission cycle, where the command cycle is mainly used to transmit a command between the SPI master controller and the SPI slave device, and whether the SPI master controller and the SPI slave device enter the data transmission cycle is determined according to the transmitted command and the first control information, and the data transmission cycle is used to transmit data between the SPI master controller and the SPI slave device, so that the command content transmitted between the SPI master controller and the SPI slave device is carried by the first command information acquired from the first register.
205: and sending the first instruction information to the SPI slave equipment.
206: and selecting a jumping edge of the clock signal based on the first control information and the first instruction information, controlling the SPI master controller to perform data interaction with the SPI slave equipment under the selected jumping edge, and enabling the jumping edge to be a rising edge or a falling edge of the clock signal. Therefore, when the clock signal reaches a rising edge or a falling edge, the SPI main controller is controlled to perform data interaction with the SPI slave equipment based on the first control information and the first command information.
And the selection of the hop edge may be selected based on two fields of pha and cpol in the first control information, for example: if cpol is 0, the idle state of the clock signal is low level, and the selected transition edge is a rising edge at the moment; if cpol is 1, the idle state of the clock signal is high, and the selected transition edge is a falling edge. And pha is used to indicate that data is sampled at the fourth transition edge. If pha is 0, sampling data at the first transition edge of the clock signal; if pha is 1, data is sampled on the second transition edge of the clock signal.
Through the technical scheme, the SPI master controller is controlled to perform data interaction with the SPI slave equipment under the selected hopping edge, so that the clock requirements of the SPI slave equipment during data transmission at each time can be met through interaction of both sides, and the universality of the SPI master controller is further improved.
As mentioned above, the communication between the SPI master controller and the SPI slave device currently includes a command cycle and a data transmission cycle, and how to control the data interaction between the SPI master controller and the SPI slave device based on the first control information and the first command information is described in the following. Please refer to fig. 3, which shows a data interaction process between the SPI master controller and the SPI slave device during a command cycle in the information processing method according to the embodiment of the present invention, and the data interaction process may include the following steps:
301: based on the first control information, it is determined whether there is feedback information for the first instruction information. The feedback information aiming at the first instruction information is used for indicating whether the SPI slave device needs to feed back to the SPI master controller after the first instruction information is sent to the SPI slave device.
In the embodiment of the present invention, the bit number of the command content carried by the first instruction information is determined by cmd _ cnt in the first control information. Whether feedback information aiming at the first instruction information exists or not can be determined by judging the response field, when the value of the response field is 1, the feedback information aiming at the first instruction information is shown, the feedback information of the SPI slave device is received immediately after the first instruction information is sent to the SPI slave device, and whether the feedback information of the SPI slave device is received or not needs to be continuously detected to determine whether a data transmission period is entered or not. When the value of the response field is 0, it indicates that there is no feedback information for the first instruction information, and after the first instruction information is sent to the SPI slave device, the SPI slave device does not send the feedback information of the SPI slave device or sends the feedback information of the SPI slave device after a certain time.
302: when the feedback information is determined, whether the feedback information of the SPI slave equipment is received or not is detected, and a first detection result is obtained.
303: and when the first detection result shows that the feedback information of the SPI slave equipment is received, controlling the SPI master controller to perform data interaction with the SPI slave equipment based on the first control information. After the feedback information of the SPI slave equipment is received, a data transmission period can be entered according to the values of the write field and the read field in the first control information, and the SPI master controller is controlled to perform data interaction with the SPI slave equipment according to the values of the write field and the read field.
For example: when the value of the write field is 1, controlling the SPI master controller to transmit data to the SPI slave equipment; and when the value of the read field is 1, controlling the SPI master controller to read data from the SPI slave equipment. And whether the data volume size of the SPI master controller for carrying out data interaction with the SPI slave equipment meets the preset condition is judged, and when the data volume size meets the preset condition, the SPI master controller is controlled to enter an idle state to continuously wait for next first control information and first instruction information.
The process of judging whether the data volume of the data interaction between the SPI master controller and the SPI slave equipment meets the preset conditions can be as follows: and when the value of the data _ cnt reaches a preset value, the data quantity of the SPI master controller interacting the data with the SPI slave equipment meets a preset condition. In the embodiment of the invention, the initial value of the data _ cnt is 0, and the preset numerical value is used for indicating the maximum data volume of the data interaction between the SPI master controller and the SPI slave device.
And further, when data interaction is carried out, a jump edge of a clock signal generated based on the first control information can be selected according to values of two fields, namely the pha field and the cpol field in the first control information, and the SPI master controller and the SPI slave device are controlled to carry out data interaction under the jump edge.
304: and when no feedback information is determined, controlling the SPI master controller to perform data interaction with the SPI slave equipment based on the first control information.
And when no feedback information is determined, entering a data transmission period according to the values of the write field and the read field in the first control information, so as to control the SPI main controller to perform data interaction with the SPI slave device according to the values of the write field and the read field.
For example: when the value of the write field is 1, controlling the SPI master controller to transmit data to the SPI slave equipment; and when the value of the read field is 1, controlling the SPI master controller to read data from the SPI slave equipment. And when the values of the write field and the read field are both 0, controlling the SPI master controller and the SPI slave equipment to enter an idle state and waiting for acquiring next first instruction information.
Referring to fig. 4, it shows a data interaction process between the SPI master controller and the SPI slave device during a data transmission period in the information processing method according to the embodiment of the present invention, which may include the following steps:
401: and judging whether the SPI main controller needs to transmit data to the SPI slave equipment and/or read data from the SPI slave equipment according to the first control information to obtain a first judgment result. Specifically, the values of the write field and the read field in the first control information can be judged, and when the value of the write field is 1, the SPI master controller needs to transmit data to the SPI slave device; when the value of the read field is 1, the SPI master needs to read data from the SPI slave.
402: and controlling the SPI main controller to perform data interaction with the SPI slave equipment based on the first judgment result, the first control information and the first instruction information.
In the embodiment of the invention, the entering of the data transmission period is enabled by the start field in the first control information. And when the first judgment result shows that the SPI master controller needs to transmit data to the SPI slave device and/or read data from the SPI slave device, controlling data interaction between the SPI master controller and the SPI slave device according to the values of the write field and the read field in the first control information. And can also further judge that SPI master control unit and SPI slave unit carry out the data volume size of data interaction and whether satisfy the predetermined condition, when data volume size satisfied the predetermined condition, control SPI master control unit and get into idle state, continue to wait for next first control information and first instruction information.
The process of judging whether the data volume of the data interaction between the SPI master controller and the SPI slave equipment meets the preset conditions can be as follows: and when the value of the data _ cnt reaches a preset value, the data quantity of the SPI master controller interacting the data with the SPI slave equipment meets a preset condition. In the embodiment of the invention, the initial value of the data _ cnt is 0, and the preset numerical value is used for indicating the maximum data volume of the data interaction between the SPI master controller and the SPI slave device.
And further, when data interaction is carried out, a jump edge of a clock signal generated based on the first control information can be selected according to values of two fields, namely the pha field and the cpol field in the first control information, and the SPI master controller and the SPI slave device are controlled to carry out data interaction under the jump edge.
When the first determination result indicates that the SPI master controller does not need to transmit data to and read data from the SPI slave device, a process of controlling the SPI master controller to perform data interaction with the SPI slave device may be as shown in fig. 5, and may include the following steps:
501: and when the first judgment result shows that the SPI main controller does not need to transmit data to the SPI slave equipment and read data from the SPI slave equipment, controlling the SPI main controller to enter a first state.
When the values of the write field and the read field in the first control information are both 0, it indicates that the SPI master controller does not need to transmit data to the SPI slave device and read data from the SPI slave device, and at this time, the SPI master controller can be controlled to enter the first state. The first state may be an idle state in an embodiment of the present invention.
502: in the first state, whether the first control information or the first register is updated is detected. The first control information or the first register update indicates that in the first state, the SPI master controller is connected with other SPI slave devices and data interaction is to be carried out.
503: when the first control information is detected to be updated, the updated first control information is obtained, and the SPI master controller is controlled to perform data interaction with the SPI slave device based on the obtained updated first control information. When only the first control information is updated, the SPI master controller can be controlled to perform data interaction with the SPI slave device based on the updated first control information.
When controlling data interaction between the SPI master controller and the SPI slave device based on the updated first control information, the data interaction between the two parties may be controlled through several fields of write, read, data _ cnt, pha, and cpol in the first control information.
504: when the first register is detected to be updated, second instruction information in the first register is acquired based on the first control information, the second instruction information is sent to the SPI slave device as first instruction information, and the step of controlling the SPI master controller to perform data interaction with the SPI slave device based on the first control information and the first instruction information is executed. The process of controlling the SPI master controller to perform data interaction with the SPI slave device based on the first control information and the first command information may refer to the description in the above method embodiment, and the embodiment of the present invention is not described again.
Referring to fig. 6, which shows a third flowchart of the information processing method according to the embodiment of the present invention, on the basis of fig. 1, the method may further include the following steps:
105: and judging whether the data volume of the SPI master controller and the SPI slave equipment for data interaction meets a preset condition or not based on the first control information, and obtaining a second judgment result.
The process of judging whether the data volume of the data interaction between the SPI master controller and the SPI slave equipment meets the preset conditions can be as follows: and when the value of the data _ cnt reaches a preset value, the data quantity of the SPI master controller interacting the data with the SPI slave equipment meets a preset condition. In the embodiment of the invention, the initial value of the data _ cnt is 0, and the preset numerical value is used for indicating the maximum data volume of the data interaction between the SPI master controller and the SPI slave device.
106: and when the second judgment result shows that the data size meets the preset condition, controlling the SPI main controller to enter a first state. After entering the first state, detecting whether the first control information or the first register is updated, switching from the first state to the second state after detecting that the first control information or the first register is updated, acquiring the updated first control information, and executing steps 102 to 104 to enable the SPI master controller to perform data interaction with other SPI slave devices. The first state is an idle state, and the second state is a working state.
Corresponding to the foregoing method embodiment, an embodiment of the present invention further provides an SPI master controller, a schematic structural diagram of which is shown in fig. 7, and the SPI master controller may include: a first acquisition unit 11, a second acquisition unit 12, a transmission unit 13, and a control unit 14. Wherein,
the first obtaining unit 11 is configured to obtain first control information, where the first control information corresponds to an SPI slave device, and is used to control communication between the SPI master controller and the SPI slave device, and the SPI slave device is connected to the SPI master controller.
In the embodiment of the present invention, the first control information includes various fields used when the SPI master controller communicates with the SPI slave device, for example, fields including a command format, the number of commands, the number of transmission data, and the SPI clock, and may be recorded in the control register, as shown in table 1.
TABLE 1 field Table in first control information
data_cnt cmd_cnt start response write read cpha cpol
Wherein, data _ cnt: indicating the number of spi data transmission bits.
cmd _ cnt: indicating the number of spi command bits.
And (3) start: enabling spi transfer, skipping spi command writes directly into data transfer in the case of idle state.
response: indicating that a response is received from the slave device.
write: and instructing the main controller to write data to the slave device.
reading: and instructing the main controller to read data from the slave.
The alpha: indicating the spi clock phase.
cpol: indicating the spi clock polarity.
The value of above-mentioned these fields can be according to SPI slave unit's parameter requirement write in control register in advance, and SPI master controller can obtain the first control information of SPI slave unit that current and SPI master controller communicate of writing in advance from control register when communicating with a certain SPI slave unit like this. When the first control information is acquired, the first control information of the SPI slave device currently communicating with the SPI master controller needs to be found from the plurality of first control information, so the control register, in addition to recording the first control information, also allocates a unique identifier to each control information, so as to find the first control information of the SPI slave device currently communicating with the SPI master controller from the plurality of first control information through the unique identifier.
Of course, the values of the fields can also be written into the control register in real time when the SPI master controller communicates with a certain SPI slave device, and the control register only records the first control information of one SPI slave device each time, so that when the SPI master controller communicates with a certain SPI slave device, the first control information acquired from the control register is the first control information of the SPI slave device currently communicating with the SPI master controller.
And a second obtaining unit 12, configured to obtain the first instruction information in the first register based on the first control information. At present, communication between the SPI master controller and the SPI slave device includes a command cycle and a data transmission cycle, where the command cycle is mainly used to transmit a command between the SPI master controller and the SPI slave device, and determines whether to enter the data transmission cycle according to the transmitted command and the first control information, and the data transmission cycle is used to transmit data between the SPI master controller and the SPI slave device.
In the embodiment of the present invention, the first instruction information obtained from the first register carries command content transmitted between the SPI master controller and the SPI slave device.
And a sending unit 13, configured to send the first instruction information to the SPI slave device.
And the control unit 14 is configured to control the SPI master controller to perform data interaction with the SPI slave device based on the first control information and the first instruction information. After the first command message is sent to the SPI slave device, whether feedback information of the SPI slave device is received or not is further determined, and whether a data transmission cycle is entered or not is determined according to the determination result.
According to the technical scheme, the first control information corresponds to the SPI slave device, the first command information acquired based on the first control information also corresponds to the SPI slave device, and the SPI master controller and the SPI slave device are controlled to perform data interaction through the first control information and the first command information corresponding to the SPI slave device, so that the data interaction can meet the requirements of the SPI slave device.
Referring to fig. 8, which shows a second flowchart of the information processing apparatus according to the embodiment of the present invention, on the basis of fig. 7, the information processing apparatus may further include: and a signal generating unit 15 configured to generate a clock signal corresponding to the SPI slave device based on the first control information, and transmit the clock signal to the SPI slave device by the transmitting unit 13.
When the corresponding control unit 14 controls the SPI master controller to perform data interaction with the SPI slave device based on the first control information and the first instruction information, a transition edge of the clock signal may be selected based on the first control information and the first instruction information, and the SPI master controller is controlled to perform data interaction with the SPI slave device under the selected transition edge, where the transition edge is a rising edge or a falling edge of the clock signal. Therefore, when the clock signal reaches a rising edge or a falling edge, the SPI main controller is controlled to perform data interaction with the SPI slave equipment based on the first control information and the first command information.
And the selection of the hop edge may be selected based on two fields of pha and cpol in the first control information, for example: if cpol is 0, the idle state of the clock signal is low level, and the selected transition edge is a rising edge at the moment; if cpol is 1, the idle state of the clock signal is high, and the selected transition edge is a falling edge. And pha is used to indicate that data is sampled at the fourth transition edge. If pha is 0, sampling data at the first transition edge of the clock signal; if pha is 1, data is sampled on the second transition edge of the clock signal.
Through the technical scheme, the SPI master controller is controlled to perform data interaction with the SPI slave equipment under the selected hopping edge, so that the clock requirements of the SPI slave equipment during data transmission at each time can be met through interaction of both sides, and the universality of the SPI master controller is further improved.
In the embodiment of the present invention, a schematic structural diagram of the control unit 14 is shown in fig. 9, and is configured to control the SPI master controller to perform data interaction with the SPI slave device in a command period, and may include: a determination subunit 141, a detection subunit 142, a first control subunit 143, and a second control subunit 144. Wherein,
a determining subunit 141, configured to determine whether there is feedback information for the first instruction information based on the first control information. The feedback information aiming at the first instruction information is used for indicating whether the SPI slave device needs to feed back to the SPI master controller after the first instruction information is sent to the SPI slave device.
In the embodiment of the present invention, the number of bits of the command content in the first command information is determined by cmd _ cnt in the first control information. The determining subunit 141 determines whether there is feedback information for the first instruction information by determining the response field, and when the value of the response field is 1, it indicates that there is feedback information for the first instruction information, and receives feedback information of the SPI slave device immediately after sending the first instruction information to the SPI slave device, and at this time, it needs to continuously detect whether feedback information of the SPI slave device is received to determine whether to enter a data transmission cycle. When the value of the response field is 0, it indicates that there is no feedback information for the first instruction information, and after the first instruction information is sent to the SPI slave device, the SPI slave device does not send the feedback information of the SPI slave device or sends the feedback information of the SPI slave device after a certain time.
And the detecting subunit 142, configured to, when it is determined that there is feedback information, detect whether feedback information of the SPI slave device is received, and obtain a first detection result.
And the first control subunit 143 is configured to, when the first detection result indicates that the feedback information of the SPI slave device is received, control the SPI master controller to perform data interaction with the SPI slave device based on the first control information. After receiving the feedback information of the SPI slave device, the first control subunit 143 may enter a data transmission cycle according to values of the write field and the read field in the first control information, so as to control the SPI master controller to perform data interaction with the SPI slave device according to the values of the write field and the read field.
For example: when the value of the write field is 1, controlling the SPI master controller to transmit data to the SPI slave equipment; and when the value of the read field is 1, controlling the SPI master controller to read data from the SPI slave equipment. And whether the data volume size of the SPI master controller for carrying out data interaction with the SPI slave equipment meets the preset condition is judged, and when the data volume size meets the preset condition, the SPI master controller is controlled to enter an idle state to continuously wait for next first control information and first instruction information.
The process of judging whether the data volume of the data interaction between the SPI master controller and the SPI slave equipment meets the preset conditions can be as follows: and when the value of the data _ cnt reaches a preset value, the data quantity of the SPI master controller interacting the data with the SPI slave equipment meets a preset condition. In the embodiment of the invention, the initial value of the data _ cnt is 0, and the preset numerical value is used for indicating the maximum data volume of the data interaction between the SPI master controller and the SPI slave device.
And further, when data interaction is carried out, a jump edge of a clock signal generated based on the first control information can be selected according to values of two fields, namely the pha field and the cpol field in the first control information, and the SPI master controller and the SPI slave device are controlled to carry out data interaction under the jump edge.
And a second control subunit 144, configured to, when it is determined that there is no feedback information, control the SPI master controller to perform data interaction with the SPI slave device based on the first control information.
When it is determined that there is no feedback information, the second control subunit 144 may enter a data transmission period according to values of the write field and the read field in the first control information, so as to control the SPI master controller to perform data interaction with the SPI slave device according to the values of the write field and the read field.
For example: when the value of the write field is 1, controlling the SPI master controller to transmit data to the SPI slave equipment; and when the value of the read field is 1, controlling the SPI master controller to read data from the SPI slave equipment. And when the values of the write field and the read field are both 0, controlling the SPI master controller and the SPI slave equipment to enter an idle state and waiting for acquiring next first instruction information.
In the embodiment of the present invention, a schematic structural diagram of the control unit 14 is shown in fig. 10, and is configured to control the SPI master controller to perform data interaction with the SPI slave device in a data transmission cycle, and may include: a judgment subunit 145 and a control subunit 146. Wherein,
and the judging subunit 145 is configured to judge, according to the first control information, whether the SPI master controller needs to transmit data to the SPI slave device and/or read data from the SPI slave device, so as to obtain a first judgment result. Specifically, the values of the write field and the read field in the first control information can be judged, and when the value of the write field is 1, the SPI master controller needs to transmit data to the SPI slave device; when the value of the read field is 1, the SPI master needs to read data from the SPI slave.
And a control subunit 146, configured to control the SPI master controller to perform data interaction with the SPI slave device based on the first determination result, the first control information, and the first instruction information.
In the embodiment of the invention, the entering of the data transmission period is enabled by the start field in the first control information. And when the first judgment result shows that the SPI master controller needs to transmit data to the SPI slave device and/or read data from the SPI slave device, controlling data interaction between the SPI master controller and the SPI slave device according to the values of the write field and the read field in the first control information. And can also further judge that SPI master control unit and SPI slave unit carry out the data volume size of data interaction and whether satisfy the predetermined condition, when data volume size satisfied the predetermined condition, control SPI master control unit and get into idle state, continue to wait for next first control information and first instruction information.
The process of judging whether the data volume of the data interaction between the SPI master controller and the SPI slave equipment meets the preset conditions can be as follows: and when the value of the data _ cnt reaches a preset value, the data quantity of the SPI master controller interacting the data with the SPI slave equipment meets a preset condition. In the embodiment of the invention, the initial value of the data _ cnt is 0, and the preset numerical value is used for indicating the maximum data volume of the data interaction between the SPI master controller and the SPI slave device.
And further, when data interaction is carried out, a jump edge of a clock signal generated based on the first control information can be selected according to values of two fields, namely the pha field and the cpol field in the first control information, and the SPI master controller and the SPI slave device are controlled to carry out data interaction under the jump edge.
In the embodiment of the present invention, a schematic structural diagram of the control subunit 146 can be shown in fig. 11, and includes: a state control subunit 147, a detection subunit 148 and an acquisition subunit 149. Wherein,
and a state control subunit 147, configured to control the SPI master controller to enter the first state when the first determination result indicates that the SPI master controller does not need to transmit data to and read data from the SPI slave device.
When the values of the write field and the read field in the first control information are both 0, it indicates that the SPI master controller does not need to transmit data to the SPI slave device and read data from the SPI slave device, and at this time, the SPI master controller can be controlled to enter the first state. The first state may be an idle state in an embodiment of the present invention.
The detecting subunit 148 is configured to detect whether the first control information or the first register is updated in the first state, and trigger the second obtaining unit 12 to obtain the second instruction information in the first register based on the first control information when the first register is detected to be updated, where the second instruction information is used as the first instruction information.
The obtaining subunit 149, configured to, when it is detected that the first control information is updated, obtain the updated first control information, and trigger the control subunit 146 to control the SPI master controller to perform data interaction with the SPI slave device based on the obtained updated first control information. When only the first control information is updated, the SPI master controller can be controlled to perform data interaction with the SPI slave device based on the updated first control information.
When controlling data interaction between the SPI master controller and the SPI slave device based on the updated first control information, the data interaction between the two parties may be controlled through several fields of write, read, data _ cnt, pha, and cpol in the first control information.
Referring to fig. 12, which shows a third structural diagram of an SPI master controller according to an embodiment of the present invention, on the basis of fig. 7, the SPI master controller may further include: a data judgment unit 16 and a state control unit 17. Wherein,
and the data judging unit 16 is configured to judge whether a data size of data interaction between the SPI master controller and the SPI slave device satisfies a preset condition based on the first control information, and obtain a second judgment result.
The process of judging whether the data volume of the data interaction between the SPI master controller and the SPI slave equipment meets the preset conditions can be as follows: and when the value of the data _ cnt reaches a preset value, the data quantity of the SPI master controller interacting the data with the SPI slave equipment meets a preset condition. In the embodiment of the invention, the initial value of the data _ cnt is 0, and the preset numerical value is used for indicating the maximum data volume of the data interaction between the SPI master controller and the SPI slave device.
And the state control unit 17 is configured to control the SPI master controller to enter the first state when the second determination result indicates that the data size meets the preset condition. After entering the first state, whether the first control information or the first register is updated is detected, and when the first control information or the first register is detected to be updated, the first state is switched to the second state, and the first obtaining unit 11 is triggered to obtain the updated first control information, so that the SPI master controller performs data interaction with other SPI slave devices. The first state is an idle state, and the second state is a working state.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The information processing method and the SPI master controller provided by the present invention are described in detail above, and a specific example is applied in the text to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (14)

1. An information processing method, the method is applied to a host controller of a serial peripheral device interface, and is characterized in that the method comprises the following steps:
acquiring first control information, wherein the first control information corresponds to a serial peripheral interface slave device and is used for controlling communication between a serial peripheral interface master controller and the serial peripheral interface slave device, and the serial peripheral interface slave device is connected with the serial peripheral interface master controller; the first control information comprises various fields used when the serial peripheral interface master controller communicates with the serial peripheral interface slave device;
acquiring first instruction information in a first register based on the first control information; the first instruction information carries command contents transmitted between the serial peripheral interface master controller and the serial peripheral interface slave equipment;
sending the first instruction information to the serial peripheral device interface slave device;
and controlling the serial peripheral equipment interface master controller to perform data interaction with the serial peripheral equipment interface slave equipment based on the first control information and the first instruction information.
2. The method of claim 1, wherein prior to obtaining the first instruction information in the first register based on the first control information, the method further comprises:
generating a clock signal corresponding to the serial peripheral interface slave device based on the first control information;
sending the clock signal to the serial peripheral interface slave device.
3. The method of claim 2, wherein the controlling the serial peripheral device interface master controller to perform data interaction with the serial peripheral device interface slave device based on the first control information and the first instruction information comprises:
and selecting a transition edge of the clock signal based on the first control information and the first instruction information, and controlling the serial peripheral device interface master controller to perform data interaction with the serial peripheral device interface slave device under the selected transition edge, wherein the transition edge is a rising edge or a falling edge of the clock signal.
4. The method of claim 1, wherein said controlling the serial peripheral device interface master controller to perform data interaction with the serial peripheral device interface slave device based on the first control information and the first command information comprises:
determining whether there is feedback information for the first instruction information based on the first control information;
when the feedback information is determined to exist, detecting whether the feedback information of the serial peripheral device interface slave device is received or not, and obtaining a first detection result;
when the first detection result shows that the feedback information of the serial peripheral interface slave equipment is received, controlling the serial peripheral interface main controller to perform data interaction with the serial peripheral interface slave equipment based on the first control information;
and when the feedback information is determined not to exist, controlling the serial peripheral interface master controller to perform data interaction with the serial peripheral interface slave device based on the first control information.
5. The method of claim 1, wherein said controlling the serial peripheral device interface master controller to perform data interaction with the serial peripheral device interface slave device based on the first control information and the first command information comprises:
according to the first control information, judging whether the serial peripheral interface master controller needs to transmit data to the serial peripheral interface slave equipment and/or read data from the serial peripheral interface slave equipment, and obtaining a first judgment result;
and controlling the serial peripheral device interface master controller to perform data interaction with the serial peripheral device interface slave device based on the first judgment result, the first control information and the first instruction information.
6. The method of claim 5, wherein when the first determination indicates that the serial peripheral interface master controller does not need to transmit data to and read data from the serial peripheral interface slave device, controlling the serial peripheral interface master controller to enter a first state;
detecting whether the first control information or the first register is updated or not in the first state;
when the first control information is detected to be updated, acquiring the updated first control information, and controlling the serial peripheral interface master controller to perform data interaction with the serial peripheral interface slave device based on the acquired updated first control information;
when the first register is detected to be updated, second instruction information in the first register is obtained based on the first control information, the second instruction information is sent to the serial peripheral interface slave device as the first instruction information, and the step of controlling the serial peripheral interface master controller to perform data interaction with the serial peripheral interface slave device based on the first control information and the first instruction information is executed.
7. The method of claim 1, wherein after controlling the serial peripheral device interface master controller to perform data interaction with the serial peripheral device interface slave device based on the first control information and the first command information, the method further comprises:
based on the first control information, judging whether the data volume of the serial peripheral interface master controller and the serial peripheral interface slave device for data interaction meets a preset condition or not, and obtaining a second judgment result;
and when the second judgment result shows that the data size meets the preset condition, controlling the serial peripheral interface main controller to enter a first state.
8. A serial peripheral interface host controller, comprising:
a first obtaining unit, configured to obtain first control information, where the first control information corresponds to a serial peripheral interface slave device, and is used to control communication between the serial peripheral interface master controller and the serial peripheral interface slave device, and the serial peripheral interface slave device is connected to the serial peripheral interface master controller; the first control information comprises various fields used when the serial peripheral interface master controller communicates with the serial peripheral interface slave device;
the second acquisition unit is used for acquiring the first instruction information in the first register based on the first control information; the first instruction information carries command contents transmitted between the serial peripheral interface master controller and the serial peripheral interface slave equipment;
a sending unit, configured to send the first instruction information to the serial peripheral device interface slave device;
and the control unit is used for controlling the serial peripheral interface master controller to perform data interaction with the serial peripheral interface slave equipment based on the first control information and the first instruction information.
9. The serial peripheral interface host controller of claim 8, wherein the serial peripheral interface host controller further comprises:
a signal generating unit configured to generate a clock signal corresponding to the serial peripheral interface slave device based on the first control information;
the sending unit is further configured to send the clock signal to the serial peripheral interface slave device.
10. The SPI master controller of claim 9, wherein the control unit controls the SPI master controller to interact with the SPI slave device based on the first control information and the first command information, comprising:
and selecting a transition edge of the clock signal based on the first control information and the first instruction information, and controlling the serial peripheral device interface master controller to perform data interaction with the serial peripheral device interface slave device under the selected transition edge, wherein the transition edge is a rising edge or a falling edge of the clock signal.
11. The serial peripheral interface host controller of claim 8, wherein the control unit comprises: the device comprises a determining subunit, a detecting subunit, a first control subunit and a second control subunit; wherein,
the determining subunit is configured to determine, based on the first control information, whether there is feedback information for the first instruction information;
the detecting subunit is configured to detect, when it is determined that the feedback information exists, whether the feedback information of the serial peripheral device interface slave device is received, and obtain a first detection result;
the first control subunit is configured to, when the first detection result indicates that the feedback information of the serial peripheral device interface slave device is received, control the serial peripheral device interface master controller to perform data interaction with the serial peripheral device interface slave device based on the first control information;
and the second control subunit is configured to control the serial peripheral interface master controller to perform data interaction with the serial peripheral interface slave device based on the first control information when it is determined that the feedback information is absent.
12. The serial peripheral interface host controller of claim 8, wherein the control unit comprises: a judgment subunit and a control subunit; wherein,
the judging subunit is configured to judge, according to the first control information, whether the serial peripheral interface master controller needs to transmit data to the serial peripheral interface slave device and/or read data from the serial peripheral interface slave device, to obtain a first judgment result;
and the control subunit is configured to control the serial peripheral device interface master controller to perform data interaction with the serial peripheral device interface slave device based on the first determination result, the first control information, and the first instruction information.
13. The serial peripheral interface host controller of claim 12, wherein the control subunit comprises:
a state control subunit, configured to control the serial peripheral interface master controller to enter a first state when the first determination result indicates that the serial peripheral interface master controller does not need to transmit data to the serial peripheral interface slave device and read data from the serial peripheral interface slave device;
a detecting subunit, configured to detect whether the first control information or the first register is updated in the first state, and trigger the second obtaining unit to obtain, based on the first control information, second instruction information in the first register when the first register is detected to be updated, where the second instruction information is used as the first instruction information;
and the acquisition subunit is configured to, when it is detected that the first control information is updated, acquire the updated first control information, and trigger the control subunit to control the serial peripheral interface master controller to perform data interaction with the serial peripheral interface slave device based on the acquired updated first control information.
14. The serial peripheral interface host controller of claim 8, wherein the serial peripheral interface host controller further comprises:
the data judgment unit is used for judging whether the data volume of the data interaction between the serial peripheral interface master controller and the serial peripheral interface slave equipment meets a preset condition or not based on the first control information to obtain a second judgment result;
and the state control unit is used for controlling the serial peripheral device interface main controller to enter a first state when the second judgment result shows that the data size meets a preset condition.
CN201410838461.6A 2014-12-30 2014-12-30 A kind of information processing method and Serial Peripheral Interface master controller Active CN105808492B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410838461.6A CN105808492B (en) 2014-12-30 2014-12-30 A kind of information processing method and Serial Peripheral Interface master controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410838461.6A CN105808492B (en) 2014-12-30 2014-12-30 A kind of information processing method and Serial Peripheral Interface master controller

Publications (2)

Publication Number Publication Date
CN105808492A CN105808492A (en) 2016-07-27
CN105808492B true CN105808492B (en) 2019-04-23

Family

ID=56980733

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410838461.6A Active CN105808492B (en) 2014-12-30 2014-12-30 A kind of information processing method and Serial Peripheral Interface master controller

Country Status (1)

Country Link
CN (1) CN105808492B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109901664B (en) * 2019-02-27 2020-03-27 苏州浪潮智能科技有限公司 Method, apparatus, system, device and readable storage medium for providing clock signal
CN110471881B (en) * 2019-07-29 2020-06-23 广芯微电子(广州)股份有限公司 Method for realizing rapid communication between multiple slave devices and SPI (Serial peripheral interface) master device
CN111782574A (en) * 2020-07-14 2020-10-16 北京四季豆信息技术有限公司 Serial peripheral interface control method and serial peripheral interface controller
CN112565036B (en) * 2020-11-24 2022-08-30 炬芯科技股份有限公司 Data transmission method, device, storage medium and communication system
CN115525935B (en) * 2022-10-19 2023-05-30 北京万协通信息技术有限公司 Concurrent data operation method, device and equipment for multiple security chips and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023942A (en) * 2009-09-09 2011-04-20 鸿富锦精密工业(深圳)有限公司 SPI (Serial Peripheral Interface) peripheral access device and method
CN102023945A (en) * 2009-09-22 2011-04-20 鸿富锦精密工业(深圳)有限公司 Serial peripheral interface bus-based equipment and data transmission method thereof
CN203930821U (en) * 2014-04-28 2014-11-05 武汉精测电子技术股份有限公司 Can be to single command and batch spi bus control system that order is processed simultaneously

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7873774B2 (en) * 2008-02-01 2011-01-18 Telefonaktiebolaget Lm Ericsson (Publ) Connections and dynamic configuration of interfaces for mobile phones and multifunctional devices
CN102279582B (en) * 2011-05-09 2013-08-07 王盛学 Multi-unit combined controller
US8904078B2 (en) * 2012-10-22 2014-12-02 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. High speed serial peripheral interface system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023942A (en) * 2009-09-09 2011-04-20 鸿富锦精密工业(深圳)有限公司 SPI (Serial Peripheral Interface) peripheral access device and method
CN102023945A (en) * 2009-09-22 2011-04-20 鸿富锦精密工业(深圳)有限公司 Serial peripheral interface bus-based equipment and data transmission method thereof
CN203930821U (en) * 2014-04-28 2014-11-05 武汉精测电子技术股份有限公司 Can be to single command and batch spi bus control system that order is processed simultaneously

Also Published As

Publication number Publication date
CN105808492A (en) 2016-07-27

Similar Documents

Publication Publication Date Title
CN105808492B (en) A kind of information processing method and Serial Peripheral Interface master controller
JP6982665B2 (en) How to be performed by the active pen and the active pen
US20190146652A1 (en) Cross-interface data transfer method and terminal
CN102523346A (en) Cross-device file transmission method, device, transit server and device
JP6914267B2 (en) Pairing method, position detection system, position indicator, and position detection device
JP2006236347A (en) Multiple home device control method using single controller and control device
CN101419843A (en) Flash memory recognition method, recognition device and chip controller
JP2015230539A (en) Image formation device and control method of the same, as well as program
US9626323B2 (en) Keyboard-video-mouse switch and operating method thereof
CN103473014A (en) Multitask switching method and terminal
CN104991930A (en) Webpage information sharing method and apparatus
US20150244799A1 (en) Display system, display apparatus, display method, and computer program
EP3026540A1 (en) Image processing device, computer program for controlling image processing device and image processing system
US20190121489A1 (en) Serial communication method and sensor controller
EP3584711A1 (en) Communication device, communication method, program, and communication system
CN105279110A (en) Host system identification method by USB (universal serial port) equipment, and USB equipment
KR20180061885A (en) Apparatus and system for providing modbus communication shortening polling time and method thereof
CN109887259B (en) Single-wire transmission device and method
JP2005063335A (en) Address recognition method
CN111130678A (en) Data transmission method, device, equipment and computer readable storage medium
CN104484035A (en) Control method, device and system based on somatosensory equipment
CN104182370B (en) A kind of data transmission method, device and mobile terminal
US10514808B2 (en) Method, apparatus and system for communication with a sensor
JP6216909B1 (en) Serial communication method and sensor controller
KR101307753B1 (en) Method and Mobile Telecommunication Terminal of Transmitting Data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant