各位大神:
在KEAC128的说明手册里有这么一段说明: NOTE
The user is responsible for ensuring that the MSCAN is not
active when initialization mode is entered. The recommended
procedure is to bring the MSCAN into sleep mode (SLPRQ = 1
and SLPAK = 1) before setting the INITRQ bit in the
CANCTL0 register. Otherwise, the abort of an on-going
message can cause an error condition and can impact other
CAN bus devices.
当时看这段话的时候就在想,未对CAN初始化之前,怎么能使CAN 进入睡眠模式保护总线呢?
果然我在写MSCAN初始化程序时,如果先让CAN进入睡眠模式程序运行就会出错。