Hi There,
I apologise if this is really daft but im totally lost.

I have a unsigned int for example (0x4f1164)

i am doing the following bit shifting

sCanMsg.abData[ByteNum] = Data;
sCanMsg.abData[ByteNum+1] = Data>>8;
sCanMsg.abData[ByteNum+2] = Data>>16;
sCanMsg.abData[ByteNum+3] = Data>>24;
sCanMsg.abData[ByteNum+4] = Data>>32;
sCanMsg.abData[ByteNum+5] = Data>>40;
sCanMsg.abData[ByteNum+6] = Data>>48;
sCanMsg.abData[ByteNum+7] = Data>>56;

only problem is when i get to the 5 line down it starts the number again so i end up with

00 4f 11 64 00 4f 11 64

just 00 4f 11 64

Can anyone tell me why it seems to have the value twice?

thanks

James