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.

[参考译文] MSP430FR6989:需要在 MSP 器件上读取和写入用于 Energia 的 FRAM 示例代码。

Guru**** 2589265 points
Other Parts Discussed in Thread: MSP430FR6989, ENERGIA

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/769095/msp430fr6989-need-read-and-write-example-code-for-fram-on-the-msp-device-for-energia

器件型号:MSP430FR6989
主题中讨论的其他器件: Energia

您好!

这里的任何人能否为我提供用于在 Energia 上读取和写入 MSP430FR6989 FRAM 示例或演示代码的链接或代码...

谢谢你

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

    您好!

    您可以执行以下操作:

    /*
    FRAM 演示
    访问和更新存储在 FRAM 中的数据
    */
    
    uint16_t Buffer[100] pose_in_FRAM;
    
    void setup ()
    {
    //初始化串行并等待端口打开:
    Serial.begin(9600);
    
    //打印标题并结束换行
    符 Serial.println ("FRAM Demo");
    if (Buffer[0]= 0xFFFF)
    {
    Buffer[0]= 0;
    }
    
    
    
    void loop()
    {
    Serial.println (Buffer[0],hex);
    delay (1000);
    Buffer[0]+= 1;
    } 

    此致、

    Stefan

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    感谢您的回复 Stefan
    上面的示例代码对我非常有帮助。