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.

MSP430F5437A: Unexpected GPIOs behavior

Part Number: MSP430F5437A

Hello Experts,

i am working on MSP430F5437A for one of the project, where we are using GPIO P8.4 to drive our hardware circuit based on set of predefined conditions in the program. During initialization we configured the GPIO as output LOW. Once all conditions met in the program we are making the GPIO to HIGH so it can drive hardware circuit.

Issue: Even though the program not satisfying any of the condition we have observed GPIO transition HIGH on P8.4 pin and driving the circuit which is not expected. We have confirmed this issue -

1.) By keeping break points at all conditions before going to set GPIO to HIGH. We didn't see program hitting break points at any of the conditions

2.) By enabling debug log in the program at all conditions and didn't see any logs going through the conditions before making GPIO to HIGH

Observation: We have observed, GPIO P8.0 going HIGH and exactly in sync with P8.4 but it is (P8.0) just configured as output LOW and not at all using in the program.

Do you have any history on GPIOs state transition unexpectedly without involvement of program?

Please let me know if you need any other information on this issue.

Thanks,

Gourav  

  

  • Hi Gourav,

    gourav roy said:
    we have observed GPIO transition HIGH on P8.4 pin

    It is not clear from your post if P8.4 goes HIGH because your program reaches the line of code where it is set to go HIGH. Does it get to the line of code where it is set to go HIGH? 

    gourav roy said:

    Observation: We have observed, GPIO P8.0 going HIGH and exactly in sync with P8.4 but it is (P8.0) just configured as output LOW and not at all using in the program.

    Is the pin P8.0 pulled high or low or is it just floating? 

    Srinivas

  • Hi Srinivas,

    Thanks for the reply.

    Code didn't get to the line of code where we are changing GPIO P8.4 to HIGH.

    GPIO P8.0 configured as output and pulled low similar to P8.4 but in the code  we are not at all changing it HIGH/LOW

    Thanks,

    Gourav

  • Hi Gourav,

    When that P8.4 & P8.0 pins misbehave, can you read the values of the configuration registers corresponding to the port P8?  - . P8SEL, P8DIR, P8REN, P8OUT. The contents of these registers hat might give some indication on what could be wrong.

    Are those register values as you expect them to be for the behavior you are expecting from P8.4 & P8.0?

    Srinivas

  • A description of what you think your code is doing is no substitute for the actual code. Which could be doing something else.

**Attention** This is a public forum