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中读取P3引脚的值并且修改低四位的值?



       我接触msp430不到一个月,编程时遇到一个问题,就是P3端口的高四位不改变,低四位需要改变(Dat是12位二进制数, 把Dat的高四位赋给P3的低四位,P3高四位不改变)我的想法是:P3OUT =(P3OUT&0xf0)|(0x0f&(Dat>>8));但是结果不符合要求,想问一下怎么办?