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.

[参考译文] MSP430FR2476:MSP430FR2476TPT:在端口4上配置 I2C

Guru**** 1831610 points
Other Parts Discussed in Thread: MSP430F2330
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1129723/msp430fr2476-msp430fr2476tpt-configuring-i2c-on-port-4

器件型号:MSP430FR2476
主题中讨论的其他器件:MSP430F2330

我正在尝试在 MSP430FR2476TPT 器件的引脚 P4 (引脚8和引脚9)上配置 UCB1 I2C 端口。

数据表 SLASEO7B 表4-2规定、这在 PT 封装上是可行的。

我曾尝试过:

SYSCFG3 |= USCIB1RMP;
P4SEL0 = 0x18;
P4SEL1 = 0x00;

它似乎没有为 SCL/SDA 引脚计时。

我也尝试过

P4SEL0 = 0x00;
P4SEL1 = 0x18;

P4SEL0 = 0x18;
P4SEL1 = 0x18;

仍然没有什么东西。 在我们的旧产品上使用 MSP430F2330时、没有任何问题地使用了驱动数据的代码。 我已将寄存器从 UCB1CTL1更新为 UCB1CTLW0。

注意:数据表不同意 CCS10.3.1 (SYSCFG3中的 USCIB1RMP、而数据表中的状态为 SYSCFG2)。

感谢您的任何帮助。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    LOL、忘记将 SMCLK 添加到端口。