CAN-USB interfacing on HCS12 Microcontroller

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

CAN-USB interfacing on HCS12 Microcontroller

1,943 Views
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!
Labels (1)
0 Kudos
Reply
3 Replies

629 Views
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 Kudos
Reply

629 Views
kef
Specialist I

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

0 Kudos
Reply

629 Views
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 Kudos
Reply