Pedram Nasirifard

MSCAN on the HCS12

Discussion created by Pedram Nasirifard on May 16, 2006
Latest reply on May 16, 2006 by Jeff Smith
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 ).
But in the CAN0SendFrame() the Transmission completes never. The Code execution freezes hier:
CAN0TFLG = txbuffer;   // Start transmission 
while ( (CAN0TFLG & txbuffer) != txbuffer);  
// Wait for Transmission completion
I have no idea why!
i'll be thankful for your help!