From what you have explained, here is something that should work:
HTH,Code:Full_Word var Word Low_Byte var Full_Word.lowbyte High_Byte Var Full_Word.Highbyte 'First Nibble High_Byte = (PortD & %00001111) High_Byte = High_Byte << 4 'Second Nibble High_Byte = High_Byte + (PortD & %00001111) 'Third Nibble Low_Byte = (PortD & %00001111) Low_Byte = Low_Byte << 4 'Forth Nibble Low_Byte = Low_Byte + (PortD & %00001111) 'Full_Word now has the 16 bit result of 4 Nibbles
Steve
[i]EDIT: just changed port, since I miss read original post and used B instead of D




Bookmarks