Implementation of CAN Driver on LPC1768

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Implementation of CAN Driver on LPC1768

468 次查看
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 回复

430 次查看
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 项奖励
回复