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.

MSP432E401Y: GPIO Interrupt

Part Number: MSP432E401Y
Other Parts Discussed in Thread: SYSCONFIG

Hi,

I'm using Sysconfig to setup for a GPIO interrupt. I'm seeing latency in the microseconds.  I need sub-microsecond instructions to set the state of a different pin. Do I need to bypass HwiPMSP432E4_nortos.c?

Regards,

-Mike 

  • Hi Mike,

      I'm not really a TI-RTOS expert but please attached presentation about zero-latency interrupt. Although the presentation is for a different TI MCU, the idea is the same. 

    /cfs-file/__key/communityserver-discussions-components-files/908/4555.C28_5F00_zero_5F00_latency.pdf

  • Hi Mike,

      Not sure if you had a chance to try out the zero-latency interrupt. Below is what I tried on a TM4C123 device.

    In the .cfg file for this example, I change the interrupt priority to 0. 

    For the ISR ledToggle, I add the keyword interrupt

    //---------------------------------------------------------------------------
    // ledToggle()
    //
    // toggles LED on Tiva-C LaunchPad
    //---------------------------------------------------------------------------
    void interrupt ledToggle(void)
    {
    TimerIntClear(TIMER2_BASE, TIMER_TIMA_TIMEOUT); // must clear timer flag FROM timer

    // LED values - 2=RED, 4=BLUE, 8=GREEN
    if(GPIOPinRead(GPIO_PORTF_BASE, GPIO_PIN_2))
    {
    GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3, 0);
    }
    else
    {
    GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_2, 4);
    }

    i16ToggleCount += 1; // keep track of #toggles

    Log_info1("LED TOGGLED [%u] TIMES",i16ToggleCount); // send toggle count to UIA

    }