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.

CAN总线监视器正常模式



看了TM4C129X 的CAN模块例程,编写了CAN总线监视器,其中模式配置的时候用了如下两句程序,但当CAN总线上面的CAN发送设备发送给CAN监视器时,监视器无法接收到CAN消息,想请问正常的CAN模式写法应该是什么样子的?需要我配置这两个寄存器吗?因为看到手册中有静默模式、正常模式、自回环模式等,我就想要个正常收发模式。。。 

HWREG(CAN0_BASE + CAN_O_CTL) = HWREG(CAN0_BASE + CAN_O_CTL) | CAN_CTL_TEST;
HWREG(CAN0_BASE + CAN_O_TST) = HWREG(CAN0_BASE + CAN_O_TST) | CAN_TST_BASIC;