当前位置:网站首页>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
边栏推荐
- Study summary of postgraduate entrance examination in November
- AHB bus in stm32_ Apb2 bus_ Apb1 bus what are these
- 【acwing】789. Range of numbers (binary basis)
- 成为优秀的TS体操高手 之 TS 类型体操前置知识储备
- When there are pointer variable members in the custom type, the return value and parameters of the assignment operator overload must be reference types
- mysql插入数据创建触发器填充uuid字段值
- LeetCode 练习——113. 路径总和 II
- 【华为机试真题详解】高矮个子排队
- 学习记录——高精度加法和乘法
- Weekly recommended short videos: what are the functions of L2 that we often use in daily life?
猜你喜欢
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 换行无法输出
Encrypt and decrypt stored procedures (SQL 2008/sql 2012)
Serial communication relay Modbus communication host computer debugging software tool project development case
Postman interface test III
对word2vec的一些浅层理解
求方程ax^2+bx+c=0的根(C语言)
5个chrome简单实用的日常开发功能详解,赶快解锁让你提升更多效率!
Elegant controller layer code
【acwing】786. 第k个数
随机推荐
Guid primary key
Encrypt and decrypt stored procedures (SQL 2008/sql 2012)
php \n 换行无法输出
IO model review
This article explains the complex relationship between MCU, arm, muc, DSP, FPGA and embedded system
LLVM之父Chris Lattner:为什么我们要重建AI基础设施软件
.NET配置系统
Chris LATTNER, the father of llvm: why should we rebuild AI infrastructure software
电表远程抄表拉合闸操作命令指令
成为优秀的TS体操高手 之 TS 类型体操前置知识储备
【STM32】STM32烧录程序后SWD无法识别器件的问题解决方法
嵌入式工程师如何提高工作效率
字符串格式化
STM32 ADC and DMA
Multisim--软件相关使用技巧
table宽度比tbody宽度大4px
The method of word automatically generating directory
JMeter loop controller and CSV data file settings are used together
P1031 [NOIP2002 提高组] 均分纸牌
The mobile terminal automatically adjusts the page content and font size by setting rem