Unlock instant, AI-driven research and patent intelligence for your innovation.

I2C communication control method and device and storage medium

A technology of communication control and communication status, applied in the direction of data exchange, digital transmission system, electrical components, etc. through path configuration, to achieve the effect of improving real-time performance, controllable communication, and saving system overhead

Active Publication Date: 2021-07-13
SUZHOU INST OF BIOMEDICAL ENG & TECH CHINESE ACADEMY OF SCI
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present invention provides a kind of I 2 C communication control method, equipment and storage medium, to overcome the I in the prior art scheme 2 C The technical problem that the communication system cannot achieve good control of reliability or stability and real-time performance

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • I2C communication control method and device and storage medium
  • I2C communication control method and device and storage medium
  • I2C communication control method and device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0085] The embodiment of the present invention provides a kind of I 2 C communication control method, applied to realize I / O interface through I / O interface 2 In the communication equipment of C communication, it is realized based on timer and dual-state machine, see figure 2 As shown, the method includes:

[0086] Step S12, for I 2 Each communication state of the C communication, through the state rotation of the first state machine, generates a bus clock signal and a bus data signal based on the data bit in each communication state based on the timer;

[0087] Step S14, for the conversion between one of the communication states to other communication states, according to I 2 C communication protocol or received I 2 C communication command, the second state machine is converted into a target communication state based on bytes;

[0088] Among them, I 2 The communication state of C communication includes start state, addressing state, data sending state, data receiving s...

Embodiment 2

[0150] In a second aspect, an I 2 C communication control equipment, based on timer and dual-state machine implementation, see Figure 12 shown, including:

[0151] The first conversion module 121, for I 2 Each communication state of the C communication, through the state rotation of the first state machine, generates a bus clock signal and a bus data signal based on the data bit in each communication state based on the timer;

[0152] The second conversion module 122, for the conversion between a communication state to other communication states, according to I 2 C communication protocol or received I 2 C communication command, the second state machine is converted into a target communication state based on bytes;

[0153] Among them, I 2 The communication state of C communication includes start state, addressing state, data sending state, data receiving state and stop state.

[0154] In the embodiment of the present invention, the second converting module 122 is also u...

Embodiment 3

[0160] The present embodiment provides a kind of realization I based on timer and two-state machine 2 C communication control equipment, such as Figure 13 As shown, the I 2The C communication control device includes a processor 1301 and a memory 1302, wherein the processor 1301 and the memory 1302 may be connected via a bus or in other ways, Figure 13 Take connection via bus as an example.

[0161] The processor 1301 can be a central processing unit (Central Processing Unit, CPU) or other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), graphics processing units (Graphics Processing Unit, GPU), embedded neural network processing Neural-network Processing Unit (NPU) or other dedicated deep learning coprocessor, Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic Chips such as devices, discrete gate or transistor logic devices, discrete hardware ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

An I2C communication control method and device and a storage medium are applied to a device for realizing I2C communication through an I / O interface. The method is realized based on a timer and a dual-state machine, and the method comprises the following steps: aiming at each communication state of I2C communication, performing state rotation of a first state machine, generating a bus clock signal and a bus data signal based on data bits in each communication state based on a timer; for conversion from one communication state to other communication states, converting the second state machine into a target communication state based on bytes according to an I2C communication protocol or a received I2C communication command, wherein the communication state of the I2C communication comprises a starting state, an addressing state, a data sending state, a data receiving state and a stopping state. According to the scheme, the real-time performance and the controllability of I2C communication are well guaranteed, meanwhile, the controllability and the stability of communication are achieved, the system overhead is saved, and the real-time performance of the system is improved.

Description

technical field [0001] The present invention relates to the technical field of communication control schemes between instruments and equipment, in particular to an I 2 C Communication control method, device and storage medium. Background technique [0002] Currently I 2 C communication control technology and protocol are very mature, almost all microcontrollers have one or more I 2 C communication controller, however, in the actual implementation of master and slave I 2 In the process of communication between C, there are no more than two ways to realize it: one, using the internal I of the microcontroller 2 C control module, if there is no defect in the design of the module itself, it can effectively handle the abnormalities and interruptions of various communication processes. This is the most efficient, stable and reliable way to adopt it. However, with the complexity of the actual microprocessor work and the external I 2 C The diversity of communication equipment, w...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L12/40
CPCH04L12/40013H04L12/40019
Inventor 周哲潘力董月芳张洋刘敏付威威朱海龙
Owner SUZHOU INST OF BIOMEDICAL ENG & TECH CHINESE ACADEMY OF SCI
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More