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.

MSP430F5659: Retains its last States of GPIO After Powercycle

Part Number: MSP430F5659


Hi experts,

Im using MSP430F5659 controller for my project. I happened to see that after power cycle the MCU retains its last state of GPIOs, I used watch dog reset int my code.

flashed using MSP430 JTAG & CCS. But the situation is like that if i reset the MCU before power cycle , it will not retain the previous states.

What may be the reason for this problem. Kindly suggest me a solution for this.

Regards,

Renjith

  • Hi Renjith,

    how you performed the power cycle means what happend to DVCC, VBAT ? Did you had JTAG disconnected during power cycle?
    Normally a WDT tiggered PUC should reconfigure all GPIO back to input floating (HIZ).

  • Power cycles means just turn off/on the MCU. DVCC connected to 3v3, and VBAT connected to Super capacitor.

    Is this is due t the Super capacitor ?

     

  • Hi Renjith,

    I mean if the device still sees power due to larger capacitor on the supply it might not get a reset. In such a case recommend an active discharge of the cap to see if this helps.

    However this should have no impact for the WDT PUC the WDT PUC will definitly reset the GPIO registers. However you have to consider that you code will restart and reconfigure the GPIO not sure if you considered this. The time between reset and reconfiguration might short depending on you code so that you do not recognize it.

    The best way is to use a GPIO which is pulled high from the device during normal operation e.g. a LED with serial resistor to GND. This pin should be observed if it gets a falling edge during WDT because WDT will reset GPIOs to input floating means the load connected to it should pull it low. For observation I recommend an oscilloscope to catch also very short low times.

  • Hi Renjith,

    Is Walter's reply helpful to your case? any update about this?
  • Hi Renjith,

    Is there any progress on your side? We hope our suggestion is helpful to you. Because until now there is no further feedback from your side and I was required to track this case, I would like to close this thread temporarily. Of course you can open it any time again and submit your any confuse after our vacation(Chinese New Year). Thanks again!

**Attention** This is a public forum