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 GPIO Input Port issue

Other Parts Discussed in Thread: MSP430F5659

All,

I have a set of boards containing an MSP430F5659 microcontroller, one if its job is to poll and test if the GPIO input P1.1 is high.

- on the same hardware, I got the following issue: sometimes (50%), the GPIO input pin bit in P1IN register does'nt correspond to the real state of the pin (The pin is always high and I'm measuring 3V3 on the O-scope, while the MSP430 is reading a 0).

as follows what I'm getting (I'll post my code therafter).

CASE 1, When it works:  

CASE 2: The issue comes up:

-------------> Software:

My FW is based on the gpioDriverLib. below the pseudo code:

// define pinout
#define		MyPin     GPIO_PIN1  // P1.1
// set gpio
GPIO_setAsInputPin(GPIO_PORT_P1, MyPin);	// set MyPin as input

// main program  
     if (GPIO_getInputPinValue(GPIO_PORT_P1, MyPin) == GPIO_INPUT_PIN_HIGH)
     {.... }

My question:

1- I'm a little bit confused how the issue comes-up on the same hardware. while the same FW Have been working on this HW.

2- had some one had similar issue with/without the gpioDriverLib?

3- do have idea how to troubleshoot this kind of issue?

4- Have I missed something?

Thank you :)

  • Hi Delared!

    Is something connected to the pins or are they floating?

    Dennis
  • Hi Dennis,
    The GPIO P1.1 is connected to a 3V3 signal.
  • Dennis,
    To be more precise,
    The GPIO pin is connected to a HRDY signal of HPI link from DSP C54x.
    on some board the link is working fine, The MSP430 is polling the HRDY signal before operation.
    This is my sequence:
    - After power-up, the MSP430 reset the DSP >> The DSP enter to HPI Bootloader sequence (INT2 is tied to HINT)
    - as follows the reset specs:
    1- RESET signal must be asserted low for at least two CLKOUT cycle
    2- INT2# flag active => HPI boot is selected
    3- The DSP enters its active state after about seven CLKOUT cycles of de-asserting RESET(goes high)
    4- I'm using the HRDY signal to notify the MSP430 that DSP is out of reset and ready for HPI bootloader.

    what I'm getting:
    - sometimes, on some boards, After DSP Reset, the MSP430 is reading HRDY signal low, however, the O-scope showing a 3V3 signal !!!
    Now, I added a Rpull-up resistor to HRDY signal, just to be sure the the signal is not floating...we will see if that works!
    Do you have any suggestions ?
  • updates:
    - even with Rpull-up on HRDY signal. the results doesn't change.
    - it seems that the problem comes from the MSP430 chip, not reading the P1.1 signal correctly?!

**Attention** This is a public forum