简体   繁体   中英

GPIO programming of MSP430?

I was going through the datasheet of MSP430 series.

My doubt is :

There is a register for enabling or disabling the PULL UP and PULL DOWN registers.(PXREN)

My question is , if we configure a pin as input and disable the internal pull up and pull down registers using the register PXREN then , what would be the state of the pin at that time , will it get tri stated?

Yes. When you configure the pin as GPIO input it is high-Z, ie it is tri stated. That's perfect for an input pin, your external hardware will define the level.

When you enable the RXEN you get a resistor that is a pull up or down. This depends on the value in the OUT register.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM