bluetoothlover_doc icon indicating copy to clipboard operation
bluetoothlover_doc copied to clipboard

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

Open supperthomas opened this issue 3 years ago • 12 comments

nordic 的IIC 优化一下

supperthomas avatar Aug 19 '21 14:08 supperthomas

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

supperthomas avatar Sep 06 '21 09:09 supperthomas

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

supperthomas avatar Sep 06 '21 09:09 supperthomas

模式[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 avatar Sep 06 '21 09:09 supperthomas

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

supperthomas avatar Sep 06 '21 16:09 supperthomas

速度:

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

supperthomas avatar Sep 06 '21 16:09 supperthomas

RT-THREAD 软件包: i2c-tools

  1. 测试sample
  2. 采用硬件i2c 接口

supperthomas avatar Sep 06 '21 17:09 supperthomas

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

supperthomas avatar Sep 09 '21 01:09 supperthomas

#207

chenyingchun0312 avatar Oct 02 '21 12:10 chenyingchun0312

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

I3C和I2C之间的差异

supperthomas avatar Aug 21 '23 07:08 supperthomas

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

IIC注意点

supperthomas avatar Jan 05 '24 06:01 supperthomas