lpc1766 这款芯片的CAN通信如何发送“过载帧”

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

lpc1766 这款芯片的CAN通信如何发送“过载帧”

Jump to solution
1,847 Views
tongjunju
Contributor I

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?

0 Kudos
Reply
1 Solution
1,512 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Tongjun,

   1. Give you a picture from the book.

pastedImage_1.jpg

2. overload register

pastedImage_2.png


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
5 Replies
1,512 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi tongjun,

   CAN1GSR[DOS] is the data overrun status, it is not the overload frame flag.

pastedImage_1.png

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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply
1,512 Views
tongjunju
Contributor I

Hi kerryzhou,

Thank you for your letter to solve my doubts !

Have a great day,

tongjun

0 Kudos
Reply
1,512 Views
kerryzhou
NXP TechSupport
NXP TechSupport

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!
-----------------------------------------------------------------------------------------------------------------------

1,512 Views
tongjunju
Contributor I

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

0 Kudos
Reply
1,513 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Tongjun,

   1. Give you a picture from the book.

pastedImage_1.jpg

2. overload register

pastedImage_2.png


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply