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.

Port u pins won't stay high

Other Parts Discussed in Thread: MSP430F5359, MSP430F5324

Hi all,

We are working on a custom hardware pcb design, for this design we need to set both port U pins high, we are using the MSP430f5359. We looked at the data sheet and there it says te following:

The integrated 3.3-V power system incorporates an integrated 3.3-V LDO regulator that allows the entire
MSP430 microcontroller to be powered from nominal 5-V LDOI when it is made available for the system.
Alternatively, the power system can supply power only to other components within the system, or it can be
unused altogether.
The Port U Pins (PU.0 and PU.1) function as general-purpose high-current I/O pins. These pins can only be
configured together as either both inputs or both outputs. Port U is supplied by the LDOO rail. If the 3.3-V LDO is
not being used in the system (disabled), the LDOO pin can be supplied externally

If we read this correctly the PU pins are by default sourced from the LDO rail? Sow we need to activate the LDO rail and then set the output high? For this we have used the following code segment:

LDOKEYPID = 0x9628; // Enable access to config registers
LDOPWRCTL |= LDOEN;
PUCTL |= PUOPE + PUOUT1 + PUOUT0; // PortU outnput enable
LDOKEYPID = 0x0; // Disbale access to config registers

When we run the code we see dont see that the pins become high, we activate the LDO and set the port u pins to output(and high). Is there a step that we are missing? Also when activating the LDO does this increase the power consumption since it is a 3.3v rail.

  • Hi all,

    After some more searching i found the following post:

    http://e2e.ti.com/support/microcontrollers/msp430/f/166/t/69754.aspx Here they talk about the PU pins on the MSP430F5324/F5524. Like the MSP430F5359 one has USB and other has not, both have the port u pins(?).

    One thing caught my attention: 

      Are the LDOO/LDOI pins (F5324) the same as VUSB/VBUS pins to internal 3.3 LDO (F5524)? (Meaning, must LDOO/LDOI must be powered in order for PU.0/1 to work?)

    a.       Yes, the LDOO/LDOI pins of F5324 are the same as VUSB/VBUS pins of the internal 3.3V LDO in F552x devices. And the 3.3V should be made available at the LDOO or Vusb pin to use the PU.0/1 pins


    If i read this correctly then in order to use the  port U pins there should be 3.3 v supplied externally in order to work with the pins (use as GPIO)? 

    I also found this entry in the TI wiki: http://processors.wiki.ti.com/index.php/Migrating_from_MSP430_USB_Devices_to_its_Non-USB_Variants

    Case 1: USB Port U pins used as General-purpose digital I/O

    When the USB module is not used, the USB data pins PU.0/DP and PU.1/DM can used as general purpose, high-current I/O. USB Control register USBPHYCTL is used to configure Port U and this port is powered from the VUSB rail. Recommended pin connections in this case:

    V18                                 – No  Connect
    VBUS, VSSU, PUR          – GND
    VUSB                              – Supply voltage to be provided externally †
    PU.0/PU.1                       – GPIO pins [Refer to the Ports PU.0 and PU.1 section of device specific datasheet for VOH/VOL, VIH/VIL threshold specifications]

    † Refer to device specific datasheet for the VUSB input range 

    This in combination with other information must the LDOO (the pin for the non-usb variant, the usb variant uses the VUSB pin) be supplied externally with 3v3 in order to user port U pins as GPIO (for the MSP430F5359 variant)? 

    In our design the LDOI and LDOO are currently not connected to anything, could this be the reason why the port u pins can not be set high?

  • Looking at chapter 41.1 in the users guide (LDO-PWR introduction) shows that PortU is connected to LDOO. Also, in 41.2, it reads “The LDO-PWR, when enabled, also supplies power to Port U”

    And furthermore in 41.2.4: “If Port U operation is desired, since the 3.3-V LDO is not enabled, an external voltage to the LDOO pin is required”

    Finally in 41.2.7: “Port U is supplied by the LDOO rail.”

  • Hi Jens-Michael,

    Thank you for your answer! Last monday we came to the same conclusion, but it is good news that a expert comes to the same conclusion.

**Attention** This is a public forum