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.

[参考译文] CCS/MSP432E401Y:找到了在 MSP432上进行 I2C 工作的权变措施/解决方案

Guru**** 2526700 points
Other Parts Discussed in Thread: MSP432E401Y, LM49450

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/942610/ccs-msp432e401y-found-a-workaround-solution-to-get-i2c-work-on-msp432

器件型号:MSP432E401Y

工具/软件:Code Composer Studio

您好、再说一次、

1."i2c_mastermode_simple_transfer.c"示例不起作用。

2.我通过注册 IRQ 处理程序"void I2C1_IRQHandler (void)"使示例正常工作。 在本例中,它没有登记,因此没有被执行。 显然、在 MSP432领域中、IRQ 处理程序必须被明确注册。 我来自 AVR 域,在这里中断处理程序由它们的名称隐式(自动)注册,例如"ISR (PORT_PORT_vect){... }"。

3.由于未知的原因,我没有 IRQ 的方法通过轮询 μ I²C 外设的标志仍然不起作用,尽管它应该(有时也会起作用)。

4.我通过执行发送第一个数据字节(即 LM49450的寄存器描述符)两次的命令来解决这个问题。 现在它可以正常工作。

问题得到解决。 (我无法将原始线程标记为"已解决"、因为它已同时锁定、但我想与社区共享此信息。)