CAN-USB interfacing on HCS12 Microcontroller

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

CAN-USB interfacing on HCS12 Microcontroller

2,361 次查看
jagg
Contributor I
Hi,

Iam working on MC9S12DG256B(HCS12) microcontroller for CAN module. I've just used the Software in the App Note AN3034 to program the MSCAN. I've changed nothing in the software, but only deactivated loop back self test mode ( in CANCTL1 ). I am using CAN-USB interface.

But in the CAN0SendFrame() the Transmission completes never. The Code execution freezes
here:

CAN0TFLG = txbuffer; // Start transmission
while ( (CAN0TFLG & txbuffer) != txbuffer); // Wait for Transmission completion
I have no idea why!
i'll be thankful for your help!
标签 (1)
0 项奖励
回复
3 回复数

1,047 次查看
wilero17
Contributor I

Hi alban,

 

I have the same problem jagg. I want to know where are the post that you are saying.

 

Many thanks.

0 项奖励
回复

1,047 次查看
kef
Specialist I

It could be due to baudrate mismatch, lack of proper bus termination etc

0 项奖励
回复

1,047 次查看
Alban
Senior Contributor II
Please before asking questions, search for existing answers.
This is the third time this question is asked in few weeks and has already been replied to twice.
See two posts below and you'll get an answer.
 
Alban.
0 项奖励
回复