当前位置:网站首页>IIC Basics
IIC Basics
2022-07-07 10:29:00 【L7256】
Simply record IIC Related knowledge . Always forget .
First IIC It's two wires ,SDA and SCL,SDA For data transfer ,SCL It's a clock pulse .IIC It is a kind of half duplex communication .
- Hardware connection
By default SDA and SCL Both are in high level and idle state , So these two wires will be connected to Vcc
- IIC Several signal definitions of
- Idle signal
When SDA and SCL It's all high level , It is considered to be idle
- Start signal
SCL For the high ,SDA From high to low .
- Stop signal
SCL For the high ,SDA From low to high
- The data transfer
(1) Send the start signal
(2) Data transfer :SCL For the high ,SDA Stable ( Always high or low )
(3) Data jump :SCL For low ,SDA Allow jump
(3) Send a termination signal
notes : During data transmission ,SDA Do not jump , Otherwise it will be considered as the beginning / Stop signal .
- Answer signal
This signal indicates , The receiving end receives successfully or unsuccessfully 8 Bytes . When the first 9 A byte high indicates ACK The signal , Indicates the positive response of the receiving end . When the first 9 A low byte indicates NACK The signal , Indicates the negative response of the receiving end .
(1) Start signal
(2) Data transfer (SCL high SDA Stable . SCL low SDA change , Until it was sent 8 position )
(3)SCL Low level ,SDA The signal changes ( The receiving end controls the high and low levels )
(4)SCL The clock pulse becomes high ,SDA The signal is stable ( Receiving end control )
(5) The sender detects at 9 individual SCL When the pulse is high SDA The signal
(6)SDA by 1 surface ACK,SDA by 0 surface NACK
- Bus President
边栏推荐
- Elegant controller layer code
- The Hal library is configured with a general timer Tim to trigger ADC sampling, and then DMA is moved to the memory space.
- How embedded engineers improve work efficiency
- 嵌入式工程师如何提高工作效率
- 【acwing】789. 数的范围(二分基础)
- A small problem of bit field and symbol expansion
- 字符串格式化
- 求最大公约数与最小公倍数(C语言)
- EasyExcel读取写入简单使用
- Programming features of ISP, IAP, ICP, JTAG and SWD
猜你喜欢
成为优秀的TS体操高手 之 TS 类型体操前置知识储备
Socket通信原理和实践
IO model review
OpenGL glLightfv 函数的应用以及光源的相关知识
The Hal library is configured with a general timer Tim to trigger ADC sampling, and then DMA is moved to the memory space.
php \n 换行无法输出
openinstall与虎扑达成合作,挖掘体育文化产业数据价值
AHB bus in stm32_ Apb2 bus_ Apb1 bus what are these
Fiddler simulates the interface test
Smart city construction based on GIS 3D visualization technology
随机推荐
LLVM之父Chris Lattner:为什么我们要重建AI基础设施软件
Appx代码签名指南
XML configuration file parsing and modeling
Guid主键
OpenGL glLightfv 函数的应用以及光源的相关知识
【华为机试真题详解】高矮个子排队
How to cancel automatic saving of changes in sqlyog database
Leetcode exercise - 113 Path sum II
Encrypt and decrypt stored procedures (SQL 2008/sql 2012)
The method of word automatically generating directory
Embedded background - chip
Learning records - high precision addition and multiplication
Guide de signature du Code Appx
Experience sharing of software designers preparing for exams
【作业】2022.7.6 写一个自己的cal函数
Study summary of postgraduate entrance examination in September
浅谈日志中的返回格式封装格式处理,异常处理
When there are pointer variable members in the custom type, the return value and parameters of the assignment operator overload must be reference types
大整数类实现阶乘
原型与原型链