I am using PIC16F1938 microcontroller in which PL, CE, CP & Q7 outputs of 74HC165 are given as I/P to microcontroller. So microcontroller Port pins are configured as INPUT and other functions of the port( ANSEL, O/P, LATCH etc. are disabled)
As I mentioned, I need to read 8 different Fault status and store it into any variable/register. So micocontroller i/p pin details were not shown.
I am trying my best to understand the 74HC165 logic and doing google search as well!
I am testing it with hardware, there is no compilation error as code is building! But when I am debugging it then the expected responses are not coming, as PL bit is abruptly becoming high etc.