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.

[参考译文] MSP430FR2355:MSP430FR2355

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1077541/msp430fr2355-msp430fr2355

部件号:MSP430FR2355
主题中讨论的其他部件:MSP-EXP430FR2355

你(们)好

在  MSP-EXP430FR2355软件示例中,我们尝试使用 i2c 模块。

但是,当尝试初始注册 UCBxCTLW0时,程序链接到 msp430fr2355.h

即  

HWREG16 (基址+ OFS_UCBxCTLW0)= UCSWRST;

控制位 UCSWRST 来自 eUSCI_A0控制位的定义,如下所示  

=========================  msp430fr2355.h=========================================

/* eUSCI_A0控制位*/

/* UCA0CTLW0控制位*/
#define UCSWRST (0x0001)/*软件重置启用*/
#define UCSWRST_L (0x0001)

=================================================================

你觉得这是可以的吗?

在我看来,页眉文件与数据表不同步。

我对  eUSCI_B0控制位的要求是这样的。

请提供建议

谢谢

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

    如果您想进行注册级别编码,请参阅演示  

    https://dev.ti.com/tirex/explore/node?node=AMBjZiES.439kq5vgWkDNg__IOGqZri__LATEST 

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

    我在下面附上的标题文件 msp430fr2355.h 的问题

    这是我用来编译的正确文件吗?

    一.E.

    当我使用 UCMST 位偏移并且它在第6251行中定义时 ,第6135行中的 UCA0CTLW0_SPI 模块是什么?

    是否应该在 第6848行中定义 eUSCI_B0模块?

    看起来像

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    //*****************************************************************************
    //
    // Copyright (C) 2012 - 2021 Texas Instruments Incorporated - http://www.ti.com/
    //
    // Redistribution and use in source and binary forms, with or without
    // modification, are permitted provided that the following conditions
    // are met:
    //
    // Redistributions of source code must retain the above copyright
    // notice, this list of conditions and the following disclaimer.
    //
    // Redistributions in binary form must reproduce the above copyright
    // notice, this list of conditions and the following disclaimer in the
    // documentation and/or other materials provided with the
    // distribution.
    //
    // Neither the name of Texas Instruments Incorporated nor the names of
    // its contributors may be used to endorse or promote products derived
    // from this software without specific prior written permission.
    //
    // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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

    UCSWRST 是所有 EUSCI 变体的通用参数,因此不会为每个实例重新定义符号。