MC9S12XDP512在MSCAN使用过程中遇到问题
- UID
- 813472
|
MC9S12XDP512在MSCAN使用过程中遇到问题
为什么我在CAN发送过程中,启动发送后,等待CAN0TFLG标志位变为1,
uchar temp;
if (!(CAN0TFLG & 7)) { /* Are all transmit buffers full? */
return 0; /* If yes then error */
}
CAN0TBSEL = CAN0TFLG; /* Find any empty transmit buffer */
temp = CAN0TBSEL;
......
CAN0TFLG = temp; /* Start transmission */
while ((CAN0TFLG & temp) != temp);(这一步过不去???????)
listen-mode我已经禁止了
但最后一步就是过不去,大侠帮忙看一下吧?急急,为什么过不去?万分感谢... |
|
|
|
|
|
- UID
- 780630
- 性别
- 男
|
能解释一下
while ((CAN0TFLG & temp) != temp);
是等什么的么? |
|
|
|
|
|
- UID
- 805034
|
|
|
|
|
|
- UID
- 813472
|
|
|
|
|
|
- UID
- 809379
|
|
|
|
|
|