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.

MSP430 GPIO default state

Hello,

Probably a silly question but what does this mean?

Pin Name/Function                          P1DIR.x         P1SEL.x

P1.1(1) (I/O)                                        "I: 0; O: 1"          "0"

(1) Default after reset (PUC, POR)

I'm looking for the default, ie non-programmed condition of this pin. Clearly the P1SEL sets the pin to the GPIO function, ie state "0", but I don't understand the "I: 0; O: 1". As the direction is only one bit surely it should be configured as an input or an output?

I'm also interested in the pullup/pulldown resistor which doesn't seem to be configured.

Any ideas?

Thanks,

Paul

  • after reset

    io pins are configure as inputs
    ( PxDIR bits are set on 0 )

    and io pins works like io pins (not function pins)
    (PxSEL PxSEL2 bits are set on 0)

    pullup resistors are off
    (PxREN bits are set on 0)

    interrupts are off
    (PxIE bits are set on 0)

    interrupts flags are cleared
    (PxIFG bits are set on 0)


    and be carefully interrupts edge PxIES
    and output value PxOUT
    are unchanged !

     ( reset didnt clear value of this pins
       pin have value before reset )

**Attention** This is a public forum