typedef enum
{
i2cClock_123KHZ = 0x00,
i2cClock_144KHZ = 0x01,
i2cClock_165KHZ = 0x02,
i2cClock_197KHZ = 0x03,
i2cClock_33KHZ = 0x80,
i2cClock_267KHZ = 0x81,
i2cClock_533KHZ = 0x82
} i2cClock_t;
【这个是IIC时钟配置,请问,硬件IIC时钟 和 硬件IIC数据传输速率400kbps有何关系?】
The I2C module features include:
• Compliance with the I2C specification v2.1 (published by Philips Semiconductor)
• 7-bit device addressing modes
• General call
• START/RESTART/STOP
• Multi-master transmitter/receiver mode
• Slave receiver/transmitter mode
• Standard mode up to 100-kbps and fast mode up to400-kbps support
【请问工程师,我要设置CC2541 硬件IIC通信数据传输速率(比特率)设为400-kps的,应该怎么设置?通过哪个函数/参数设置? 】
谢谢!
cedar_xuesong:
标准I2C是100K,快速I2C是400K
2541硬件特性可以支持到400K速度,但实际的速度还要看你使用的晶振和PLL时钟配置
记得协议栈里没有带I2C驱动,给你分享一个