I2C interface system, data writing method and data reading method
AssigneeNorel Systems Limited
InventorsYuanlong Wang, Kuilin Mou
Life of this patent
Estimating the term…
Abstract
The present invention provides an I2C interface system for high-speed long-distance I2C transmission, which includes an I2C interface module and at least one functional module; the I2C interface module is connected with an I2C master controller through an I2C clock line and an I2C data line; the functional module is connected with the I2C interface module. The present invention is suitable for application scenes with a long transmission distance or a large signal interference, and the I2C system used for long-distance transmission has a fast acknowledge speed and a fast transmission speed.
Claims34
An I2C data writing method, which uses an I2C interface system to write data, wherein the I2C interface system comprises an I2C interface module and at least one functional module;
- the I2C interface module is connected with an I2C master controller through an I2C clock line and an I2C data line;
- the functional module is connected with the I2C interface module;
- the I2C data writing method comprises the following steps:
- the I2C master controller initiating an I2C write operation and sending a write command packet to the I2C interface module;
- the I2C interface module pulling down an I2C clock line level after receiving the write command packet, and sending the write command packet to the functional module;
- wherein the write command packet includes a write command length field and a write command data field;
- the functional module receiving the write command packet and executing a write command, and returning a write status packet to the I2C interface module after the functional module completes the write command;
- when the I2C interface module receives the write status packet and the status information of the write status packet is successful, the I2C interface module stopping pulling down the I2C clock line level and returning I2C ACK to the I2C master controller;
- and
- when the I2C interface module receives the write status packet and the status information of the write status packet is failed, the I2C interface module stopping pulling down the I2C clock line level and returning I2C NAK to the I2C master controller.
An I2C data writing method, which uses an I2C interface system to write data, wherein the I2C interface system comprises an I2C interface module and at least one functional module;
- the I2C interface module is connected with an I2C master controller through an I2C clock line and an I2C data line;
- the functional module is connected with the I2C interface module;
- the I2C data writing method comprises the following steps:
- the I2C master controller initiating an I2C write operation and sending a write command packet to the I2C interface module;
- the I2C interface module sending the write command packet to the functional module after receiving the write command packet;
- wherein the write command packet includes a write command length field and a write command data field;
- the functional module receiving the write command packet and executing a write command, and returning a write status packet to the I2C interface module after the functional module completes the write command;
- after the I2C interface module receives the write command packet,
- if a subsequent I2C operation initiated by the I2C master controller is an I2C write operation, and the I2C interface module receives the write status packet returned by the functional module to the I2C interface module and the status information of the write status packet is successful, the I2C interface module receiving the subsequent I2C write operation initiated by the I2C master controller;
- and
- if the subsequent I2C operation initiated by the I2C master controller is an I2C write operation, and the I2C interface module receives the write status packet returned by the functional module to the I2C interface module and the status information of the write status packet is failed, the I2C interface module returning I2C NAK to the I2C master controller.
An I2C data reading method, which uses an I2C interface system to read data, wherein the I2C interface system comprises an I2C interface module and at least one functional module;
- the I2C interface module is connected with an I2C master controller through an I2C clock line and an I2C data line;
- the functional module is connected with the I2C interface module;
- the I2C data reading method comprises the following steps:
- the I2C master controller initiating an I2C write operation and sending a read command packet to the I2C interface module;
- the I2C interface module pulling down an I2C clock line level after receiving the read command packet, and sending the read command packet to the functional module;
- wherein the read command packet includes a read command length field and a read command data field;
- the functional module receiving the read command packet and executing a read command, and returning a read data packet to the I2C interface module after the functional module completes the read command;
- wherein the read data packet includes read data;
- and
- when the I2C interface module receives the read data packet, the I2C interface module stopping pulling down the I2C clock line level.
An I2C data reading method, which uses an I2C interface system to read data, wherein the I2C interface system comprises an I2C interface module and at least one functional module;
- the I2C interface module is connected with an I2C master controller through an I2C clock line and an I2C data line;
- the functional module is connected with the I2C interface module;
- the I2C data reading method comprises the following steps:
- an I2C master controller initiating an I2C write operation and sending a read command packet to an I2C interface module;
- the I2C interface module sending the read command packet to a functional module after receiving the read command packet;
- wherein the read command packet includes a read command length field and a read command data field;
- the functional module receiving the read command packet and executing a read command, and returning a read data packet to the I2C interface module after the functional module completes the read command;
- wherein the read data packet includes read data;
- after the I2C interface module receives the read command packet,
- if the subsequent I2C operation initiated by the I2C master controller is an I2C write operation, and the I2C interface module receives the read data packet returned by the functional module to the I2C interface module, the I2C interface module returning an I2C NAK to the I2C master controller;
- and
- if the subsequent I2C operation initiated by the I2C master controller is an I2C read operation, and the I2C interface module receives the read data packet returned by the functional module to the I2C interface module, the I2C interface module returning the read data to the I2C master controller.
Dependencies are inferred from the claim text.