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

Part Number: MSP432P401R

Can you use the  adc COMP_E module in an RTOS environment.  I can run the COMP_E module using the driverlib example "comp_e_interrupt_output_toggle_vref12v", however, I cannot find a similar example under RTOS.  I have tried running the driverlib code in an RTOS environment and while the program loads and runs there is no interrupt from P5.7.  Can you point me in a direction to help me out.

thanks.

Dave

  • I would recommend looking at the tida_01575_serial example.

    In this example the RTC is included, which like the COMP_E peripheral does not have a driver.  In vibrationCapture.c you will find the necessary includes and code to create the HWI.

    #ifdef RTC_WAKEUP
    #include <ti/drivers/dpl/HwiP.h>
    #endif
    
    /* Driverlib Header files */
    #include <ti/devices/msp432p4xx/driverlib/driverlib.h>
        /* Enable interrupts from RTC Module. */
        HwiP_Params_init(&hwiPRTCParams);
        hwiPRTCParams.arg = 0;
        hwiPRTCParams.priority = 0x20;
        hwiPRTC = HwiP_create(INT_RTC_C, (HwiP_Fxn)RTC_C_IRQHandler, &hwiPRTCParams);
    
        if (hwiPRTC == NULL)
        {
            while(1);
        }

    Regards,

    Chris

**Attention** This is a public forum