Implementation of CAN Driver on LPC1768

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Implementation of CAN Driver on LPC1768

479件の閲覧回数
Laxmi_Gangal
Contributor I

I am implementing a CAN driver for the LPC1768 microcontroller. During simulation there is no error, but while testing , I was previously encountering an ERRBIT : start of frame (SOF) in CAN  interrupt and capture status register(CANxICR)  now it is resolved by setting the PINMODE0=0x0000000A i.e. TD1=NO pullup/down RD1=NO pullup/down.

Now I am getting ERRBIT : stuff Error in CAN1ICR.  In CAN1GSR I am getting TXERR  and TCS:0.

please help me to resolve this error.

let me know what are the correct values to be set in Pin Mode Select - PINMODE0 and Open Drain Mode Control - PINMODE_OD0 registers.

ラベル(1)
0 件の賞賛
返信
1 返信

441件の閲覧回数
Harry_Zhang
NXP Employee
NXP Employee

HI @Laxmi_Gangal 

In CAN communication, a stuff error occurs when the receiving node detects a violation of the bit-stuffing rule. After five consecutive bits of the same polarity, a complementary bit is inserted. If this bit is missing or incorrectly inserted, a stuff error is triggered.

Since you already fixed the SOF error by configuring the pins correctly, the stuff error may be due to signal integrity issues, timing mismatches, or incorrect pin configurations.

BR

Harry

0 件の賞賛
返信