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.

[参考译文] MSP432P401R:MSP432P401R

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

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

器件型号:MSP432P401R

您能否 在 RTOS 环境中使用 ADC COMP_E 模块?  我可以使用 driverlib 示例"comp_e_interrupt_output_toggle_vref12v"运行 COMP_E 模块、但是、在 RTOS 下找不到类似的示例。  我尝试在 RTOS 环境中运行 driverlib 代码、程序加载并运行时、P5.7没有中断。  您能给我指个方向来帮助我吗?

谢谢。

Dave

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

    我建议查看 TIDA_01575_serial 示例。

    本示例中包含 RTC、与 COMP_E 外设类似、它没有驱动程序。  在振动捕获.c 中、您将找到创建 HWI 所需的包含项和代码。

    #ifdef RTC_WAKEUP
    #include 
    #endif
    
    /* Driverlib 头文件*/
    #include 
    /*启用来自 RTC 模块的中断。 *
    Hwip_Params_init (&hwiPRTCParams);
    hwiPRTCParams.arg = 0;
    hwiPRTCParams.priority = 0x20;
    hwiPRTC = Hwip_create (INT_RTC_C、(Hwip_Fxn) RTC_C_IRQHandler、&hwiPRTCParams);
    
    if (hwiPRTC ==空)
    {
    while (1);
    } 

    此致、

    Chris