Presuming you have the SPI serial output working with your SPI1_Write(0b10100111) command. You want to setup for SPI MODE 0,0. The MCU SPI clock line connects to SHCP/STCP shift-register inputs, the MCU SPI data line connects to the DS shift-register input, and you need an additional MCU I/O pin which will connect to /OE shift-register input. Before sending the the SPI1_Write command, bring the /OE line low, and once the SPI1_Write command is finished bring the /OE line high. Something as follows...
- Setup SPI Mode for 0,0 (CPOL=0, CPHA=0)
- Bring /OE line low
- Send SPI1_Write command
- Bring /0E line high