it's sounds familiar...
http://www.picbasic.co.uk/forum/show...=reverse+order
How do you get those bytes??? let's say by serial com... why not... it's possibleregular binary 122880 = (msb) 00000001 11100000 00000000
My buffer reads 122880 = (lsb) 00000000 00000111 10000000
now i leave you with the pleasure of doing some math and use modifiers like DEC, DIG and all the others.Code:b0 var byte b1 var byte b2 var byte w1 var byte w0 var word hserin [b0,b1,b2] w1=b2 rev 8 w0.highbyte=b1 rev 8 w0.lowbyte=b0 rev 8 hserout [bin8 w1,bin16 w0]





Bookmarks