This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

咨询关于2541 i2c模块 的上拉电阻配置

Other Parts Discussed in Thread: CC2541

我看spec里关于上拉电阻有配置,寄存器I2CWC的SCLPUE/SDAPUE位,应该是这2位置位就可以使能上拉电阻,这也是芯片reset默认时候的状态,

但是该寄存器的OVR位又有如下描述

Override enable:
0: I2C functionality (ignore other bits in this register)
1: GPIO functionality

OVR 为 0,使能I2C功能以后,忽略该寄存器其他位?就是其他位无效么,该如何理解?

另外在i2c驱动里面有函数

#define I2C_WRAPPER_DISABLE() st( I2CWC    =     0x00;)

似乎又是将上拉电阻禁止掉,那么应该需要外接上拉电阻,所以我的问题是

1)i2c模块自带的上拉电阻到底能不能用,就是不额外接上拉电阻能否正常工作?

2)i2cwc配置上拉电阻的位SCLPUE/SDAPUE到底能否起作用?

3)如果使能内部上拉电阻,同时又外接上拉电阻,比如4.7k,有没什么问题?

谢谢回复!