You need to use SHIFTIN.
---------------------------
CMCON=7
MyByte VAR Byte
SHIFTIN GPIO.2,GPIO.0,0,[MyByte]
---------------------------
I don't have a HC165 Datasheet available, make sure the mode matches the specs of the HC165.
See PBP Manual Section 5.72
Bookmarks