当前位置:网站首页>I2C protocol
I2C protocol
2022-06-26 01:15:00 【Oh, Yu è】
About I2C
I2C Philips was the first company in 1982 A two-way two-wire serial bus protocol developed in . It only needs two signal lines to complete the information exchange , So far, there have been 100kHz、400kHz、1MHz、3.4MHz、5MHz Five communication rates . The final communication rate depends on the peripheral rather than the host chip .
I2C The signal line
SCL Clock line
SCL The clock line determines the communication rate , The higher the frequency is. , The faster the transmission rate , Its presence High voltage usually ,SDA Line data valid .
SDA cable
SDA The data line determines what data to transmit , High level means 1, Low level means 0. stay SCL During high level ,SDA Must be stable .
I2C sequential
Start flag
SCL High voltage usually ,SDA Switch from high level to low level
End mark
SCL High voltage usually ,SDA Switch from low level to high level
Answer flag
SCL At high power level ,SDA keep Low level
Non response flag
SCL At high power level ,SDA keep High level
Waiting for an answer
And answer / Same as non response , It's just a SCL Set high , Release SDA See the level of the slave
about I2C The temporal , Something to watch out for :
- GPIO initialization ( Hardware I2C The reuse open drain mode should be strictly used , Prevent large current backflow , The software can use the ordinary push-pull output mode , But when switching between output and input modes , Do not operate the high and low levels of the pins , In order to avoid unnecessary level )
- I2C The calculation of reading and writing speed should be determined MCU Clock speed 、 The maximum rate that the slave device can accept
边栏推荐
- Solve STM32 operation μ Solution to sudden failure of task scheduling in c/os-ii system
- Binary sort tree
- Modelsim simulation FFT core cannot be simulated solution (qsys)
- 马斯克 VS 乔布斯,谁是21世纪最伟大的创业家
- Redis的安装及启动
- Px4 system terminal for pixhawk
- 黑盒测试 — 测试用例 之 判定表法看这一篇就够了
- Preorder and middle order traversal of forest
- 智慧家——全家具功能
- C#使用MySql进行操作
猜你喜欢
The maze of God's perspective in robot vision
debezium
FIFO code implemented in C language
Xinku online | cnopendata text data of IPO declaration and issuance of A-share listed companies
下载安装Flume
Typescript for Web Learning
Design and process analysis of anti backflow circuit for MOS transistor
C#使用MySql进行操作
idea配置
Case: drawing Matplotlib dynamic graph
随机推荐
Casually painted
Cartoon shader
Download and install flume
MySQL custom function instance
新库上线 | CnOpenData农产品批发价格数据
The kth largest element in the array
Sword finger offer II 096 String interleaving
Qt Cmake 纯C 代码调用系统控制台输入scanf 及 中文输出乱码
sqlserver 区分字符串中字母大小写
[learn FPGA programming from scratch -44]: vision chapter - integrated circuit helps high-quality development in the digital era -1- main forms of integrated circuit chips
Web信息收集,互联网上的裸奔者
Case: drawing Matplotlib dynamic graph
2022资料员-通用基础(资料员)考试模拟100题及在线模拟考试
Recognize map
Comment promouvoir efficacement les produits
Idempotence of interfaces -- talk about idempotence of interfaces in detail, that is, solutions
Spark log analysis
Error 65:access violation at 0x58024400: no 'read' permission
Unknown device ID does not appear on the STM32 st-link utility connection! Causes and Solutions
Is it safe to open a fund account? Are there any risks?