Hi All
I am looking to get some advise of how i can combine four nibble (4bits x 4)
to give me 16bits so that i can shiftout the 16bits at once.
The device i am reading can only end 4bits at a time so i would have to receive the data four times and store this into 4 variables Nibble1-Nibble2
i would be receiving the data on PortD.0-PortD.3
The tricky bit for me i that i want Nibble1 to corresponds to Msb posistion
of my 16bits so for example if my values are as below
nibble1=F
nibble2=E
nibble3=D
nibble4=C
TRISD=$FF
Assuming at this point those values are in the var would this be ok
ShiftOut DataP,Clk,MsbFirst,[nibble1\4,nibble2\4,nibble3\4,nibble4\4] 'Send 16bits out
Bookmarks