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.

[参考译文] MSP430FR6047:使用 Get 指针方法的 ADC 采集数据

Guru**** 2609955 points
Other Parts Discussed in Thread: EVM430-FR6047, MSP430FR6047

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1571080/msp430fr6047-adc-capture-data-using-the-get-pointer-method

器件型号:MSP430FR6047
主题中讨论的其他器件:EVM430-FR6047

工具/软件:

您好!  

我仅使用 MSP430FR6047 及其配套器件、基于 EVM430-FR6047 设计了自己的水跟踪板。  

因此、我无法使用 USS 设计中心、因为我要通过 TTL 串行接口连接到 USB 设备的串行端口、并且没有能够连接的 UID。 如果您知道一种无需 USB/HIDbridge 即可连接的方式、请告诉我吗?  

我将存储并打印从 Get 方法(此处)收集到的数据到 TO 串行端口:  

USS_getUPSPtr (config);  

我获取了输出的日志并附加了下面的内容、在 adc_output.txt 中、我还删除了所有前面的–1 值、因为这些值有数千个。   

下面是我如何调用 get 方法以及如何将其打印到串行端口的代码。

 
USS_SW_Library_configuration *config;
// int32_t	upsSum, dnsSum;
int16_t *pUpsValue

while(1)
{

    // Start an ultrasonic measurement and enter a low-power mode while waiting for it to complete.
    /*
     * USS_startLowPowerUltrasonicCapture()
     * - Unlocks and configures the SAPH (Sigma-Delta Analog Front End) module.
     * - Initiates DMA-driven signal capture.
     * - Enters low-power mode (LPM3) until the capture completes.
     * - Triggers hardware-automated sequence via ASQ (Application Specific Sequencer).
     *
     */
    code = USS_startLowPowerUltrasonicCapture(&gUssSWConfig);
    checkCode(code, USS_message_code_no_error);
    
    // After capture is complete, run the algorithms to process the raw signal and get results.
    /*
     * USS_runAlgorithms()
     * - Updates the results structure with computed values such as totalTOF_UPS, totalTOF_DNS, deltaTOF, and volumeFlowRate.
     */
    code = USS_runAlgorithms(&gUssSWConfig,&algResults);
    checkCode(code, USS_message_code_valid_results);
    
    ....
     
     pUpsValue = USS_getUPSPtr(config);
     
     char buffer1[32]; // Buffer for formatting each sample
     
     // Add UPS and DNS captures based on configuration sample size
    for(i=config->captureConfig->sampleSize; i>0; i--)
    {
        // upsSum+=(*pUpsValue++);
        // dnsSum+=(*pDnsValue++);
        sprintf(buffer1, "%d,", pUpsValue[i]);
        
        UART_transmitString(buffer1);
        // UART_transmitString_support(buffer1);
    }
}

由于我无法访问 USS 设计中心 ADC 捕获日志文件、因此我创建了自己的 GUI 来绘制捕获图、除了前面的–1 个元素外、所有从捕获中收集到的数据都会显示此内容。   

e2e.ti.com/.../adc_5F00_output.txte2e.ti.com/.../adc_5F00_output_5F00_cleaned.txt

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

    尊敬的 Toby:

    那么这里有什么问题吗? 老实说、如果没有 USB/HID 桥、调试和监测 ADC 波形将非常困难...

    我们仍然建议连接到 USS 设计中心以监控参数和其他信息。 您可以尝试了解如何获取 EVM430-FR6047。

    谢谢!

    此致

    Johnson

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

    是的、我有这个板、但我也有一个我设计的板。 我想验证我设计的电路板在从传感器采集的 ADC 数据上是否正常工作。  


    有没有办法连接到我使用 USS 设计中心设计的 MSP430FR6047 板? 我有  EVM430-FR6047。 我能否将 EVM430-FR6047 的 HIDBridge 位置的连接跳线连接到电路板?  
    我将 MSP430FR6047 的这些引脚引出到卡上的 berg 接头中:  

    我是否可以使用这些引脚将 EVM430-FR6047 连接到电路板?



    否则、通过此方法 USS_getUPSPtr (config) 得出的数据的哪一部分 是 ADC 部分? 它被解析在你的工具,所以为什么我不能做我的。  

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

    您好!

    我仍在寻求对此的意见。  

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

    尊敬的 Toby:

    很抱歉、由于假期、您稍后会回复、

    是的、您可以通过以下方法将您的电路板连接到 USS 设计中心:

    I2C_SCL、I2C_SDA、I2C_IRQ。

    PS:我们建议使用 I2C 接口、因为其速度比 UART 快。

    谢谢!

    此致

    Johnson