Jagadish kumar Sarvepalli

CAN-USB interfacing on HCS12 Microcontroller

Discussion created by Jagadish kumar Sarvepalli on Sep 13, 2006
Latest reply on Oct 15, 2009 by kef

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

CAN0TFLG = txbuffer; // Start transmission
while ( (CAN0TFLG & txbuffer) != txbuffer); // Wait for Transmission completion
I have no idea why!
i'll be thankful for your help!