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通信需要外界收发器吗?我想通过CANA的消息对象1向CANB的消息对象1发送消息测试代码是否运行成功。在这之前运行了can_ex4_simple_transmit例程,发现程序一直停留在语句while(((HWREGH(CANA_BASE + CAN_O_ES) & CAN_ES_TXOK)) != CAN_ES_TXOK);(没有外接收发器),请问这是什么原因造成的?
你好,例程需要can收发器的,或者说,CAN通讯都是要接收发器的。
另外,一般例程的main文件开头注释中都会说明这个例程的功能和注意事项,还请认真阅读,其中,你测试的例程就有说明:
//! \b Hardware \b Required \n //! - A C2000 board with CAN transceiver and another CAN node configured //! for the same bit-rate to provide the ACK.
抱歉,今天正好看了一下launchPAD的原理图,发现launchPAD都是带can收发器的,型号是SN65HVD234DR,而且120欧姆电阻也加好了。而controlCARD一般是不带收发器的。