[经验] 【MSP430 编译器使用经验】+PM5CTL0寄存器理解

Sur   2014-8-11 22:46 楼主
  1. PM5CTL0 &= ~LOCKLPM5; // Disable the GPIO power-on default high-impedance mode
  2.                                                   // to activate previously configured port settings

总有使用TI的430launchPad的时候,发现IO的设置以及不能和以前习惯的F1系列那样了,但是如何恢复了,这次,为大家带来LaunchPad的编程时的快速解决这些问题的办法。
LOCKLPM5 这个标志位官方是这样解释的:
Locks I/O pin and other LPMx.5 relevant (for example, RTC) configurations upon exit from LPMx.5. After a power cycle I/O pins are locked in high-impedance state with input Schmitt triggers disabled until LOCKLPM5 is cleared by user. After a wake-up from LPMx.5 I/O pins and other LPMx.5 relevant (for example, RTC) configurations are locked in their states configured prior to LPMx.5 entry until LOCKLPM5 is cleared by user. 0b = I/O pin and LPMx.5 configurations unlocked. 1b = I/O pin and LPMx.5 configuration remains locked.
12.png


NXP新年新气象大家一起嗨起来 + 恩智浦KW41Z有奖创意征集令高能来袭 +https://www.eeworld.com.cn/huodong/201611_NXPKW41ZActivity1/index.html

回复评论 (1)

fr5969使用时也要增加这句
点赞  2014-8-11 23:04
电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 京公网安备 11010802033920号
    写回复