当前位置:网站首页>IIC基本知识
IIC基本知识
2022-07-07 08:14:00 【L7256】
简单记录下IIC相关知识点。老是忘记。
首先IIC是两根线,SDA和SCL,SDA用于传输数据,SCL是时钟脉冲。IIC是半双工的一种通信。
- 硬件连接
由于默认SDA和SCL都为高电平为空闲状态,所以这两根线会通过上拉电阻接到Vcc
- IIC的几种信号定义
- 空闲信号
当SDA和SCL都为高电平,认为是空闲状态
- 起始信号
SCL为高,SDA由高变到低。
- 终止信号
SCL为高,SDA从低变到高
- 数据传输
(1)发送起始信号
(2)数据传送:SCL为高,SDA稳定(一直为高或者低)
(3)数据跳变:SCL为低,SDA允许跳变
(3)发送终止信号
注:数据传送的时候,SDA不能跳变,否则就会被认为是起始/终止信号。
- 应答信号
这个信号表示,接收端成功或者不成功的接收了8个字节。当第9个字节为高表示ACK信号,表明接收端的肯定响应。当第9个字节为低表示NACK信号,表明接收端的否定响应。
(1)起始信号
(2)数据传送(SCL高SDA稳定。 SCL低SDA变化,直到发了8位)
(3)SCL低电平,SDA信号变化(接收端控制高低电平)
(4)SCL时钟脉冲变为高电平,SDA信号稳定(接收端控制)
(5)发送端检测在第9个SCL脉冲为高期间的SDA信号
(6)SDA为1表ACK,SDA为0表NACK
- 总线总裁
边栏推荐
- Postman interface test II
- 2022.7.3DAY595
- AHB bus in stm32_ Apb2 bus_ Apb1 bus what are these
- Chris LATTNER, the father of llvm: why should we rebuild AI infrastructure software
- 字符串格式化
- Parameter sniffing (2/2)
- Some test points about coupon test
- 基于gis三维可视化技术的智慧城市建设
- Google colab loads Google drive (Google drive is used in Google colab)
- fiddler-AutoResponder
猜你喜欢

Vs code specifies the extension installation location

mysql插入数据创建触发器填充uuid字段值

Adb 实用命令(网络包、日志、调优相关)

【二开】【JeecgBoot】修改分页参数

ISP、IAP、ICP、JTAG、SWD的编程特点

【acwing】789. 数的范围(二分基础)

1324:【例6.6】整数区间

ORM model -- associated fields, abstract model classes

fiddler-AutoResponder

Use the fetch statement to obtain the repetition of the last row of cursor data
随机推荐
高数_第1章空间解析几何与向量代数_向量的数量积
基于HPC场景的集群任务调度系统LSF/SGE/Slurm/PBS
Appx code signing Guide
Introduction to uboot
嵌入式背景知识-芯片
How to cancel automatic saving of changes in sqlyog database
求最大公约数与最小公倍数(C语言)
When there are pointer variable members in the custom type, the return value and parameters of the assignment operator overload must be reference types
The variables or functions declared in the header file cannot be recognized after importing other people's projects and adding the header file
串口通讯继电器-modbus通信上位机调试软件工具项目开发案例
电表远程抄表拉合闸操作命令指令
【二开】【JeecgBoot】修改分页参数
Use of JSON extractor originals in JMeter
SQLyog数据库怎么取消自动保存更改
ORM model -- associated fields, abstract model classes
Finally, there is no need to change a line of code! Shardingsphere native driver comes out
单片机(MCU)最强科普(万字总结,值得收藏)
[learning notes - Li Hongyi] Gan (generation of confrontation network) full series (I)
Inno Setup 打包及签名指南
Appx代码签名指南



