A tutorial on using the 74HC165 Parallel to Serial shift register with the P8X32A MCU.
(https://savagecircuits.com/wp-content/uploads/2014/02/74HC165_00.jpg)
CLICK HERE TO GO TO THIS TUTORIAL ON THE SAVAGE///CIRCUITS WEBSITE (https://savagecircuits.com/74hc165-demo-spin/)