LPC_CAN1->CMR |= (0x01<<2);
LPC_CAN1->IER |= ((1<<0)|(1<<2)|(1<<3)); //接收数据过载中断使能
LPC_CAN1->GSR中的DOS标志置1时,总线上却未发现“过载帧”波形。
我仿真的时候检测can过载帧的标志位,当置位的时候并没有发现有过载帧发出的波形。
1、How do I configure this chip to make the can receiver send an overload frame?
2、an overload frame is send by hardware automatically?
Solved! Go to Solution.
Hi Tongjun,
1. Give you a picture from the book.
2. overload register
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi tongjun,
CAN1GSR[DOS] is the data overrun status, it is not the overload frame flag.
Overload frame is sent by the hardware automatically, it is not controlled by the user code.
Wish it helps you!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi kerryzhou,
Thank you for your letter to solve my doubts !
Have a great day,
tongjun
Hi Tongjun,
You are welcome!
If your problem is solved, please help to mark the correct answer, just to close this question.
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi kerryzhou,
Thank you for your letter!
Overload frame is sent by the hardware automatically , How do I know when the overload frame is sent ?
If some value of some registers is changed when the overload frame is sent , What is the name of the register?
Have a great day,
Hi tongjun
Hi Tongjun,
1. Give you a picture from the book.
2. overload register
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------