Shift register accepts serial data and give parallel output. It’s requires only 3 pins to connect with your microcontroller and you will get more than 8 Output pins from it. Learn how to use 74HC595 Serial Shift Register with PIC microcontroller