当前位置:网站首页>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
- 总线总裁
边栏推荐
- ES类和对象、原型
- HDU-2196 树形DP学习笔记
- Methods of adding centerlines and centerlines in SolidWorks drawings
- [email protected]能帮助我们快速拿到日志对象
- 搭建物联网硬件通信技术几种方案
- 嵌入式背景知识-芯片
- 2022.7.5DAY597
- Sword finger offer 38 Arrangement of strings [no description written]
- XML configuration file parsing and modeling
- ORM -- grouping query, aggregation query, query set queryset object properties
猜你喜欢

基于HPC场景的集群任务调度系统LSF/SGE/Slurm/PBS

Wallys/IPQ6010 (IPQ6018 FAMILY) EMBEDDED BOARD WITH ON-BOARD WIFI DUAL BAND DUAL CONCURRENT

VS Code指定扩展安装位置

Embedded background - chip

Chris Lattner, père de llvm: Pourquoi reconstruire le logiciel d'infrastructure ai

【STM32】STM32烧录程序后SWD无法识别器件的问题解决方法

Programming features of ISP, IAP, ICP, JTAG and SWD

字符串格式化

对存储过程进行加密和解密(SQL 2008/SQL 2012)

Appx code signing Guide
随机推荐
Guid主键
ORM model -- associated fields, abstract model classes
The variables or functions declared in the header file cannot be recognized after importing other people's projects and adding the header file
@Transcation的配置,使用,原理注意事项:
[email protected]能帮助我们快速拿到日志对象
Postman interface test III
Postman interface test VI
The request object parses the request body and request header parameters
Deadlock caused by non clustered index in SQL Server
Postman interface test V
The method of word automatically generating directory
一文讲解单片机、ARM、MUC、DSP、FPGA、嵌入式错综复杂的关系
【acwing】789. Range of numbers (binary basis)
Inno setup packaging and signing Guide
Finally, there is no need to change a line of code! Shardingsphere native driver comes out
Study summary of postgraduate entrance examination in September
STM32 product introduction
Why is the reflection efficiency low?
ISP、IAP、ICP、JTAG、SWD的编程特点
嵌入式工程师如何提高工作效率



