supperthomas / bluetoothlover_doc

this is about the learning station about friends.
https://supperthomas-wiki.readthedocs.io/
Apache License 2.0
44 stars 26 forks source link

[bsp][IIC]研究一下IIC IIIC #154

Open supperthomas opened 3 years ago

supperthomas commented 3 years ago

nordic 的IIC 优化一下

supperthomas commented 3 years ago

https://www.rt-thread.org/document/site/#/rt-thread-version/rt-thread-standard/programming-manual/device/i2c/i2c

supperthomas commented 3 years ago

https://en.wikipedia.org/wiki/I%C2%B2C

supperthomas commented 3 years ago

模式[10] 最大 速度 最大 电容 驾驶 方向 标准模式 (Sm) 100 kbit/s 400 pF 开漏 双向 快速模式 (Fm) 400 kbit/s 400 pF 开漏 双向 快速模式加 (Fm+) 1 兆比特/秒 550 pF 开漏 双向 高速模式 (Hs) 1.7 兆比特/秒 400 pF 开漏 双向 高速模式 (Hs) 3.4 兆比特/秒 100 pF 开漏* 双向 超快模式 (UFm) 5 兆比特/秒 ? 推拉 单向

supperthomas commented 3 years ago
  1. 所有数据主机发起,从机不会主动发起
  2. 7bit地址的寻址是127个地址,如果总线上的地址相同的话,必须要换掉,一根总线上的地址不能有相同的
  3. START, DATA, ACK, STOP, NACK
  4. 主机读数据的时候,主机一定要知道需要读多少个字节
  5. 主机读完数据之后,最后一个字节回复NAK
supperthomas commented 3 years ago

嵌入式开发中i2c协议是怎么玩的?

supperthomas commented 3 years ago

速度:

  1. 普通模式: 100kHz
  2. 快速模式: 400kHz
  3. 高速模式: 3.4MHz
supperthomas commented 3 years ago

取代I2C和SPI的I3C接口来了,更快速度,更低功耗,兼容I2C

supperthomas commented 3 years ago

RT-THREAD 软件包: i2c-tools

  1. 测试sample
  2. 采用硬件i2c 接口
supperthomas commented 3 years ago

主机读数据的时候,如果出现数据都是0xFF,很有可能是从机没回数据

chenyingchun0312 commented 3 years ago

207

supperthomas commented 1 year ago

https://mp.weixin.qq.com/s/oVdrIVVRCpfLX_BtNZFk3Q

I3C和I2C之间的差异

supperthomas commented 9 months ago

https://mp.weixin.qq.com/s/2MIMbp4vl990Et-d20njBg

IIC注意点