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.

[参考译文] MSP430G2755:SPI 配置

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1036987/msp430g2755-spi-configuration

器件型号:MSP430G2755

大家好、

我们希望在下面就我们客户的询问寻求您的帮助。

大家好、我正在尝试将 MSP430G2755配置为通过 SPI 总线与 TPL0501 (数字电阻器)进行通信。 我将引脚10、P3.1设置为 MOSI、引脚12、P3.3设置为 SCLK、引脚9、P3.0设置为芯片选择。

我正在使用 Code Composer Studio 作为 IDE、我正在尝试找到寄存器 USICTL0以正确配置 SPI 设置、但我似乎无法这样做。 我已  正确配置 UCB0CTL0、UCB0CTL1、并且我的引脚全部配置为 GPIO。 我在用户指南中看到 、078h 是 USICTL0的地址位置、但我似乎找不到引用名称的文件、我在 MSP430g2755.h 中看不到它  

请告诉我是否缺少任何内容、或者您是否有有助于配置 SPI 总线的示例代码。 非常感谢。  

此致、

Danilo