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.

lauchpad P1.3 pull-down resistor

Other Parts Discussed in Thread: MSP430G2553

Hi,

I have an old launchpad and a new launchpad. I usually use the push button of my old launchpad as an input for testing my programs. When I tried to do the same on my new launchpad I realized it didn't work well... After a while, and by chance, I enabled the P1.3 pull-down resistor and surprisingly the push button of my new launchpad worked in the same way that my old launchpad... Can somebody explain me why is this happening if the schematics connections seem to be the same in both?

Paul Medina

  • Because MSP430G2553 needs Resistor Enable signal to intake the P1OUT data to the P1IN register. Without P1IN set to 1 for the button, the controller wouldn't know at all if the switch is present or not as pressing the switch won't change the P1IN status unless you enable the P1REN for the button.

  • To be more excact, you will need to take attention to P1OUT, P1REN and P1DIR. As usual P1DIR must be set up as input for the button and reads the value at the according pin. With P1REN you can - and must if there is none - enable the internal pull-up or pull-down resistors. If a pull-up or pull-down is used is decided by the value in P1OUT register.

  • Yeah I ain't using any pull up or pull down resistors but I am enabling the P1REN pin for the button, also setting the essential values in P1DIR and P1OUT registers. Apart from dealy can you suggest a link or show a code for timer in msp430g2553? The g2211's code I saw on many tutorials aren't helping!

  • Thank you guys!

    I compared both Launchpads (the old one and the new one), then I realized that the new one doesn't have the outter pull-up and capacitor conected to P1.3 (marked as R34 and C24 in the schematic diagram)... then that's why the chip can't never read a logical 1 at its input.

  • Hi, Paul.

    Paul Medina said:
    I have an old launchpad and a new launchpad. I usually use the push button of my old launchpad as an input for testing my programs. When I tried to do the same on my new launchpad I realized it didn't work well... After a while, and by chance, I enabled the P1.3 pull-down resistor and surprisingly the push button of my new launchpad worked in the same way that my old launchpad... Can somebody explain me why is this happening if the schematics connections seem to be the same in both?

    The quick answer is that this is due to a LaunchPad hardware change.

    The change (and others, including the new Rev 1.5 layout for jumper block J3) are described in Rev. B of the "MSP-EXP430G2 LaunchPad Experimenter Board User's Guide" (you want slau318b.pdf, the trailing "b" is important).

    Section 1.3, "Revisions", describes the change: R34, the external pullup for P1.3, is no longer present on the Rev. 1.5 LaunchPad boards. This why you needed to change your code to enable the internal pullup for P1.3 to get the same effect.

    Item 8 in Section 7, "Frequently Asked Questions" says, in part:

    LaunchPad revisions 1.3 and 1.4 come with R34 populated. The 47-kΩ resistor is used as a pullup for the button S2. If the port P1.3 is driven to ground, as suggested to keep the power consumption down, the pullup resistor generates an additional current of approximately 77 μA. To reduce the power consumption, the port should stay in input mode or the resistor should be removed if button S2 is not used. The internal pullup of the MSP430G2xx can be used instead.


    Hope this helps.

    Frank

  • The information in this thread is of great help and should be verified by someone, as it solves many doubts regarding the different launchpad revisions and P1.3.

    Thanks.

**Attention** This is a public forum