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.

[参考译文] MSP430FR2355:if 语句不能#39;t TRAP???

Guru**** 2534260 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1000496/msp430fr2355-if-statement-doesn-t-trap

器件型号:MSP430FR2355

有人能不能在这里看到什么可能是错误的。  变量是 uint8_t  值为0x40和0x08的示例。  我从未参与按钮的分配??

                    if (currentP1Value & 0x78)
                        Button = PAIR;

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我怀疑还有更多。 您能再显示一些上下文吗?

    您如何判断您没有参加培训? (断点? 按钮值?)

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我在 Button 语句上有一个断点...当我将断点移动到代码的更下一个位置时(我可以很奢侈地执行该操作,但仍然可以进行故障排除) 代码在选择按钮分配时似乎没有问题...猜测它是与反汇编代码一起使用的,还是因为我没有优化???? (也许)。。我把它画成粉笔。