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.

msp430g2553lunchpad io设置问题

Other Parts Discussed in Thread: MSP430G2553

P1DIR &=~(BIT0+BIT1+BIT2+BIT3+BIT4+BIT5);

P1REN |= BIT0+BIT1+BIT2+BIT3+BIT4+BIT5;

把p1.0到p1.5设置成上拉输入 用iar5.5 

但是从iar的debug模式下p1in寄存器的p1.0的总是0  p1.1到p1.5都是1.

但是其中仿真有几次都是正确的,但是后面无法变成1了,这是bug吗?真是很奇怪

更奇怪的是我把p1.0换成p1.6 从硬件仿真上查看p1in一直是0,但是实际测试是1高电平。

感觉msp430还是没有stm32好用啊  感觉很不稳定