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.
我没用过io430.h来写代码,但看了这个头文件,内面对每个寄存器都用位域定义好了,比如P1IN用诺名联合定在@0x0020,应可直接用P1IN_bit.P0、P1IN_bit.P1来调用,我试写了一条if(P1IN_bit.P0)P1OUT_bit.P1=1; 编译后没错误,但用这个头文件不知要注意哪些事项,又要用什么样的命令来开总中断和关总中断,有谁能帮给一下答案吗?若有这个头文件的解讲请贴一下,若有用这个头文件写的代码也请贴一段来做一下参考,本人在此先鞠躬致谢!!!!!!!!