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.

RTOS/MSP432E401Y: IO PIN RESPONSE ISSUE ON INTERRUPT

Part Number: MSP432E401Y

Tool/software: TI-RTOS

Hello,

I am using Toggle switches on IO's in my applications and i have two doubts:

1. When i am using GPIOMSP432E4_PE0 & GPIOMSP432E4_PE1 in combined, the code seems to  be hanging somewhere.

   However if i use each IO's individually, my code working properly.

   I am connecting these i/o's to the push buttons on launchpad.

  and in the msp432e401y.c & msp432e401y.h files i have initialised in sequence as mentioned in the header file.

   What might be the problem here?

2. If i use a two pole toggle switch,with three terminals, one end terminal is connected to PE0, other end to the PE1 and centre terminal to the GND. So automatically one terminal will be connected to the ground              initially. 

    so here i would like to send command on uart as per the switch position.  I have written the code similar to the gpiointerrupt.c.

    I have configured io pins as 

    

    GPIO_setConfig(Board_GPIO_1, GPIO_CFG_IN_PU | GPIO_CFG_IN_INT_RAISING);

    GPIO_setConfig(Board_GPIO_2, GPIO_CFG_IN_PU | GPIO_CFG_IN_INT_RAISING);

    In call back functions i have used one flag, based on that flag i am sending command on uart.

  It is  also not working?.

 Since either of the pin is grounded in hardware as per the switch position, what must be the ideal configurations for the IO pins for writing an interrupt basedprogram.

Thank you

Regards

Kalyan.

   

    

     

    

  • Hello,

        In the original schematic of the Launchpad, the push buttons are connected to PJ0 and PJ1.  Can you confirm that this example still works before any hardware modifications are made?

        Have you tried using GPIO_CFG_IN_INT_FALLING?  Since you are using an internal pullup and the button is causing a falling edge, that would seem more logical.

    Regards,

    Chris

  • Hello chris,

    Thank you for the response.

    The example you mentioned working fine. I have used two more push buttons, one is across PE0 & GND, other one is across PE1&GND. Individually if I use, both are working fine along with the push buttons which already there on the board but if I configure both PE0 & PE1 in the code then its not working, not even existing push buttons.

    Coming to second one, I have tried with falling edge interrupt as well but couldn't succeeded.

  • Hello Chris,

    These are the initialization of pins in my code:

      

    1. One more thing is that : here if i use PH0 instead of PE1 then also its call back functions are not executing. However if i configure only PH0 (without PE0)      then its call back function is executing.

        similarly if i configure both  PH0 & PH1 (in place of PE0 & PE1) then call back functions are not executing. However if i configure only PH0 or  only PH1          then callback functions are executing.

        I'm not getting why this kind of scenario is happening.

       Could you please suggest the solution.

    2. Coming to my second doubt: Is Connecting an IO pin directly to the ground causing the issue in interrupt callback?

    Thank you

    Kalyan.

  • I forgot to initialise the values in gpioCallbackFunctions[] of msp_exp432e401y.c file .

  • Thank you for the information and closing this thread.

    Regards,

    Chris

**Attention** This is a public forum