我用TI 的例程:Example_28335xECanBack2Bck 学习CAN操作例程,程序走到这里就不动了,请教各位是什么原因?
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.
网上说可能是波特率的问题,可我的是自测模式情况下进行的,后来改了:
#if (CPU_FRQ_150MHZ)
ECanaShadow.CANBTC.bit.BRPREG = 9;
ECanaShadow.CANBTC.bit.TSEG2REG = 5;
ECanaShadow.CANBTC.bit.TSEG1REG = 7;
#endif
ECanaShadow.CANBTC.bit.SAM = 1;
ECanaRegs.CANBTC.all = ECanaShadow.CANBTC.all;
还是不行。